http://orgcent.com/apk-androidmanifest-axmlprinter/
By default, axmlprinter only resolves the androidmanifest.xml of the Android binary format.
Because the project wants to parse the androidmanifest.xml directly from the APK file, the author adds the parsing of apk compressed file on the basis of Axmlprinter.jar.
1 2 3 4 5 6 7
|
Static final String Default_xml = "Androidmanifest.xml"; File Apkfile = new file (Apkpath); File = new ZipFile (Apkfile, ZipFile. Open_read); ZipEntry entry = file. Getentry (Default_xml);
Axmlresourceparser parser = new Axmlresourceparser (); Parser. Open (file. getInputStream (entry)); |
1. Java Projects call TEST.GETMANIFESTXMLFROMAPK (string) directly to return an XML string.
2, using the command line
1
|
Java-jar Apkparser. jar [APK file] |
Ps: Code is not very standard, if necessary, please download the source code changes.
Revised source and JAR files:
http://code.google.com/p/xml-apk-parser/
AXMLPrinter2 Download Address:
Http://code.google.com/p/android4me/downloads/list