An Advanced Axml Printer available with proper xml style/format feature
See the codeAn Advanced Axml Printer available with proper xml style/format feature
A tool for printing out Android binary XML files (It can be Android Manifest or other resources XML files) into normal raw AXML text. It is inspired by Android4ME's axmlprinter library.
There are several changes made to the code, and multiple bugs have been fixed. The following changes have been made in this AXMLPrinter library:
Decompile a binary XML file from a file path:
AXMLPrinter axmlPrinter = new AXMLPrinter();
String xml = axmlPrinter.readFromFile("/path/to/binary/AndroidManifest.xml");
Directly extract and decompile AndroidManifest.xml from an APK file, with automatic pseudo-encryption bypass:
AXMLPrinter axmlPrinter = new AXMLPrinter();
String xml = axmlPrinter.readFromApk("/path/to/app.apk");
You can enable advanced features like attribute value translation (e.g., converting hex to flag names) and permission descriptions:
AXMLPrinter axmlPrinter = new AXMLPrinter();
axmlPrinter.setAttrValueTranslation(true); // Translate enum/flag attributes
axmlPrinter.setExtractPermissionDescription(true); // Add permission comments in manifest
axmlPrinter.setEnableID2Name(true); // Enable ID to name resolution (requires resources.arsc)
String xml = axmlPrinter.readFromFile(path);
To resolve custom resource IDs to names, place the resources.arsc file in the same directory as your binary XML file, or load it manually:
InputStream arscStream = new FileInputStream("resources.arsc");
axmlPrinter.loadCustomResources(arscStream);
I injected my library in MT Manager Mod You can download the apk file from my Telegram Channel. Download Now
Java
100.0%
An Advanced Axml Printer available with proper xml style/format feature
See the codeAn Advanced Axml Printer available with proper xml style/format feature
A tool for printing out Android binary XML files (It can be Android Manifest or other resources XML files) into normal raw AXML text. It is inspired by Android4ME's axmlprinter library.
There are several changes made to the code, and multiple bugs have been fixed. The following changes have been made in this AXMLPrinter library:
Decompile a binary XML file from a file path:
AXMLPrinter axmlPrinter = new AXMLPrinter();
String xml = axmlPrinter.readFromFile("/path/to/binary/AndroidManifest.xml");
Directly extract and decompile AndroidManifest.xml from an APK file, with automatic pseudo-encryption bypass:
AXMLPrinter axmlPrinter = new AXMLPrinter();
String xml = axmlPrinter.readFromApk("/path/to/app.apk");
You can enable advanced features like attribute value translation (e.g., converting hex to flag names) and permission descriptions:
AXMLPrinter axmlPrinter = new AXMLPrinter();
axmlPrinter.setAttrValueTranslation(true); // Translate enum/flag attributes
axmlPrinter.setExtractPermissionDescription(true); // Add permission comments in manifest
axmlPrinter.setEnableID2Name(true); // Enable ID to name resolution (requires resources.arsc)
String xml = axmlPrinter.readFromFile(path);
To resolve custom resource IDs to names, place the resources.arsc file in the same directory as your binary XML file, or load it manually:
InputStream arscStream = new FileInputStream("resources.arsc");
axmlPrinter.loadCustomResources(arscStream);
I injected my library in MT Manager Mod You can download the apk file from my Telegram Channel. Download Now
Java
100.0%