All Projects → ytsutano → axmldec

ytsutano / axmldec

Licence: ISC license
Stand-alone binary AndroidManifest.xml decoder

Programming Languages

C++
36643 projects - #6 most used programming language
CMake
9771 projects

Projects that are alternatives of or similar to axmldec

packages
Cloud Posse DevOps distribution of linux packages for native apps, binaries, alpine packages, debian packages, and redhat packages.
Stars: ✭ 107 (-29.14%)
Mutual labels:  binary, apk
AndroidApkAnalyzer
Android application for analyzing installed apps
Stars: ✭ 159 (+5.3%)
Mutual labels:  apk, androidmanifest
binstruct
Golang binary decoder for mapping data into the structure
Stars: ✭ 67 (-55.63%)
Mutual labels:  binary, decoder
RocketXPlugin
🔥🔥 android 端编译加速插件🚀 自动识别未改动 module 并在编译流程中替换为 aar ,只编译改动模块,加速 Android apk 的编译速度。
Stars: ✭ 408 (+170.2%)
Mutual labels:  boost, apk
NinjaDroid
Ninja Reverse Engineering on Android APK packages
Stars: ✭ 224 (+48.34%)
Mutual labels:  apk, androidmanifest
eye drop
Eye Drop is a set of bottles containing a digital liquid made of shiny particles. Eye Drop uses a Huawei smartwatch and a lens from Google Cardboard to give an impression of immersive screen.
Stars: ✭ 19 (-87.42%)
Mutual labels:  apk
readsb
ADS-B decoder swiss knife
Stars: ✭ 114 (-24.5%)
Mutual labels:  decoder
lookpath
The minimum and most straightforward way to check if command exists and where the executable is, without spawning child_process.
Stars: ✭ 49 (-67.55%)
Mutual labels:  binary
dalvikgate
Lightweight dex / odex / apk to jar converter
Stars: ✭ 32 (-78.81%)
Mutual labels:  apk
build-scripts
Utility scripts for building of 3rd-party libraries
Stars: ✭ 33 (-78.15%)
Mutual labels:  boost
Boost-for-Android-Prebuilt
boost for android
Stars: ✭ 58 (-61.59%)
Mutual labels:  boost
boost-wintls
Native Windows TLS stream wrapper for use with boost::asio
Stars: ✭ 24 (-84.11%)
Mutual labels:  boost
GenericProtocol
⚡️ A fast TCP event based buffered server/client protocol for transferring data over the (inter)net in .NET 🌐
Stars: ✭ 38 (-74.83%)
Mutual labels:  binary
ronin-support
A support library for Ronin. Like activesupport, but for hacking!
Stars: ✭ 23 (-84.77%)
Mutual labels:  binary
boost
Boost Maven and Gradle plugins for MicroProfile development
Stars: ✭ 27 (-82.12%)
Mutual labels:  boost
qrcode-decoder
🤘Tool for decoding qrcode by image,video or camera.
Stars: ✭ 78 (-48.34%)
Mutual labels:  decoder
Oculess
Removes account requirements and telemetry from Oculus Quest devices
Stars: ✭ 1,551 (+927.15%)
Mutual labels:  apk
parco
🏇🏻 generalist, fast and tiny binary parser and compiler generator, powered by Go 1.18+ Generics
Stars: ✭ 57 (-62.25%)
Mutual labels:  binary
nason
🗜 Ultra tiny serializer / encoder with plugin-support. Useful to build binary files containing images, strings, numbers and more!
Stars: ✭ 30 (-80.13%)
Mutual labels:  binary
ZeroMQ
🚀 Client/Server & Pub/Sub Examples with ZeroMQ & Boost
Stars: ✭ 33 (-78.15%)
Mutual labels:  boost

axmldec: 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

  1. Install Boost, zlib, and CMake. Make sure you have a latest C++ compiler.

  2. Clone axmldec and its submodule from GitHub:

    git clone --recursive https://github.com/ytsutano/axmldec.git
  3. Compile axmldec:

    cmake -DCMAKE_BUILD_TYPE=Release . && make

5 Developer

6 License

  • See LICENSE.md for license rights and limitations (ISC).
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].