ytsutano/axmldec
소개
Stand-alone binary AndroidManifest.xml decoder
개발 도구측정된 스타 증가
- in 24h
- 0
- in 7 days
- 0
- in 15 days
- 0
- in 1 month
- 기록 수집 중
서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.
README.md
Originalaxmldec: Android Binary XML Decoder
1 Overview
AndroidManifest.xml in an APK file is binary
encoded. This tool accepts either a binary or a text XML file and prints the
decoded XML to the standard output or a file. It also allows you to extract the
decoded AndroidManifest.xml directly from an APK file.

Tools such as Apktool are designed to process the whole APK file including the resource files for reverse engineering purpose. They may also need a Java virtual machine to run. As a result, they are too slow for batch processing many APK files just to get the XML information. In contrast, axmldec is specialized for binary XML decoding and written in simple modern C++, so it runs nicely within a shell script.
The parser is taken from Jitana, a
graph-based static-dynamic hybrid DEX code analysis tool. You can use
jitana::read_axml() instead of the standard
boost::property_tree::read_xml() to read a binary XML file into
boost::property_tree::ptree (Boost Property Tree) in your C++
program.
2 Installation
2.1 macOS
You can install axmldec using Homebrew:
brew tap ytsutano/toolbox
brew install axmldec
Or, download the binary from Releases.
2.2 Windows
Download the .exe file from Releases.
2.3 Linux
Build the tool from the source code (see below).
3 Usage
3.1 Decoding AndroidManifest.xml
Pass the manifest file (either binary or text) to decode:
axmldec -o output.xml AndroidManifest.xml
This will write the decoded XML to output.xml. You can specify the same
filename for input and output to decode the file in-place.
3.2 Decoding AndroidManifest.xml in an APK File
If an APK file is specified, axmldec automatically extracts and decodes
AndroidManifest.xml:
axmldec -o output.xml com.example.app.apk
3.3 Using the Standard Output
axmldec writes to the standard output if the -o option is not specified. This
is useful when additional processing is required. For example, you can extract
the package name from an APK file using xmllint:
axmldec com.example.app.apk | xmllint --xpath 'string(/manifest/@package)' -
4 Building
Install Boost, zlib, and CMake. Make sure you have a latest C++ compiler.
Clone axmldec and its submodule from GitHub:
git clone --recursive https://github.com/ytsutano/axmldec.gitCompile axmldec:
cmake -DCMAKE_BUILD_TYPE=Release . && make
5 Developer
- Yutaka Tsutano at University of Nebraska-Lincoln.
6 License
- See LICENSE.md for license rights and limitations (ISC).
관련 프로젝트 살펴보기
불러오는 중…