简体   繁体   中英

How do I find the action/class of an apk so I can launch it from the command line in android

Given an .apk, is there a way to figure out how you could launch the application from within a terminal emulator in an android device?

Eg for com.wondershare.player-1.apk

I have read that you probably want to run something like ...

am start -n com.wondershare.player/com.wondershare.player.<name of the activity or something?>

And I've also seen ...

am start -a android.intent.action.MAIN -n com.wondershare.player/<name of class?>

Is there some where in the manifest or somewhere where I could look for hints to fill in the < blanks > in the above.

Well the way i do is this,
Install Super Manager application, go to APK manager and then tap on the application and then you can see Activity Button in the menu below. This would give you all the activities and service of the application.

如果您拥有开发者工具,则可以拉开APK并运行:

aapt dump badging <foo.apk>

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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