adb shell 常用命令

未完待续...

  • adb shell input
    • adb shell input tap <x> <y>        点击
    • adb shell input keyevent <keycode>        按键
    • adb shell input swipe <x> <y> <x> <y>        滑动
    • adb shell input swipe <x> <y> <x> <y> <time>        长按屏幕
    • adb shell input text 123456  输入

  • adb shell screencap /sdcard/screen.png        
  • adb shell top        
    • adb shell top -m 10 -s cpu        
    • adb shell top -d 1        
  • adb shell pm list packages
  • adb shell getprop ro.build.version.release
  • adb shell dumpsys package packageName
  • adb shell dumpsys package packageName | findstr versionName
  • adb shell wm size
  •  adb shell dumpsys battery
  • adb shell ps
  • adb shell am force-stop com.linsen.itally
  • adb shell am start -W com.linsen.itally/.ui.WelcomeActivity
  • adb logcat | findstr START
  • adb shell dumpsys
  • adb shell ps | findstr com.linsen.itally
  • adb shell cat /proc/2413/net/dev
  • adb shell dumpsys battery
  • adb shell dumpsys battery set status 1
  • adb shell dumpsys battery reset
posted @ 2020-10-02 00:08  HEREISDAVID  阅读(280)  评论(0编辑  收藏  举报