mirror of
https://github.com/adelphes/android-dev-ext.git
synced 2025-12-22 09:29:38 +00:00
Extract package name from APK during deployment #88
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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?