How to get manifest from an APK file
I just make some APKs with different user-permissions, I want to check whether the user-permissions are correct from APK files, then I want…
I just make some APKs with different user-permissions, I want to check whether the user-permissions are correct from APK files, then I want to get the manifest info from the APK, this document show how to get the manifest from the APK file.
We can use apkanalyzer
to get the manifest info from APK file, we can get the document for apkanalyzer from this link.
Command to get manifest from an APK
cd android_sdk/cmdline-tools/version/bin/
./apkanalyzer -h manifest print <apk_file_path>
Example
For example, from my machine, the android sdk path is ~/Library/Android/sdk
and the version name is latest
, so the command from my computer is like below:
cd ~/Library/Android/sdk/cmdline-tools/latest/bin/
./apkanalyzer -h manifest print ~/Downloads/test.apk