简体   繁体   English

Android ADB 在 macOS 10.15.5 上根本不起作用

[英]Android ADB not working at all on macOS 10.15.5

I'm using MacBookPro Late 2018, previously running macOS 10.14 without any issues and I just upgrade to 10.15.5 by a clear installation (actually the mainboard got some issue and Apple changed the hardware and performed a clean install for me).我正在使用 2018 年末的 MacBookPro,之前运行 macOS 10.14 没有任何问题,我只是通过清晰的安装升级到 10.15.5(实际上主板出现了一些问题,Apple 更改了硬件并为我执行了全新安装)。

Now, I'm not able to use adb at all, no "USB icon" on the status bar on all my phones after USB is connected, instead, an error message The connected device is unable to access data on this device. Reconnect the USB cable and try again.现在,我根本无法使用adb ,连接USB后,我所有手机的状态栏上都没有“USB图标”,而是出现错误消息The connected device is unable to access data on this device. Reconnect the USB cable and try again. The connected device is unable to access data on this device. Reconnect the USB cable and try again. appears, but Android File Transfer works fine .出现,但Android 文件传输工作正常

I tried...我试过了...

  • 3 different USB cables (which all 3 are working previously) 3 根不同的 USB 电缆(之前所有 3 根电缆都在工作)
  • 3 different phones, Samsung Note 8 (An 9), Essential Phone PH-1 (An 10), Huawei P10 (An 8) which all 3 works well previously 3 款不同的手机,三星 Note 8 (An 9)、Essential Phone PH-1 (An 10)、华为 P10 (An 8),这 3 款手机之前都运行良好
  • All USB mode on each phone每部手机上的所有 USB 模式
  • Few different platform-tools version, including 27, 28, 30 (latest)几个不同的平台工具版本,包括 27、28、30(最新)
  • Revoked all USB debugging authorizations撤销所有 USB 调试授权
  • All troubleshoot steps that I found on Google, ie kill-server or even the adb_usb.ini我在 Google 上找到的所有故障排除步骤,即kill-server甚至adb_usb.ini
  • Remove all connected device from my MBP (even power supply), only my phone left从我的 MBP 中移除所有连接的设备(甚至是电源),只剩下我的手机
  • Reset SMC by this instruction: https://support.apple.com/en-is/HT201295通过此指令重置 SMC: https://support.apple.com/en-is/HT201295

What else I can try?我还能尝试什么?

System Report:系统报告:

系统报告

Android Studio: Android工作室:

安卓工作室

Attached is some message form adb cli:附件是一些消息形式adb cli:

> adb kill-server
adb D 06-12 13:58:03  1047 11576 adb_trace.cpp:187] Android Debug Bridge version 1.0.41
adb D 06-12 13:58:03  1047 11576 adb_trace.cpp:187] Version 30.0.2-6538114
adb D 06-12 13:58:03  1047 11576 adb_trace.cpp:187] Installed as /Users/xxx/Library/Android/sdk/platform-tools/adb
adb D 06-12 13:58:03  1047 11576 adb_trace.cpp:187]
adb D 06-12 13:58:03  1047 11576 adb_client.cpp:194] adb_kill_server
adb D 06-12 13:58:03  1047 11576 adb_io.cpp:107] writex: fd=3 len=13 30303039686f73743a6b696c6c 0009host:kill
adb D 06-12 13:58:03  1047 11576 adb_io.cpp:81] readx: fd=3 wanted=4
adb D 06-12 13:58:03  1047 11576 adb_io.cpp:97] readx: fd=3 wanted=4 got=4 4f4b4159 OKAY
> adb start-server
adb D 06-12 13:58:07  1048 11587 adb_trace.cpp:187] Android Debug Bridge version 1.0.41
adb D 06-12 13:58:07  1048 11587 adb_trace.cpp:187] Version 30.0.2-6538114
adb D 06-12 13:58:07  1048 11587 adb_trace.cpp:187] Installed as /Users/xxx/Library/Android/sdk/platform-tools/adb
adb D 06-12 13:58:07  1048 11587 adb_trace.cpp:187]
adb D 06-12 13:58:07  1048 11587 adb_client.cpp:346] adb_connect: service: host:start-server
adb D 06-12 13:58:07  1048 11587 adb_client.cpp:155] _adb_connect: host:version
* daemon not running; starting now at tcp:5037
adb D 06-12 13:58:07  1049 11589 adb_trace.cpp:187] Android Debug Bridge version 1.0.41
adb D 06-12 13:58:07  1049 11589 adb_trace.cpp:187] Version 30.0.2-6538114
adb D 06-12 13:58:07  1049 11589 adb_trace.cpp:187] Installed as /Users/xxx/Library/Android/sdk/platform-tools/adb
adb D 06-12 13:58:07  1049 11589 adb_trace.cpp:187]
* daemon started successfully
> adb devices
adb D 06-12 13:59:11  1067 12384 adb_trace.cpp:187] Android Debug Bridge version 1.0.41
adb D 06-12 13:59:11  1067 12384 adb_trace.cpp:187] Version 30.0.2-6538114
adb D 06-12 13:59:11  1067 12384 adb_trace.cpp:187] Installed as /Users/xxx/Library/Android/sdk/platform-tools/adb
adb D 06-12 13:59:11  1067 12384 adb_trace.cpp:187]
adb D 06-12 13:59:11  1067 12384 adb_client.cpp:155] _adb_connect: host:version
adb D 06-12 13:59:11  1067 12384 adb_io.cpp:107] writex: fd=3 len=16 30303063686f73743a76657273696f6e 000chost:version
adb D 06-12 13:59:11  1067 12384 adb_io.cpp:81] readx: fd=3 wanted=4
adb D 06-12 13:59:11  1067 12384 adb_io.cpp:97] readx: fd=3 wanted=4 got=4 4f4b4159 OKAY
adb D 06-12 13:59:11  1067 12384 adb_client.cpp:189] _adb_connect: return fd 3
adb D 06-12 13:59:11  1067 12384 adb_io.cpp:81] readx: fd=3 wanted=4
adb D 06-12 13:59:11  1067 12384 adb_io.cpp:97] readx: fd=3 wanted=4 got=4 30303034 0004
adb D 06-12 13:59:11  1067 12384 adb_io.cpp:81] readx: fd=3 wanted=4
adb D 06-12 13:59:11  1067 12384 adb_io.cpp:97] readx: fd=3 wanted=4 got=4 30303239 0029
List of devices attached
adb D 06-12 13:59:11  1067 12384 adb_client.cpp:387] adb_query: host:devices
adb D 06-12 13:59:11  1067 12384 adb_client.cpp:346] adb_connect: service: host:devices
adb D 06-12 13:59:11  1067 12384 adb_client.cpp:155] _adb_connect: host:devices
adb D 06-12 13:59:11  1067 12384 adb_io.cpp:107] writex: fd=3 len=16 30303063686f73743a64657669636573 000chost:devices
adb D 06-12 13:59:11  1067 12384 adb_io.cpp:81] readx: fd=3 wanted=4
adb D 06-12 13:59:11  1067 12384 adb_io.cpp:97] readx: fd=3 wanted=4 got=4 4f4b4159 OKAY
adb D 06-12 13:59:11  1067 12384 adb_client.cpp:189] _adb_connect: return fd 3
adb D 06-12 13:59:11  1067 12384 adb_client.cpp:364] adb_connect: return fd 3
adb D 06-12 13:59:11  1067 12384 adb_io.cpp:81] readx: fd=3 wanted=4
adb D 06-12 13:59:11  1067 12384 adb_io.cpp:97] readx: fd=3 wanted=4 got=4 30303030 0000
adb D 06-12 13:59:11  1067 12384 adb_io.cpp:81] readx: fd=3 wanted=0
adb D 06-12 13:59:11  1067 12384 adb_io.cpp:97] readx: fd=3 wanted=0 got=0
> adb usb
adb D 06-12 13:58:41  1052 11975 adb_trace.cpp:187] Android Debug Bridge version 1.0.41
adb D 06-12 13:58:41  1052 11975 adb_trace.cpp:187] Version 30.0.2-6538114
adb D 06-12 13:58:41  1052 11975 adb_trace.cpp:187] Installed as /Users/xxx/Library/Android/sdk/platform-tools/adb
adb D 06-12 13:58:41  1052 11975 adb_trace.cpp:187]
adb D 06-12 13:58:41  1052 11975 adb_client.cpp:346] adb_connect: service: usb:
adb D 06-12 13:58:41  1052 11975 adb_client.cpp:155] _adb_connect: host:version
adb D 06-12 13:58:41  1052 11975 adb_io.cpp:107] writex: fd=3 len=16 30303063686f73743a76657273696f6e 000chost:version
adb D 06-12 13:58:41  1052 11975 adb_io.cpp:81] readx: fd=3 wanted=4
adb D 06-12 13:58:41  1052 11975 adb_io.cpp:97] readx: fd=3 wanted=4 got=4 4f4b4159 OKAY
adb D 06-12 13:58:41  1052 11975 adb_client.cpp:189] _adb_connect: return fd 3
adb D 06-12 13:58:41  1052 11975 adb_io.cpp:81] readx: fd=3 wanted=4
adb D 06-12 13:58:41  1052 11975 adb_io.cpp:97] readx: fd=3 wanted=4 got=4 30303034 0004
adb D 06-12 13:58:41  1052 11975 adb_io.cpp:81] readx: fd=3 wanted=4
adb D 06-12 13:58:41  1052 11975 adb_io.cpp:97] readx: fd=3 wanted=4 got=4 30303239 0029
adb D 06-12 13:58:41  1052 11975 adb_client.cpp:155] _adb_connect: usb:
adb D 06-12 13:58:41  1052 11975 adb_io.cpp:107] writex: fd=3 len=18 30303065686f73743a74706f72743a61 000ehost:tport:a [truncated]
adb D 06-12 13:58:41  1052 11975 adb_client.cpp:114] Switch transport in progress: host:tport:any
adb D 06-12 13:58:41  1052 11975 adb_io.cpp:81] readx: fd=3 wanted=4
adb D 06-12 13:58:41  1052 11975 adb_io.cpp:97] readx: fd=3 wanted=4 got=4 4641494c FAIL
adb D 06-12 13:58:41  1052 11975 adb_io.cpp:81] readx: fd=3 wanted=4
adb D 06-12 13:58:41  1052 11975 adb_io.cpp:97] readx: fd=3 wanted=4 got=4 30303161 001a
adb D 06-12 13:58:41  1052 11975 adb_io.cpp:81] readx: fd=3 wanted=26
adb D 06-12 13:58:41  1052 11975 adb_io.cpp:97] readx: fd=3 wanted=26 got=26 6e6f20646576696365732f656d756c61 no devices/emula [truncated]
adb D 06-12 13:58:41  1052 11975 adb_client.cpp:117] Switch transport failed: no devices/emulators found
adb D 06-12 13:58:41  1052 11975 adb_client.cpp:360] _adb_connect error: no devices/emulators found
adb D 06-12 13:58:41  1052 11975 adb_client.cpp:364] adb_connect: return fd -1
error: no devices/emulators found

my issue is, it always give me "adb: error: failed to read copy response" when push file to my android device through usb我的问题是,当通过 usb 将文件推送到我的 android 设备时,它总是给我“adb:错误:无法读取复制响应”

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM