简体   繁体   English

从ADB在手机上启动应用程序

[英]Start application on phone from ADB

i want to start an application on the phone through adb tools. 我想通过adb工具在手机上启动应用程序。 I follow this thread [Link] 我关注这个话题[链接]

[1]: How to start an application using android ADB tools? [1]: 如何使用android ADB工具启动应用程序? but, for example if i want to start the Angry Bird game how do i can discover the MAIN activity of package? 但是,例如,如果我想启动《愤怒的小鸟》游戏,我如何才能发现包裹的主要活动?

Thanks a lot. 非常感谢。

If you install the app AppXplore from Google Play, you can inspect your installed applications and learn the package name and the Activities in the APK. 如果您从Google Play安装了AppXplore应用,则可以检查已安装的应用,并在APK中了解软件包名称和“ 活动 ”。

I've verified it just now and it worked by starting Adobe Reader from adb shell: 我刚刚进行了验证,并且可以通过从adb shell启动Adobe Reader来工作:

am start -n com.adobe.reader/com.adobe.reader.AdobeReader

We can start any application using am-:activity manager 我们可以使用am-:activity管理器启动任何应用程序

    adb shell am start android.intent.action.VIEW
    adb shell am start com.android.Browser

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM