本文转自:http://blog.youkuaiyun.com/gaojinshan/article/details/9455193
第一种情况:确实用多个设备或者模拟器
1、获取模拟器/设备列表
| adb devices |
2、指定device来执行adb shell
|
例如:
adb -s emulator-5554 shell |
在多device的时候,执行adb命令一般都需要用参数-s指定device。例如卸载emulator-5554上的包com.soft.camera adb -s emulator-5554 uninstall com.soft.camera