本帖最后由 rockage 于 2015-12-24 21:23 编辑
1、获取模拟器/设备列表
adb devices
2、指定device来执行adb shell
例如:adb -s emulator-5554 shell
在多device的时候,执行adb命令一般都需要用参数-s指定device。例如:卸载emulator-5554上的包com.soft.cameraadb -s emulator-5554 uninstall com.soft.camera
再例如sideload:
adb devices
List of devices attached
2b49d0b0 sideload
emulator-5554 device
adb -s 2b49d0b0 sideload "D:\eu_multi_HM2014811_5.12.3_v7-4.4-JX.zip"
sending: 'sideload' 100%
1、获取模拟器/设备列表
adb devices
2、指定device来执行adb shell
例如:adb -s emulator-5554 shell
在多device的时候,执行adb命令一般都需要用参数-s指定device。例如:卸载emulator-5554上的包com.soft.cameraadb -s emulator-5554 uninstall com.soft.camera
再例如sideload:
adb devices
List of devices attached
2b49d0b0 sideload
emulator-5554 device
adb -s 2b49d0b0 sideload "D:\eu_multi_HM2014811_5.12.3_v7-4.4-JX.zip"
sending: 'sideload' 100%