Skip to content

Latest commit

 

History

History
20 lines (16 loc) · 646 Bytes

README.md

File metadata and controls

20 lines (16 loc) · 646 Bytes

AxmlParserPY

axmlparserpy,Android的XML解析器的Python实现

-------------------------------------------------------------------

version: 0.0.2

-------------------------------------------------------------------

Example:

  1. convert apk binary manifest to string manifest. import axmlparserpy.axmlprinter as axmlprinter

ap = axmlprinter.AXMLPrinter(open('example/binary/AndroidManifest.xml', 'rb').read()) buff = minidom.parseString(ap.getBuff()).toxml() print(buff)

  1. get apk information

    import axmlparserpy.apk as apk ap = apk.APK('_PATH_TO_APK') print (ap.get_package()) print (ap.get_androidversion_name())