Comparison with other tools
ngr does almost nothing that another tool did not already do. What changes is that it is one executable, needs
no Java, and applies the same rules in every command. This section puts ngr next to the tools you probably
already use, so you know what it replaces, what it does not, and how each command translates.
- This page: what each tool covers and what it needs.
- “Command-by-command equivalents”: each command of the other tools next to the
ngrone. - “Behavior differences”: where the result is not the same, and what
ngrdoes not do.
The versions and syntax of the other tools were checked against their documentation on November 30, 2026. Each project evolves on its own: when in doubt, its own help wins.
Where ngr comes from
ngr does not start from scratch. Several of its commands are built to give the same output as the reference tool
in their area, and for that they port or derive logic from its code, which is free software:
ngr area |
Project it derives from | Reference version |
|---|---|---|
decode, build, merge, refactor, protect, info, resource, xml |
“APKEditor” and ARSCLib, by REAndroid | 1.4.3 |
disassemble, assemble, dump, list |
“smali and baksmali” | 3.0.9 |
sign, verify, rotate, lineage |
“apksig”, the apksigner library | build-tools 37.0.0 |
align |
zipalign, from the Android build-tools | build-tools 37.0.0 |
decompile |
Own decompiler, with parts derived from “jadx” | 1.5.6 |
NOTICE.txt, which comes in the package, has the full attribution and the licenses
(“License”). nogar is an independent project: it is not affiliated
with those projects and does not have their endorsement.
What each tool covers
| Task | ngr |
Apktool | jadx | APKEditor | apksigner and zipalign | smali and baksmali | aapt2 | bundletool |
|---|---|---|---|---|---|---|---|---|
| See package, version and permissions | info |
no | no | info |
no | no | dump badging |
no |
| See the manifest and compiled xml | xml |
when decoding | when decompiling | info -xmltree |
no | no | dump xmltree |
no |
| See the resource table | info --resources, resource |
when decoding | when decompiling | info -resources |
no | no | dump resources |
no |
| Decode resources and rebuild | decode, build |
d, b |
decodes only | d, b |
no | no | no | no |
| Merge split apks | merge |
no | no | m |
no | no | no | no |
| Obfuscate or restore resource names | protect, refactor |
no | no | p, x |
no | no | no | no |
| Align | align |
no | no | no | zipalign |
no | no | no |
| Sign and verify (v1 to v4) | sign, verify |
no | no | no | apksigner sign, verify |
no | no | when building the apks |
| Rotate the key | rotate, lineage |
no | no | no | apksigner rotate, lineage |
no | no | no |
| Dex to smali and smali to dex | disassemble, assemble |
when decoding and building | no | when decoding and building | no | baksmali d, smali a |
no | no |
| Dump and list a dex | dump, list |
no | no | no | no | baksmali dump, list |
no | no |
| Decompile to Java | decompile |
no | yes | no | no | no | no | no |
Build apks from an .aab |
no | no | no | no | no | no | no | build-apks |
| Compile resources from sources | no | with aapt2 | no | no | no | no | compile, link |
no |
| Graphical interface | no | no | jadx-gui | no | no | no | no | no |
“When decoding” means the tool does it as part of another operation and leaves the result in files, not that it has a command to query it.
Other tools that partly overlap with ngr:
- “apkanalyzer”, from the Android SDK, queries the manifest,
the resources, the files and the dex files. It also compares two apks and computes their download size, which
ngrdoes not do. - “uber-apk-signer” aligns, signs and verifies a folder of apks in one go, with a debug key included.
- “Androguard” is a Python library for analyzing applications, with
call graphs and its own decompiler.
ngris not a library. - “dex2jar” converts dex into
.classfiles, so you can then use a Java decompiler such as Vineflower, CFR or Procyon.ngr decompilegoes from dex to Java without that step, and does not write.classfiles.
What each one needs
| Tool | What must be installed | How it is distributed | License |
|---|---|---|---|
ngr |
Nothing. On Linux, the system ICU and OpenSSL libraries | One native executable per system | Free of charge, for use; binary only |
| Apktool 3.0.3 | Java 8 or later | A .jar with a launcher script |
Apache 2.0 |
| jadx 1.5.7 | Java 11 or later, 64-bit | A zip with .jar files and scripts |
Apache 2.0 |
| APKEditor 1.4.9 | Java | A .jar |
Apache 2.0 |
| apksigner | Java and the Android SDK build-tools | With the SDK | The AOSP one |
| zipalign, aapt2 | The Android SDK build-tools | Native executables, with the SDK | The AOSP one |
| smali and baksmali 3.0 | Java | Two .jar files you build from the source |
BSD |
| bundletool 1.18.3 | Java | A .jar |
Apache 2.0 |
| apkanalyzer | Java and the Android SDK cmdline-tools | With the SDK | The AOSP one |
| uber-apk-signer 1.3.0 | Java 8 | A .jar, with zipalign inside |
Apache 2.0 |
| Androguard 4.1 | Python 3.9 or later | With pip |
Apache 2.0 |
All the other tools in the table are free software: you can read their code, change it and redistribute it. nogar is not. It is free of charge, but it is distributed only as a binary and under a license of use (“License”). If you need to audit or modify the tool, that weighs more than any row of these tables.
When ngr fits
- You want a single thing to install. One executable does what used to need a JDK, the Android SDK and four or
five
.jarfiles. On a continuous integration machine or in a container, that is one line less of each. - You work in a script. All commands share options (
-o,-f,-v), overwrite nothing without-f, and answer with four exit codes that mean the same in all of them (“Using ngr in scripts”). - It starts fast. There is no virtual machine to start on every command, and that shows when a script calls the tool hundreds of times.
- You want to know how far to trust the decompiled Java.
decompileclassifies each method, writes in smali what it cannot express in Java instead of approximating it, and reports the count in a report (“The decompiler output”).
When another one fits
- You already have an Apktool project. Its folder has a different format, and
ngr builddoes not read it (“Behavior differences”). Apktool also has options thatngrdoes not, such as vendor frameworks. - You want to explore code with a graphical interface, with usage search, renaming and a debugger. That is jadx-gui.
- You want to decompile a
.jar, an.aaror.classfiles.ngr decompilereads dex, apk and xapk. - You publish on Google Play from an
.aab. To generate and test the apks of a store bundle you need bundletool. - You sign with a JKS keystore, with a key in an HSM, or with a key and a certificate in separate files.
ngr signreads PKCS#12 keystores. apksigner reads the others. - You need free software, by policy or to adapt it.