[英]How to use adb shell command to launch the app with same package id but different application id
I have 2 variants of the same app installed on my Android device which have the same package id but different application id.我在我的 Android 设备上安装了同一个应用程序的 2 个变体,它们具有相同的包 ID 但应用程序 ID 不同。 I am not able to launch the application using the shell command whose application id is different than the package id.
我无法使用应用程序 ID 与包 ID 不同的 shell 命令启动应用程序。
I am aware of the following command to launch app我知道以下命令可以启动应用程序
adb shell am start -n com.package.name/com.package.name.ActivityName
You can simply invoke你可以简单地调用
adb shell am start -n first-application-id/common-package-name.ActivityName
and和
adb shell am start -n second-application-id/common-package-name.ActivityName
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.