I have built a script, a part of an automation tool I've developed, that needs to open an apk and find the activity so it can launch it. To do so I have used:
aapt dump badging x.apk
Which 'should' dump out the activity(s) of the application. Some times it has, others it has not. Is there a more reliable method to dump the activities of an application so my script can pick up the activity and launch the package via adb instrumentation?