jni-env-patching

Community

Stub JNI callbacks to fix unidbg Android emulation.

Authorwarterbili
Version1.0.0
Installs0

System Documentation

What problem does it solve?

When emulating Android native .so libraries with unidbg, native code frequently calls back into the Java layer via JNI to fetch device info, credentials, or system properties. These unhandled JNI callbacks trigger UnsupportedOperationException or [JNI] unhandled errors that break emulation entirely, requiring manual, time-consuming trial and error to resolve.

Core Features & Use Cases

  • Structured Stubbing Methodology: Step-by-step process to identify crash errors, inspect Java layer semantics via JADX or smali, supply reasonable default values, and use Frida hooks to capture real values when uncertain.
  • Obfuscation & Template Support: Quick reference for decoding XOR-obfuscated strings and parsing enum-based JNI dispatchers, plus pre-built AbstractJni subclass templates for common method types and Dobby hook examples for native interception.
  • Common Scenario Fixes: Proven solutions for frequent unidbg crashes including unsupported sysinfo syscalls, empty-string stoi crashes, AES-CBC decryption via JNI, and Android SDK version stubbing constraints.
  • Use Case: Reverse engineers analyzing obfuscated Android apps can use this skill to quickly resolve JNI emulation failures in unidbg, avoiding hours of manual debugging to extract native logic or signing algorithms.

Quick Start

Use the jni-env-patching skill to stub the missing JNI callbacks causing unidbg emulation failures for your target Android .so file.

Dependency Matrix

Required Modules

None required

Components

Standard package

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: jni-env-patching
Download link: https://github.com/warterbili/AUTO_REVERSE/archive/main.zip#jni-env-patching

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 537,000+ vetted skills library on demand.