USB 文件传输和 adb sideload 不工作

USB-file-transfer and adb sideload not working

我有一加6T。当我 1 年前拿到它时,我通过 fastboot 在两个插槽中从官方 One Plus 页面 (https://www.oneplus.com/de/support/softwareupgrade/) 刷新了最新固件,然后为 fajita 安装了 LinageOS 17.1。 现在 18.1 已经有一段时间了,我想升级。官方页面建议使用 adb side load (https://wiki.lineageos.org/devices/fajita/upgrade) 在完成这些步骤时,我注意到两个症状:

  1. 无法进行 USB 文件传输。
  2. ADB 在文件传输模式下无法识别我的设备(它适用于 USB 网络共享、MIDI 和 PTP)

我也看到侧载失败:

C:\Users\user\Desktop\platform-tools>adb sideload C:\Users\user\Downloads\lineage-18.1-20210812-nightly-fajita-signed.zip
adb D 08-15 22:11:43  6228 14160 adb_trace.cpp:187] Android Debug Bridge version 1.0.41
adb D 08-15 22:11:43  6228 14160 adb_trace.cpp:187] Version 30.0.3-6597393
adb D 08-15 22:11:43  6228 14160 adb_trace.cpp:187] Installed as C:\Users\user\Desktop\platform-tools\adb.exe
adb D 08-15 22:11:43  6228 14160 adb_trace.cpp:187]
adb D 08-15 22:11:43  6228 14160 sysdeps_win32.cpp:402] adb_open: 'C:\Users\user\Downloads\lineage-18.1-20210812-nightly-fajita-signed.zip' => fd 2048
adb D 08-15 22:11:43  6228 14160 adb_client.cpp:346] adb_connect: service: sideload-host:573814713:65536
adb D 08-15 22:11:43  6228 14160 adb_client.cpp:155] _adb_connect: host:version
adb D 08-15 22:11:43  6228 14160 sysdeps_win32.cpp:846] port 5037 type tcp => fd 2049
adb D 08-15 22:11:43  6228 14160 adb_io.cpp:107] writex: fd=2049 len=16 30303063686f73743a76657273696f6e 000chost:version
adb D 08-15 22:11:43  6228 14160 adb_io.cpp:81] readx: fd=2049 wanted=4
adb D 08-15 22:11:43  6228 14160 adb_io.cpp:97] readx: fd=2049 wanted=4 got=4 4f4b4159 OKAY
adb D 08-15 22:11:43  6228 14160 adb_client.cpp:189] _adb_connect: return fd 2049
adb D 08-15 22:11:43  6228 14160 adb_io.cpp:81] readx: fd=2049 wanted=4
adb D 08-15 22:11:43  6228 14160 adb_io.cpp:97] readx: fd=2049 wanted=4 got=4 30303034 0004
adb D 08-15 22:11:43  6228 14160 adb_io.cpp:81] readx: fd=2049 wanted=4
adb D 08-15 22:11:43  6228 14160 adb_io.cpp:97] readx: fd=2049 wanted=4 got=4 30303239 0029
adb D 08-15 22:11:43  6228 14160 sysdeps_win32.cpp:537] adb_close: 2049(lo-client:5037)
adb D 08-15 22:11:43  6228 14160 adb_client.cpp:155] _adb_connect: sideload-host:573814713:65536
adb D 08-15 22:11:43  6228 14160 sysdeps_win32.cpp:846] port 5037 type tcp => fd 2049
adb D 08-15 22:11:43  6228 14160 adb_io.cpp:107] writex: fd=2049 len=18 30303065686f73743a74706f72743a61 000ehost:tport:a [truncated]
adb D 08-15 22:11:43  6228 14160 adb_client.cpp:114] Switch transport in progress: host:tport:any
adb D 08-15 22:11:43  6228 14160 adb_io.cpp:81] readx: fd=2049 wanted=4
adb D 08-15 22:11:43  6228 14160 adb_io.cpp:97] readx: fd=2049 wanted=4 got=4 4f4b4159 OKAY
adb D 08-15 22:11:43  6228 14160 adb_io.cpp:81] readx: fd=2049 wanted=8
adb D 08-15 22:11:43  6228 14160 adb_io.cpp:97] readx: fd=2049 wanted=8 got=8 0100000000000000 ........
adb D 08-15 22:11:43  6228 14160 adb_client.cpp:128] Switch transport success
adb D 08-15 22:11:43  6228 14160 adb_io.cpp:107] writex: fd=2049 len=33 30303164736964656c6f61642d686f73 001dsideload-hos [truncated]
adb D 08-15 22:11:43  6228 14160 adb_io.cpp:81] readx: fd=2049 wanted=4
adb D 08-15 22:11:43  6228 14160 adb_io.cpp:97] readx: fd=2049 wanted=4 got=4 4641494c FAIL
adb D 08-15 22:11:43  6228 14160 adb_io.cpp:81] readx: fd=2049 wanted=4
adb D 08-15 22:11:43  6228 14160 adb_io.cpp:97] readx: fd=2049 wanted=4 got=4 30303036 0006
adb D 08-15 22:11:43  6228 14160 adb_io.cpp:81] readx: fd=2049 wanted=6
adb D 08-15 22:11:43  6228 14160 adb_io.cpp:97] readx: fd=2049 wanted=6 got=6 636c6f736564 closed
adb D 08-15 22:11:43  6228 14160 sysdeps_win32.cpp:537] adb_close: 2049(lo-client:5037)
adb D 08-15 22:11:43  6228 14160 adb_client.cpp:360] _adb_connect error: closed
adb D 08-15 22:11:43  6228 14160 adb_client.cpp:364] adb_connect: return fd -1
adb: sideload connection failed: closed
adb: trying pre-KitKat sideload method...
adb D 08-15 22:11:43  6228 14160 adb_client.cpp:346] adb_connect: service: sideload:573814713
adb D 08-15 22:11:43  6228 14160 adb_client.cpp:155] _adb_connect: sideload:573814713
adb D 08-15 22:11:43  6228 14160 sysdeps_win32.cpp:846] port 5037 type tcp => fd 2049
adb D 08-15 22:11:43  6228 14160 adb_io.cpp:107] writex: fd=2049 len=18 30303065686f73743a74706f72743a61 000ehost:tport:a [truncated]
adb D 08-15 22:11:43  6228 14160 adb_client.cpp:114] Switch transport in progress: host:tport:any
adb D 08-15 22:11:43  6228 14160 adb_io.cpp:81] readx: fd=2049 wanted=4
adb D 08-15 22:11:43  6228 14160 adb_io.cpp:97] readx: fd=2049 wanted=4 got=4 4f4b4159 OKAY
adb D 08-15 22:11:43  6228 14160 adb_io.cpp:81] readx: fd=2049 wanted=8
adb D 08-15 22:11:43  6228 14160 adb_io.cpp:97] readx: fd=2049 wanted=8 got=8 0100000000000000 ........
adb D 08-15 22:11:43  6228 14160 adb_client.cpp:128] Switch transport success
adb D 08-15 22:11:43  6228 14160 adb_io.cpp:107] writex: fd=2049 len=22 30303132736964656c6f61643a353733 0012sideload:573 [truncated]
adb D 08-15 22:11:43  6228 14160 adb_io.cpp:81] readx: fd=2049 wanted=4
adb D 08-15 22:11:43  6228 14160 adb_io.cpp:97] readx: fd=2049 wanted=4 got=4 4641494c FAIL
adb D 08-15 22:11:43  6228 14160 adb_io.cpp:81] readx: fd=2049 wanted=4
adb D 08-15 22:11:43  6228 14160 adb_io.cpp:97] readx: fd=2049 wanted=4 got=4 30303036 0006
adb D 08-15 22:11:43  6228 14160 adb_io.cpp:81] readx: fd=2049 wanted=6
adb D 08-15 22:11:43  6228 14160 adb_io.cpp:97] readx: fd=2049 wanted=6 got=6 636c6f736564 closed
adb D 08-15 22:11:43  6228 14160 sysdeps_win32.cpp:537] adb_close: 2049(lo-client:5037)
adb D 08-15 22:11:43  6228 14160 adb_client.cpp:360] _adb_connect error: closed
adb D 08-15 22:11:43  6228 14160 adb_client.cpp:364] adb_connect: return fd -1
adb: pre-KitKat sideload connection failed: closed
adb D 08-15 22:11:43  6228 14160 sysdeps_win32.cpp:537] adb_close: 2048(C:\Users\user\Downloads\li

我假设这些症状是相关的,我在 linage 安装上做错了,但由于其他一切(17.1 内的升级,所有应用程序等)我不知道在哪里看.有什么建议吗?

编辑:

似乎我过早地认为我的 phone 是罪魁祸首,因为自定义设置。我确实用另一台电脑检查过它,文件传输在那里没有问题。不幸的是,我不能在那里使用 ADB,但我会尝试检查我的 PC 并遍历 ADB-/Phone-Drivers.

不知怎么的,我的OnePlus被别的华为驱动认出来了。通过设备管理器卸载此驱动程序解决了问题。