第一个adb设备:
adb root
adb remount
adb shell
连接局域网内的第二个设备:
adb connect 192.168.100.138:1234
adb -s 192.168.100.138:1234 root
adb -s 192.168.100.138:1234 remount
adb -s 192.168.100.138:1234 shell
说明:使用adb connect连接局域网内另一个android设备
曾经踩过的坑:adb connect 192.168.100.138:1234,请在IP后面加上非5555的端口号,之前测试时未加端口号,使用adb devices查看设备,发现adb处于offline状态,无法对其进行操作
按上面的方法理论上可以连接多个adb devices,具体多少个没做过测试,有兴趣可以尝试!!!
声明:以上均为个人工作经验,若有问题还望指正