adb 命令打开指定包名的APK

1.链接设备进入指定的device的shell.

adb shell

 2.查看设备应用所有包名.

C:\Users\t-xxxxx>adb shell
HWLLD-H:/ $ pm list packages
package:com.huawei.hifolder
package:com.android.cts.priv.ctsshim
package:com.huawei.camera
package:com.hpbr.bosszhipin
package:com.huawei.android.tips
package:com.google.android.ext.services
package:com.huawei.synergy

3.查看当前运行的包名. 

adb shell dumpsys window | findstr mCurrentFocus

4.进入指定包名APK

adb shell am start -n com.tencent.mm/com.tencent.mm.ui.LauncherUI  //微信
adb shell am start -n com.alibaba.android.rimet/com.alibaba.android.rimet.biz.LaunchHomeActivity //钉钉
adb shell am start -n com.android.settings/com.android.settings.Settings//设置界面

猜你喜欢

转载自blog.csdn.net/qq_39792615/article/details/107510854
今日推荐