您的位置:首页 > 其它

解决more than one device and emulator问题

2014-03-14 11:14 260 查看
1、获取模拟器/设备列表

adb devices

2、指定device来执行adb shell

adb -s devicename shell

例如:

adb -s emulator-5554 shell

在多device的时候,执行adb命令一般都需要用参数-s指定device。

例如:卸载emulator-5554上的包com.soft.camera

adb -s emulator-5554 uninstall com.soft.camera

例如:安装QQ到emulator-5554上

adb -s emulator-5554 install D:\QQ.apk
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: