android-常用测试命令.md
logcat
1 2 3 4 5 | adb logcat --pid=$(adb shell pidof -s 包名) adb logcat --pid=${`adb shell pidof -s 包名`::-1} linux下命令: apppid=$(adb shell pidof -s 包名);adb logcat --pid=${apppid::-1} |
logcat + monkey
1 2 3 | apppid=$(adb shell pidof -s 包名);adb logcat --pid=${apppid::-1} | tee monkey-2019-12-16-1700.main.txt adb shell "monkey -s 3843211230 -p 包名 --monitor-native-crashes --ignore-security-exceptions --kill-process-after-error --pct-trackball 0 --pct-nav 0 --pct-anyevent 10 --pct-appswitch 2 -v -v --throttle 500 1200" | tee monkey-2019-12-16-1700.txt |