文章目录
1. 卸载 APP
adb uninstall com.wt.autopai.music
2. 杀死 APP 进程
adb shell am force-stop com.wt.autopai.music
3. 发送广播,带参数
adb shell am broadcast -n com.xxx.music/.carlib.car.CustomBroadcastReceiver -a "android.intent.action.tmjcustom" --ei tmj 1
- –ei:代表传参为 int 类型
- tmj:传参 key
- 1:传参 value
4. 查看连接设备
adb devices
5. 安装 APP
adb install apk所在路径
6. 进入 shell 环境
adb shell
7. 模拟物理返回键
adb shell input keyevent 4