常用ADB 命令

  1. adb的常用命令
    https://juejin.im/entry/57c00fe4c4c971006179838a#%E8%B0%83%E8%B5%B7-activity

1)启动一个activity
adb shell am start -n com.android.email/com.kingsoft.email2.ui.MailActivityEmail
2)复制文件

adb pull /sdcard/01.png C:\Users\fushuang\Desktop\test.png
3)导入文件
adb push C:\Users\fushuang\Desktop\数仓1期埋点20190719.xlsx /sdcard/test11.xlsx
4)输入文本
adb shell input text "aaaaa"
5)打印activity 栈信息
adb shell dumpsys activity | findstr Run
6)adb 截屏
adb shell screencap -p /sdcard/01.png
7)发送广播
adb shell am broadcast -a com.kingsoft.email.action.battery_setting_changed -p com.android.email

你可能感兴趣的:(常用ADB 命令)