Closed fromzhou closed 1 year ago
找一个在线设备试试呢? adb.devices_list() 有可能过滤了 offline 状态的设备。
@abeelan 是的offline的被过滤掉了
Use method list will see offline device
import adbutils
adb = adbutils.AdbClient(host="127.0.0.1", port=5037)
for info in adb.list():
print(info.serial, info.state)
# <serial> <device|offline>
您好! 请问,使用adb.device_list()获取不到serial 反而使用os.popen("adb devices").read(),可以获取,这是什么原因导致的呢