Skip to content

Latest commit

 

History

2 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

jebcli

Command-line APK decompilation helper backed by the adjacent JEB installation.

Requirements

  • JEB home must point to a directory containing bin/app/jeb.jar.
  • A JDK with javac on PATH for building. No large IDE is required.

JEB home resolution order:

  1. --jeb-home or -JebHome
  2. JEB_HOME environment variable
  3. jeb.home in jebcli.properties
  4. Current working directory

Persist JEB home in the repository-local config file:

powershell -ExecutionPolicy Bypass -File .\tools\jebcli.ps1 config set jeb.home D:\IT\Android\JEB-5.30.0.202506111623_by_CXV
powershell -ExecutionPolicy Bypass -File .\tools\jebcli.ps1 config get jeb.home
powershell -ExecutionPolicy Bypass -File .\tools\jebcli.ps1 config list

Build

From this repository:

powershell -ExecutionPolicy Bypass -File .\tools\build.ps1

Artifacts are written locally:

  • build/classes/
  • build/sources.txt
  • dist/jebcli.jar

Use -Clean to remove and rebuild local build outputs:

powershell -ExecutionPolicy Bypass -File .\tools\build.ps1 -Clean

Run

powershell -ExecutionPolicy Bypass -File .\tools\jebcli.ps1 -Apk C:\path\app.apk -Out .\out\app

Equivalent positional form:

powershell -ExecutionPolicy Bypass -File .\tools\jebcli.ps1 C:\path\app.apk .\out\app

The output directory contains:

  • decompiled/: JEB decompiler exporter output for Dalvik units.
  • resources/: raw non-DEX APK entries copied from the package, preserving APK-relative paths. Binary XML and resources.arsc are not decoded.
  • smali/: smali-style Dalvik disassembly text exported from JEB DEX units.
  • jeb-projects/: local JEB project database files used by the headless engines context.
  • metadata.json: input path, JEB home, status, timestamps, Java/resource/smali output counts, and errors.

Smoke Checks

Invalid input should fail before JEB analysis:

powershell -ExecutionPolicy Bypass -File .\tools\jebcli.ps1 -Apk missing.apk -Out .\out\missing

Explicit JEB home:

powershell -ExecutionPolicy Bypass -File .\tools\jebcli.ps1 -JebHome D:\IT\Android\JEB-5.30.0.202506111623_by_CXV -Apk C:\path\app.apk -Out .\out\app

Exit codes:

  • 0: success
  • 2: command-line usage error
  • 10: validation error
  • 20: JEB initialization error
  • 30: analysis error
  • 40: export error

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages