1. 先查看要操作APP的process
查看当前app的入口, 先在手机上打开这个app
adb -s 设备id shell dumpsys window windows | findstr "Current"
或者
adb -s 设备id shell dumpsys activity | grep -i run
然后获取到显示信息中的u0后面的就是这个app的process(例:com.tencent.mobileqq/com.tencent.mobileqq.activity.SplashActivity),使用这个process就可以打开这个app,如下
adb -s 设备id shell am start -n com.tencent.mobileqq/com.tencent.mobileqq.activity.SplashActivity