Skip to content
KitploitKITPLOIT
ToolsExploitsBlog
Log in
Submit
ToolsExploitsBlog
Submit

Hacking, PenTest, and Cybersecurity Tools for Your Security Arsenal!

Kitploit is a directory of hacking, cybersecurity, and pentesting tools. Discover the latest project updates to find vulnerabilities, analyze systems, automate testing, and strengthen your security.

FeedsContactPrivacy© 2026 Kitploit

Tool Directory

Categories

View all categories
Loading categories
pyjadx — Python bindings for JADX. | Kitploit
Tools/GitHubGitHub/amruth-sn/pyjadx
Android SecurityStatic AnalysisCode AnalysisReverse EngineeringMobile SecurityBinary Analysis
GitHubamruth-sn/pyjadx

pyjadx

Python bindings for JADX.

View Repository
6408 months agoNot yet reviewed
Share

pyjadx

Python bindings for JADX via JPype. Decompile Android APK and DEX files to Java source from Python.

from pyjadx import Jadx

with Jadx("app.apk") as jadx:
    for cls in jadx.classes:
        print(cls.full_name)
        print(cls.code)

Why pyjadx?

JADX is the leading open-source Android decompiler — it produces clean Java/Kotlin source from Dalvik bytecode, preserving class hierarchies, generics, exception handling, and annotations. pyjadx brings this into Python without subprocess overhead: JADX runs in-process via JPype.

Install

pip install pyjadx

Requirements: JDK 11+ (JADX JARs are downloaded automatically on first use).

Quick start

from pyjadx import Jadx

with Jadx("app.apk") as jadx:
    # All top-level classes (inner classes via cls.inner_classes)
    for cls in jadx.classes:
        print(cls.full_name, len(cls.methods), "methods")

    # Search by fully qualified name
    main = jadx.search_class("com.example.MainActivity")
    if main:
        print(main.code)

    # Method-level decompilation
    for method in main.methods:
        print(f"{method.name}: {method.code}")

    # Cross-references
    for method in main.methods:
        print(f"{method.name} called by: {[c.name for c in method.callers]}")

    # Package navigation
    for pkg in jadx.packages:
        print(pkg.name, len(pkg.classes), "classes")

Supported inputs

FormatExample
APKJadx("app.apk")
DEXJadx("classes.dex")
Multi-DEX APKHandled transparently — all classes merged

API reference

Jadx(path, *, threads=None, mode="auto", code_cache=False)

Main entry point. Use as a context manager or call load()/close() manually.

ParameterDescription
pathPath to APK or DEX file
threadsJADX thread pool size (None = CPU count)
mode"auto", "restructure", "simple", or "fallback"
code_cacheFalse = in-memory cache (default), True = disk-backed

Properties:

PropertyTypeDescription
classeslist[JavaClass]Top-level classes across all DEX files
packageslist[JavaPackage]Package-level navigation
class_countintNumber of top-level classes
javaJObjectEscape hatch to underlying jadx.api.JadxDecompiler

Methods:

MethodDescription
load()Load and resolve classes (called by __enter__)
close()Release resources (called by __exit__)
decompile_all()Eagerly decompile all classes
search_class(name)Find class by fully qualified name

JavaClass

PropertyTypeDescription
namestrShort name ("MainActivity")
full_namestrFully qualified ("com.example.MainActivity")
packagestrPackage name
codestrDecompiled Java source (lazy, cached)
smalistrSmali disassembly (lazy, cached)
methodslist[JavaMethod]Methods in this class
fieldslist[JavaField]Fields in this class
inner_classeslist[JavaClass]Inner/anonymous classes
declaring_classJavaClass | NoneParent class (if inner)
top_classJavaClassOutermost enclosing class
dependencieslist[JavaClass]Classes this class depends on
is_innerboolWhether this is an inner class
javaJObjectEscape hatch to jadx.api.JavaClass

JavaMethod

PropertyTypeDescription
namestrMethod name
full_namestrFully qualified with class
codestrDecompiled source (lazy, cached)
callerslist[JavaMethod]Methods that call this one (lazy, cached)
calleeslist[JavaMethod]Methods this one calls (lazy, cached)
override_relatedlist[JavaMethod]Bidirectional override chain
declaring_classJavaClassClass this method belongs to
javaJObjectEscape hatch to jadx.api.JavaMethod

JavaField

PropertyTypeDescription
namestrField name
full_namestrFully qualified with class
typestrField type as string
callerslist[JavaMethod]Methods referencing this field (lazy, cached)
declaring_classJavaClassClass this field belongs to
javaJObjectEscape hatch to jadx.api.JavaField

JavaPackage

PropertyTypeDescription
namestrFull package name
classeslist[JavaClass]Classes in this package
sub_packageslist[JavaPackage]Sub-packages
javaJObjectEscape hatch to jadx.api.JavaPackage

Escape hatch

Every wrapper exposes its underlying JADX Java object via .java. This lets you call any JADX API we haven't wrapped yet:

with Jadx("app.apk") as jadx:
    cls = jadx.search_class("com.example.Foo")
    # Call JADX Java API directly
    code_info = cls.java.getCodeInfo()

JVM coexistence

pyjadx coexists with other JPype consumers (e.g., PyGhidra) in the same process. If a JVM is already running, pyjadx.start() adds JADX JARs to the existing classpath. If not, it starts one.

import pyghidra
pyghidra.start()  # starts JVM for Ghidra

import pyjadx
pyjadx.start()    # adds JADX JARs to existing JVM — no conflict

Configuration

Custom JADX installation:

# Via environment variable
# export JADX_HOME=/opt/jadx

# Or at runtime
import pyjadx
pyjadx.start(jadx_home="/opt/jadx")

JAR caching: JADX JARs are auto-downloaded from Maven Central on first use and cached at ~/.pyjadx/jars/<version>/.

License

MIT

Download Tool

Most Popular

View all →

Discover the most used tools by our community.

  • 1

    OsintHunter

    letox4/osinthunter

    🎯 The ultimate OSINT toolkit: investigation graph, confidence scoring, alias families, map, timeline and reports. 49 modules, 400+ sites, no API keys required.

    540
  • 2

    ghostlock-app

    yukonga/ghostlock-app

    GhostLock One-Tap Execution App (CVE-2026-43499)

    476
  • 3

    ARTEX

    baarai/artex

    LLM multi-agent autonomous penetration testing platform with planner/worker agents, asset and exploration graphs, MITM traffic recording, and vulnerability retesting.

    373
  • 4

    redforge

    cybersecurity91/redforge

    Browser-side red team toolkit with 102 offline tools for recon, payload generation, credential attacks, crypto, encoding and engagement reporting.

    322
  • 5

    estorides

    grisuno/estorides

    Aggregates 99+ free OSINT sources in parallel, resolves entities into a knowledge graph, and exports STIX 2.1, MISP, or GraphML with LLM-assisted analysis.

    278
  • 6

    CyberStrikeAI

    ed1s0nz/cyberstrikeai

    The system of action for AI-native cybersecurity—where intent becomes governed execution, evidence becomes operational memory, and every operation improves the next.

    251

Explore all tools

Browse our collection of tools

View all tools →