兼容python 3.7
axmlparserpy can be used to parse Android binary XML files into plaintext XML.
axmlparserpy was originally created by Anthony Desnos and was extracted from the Androguard project.
git clone https://github.com/radmanxu/AxmlParserPY.git
cd AxmlParserPY
pip3 install .
import axmlparserpy.axmlprinter as axmlprinter
from xml.dom import minidom
ap = axmlprinter.AXMLPrinter(open('_PATH_TO_MANIFEST_XML', 'rb').read())
buff = minidom.parseString(ap.getBuff()).toxml()
print(buff)
import axmlparserpy.apk as apk
ap = apk.APK('_PATH_TO_APK')
print(ap.get_package())
print(ap.get_androidversion_name())
GPL