chinleez/ebpfdexdumper-rs/android-dex-dump

Claude Code and agent skill by chinleez/ebpfdexdumper-rs

Trust tier 3
  • community
Source check pending

Checking that the SKILL.md file is still in the repository.

From a Windows, macOS, or Linux PC, dump and validate runtime DEX files from an authorized local APK on a rooted ARM64 Android emulator/device using eBPFDexDumper-rs. Use for local APK runtime capture, APK-vs-runtime DEX comparison, and optional JADX decompilation.

Install

npx vskill@latest install chinleez/ebpfdexdumper-rs/android-dex-dump

SKILL.md

Android runtime DEX dump from PC

Use only for APKs and devices the user is authorized to test. The PC is the host that runs this workflow; the live target remains a rooted ARM64 Android emulator/device.

Host support

  • Windows 10/11: PowerShell + Python 3.9+ with run_dump.ps1.
  • macOS/Linux: Python 3.9+ with run_dump.sh.
  • All hosts need: adb, a rooted ARM64 Android target, and apkanalyzer or aapt.

From repository root:

bash
./skills/android-dex-dump/scripts/run_dump.sh /path/to/app.apk
powershell
.\skills\android-dex-dump\scripts\run_dump.ps1 C:\path\to\app.apk

Both wrappers call run_dump.py. It tries full → lifecycle → maps-only in order, pulls results, and writes report.txt.

Workflow

  1. Build: sh build_android.sh (macOS/Linux) or cargo ndk -t arm64-v8a build --release (Windows).
  2. Push binary and run: su -c './eBPFDexDumper dump -n com.example.app -o /data/local/tmp/dex_out'.
  3. Default full mode auto-repairs DEX on exit — fixes header bounds, map list, format fields, and missing code_items. All repaired DEX pass post-fix validation.
  4. Output in repair/ subdirectory (not final/).
  5. Validate: dex\n magic, header file_size, SHA-1, Adler32.

Probe modes

ModeProbesAuto-fix outputWhen to use
full (default)Interpreter + lifecycle + libc nativerepair/ with bytecodeBest coverage, may cause UI lag
lifecycleLifecycle onlyrepair/, no bytecodeApp crashes in full mode
maps-onlyNonerepair/, no bytecodeApp detects uprobes

Auto-repair features (v0.2.6+)

  • Header bounds: fix file_size/data_off/data_size
  • Map list: rebuild if out of order or not at end of file
  • Format fields: zero out-of-bounds debug_info_off/tries_size/interfaces_off/annotations_off/static_values_off
  • Bytecode restore: write captured method bodies back into code_items
  • Missing code_items: synthesize new ones for methods the packer stripped
  • Post-fix validation: DexParser::new check after repair, reports validation OK/FAILED
  • Parallel repair: multiple DEX files repaired concurrently

Subcommands

CommandPurpose
dumpCapture DEX + method bytecode (auto-repair on exit)
fixRestore bytecode into DEX using _code.json
repairFull repair: header, format, missing code_items
dumpsoCapture native .so from memory
fixsoRepair .so segment offsets, inject JNI symbols
offsetsInspect ART hook targets and layout

Output

<output>/<package>/
├── dex_*.dex # raw DEX
├── dex_*_code.json # method bytecode records
├── repair/ # auto-repaired DEX (recommended)
├── native_elf/ # anonymous ELF (optional)
└── jni_symbols_*.txt # JNI names (optional)

Failure handling

  • If no DEX produced: check pidof, logcat, whether the launcher crashed.
  • For native SIGSEGV: record signal, fault address, API level.
  • For ART differences: retry another AVD, report API level and detected layout.
  • Never overwrite APK or original dump. Use --no-clean-oat unless user requests oat cleanup.

Reporting

Always include: package, API/ABI, probe mode, valid DEX count and total size, output path, APK hash comparison, and crash/fragment evidence.

Security

  • Security scanPassed, 95 of 100Pattern checks on the skill's files.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

Repository stars
85
Repository forks
15
7-day trend score
22

Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/chinleez/ebpfdexdumper-rs/android-dex-dump/badge)](https://verified-skill.com/skills/chinleez/ebpfdexdumper-rs/android-dex-dump)

Something wrong with this skill or its page? Tell us.