jnorris jnorris - 1 year ago 105
Android Question

How to parse the AndroidManifest.xml file inside an .apk package

This file appears to be in a binary XML format. What is this format and how can it be parsed programmatically (as opposed to using the aapt dump tool in the SDK)?

This binary format is not discussed in the documentation here.

Note: I want to access this information from outside the Android environment, preferably from Java.

Answer Source

Use android-apktool

There is an application that reads apk files and decodes XMLs to nearly original form.


apktool d Gmail.apk && cat Gmail/AndroidManifest.xml

Check android-apktool for more information

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download