Not loaded · from rea-skills
Decodes Android APK binary resources to human-readable XML, disassembles classes.dex into Smali bytecode, and rebuilds modified packages with zipalign/apksigner integration.
Claude Code won't load this skill
It ships in rea-skills at skills/, but Claude Code only loads skills/<name>/SKILL.md and folders listed under skills in plugin.json. Installing the plugin doesn't add it.
A specialized toolchain and methodology for reverse engineering third-party, closed, binary Android applications (APKs and AABs). Apktool decodes binary resources to nearly original form and rebuilds them after modifications, allowing fine-grained inspection of Smali bytecode, layout XMLs, manifests, and compiled assets.
AndroidManifest.xml, layout files, value tables) and resources.arsc into human-readable XML files..dex) files into structured Smali assembly representation, preserving package and class hierarchy.zipalign 4-byte boundary alignment and apksigner cryptographic verification.zipalign and apksigner)Ensure apktool.jar is available on the system PATH or invoke directly via Java:
# Direct jar invocation
java -jar apktool.jar <command> [options]
# Via wrapper script (if installed globally)
apktool <command> [options]
Decode an APK including resources and Smali code into a designated output directory:
# Standard complete decode
apktool d target_app.apk -o output_dir
# Force overwrite existing output directory
apktool d -f target_app.apk -o output_dir
# Decode without decompiling code (resources only)
apktool d -s target_app.apk -o output_dir_resources_only
# Decode without decoding resources (code/smali only)
apktool d -r target_app.apk -o output_dir_smali_only
# Keep broken or unresolvable resources for salvage analysis
apktool d -k target_app.apk -o output_dir
When decoded, the project directory contains:
AndroidManifest.xml: Clean, readable manifest showing all activities, services, broadcast receivers, content providers, intent filters, and permissions.apktool.yml: Build metadata containing version info, compression flags, and original framework dependencies.res/: Decoded resources (values/strings.xml, layout/.xml, drawable/.xml, xml/network_security_config.xml).smali/ (and smali_classes2/, smali_classes3/ for Multidex): Disassembled Smali code files mirroring the Java package hierarchy.assets/: Raw embedded application assets (fonts, JSON databases, local bundles, HTML/JS assets).lib/: Native shared libraries (.so) organized by ABI (arm64-v8a, armeabi-v7a, x86, x86_64).original/: Original META-INF/ signatures and untouched manifest.Inspect and modify Smali instructions inside smali/ or smali_classes*/:
TrustManager implementations or OkHttp CertificatePinner calls in Smali and replace conditional verification jumps with unconditional return statements (return-void).su binaries or test-keys build tags, and patch return values to return const/4 v0, 0x0 followed by return v0.AndroidManifest.xml to add android:debuggable="true" and android:usesCleartextTraffic="true" inside the <application> tag.res/xml/network_security_config.xml to trust user-installed CA certificates for proxy traffic inspection.When decoding applications that rely on vendor-specific system resources:
# Install framework file into Apktool local store
apktool if framework-res.apk
# Install custom tag framework (e.g. for specific OEM builds)
apktool if com.htc.resources.apk -t htc
Reassemble the modified project directory into an APK package:
# Standard rebuild
apktool b output_dir -o modified_app_unsigned.apk
# Rebuild with aapt2 enabled (recommended for modern Android Gradle Plugin outputs)
apktool b --use-aapt2 output_dir -o modified_app_unsigned.apk
A rebuilt APK must be aligned and signed before installation on a device or emulator:
# Step 1: Align package on 4-byte boundaries
zipalign -p -f -v 4 modified_app_unsigned.apk modified_app_aligned.apk
# Step 2: Generate debug keystore if not already present
keytool -genkey -v -keystore debug.keystore -alias androiddebugkey -keyalg RSA -keysize 2048 -validity 10000 -storepass android -keypass android -dname "CN=Android Debug,O=Android,C=US"
# Step 3: Sign using apksigner (v1, v2, and v3 signature schemes)
apksigner sign --ks debug.keystore --ks-pass pass:android --key-pass pass:android --out modified_app_signed.apk modified_app_aligned.apk
# Step 4: Verify signature integrity
apksigner verify -v modified_app_signed.apk
android:exported="true").android:allowBackup="false" to prevent unauthorized ADB data extraction.res/values/strings.xml, assets/, and Smali string definitions for embedded tokens, private keys, and backend API credentials.res/xml/network_security_config.xml for cleartext exceptions or insecure base-config definitions.DexClassLoader, InMemoryDexClassLoader, or PathClassLoader instances executing untrusted external bytecode.aapt: duplicate resource): Use the --use-aapt2 flag during build to resolve resource namespace conflicts.smali_classes2, smali_classes3) and repackages them into corresponding DEX files during compilation.res/values/public.xml to prevent build breakage..locals count) accommodate any added variables or constants before rebuilding.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub smartworldarafath/rea_skill --plugin rea-skills919 skills in this plugin
/accessibilityDesign, implement, and audit accessible UI to WCAG 2.2 Level AA across Web, iOS, and Android — semantic ARIA roles and labels, accessibility traits and hints, focus management, contrast, target size, and screen-reader support. Use when building or auditing UI for accessibility compliance, keyboard navigation, or screen-reader support./agent-architecture-auditFull-stack diagnostic for agent and LLM applications. Audits the 12-layer agent stack for wrapper regression, memory pollution, tool discipline failures, hidden repair loops, and rendering corruption. Produces severity-ranked findings with code-first fixes. Essential for developers building agent applications, autonomous loops, or any LLM-powered feature. Use when an agent or LLM feature misbehaves and the failing layer is unknown, or before shipping an agent stack./Other plugins' skills for the same job