Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not keeping up with current AXML format. #11

Open
donsmart86 opened this issue Jan 24, 2018 · 1 comment
Open

Not keeping up with current AXML format. #11

donsmart86 opened this issue Jan 24, 2018 · 1 comment

Comments

@donsmart86
Copy link

I suggest you replace the brut lib for extracting the manifest, which is not keeping up with the current format, with apkanalyzer in the Android SDK.

${ANDROID_HOME}/tools/bin/apkanalyzer manifest print some.apk > ${TMP_DIR}/manifest.xml

@donsmart86
Copy link
Author

donsmart86 commented Feb 2, 2018

The apkanalyzer tool is provided in Android SDK tools > version 26.1.1. The manifest.xml can then be processed with an XML processing tool like XMLStarlet and an XPath expression to extract the name of the main activity: ".//action[@android:name='android.intent.action.MAIN']//../category[@android:name='android.intent.category.LAUNCHER']//../../@android:name"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant