I want to see activities of an app downloaded from play store. Basically I want to know the activities of an app so that I can start that application from an android phone or adb. So far I learned that to start an application we can use,
$ sudo adb shell am start -n applicationPackageName/.activityName
eg. $ sudo adb shell am start -n com.google.android.contacts/.ContactsActivity
And is there some other way to start an application from terminal from android phone or from adb?
Easy solution.
Decompile the app and take a look at the AndroidManifest.xml
Actually most developers forget about this option that you can infect start a specific Activity skipping Activities like Login. Make sure you handle stuff like that in your app. Intentionally throwing unhanded IllegalStatExceptions
for example, effectively crashing it :)