前言
直接adb shell
出现问题如下:
error: more than one device and emulator
解决方案
$ adb devices -l
List of devices attached
192.168.31.178:5114 device product:p201_iptv model:CM201_1_YS2 device:p201_iptv
# 再连接一个设备
$ adb connect 192.168.31.79:5114
connected to 192.168.31.79:5114
# 查看设备
$ adb devices -l
List of devices attached
192.168.31.178:5114 device product:p201_iptv model:CM201_1_YS2 device:p201_iptv
192.168.31.79:5114 device product:Hi3798MV300 model:CM201_2 device:Hi3798MV300
# 连接其中一个设备
$ adb -s 192.168.31.79:5114 shell
root@Hi3798MV300:/ #