1. adb shell input text 内容,向设备输入内容

    1. 官方text <string> (Default: touchscreen)
  2. adb shell input keyevent 按键,模拟设备按键

    1. 官方keyevent [--longpress] <key code number or name> ... (Default: keyboard)
    2. 支持的按键有
      1. KEYCODE_BACK返回键
      2. KEYCODE_HOME主页键
  3. adb shell input tap x轴 y轴,模拟点击

    1. 官方tap <x> <y> (Default: touchscreen)
  4. adb shell dumpsys meminfo com.tencent.mm:查看应用占用内存

  5. adb shell pm disable/enable com.android.chrome lock/unlock application

  6. adb shell cmd package query-receivers --brief -a com.ysnows.music # 获取所有监听 com.ysnows.music Action的receiver

  7. adb shell cmd package query-receivers --components -a com.ysnows.music # 获取所有监听 com.ysnows.music Action的receiver

  8. adb shell am broadcast -n "com.ysnows.supersearch/.receiver.FuncReceiver" -a com.ysnows.torch --es "url" "Hello World"

  9. adb shell am broadcast -n com.tencent.mm/com.tencent.mm.plugin.downloader.model.FileDownloadReceiver -a automsg -e "msg" "hell" -e "user" "filehelper" #带多个参数

  10. adb shell ps # 查看进程列表

  11. adb shell dumpsys meminfo <package_name|pid> [-d] #查看内存信息