Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/antitree/axmlparserpy
Python AxmlParser
https://github.com/antitree/axmlparserpy
Last synced: 17 days ago
JSON representation
Python AxmlParser
- Host: GitHub
- URL: https://github.com/antitree/axmlparserpy
- Owner: antitree
- Created: 2012-02-04T03:57:14.000Z (almost 13 years ago)
- Default Branch: master
- Last Pushed: 2016-10-28T13:36:23.000Z (about 8 years ago)
- Last Synced: 2023-03-16T17:50:32.417Z (almost 2 years ago)
- Language: Python
- Homepage:
- Size: 98.6 KB
- Stars: 71
- Watchers: 10
- Forks: 61
- Open Issues: 10
-
Metadata Files:
- Readme: README
Awesome Lists containing this project
README
# -------------------------------------------------------------------
# AndroidXMLParser was created by Anthony Desnos and is taken from
# the Androguard Project.
# -------------------------------------------------------------------
# This program is free software: you can redistribute it and/or
# modify it under the terms of the GNU General Public License as
# published by the Free Software Foundation, either version 3 of the
# License, or (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program.
# If not, see .
# -------------------------------------------------------------------
# Contributors:
# -------------------------------------------------------------------
# Anthony Desnos
# Antitree
# pee spam this
# algorythm
# Jiejing Zhang // for package to pip
# -------------------------------------------------------------------
# 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)2. get apk information
import axmlparserpy.apk as apk
ap = apk.APK('_PATH_TO_APK')
print ap.get_package()
print ap.get_androidversion_name()CHANGELOG
0.0.2
Make library python 3 compatible0.0.1 (aka 0.01)
Initial release