adb连接手机出现offline终极解决方案


通常遇到adb连接手机出现offline一般都是以下几个步骤解决问题:

adb kill-server && adb start-server
adb reconnect offline 多次
检查端口5037占用,排除改名的adb
换USB线和USB口拔插
重启手机
重装驱动
撤销usb授权重试
关闭开发者模式再开启
切换adb版本尝试
上面几步之后不管用,更换adbkey和adbkey.pub

但是我遇到的现象就比较奇特了,是一台笔记本上部分手机出现问题,上面的步骤完全不管用,最奇特的是跟会传染一样,开始一台手机出现问题,后来接下来另外两台手机出现问题,再后面更严重,直接台式机也出现这样的情况,看样子不是电脑的问题,是手机系统本身有bug,我的某些使用习惯触发这个bug,于是查看adb连接日志

λ  adb nodaemon server
adb I 11-25 11:10:53  1360 11540 auth.cpp:417] adb_auth_init...
adb I 11-25 11:10:53  1360 11540 auth.cpp:152] loaded new key from 'C:\Users\xxxx\.android\adbkey' with fingerprint 25FBC53E1EDCBEEB28411634A88B5706BFF8A5AB7AEDE35EEE24201C1426ECDA
adb I 11-25 11:10:53  1360 11560 transport.cpp:333] 1164413662: read thread spawning
adb I 11-25 11:10:53  1360  4444 transport.cpp:305] 1164413662: write thread spawning
adb E 11-25 11:10:58  1360  4444 transport_usb.cpp:166] remote usb: 1 - write terminated: Input/output error
adb I 11-25 11:10:58  1360 11560 transport.cpp:337] 1164413662: read failed: Input/output error
adb I 11-25 11:10:58  1360  5488 transport.cpp:333] 1164413662: read thread spawning
adb I 11-25 11:10:58  1360  4444 transport.cpp:1198] 1164413662: connection terminated: write failed
adb I 11-25 11:10:58  1360  4816 transport.cpp:305] 1164413662: write thread spawning
adb I 11-25 11:10:58  1360 11540 adb.cpp:171] 1164413662: already offline
adb I 11-25 11:10:58  1360 11540 transport.cpp:911] destroying transport 1164413662
adb I 11-25 11:10:58  1360 11540 transport.cpp:405] BlockingConnectionAdapter(1164413662): stopping
adb I 11-25 11:10:58  1360 11540 transport.cpp:423] BlockingConnectionAdapter(1164413662): stopped
adb I 11-25 11:10:58  1360 11540 transport.cpp:292] BlockingConnectionAdapter(1164413662): destructing
adb I 11-25 11:10:58  1360 11540 transport.cpp:398] BlockingConnectionAdapter(1164413662): already stoppedadb E 11-25 11:11:03  1360  4816 transport_usb.cpp:166] remote usb: 1 - write terminate
adb I 11-25 11:11:03  1360  5488 transport.cpp:337] 1164413662: read failed: Input/output error
adb I 11-25 11:11:03  1360  4816 transport.cpp:1198] 1164413662: connection terminated: write failed
adb I 11-25 11:11:03  1360  4680 transport.cpp:333] 1164413662: read thread spawning
adb I 11-25 11:11:03  1360  8040 transport.cpp:305] 1164413662: write thread spawning
adb I 11-25 11:11:03  1360 11540 adb.cpp:171] 1164413662: already offline
adb I 11-25 11:11:03  1360 11540 transport.cpp:911] destroying transport 1164413662
adb I 11-25 11:11:03  1360 11540 transport.cpp:405] BlockingConnectionAdapter(1164413662): stopping
adb I 11-25 11:11:03  1360 11540 transport.cpp:423] BlockingConnectionAdapter(1164413662): stopped
adb I 11-25 11:11:03  1360 11540 transport.cpp:292] BlockingConnectionAdapter(1164413662): destructing
adb I 11-25 11:11:03  1360 11540 transport.cpp:398] BlockingConnectionAdapter(1164413662): already stoppedadb E 11-25 11:11:08  1360  8040 transport_usb.cpp:166] remote usb: 1 - write terminate
adb I 11-25 11:11:08  1360  4680 transport.cpp:337] 1164413662: read failed: Input/output error
adb I 11-25 11:11:08  1360  8040 transport.cpp:1198] 1164413662: connection terminated: write failed
adb I 11-25 11:11:08  1360  6984 transport.cpp:333] 1164413662: read thread spawning
adb I 11-25 11:11:08  1360  1648 transport.cpp:305] 1164413662: write thread spawning
adb I 11-25 11:11:08  1360 11540 adb.cpp:171] 1164413662: already offline
adb I 11-25 11:11:08  1360 11540 transport.cpp:911] destroying transport 1164413662
adb I 11-25 11:11:08  1360 11540 transport.cpp:405] BlockingConnectionAdapter(1164413662): stopping
adb I 11-25 11:11:08  1360 11540 transport.cpp:423] BlockingConnectionAdapter(1164413662): stopped
adb I 11-25 11:11:08  1360 11540 transport.cpp:292] BlockingConnectionAdapter(1164413662): destructing
adb I 11-25 11:11:08  1360 11540 transport.cpp:398] BlockingConnectionAdapter(1164413662): already stoppedadb E 11-25 11:11:13  1360  1648 transport_usb.cpp:166] remote usb: 1 - write terminate
adb I 11-25 11:11:13  1360  1648 transport.cpp:1198] 1164413662: connection terminated: write failed
adb I 11-25 11:11:13  1360  1456 transport.cpp:333] 1164413662: read thread spawning
adb I 11-25 11:11:13  1360  6984 transport.cpp:337] 1164413662: read failed: Input/output error
adb I 11-25 11:11:13  1360  7900 transport.cpp:305] 1164413662: write thread spawning
adb I 11-25 11:11:13  1360 11540 adb.cpp:171] 1164413662: already offline
adb I 11-25 11:11:13  1360 11540 transport.cpp:911] destroying transport 1164413662
adb I 11-25 11:11:13  1360 11540 transport.cpp:405] BlockingConnectionAdapter(1164413662): stopping
adb I 11-25 11:11:13  1360 11540 transport.cpp:423] BlockingConnectionAdapter(1164413662): stopped
adb I 11-25 11:11:13  1360 11540 transport.cpp:292] BlockingConnectionAdapter(1164413662): destructing
adb I 11-25 11:11:13  1360 11540 transport.cpp:398] BlockingConnectionAdapter(1164413662): already stoppedadb E 11-25 11:11:18  1360  7900 transport_usb.cpp:166] remote usb: 1 - write terminate
adb I 11-25 11:11:18  1360  1456 transport.cpp:337] 1164413662: read failed: Input/output error
adb I 11-25 11:11:18  1360  2148 transport.cpp:333] 1164413662: read thread spawning
adb I 11-25 11:11:18  1360  7900 transport.cpp:1198] 1164413662: connection terminated: write failed
adb I 11-25 11:11:18  1360 10584 transport.cpp:305] 1164413662: write thread spawning
adb I 11-25 11:11:18  1360 11540 adb.cpp:171] 1164413662: already offline
adb I 11-25 11:11:18  1360 11540 transport.cpp:911] destroying transport 1164413662
adb I 11-25 11:11:18  1360 11540 transport.cpp:405] BlockingConnectionAdapter(1164413662): stopping
adb I 11-25 11:11:18  1360 11540 transport.cpp:423] BlockingConnectionAdapter(1164413662): stopped
adb I 11-25 11:11:18  1360 11540 transport.cpp:292] BlockingConnectionAdapter(1164413662): destructing
adb I 11-25 11:11:18  1360 11540 transport.cpp:398] BlockingConnectionAdapter(1164413662): already stoppedadb E 11-25 11:11:23  1360 10584 transport_usb.cpp:166] remote usb: 1 - write terminate
adb I 11-25 11:11:23  1360  2148 transport.cpp:337] 1164413662: read failed: Input/output error
adb I 11-25 11:11:23  1360 10504 transport.cpp:333] 1164413662: read thread spawning
adb I 11-25 11:11:23  1360 10584 transport.cpp:1198] 1164413662: connection terminated: write failed
adb I 11-25 11:11:23  1360  1832 transport.cpp:305] 1164413662: write thread spawning
adb I 11-25 11:11:23  1360 11540 adb.cpp:171] 1164413662: already offline
adb I 11-25 11:11:23  1360 11540 transport.cpp:911] destroying transport 1164413662
adb I 11-25 11:11:23  1360 11540 transport.cpp:405] BlockingConnectionAdapter(1164413662): stopping
adb I 11-25 11:11:23  1360 11540 transport.cpp:423] BlockingConnectionAdapter(1164413662): stopped
adb I 11-25 11:11:23  1360 11540 transport.cpp:292] BlockingConnectionAdapter(1164413662): destructing
adb I 11-25 11:11:23  1360 11540 transport.cpp:398] BlockingConnectionAdapter(1164413662): already stoppedadb I 11-25 11:11:26  1360 10504 transport.cpp:337] 1164413662: read failed: Input/outp
adb E 11-25 11:11:26  1360  1832 transport_usb.cpp:166] remote usb: 1 - write terminated: Input/output error
adb I 11-25 11:11:26  1360 10504 transport.cpp:1198] 1164413662: connection terminated: read failed
adb I 11-25 11:11:26  1360 11540 adb.cpp:171] 1164413662: already offline
adb I 11-25 11:11:26  1360 11540 transport.cpp:911] destroying transport 1164413662
adb I 11-25 11:11:26  1360 11540 transport.cpp:405] BlockingConnectionAdapter(1164413662): stopping
adb I 11-25 11:11:26  1360 11540 transport.cpp:423] BlockingConnectionAdapter(1164413662): stopped
adb I 11-25 11:11:26  1360 11540 transport.cpp:292] BlockingConnectionAdapter(1164413662): destructing
adb I 11-25 11:11:26  1360 11540 transport.cpp:398] BlockingConnectionAdapter(1164413662): already stoppedadb I 11-25 11:12:08  1360  9688 transport.cpp:333] 1164413662: read thread spawning
adb I 11-25 11:12:08  1360  8344 transport.cpp:305] 1164413662: write thread spawning
adb I 11-25 11:12:08  1360 11540 transport.cpp:1596] fetching keys for transport 1164413662
adb I 11-25 11:12:08  1360 11540 auth.cpp:469] Calling send_auth_response
adb I 11-25 11:12:08  1360 11540 auth.cpp:436] Calling send_auth_publickey
adb I 11-25 11:12:52  1360 11540 adb.cpp:175] 1164413662: offline
adb I 11-25 11:14:42  1360  9688 transport.cpp:337] 1164413662: read failed: Input/output error
adb I 11-25 11:14:42  1360  9688 transport.cpp:1198] 1164413662: connection terminated: read failed
adb I 11-25 11:14:42  1360 11540 adb.cpp:175] 1164413662: offline
adb I 11-25 11:14:42  1360 11540 transport.cpp:911] destroying transport 1164413662
adb I 11-25 11:14:42  1360 11540 transport.cpp:405] BlockingConnectionAdapter(1164413662): stopping
adb E 11-25 11:14:42  1360  8344 transport_usb.cpp:166] remote usb: 1 - write terminated: Input/output error
adb I 11-25 11:14:42  1360 11540 transport.cpp:423] BlockingConnectionAdapter(1164413662): stopped
adb I 11-25 11:14:42  1360 11540 transport.cpp:292] BlockingConnectionAdapter(1164413662): destructing
adb I 11-25 11:14:42  1360 11540 transport.cpp:398] BlockingConnectionAdapter(1164413662): already stoppedadb I 11-25 11:14:47  1360  1832 transport.cpp:333] 1164413662: read thread spawning
adb I 11-25 11:14:47  1360  4508 transport.cpp:305] 1164413662: write thread spawning
adb I 11-25 11:14:47  1360 11540 transport.cpp:1596] fetching keys for transport 1164413662
adb I 11-25 11:14:47  1360 11540 auth.cpp:469] Calling send_auth_response
adb I 11-25 11:14:47  1360 11540 adb.cpp:175] 1164413662: offline
adb I 11-25 11:15:27  1360  1832 transport.cpp:337] 1164413662: read failed: Input/output error
adb I 11-25 11:15:27  1360  1832 transport.cpp:1198] 1164413662: connection terminated: read failed
adb I 11-25 11:15:27  1360 11540 adb.cpp:175] 1164413662: offline
adb E 11-25 11:15:27  1360  4508 transport_usb.cpp:166] remote usb: 1 - write terminated: Input/output error
adb I 11-25 11:15:27  1360 11540 transport.cpp:911] destroying transport 1164413662
adb I 11-25 11:15:27  1360 11540 transport.cpp:405] BlockingConnectionAdapter(1164413662): stopping
adb I 11-25 11:15:27  1360 11540 transport.cpp:423] BlockingConnectionAdapter(1164413662): stopped
adb I 11-25 11:15:27  1360 11540 transport.cpp:292] BlockingConnectionAdapter(1164413662): destructing
adb I 11-25 11:15:27  1360 11540 transport.cpp:398] BlockingConnectionAdapter(1164413662): already stoppedadb I 11-25 11:15:28  1360  8832 transport.cpp:333] 1164413662: read thread spawning
adb I 11-25 11:15:28  1360  9264 transport.cpp:305] 1164413662: write thread spawning
adb I 11-25 11:15:28  1360 11540 transport.cpp:1596] fetching keys for transport 1164413662
adb I 11-25 11:15:28  1360 11540 auth.cpp:469] Calling send_auth_response
adb I 11-25 11:15:28  1360 11540 adb.cpp:175] 1164413662: offline
adb I 11-25 11:15:46  1360  8832 transport.cpp:337] 1164413662: read failed: Input/output error
adb I 11-25 11:15:46  1360  8832 transport.cpp:1198] 1164413662: connection terminated: read failed
adb I 11-25 11:15:46  1360 11540 adb.cpp:175] 1164413662: offline
adb I 11-25 11:15:46  1360 11540 transport.cpp:911] destroying transport 1164413662
adb E 11-25 11:15:46  1360  9264 transport_usb.cpp:166] remote usb: 1 - write terminated: Input/output error
adb I 11-25 11:15:46  1360 11540 transport.cpp:405] BlockingConnectionAdapter(1164413662): stopping
adb I 11-25 11:15:46  1360 11540 transport.cpp:423] BlockingConnectionAdapter(1164413662): stopped
adb I 11-25 11:15:46  1360 11540 transport.cpp:292] BlockingConnectionAdapter(1164413662): destructing
adb I 11-25 11:15:46  1360 11540 transport.cpp:398] BlockingConnectionAdapter(1164413662): already stoppedadb I 11-25 11:15:48  1360  4284 transport.cpp:333] 1164413662: read thread spawning
adb I 11-25 11:15:48  1360 11432 transport.cpp:305] 1164413662: write thread spawning
adb I 11-25 11:15:48  1360 11540 transport.cpp:1596] fetching keys for transport 1164413662
adb I 11-25 11:15:48  1360 11540 auth.cpp:469] Calling send_auth_response
adb I 11-25 11:15:48  1360 11540 adb.cpp:175] 1164413662: offline
adb I 11-25 11:16:10  1360  4284 transport.cpp:337] 1164413662: read failed: Input/output error
adb I 11-25 11:16:10  1360  4284 transport.cpp:1198] 1164413662: connection terminated: read failed
adb I 11-25 11:16:10  1360 11540 adb.cpp:175] 1164413662: offline
adb E 11-25 11:16:10  1360 11432 transport_usb.cpp:166] remote usb: 1 - write terminated: Input/output error
adb I 11-25 11:16:10  1360 11540 transport.cpp:911] destroying transport 1164413662
adb I 11-25 11:16:10  1360 11540 transport.cpp:405] BlockingConnectionAdapter(1164413662): stopping
adb I 11-25 11:16:10  1360 11540 transport.cpp:423] BlockingConnectionAdapter(1164413662): stopped
adb I 11-25 11:16:10  1360 11540 transport.cpp:292] BlockingConnectionAdapter(1164413662): destructing
adb I 11-25 11:16:10  1360 11540 transport.cpp:398] BlockingConnectionAdapter(1164413662): already stoppedadb I 11-25 11:16:11  1360  4128 transport.cpp:333] 1164413662: read thread spawning
adb I 11-25 11:16:11  1360 12296 transport.cpp:305] 1164413662: write thread spawning
adb I 11-25 11:16:11  1360 11540 transport.cpp:1596] fetching keys for transport 1164413662
adb I 11-25 11:16:11  1360 11540 auth.cpp:469] Calling send_auth_response
adb I 11-25 11:16:11  1360 11540 adb.cpp:175] 1164413662: offline

可以从日志看出完全是手机端出现问题,究竟是什么原因导致的只能靠猜,于是我去开发者模式里面一边切换连接模式,一边查看日志,发现这个操作能解决问题,但是不能阻止问题出现。


内容版权声明:除非注明,否则皆为本站原创文章。

转载注明出处:https://11000011.com/?id=696

« 上一篇 下一篇 »

我要评论

◎欢迎参与讨论,请在这里发表您的看法、交流您的观点。

主机推荐

  • 搬瓦工