adb 命令:
adb version
adb devices
netstat -ano | findstr "5037"
taskkill pid
adb kill-server
adb start-server
adb pull 手机路径 电脑路径
adb push 电脑路径 手机路径
adb shell
cd 目录
#:表示root
$:未root
adb shell pm list packages -s/3 查询包名
adb install
adb uninstall
从shell环境退出:
ctrl+c
exit
模拟器连接:
adb connect ip:port
ls:查看目录中的内容
Monkey:压力测试,稳定性
1.进行的是伪随机事件
2.模拟用户操作
3.得到两个日志
4.针对app整体
monkey使用:
开始—.>运行——>cmd
usb连接手机,输入adb shell monkey
activity:所有操作和页面
1.adb shell monkey 200 执行任意应用200次事件
2.adb shell monkey -p 包名 200 执行指定的应用200次事件
3.adb shell monkey -p 包名 --ignore-crashes --ignore-timeouts --ignore-security-exceptions 200 执行指定的应用200次随机事件,忽略奔溃(crash),anr((Application Not Responding应用程序无响应)