Extract package name from APK during deployment #88

Closed
opened 2025-08-09 17:13:19 +00:00 by fergalmoran · 0 comments
Owner

Originally created by @adrianstephens on 8/22/2019

The package name passed to am is currently extracted from the AndroidManifest.xml file, but is also embedded in the apk. In our case these do not match (there are some extra .XXX bits added). As a temporary workaround I added 'apkPackage' to the configuration options, but it would be better to read it from the apk.
AAPT can display the package name, and probably everything else you're currently reading from the manifest, but I imagine you'd prefer not to be dependent on that executable. AFAIK the information is stored in an embedded AndroidManifest.xml as a binary XML file within the APK. Not sure if there are js modules that can read that?

*Originally created by @adrianstephens on 8/22/2019* The package name passed to am is currently extracted from the AndroidManifest.xml file, but is also embedded in the apk. In our case these do not match (there are some extra .XXX bits added). As a temporary workaround I added 'apkPackage' to the configuration options, but it would be better to read it from the apk. AAPT can display the package name, and probably everything else you're currently reading from the manifest, but I imagine you'd prefer not to be dependent on that executable. AFAIK the information is stored in an embedded AndroidManifest.xml as a binary XML file within the APK. Not sure if there are js modules that can read that?
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github/android-dev-ext#88
No description provided.