Guest User

Untitled

a guest
Nov 25th, 2017
114
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.80 KB | None | 0 0
  1. ## adb shell monkey
  2. ```
  3. 查看包名:adb logcat | grep START
  4. adb shell monkey -p package 1000 次数
  5. adb shell monkey —throttle <milliseconds> 延时
  6. adb shell monkey -s<seed> 随机数seed值
  7. adb shell monkey —pct-touch <percent>. -v可查看具体touch。1-100
  8. ```
  9.  
  10. ## adb shell ps
  11. ```
  12. adb shell ps // 查看所有进程列表,Process Status
  13. adb shell kill [PID] // 杀死进程
  14.  
  15. adb shell ps|grep <package_name> // 查看 package_name 程序进程
  16. adb shell ps -x [PID] // 查看 PID 进程状态
  17. adb shell top|grep <package_name> // 实时监听程序进程的变化
  18.  
  19. eg:
  20. adb shell ps -x 13699
  21. USER PID PPID VSIZE RSS WCHAN PC NAME
  22. u0_a94 13699 1734 1653292 28404 ffffffff 00000000 S com.polysaas.mdm (u:6, s:6)
  23. ```
Add Comment
Please, Sign In to add comment