一台电脑连上多台手机,如何选择其中一台进行处理

来源:互联网 发布:什么手套保暖 知乎 编辑:程序博客网 时间:2024/04/30 01:26

今天想对手机刷版本,但是另一台在测试,所以电脑上通过adb devices显示有两台设备:

error: more than one device and emulator

ubuntu@ubuntu:/media/Code/1626$ adb devices
List 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