今天想对手机刷版本,但是另一台在测试,所以电脑上通过adb devices显示有两台设备:
error: more than one device and emulator
ubuntu@ubuntu:/media/Code/1626$ adb devicesList of devices attached
0123456789ABCDEF device
HB7BDA75884RUU0077B device
(1)如何选择其中一台进行处理呢?
可通过命令:adb -s serialNumber command
(2)模拟器和真实手机同时存在时
· 进入模拟器
c:\Users\Administrator> adb -e shell
· 进入手机
C:\Uers\Administrator> adb -d shell
参考:http://blog.csdn.net/zq_zhang/article/details/55049956
更多ADB的使用: https://www.cnblogs.com/ccxniit2004/archive/2012/02/13/2349767.html