可以通过修改 logcat 缓冲区的大小来解决连接断开的问题。具体做法如下:
adb logcat -g
adb logcat -G 16M
您可以根据实际情况和需要选择适当的缓冲区大小。
adb shell stop adb shell setprop persist.logd.size 16384K adb shell start
以上步骤执行完毕后,adb logcat 的连接就不会在长时间不使用时自动断开了。
上一篇:Android设备在WIFI上运行时API响应时间较慢。
下一篇:Android设备之间的NFC交互触发了Android Beam而不是HCE。