Skip to content

W0lfier/AxmlParserPY

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

57 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

axmlparserpy: Android XML parser in Python

兼容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 .

使用方法

convert apk binary manifest to string manifest.

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)

get apk information

import axmlparserpy.apk as apk

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

Contributors

License

GPL

About

Python AxmlParser

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%