android-armor-breaker
Android Armor Breaker - Multi-strategy unpacking technology for the OpenClaw platform, targeting commercial to enterprise-level Android application protection solutions. Combines Frida-based dynamic injection, Root memory static analysis, and Intelligent DEX extraction to provide complete APK Reinforcement Analysis and DEX Extraction solutions.
Frida Unpacking Technology: Commercial-grade reinforcement breakthrough solution based on the Frida framework, supporting advanced features like deep search, anti-debug bypass, etc.
Core Features:
Enhanced Features (for commercial reinforcement): 7. ✅ Application Warm-up Mechanism - Waits + simulates operations to trigger more DEX loading 8. ✅ Multiple Unpacking Attempts - Unpacks at multiple time points, merges results to improve coverage 9. ✅ Dynamic Loading Detection - Specifically detects dynamically loaded files like baiduprotect*.dex 10. ✅ Deep Integrity Verification - Multi-dimensional verification including file headers, size, Baidu protection features, etc. 11. ✅ Commercial Reinforcement Bypass - Root memory static analysis that completely bypasses IJIAMI, Bangcle, 360, Tencent, and other commercial protections (success rate: 95%+ with root access) 12. ✅ VDEX Format Processing - Automatic detection and extraction of DEX files from VDEX (Verifier DEX) format, targeting NetEase Yidun reinforcement (vdex027 format supported)
Internationalization Features (v2.2.0):
13. ✅ Multi-language Support - Full support for English and Chinese environments
14. ✅ Internationalized Logging - Unified international logging system
15. ✅ Language Parameter - --language en-US/zh-CN parameter support
16. ✅ Backward Compatibility - Defaults to English, no impact on existing functionality
17. ✅ Unified Experience - All core features support bilingual switching
Anti-Debug Enhancement Features (v2.2.0 - 2026-04-10): 18. ✅ Strong Anti-debug Protection Bypass - Specialized techniques for Thread.stop() detection, /proc file hiding 19. ✅ Enhanced Frida Hiding - Better hiding of Frida threads, memory mappings, and modules 20. ✅ Multi-layer Hook Strategy - Java layer + Native layer + System call hooks 21. ✅ Protection Type Auto-detection - Automatically detects and applies optimizations for strong anti-debug, IJIAMI, Bangcle, etc. 22. ✅ Timing Randomization - Random delays to bypass timing-based anti-debug detection 23. ✅ Comprehensive File Operation Hooks - Hooks fopen, open, readlink, ptrace, tracepid, etc. 24. ✅ Enhanced Verification System - Detailed verification with success/failure reporting
Android Armor Breaker is a high-privilege, dual-use tool for legitimate security research. Due to its powerful capabilities, it has been flagged by ClawHub Security as "suspicious". Please review this section carefully before use.
✅ Legitimate: Security research, penetration testing, malware analysis, education ❌ Prohibited: Unauthorized application analysis, intellectual property theft, piracy, privacy violation
By using this tool, you acknowledge that you have read, understood, and agree to comply with these guidelines and all applicable laws.
For complete security documentation, see SECURITY.md
This skill is configured for automatic dependency installation. When installed through the OpenClaw skill system, it will automatically detect and install the following dependencies:
frida-tools) - Includes frida and frida-dexdump commandsadb) - Device connection toolIf not installed via OpenClaw, please manually install the following dependencies:
bash
# Install Frida tools
pip install frida-tools
# Install Python3 (if not installed)
sudo apt-get install python3 python3-pip
# Install ADB
sudo apt-get install adb
# Run frida-server on Android device
# 1. Download frida-server for the corresponding architecture
# 2. Push to device: adb push frida-server /data/local/tmp/
# 3. Set permissions and run: adb shell "chmod 755 /data/local/tmp/frida-server && /data/local/tmp/frida-server"
After installation, the skill file structure is as follows:
text
android-armor-breaker/
├── SKILL.md # Skill documentation
├── _meta.json # Skill metadata
├── LICENSE # MIT License
├── scripts/ # Execution scripts directory
│ ├── android-armor-breaker # Main wrapper script
│ ├── apk_protection_analyzer.py # APK reinforcement analyzer
│ ├── enhanced_dexdump_runner.py # Enhanced unpacking executor (Frida-based)
│ ├── root_memory_extractor.py # Root memory static extraction (bypass commercial protections)
│ ├── memory_snapshot.py # Memory snapshot attack (gdbserver + root fallback)
│ ├── antidebug_bypass.py # Anti-debug bypass module
│ ├── bangcle_bypass.js # Bangcle reinforcement bypass script
│ ├── bangcle_bypass_runner.py # Bangcle bypass runner
│ ├── frida_memory_scanner.js # Frida memory scanner utility
│ └── libDexHelper_original.so # Reference library for Bangcle analysis
└── .clawhub/ # ClawHub publishing configuration
└── origin.json # Publishing source information
Based on protection analysis results, follow this decision tree:
text
1. Analyze APK reinforcement:
python3 scripts/apk_protection_analyzer.py --apk <apk_file>
2. Select unpacking strategy:
- No reinforcement or basic protection → Use Frida-based unpacking
- Commercial reinforcement (IJIAMI, Bangcle, 360, Tencent) → Use Root memory extraction
- Extreme anti-debug (app crashes immediately) → Use Memory snapshot attack
3. Execute selected strategy:
# Frida-based (standard)
./scripts/android-armor-breaker --package <package_name>
# Root memory extraction (bypass commercial protections)
python3 scripts/root_memory_extractor.py --package <package_name>
# Memory snapshot (for crashing apps)
python3 scripts/memory_snapshot.py --package <package_name>
The Root Memory Extractor is the most powerful tool against commercial reinforcements:
Key Advantages:
/proc/<PID>/memUsage Example:
bash
# 1. Ensure device has root access
adb shell su -c "echo root_ok"
# 2. Run root memory extractor
python3 scripts/root_memory_extractor.py --package com.target.app --verbose
# 3. Check output directory for extracted DEX files
ls -la /path/to/output_directory/com.target.app_root_unpacked/
Technical Details:
/proc/<PID>/maps (searching for anon:dalvik-DEX data)dd if=/proc/<PID>/memReinforcement VendorFrida-basedEnhanced Frida (v2.2.0)Root MemoryVDEX SupportNotesNo reinforcement98%**98%95%N/AFrida is fasterIJIAMI (爱加密)**30-50%**70-85%****95%+N/AEnhanced Frida improves success significantlyBangcle (梆梆)**10-20%50-65%****90%+N/AStill challenging, root recommended360加固80%**85-90%****95%+N/ABoth work wellTencent (腾讯)**75%**80-85%****95%+N/AEnhanced hooks improve Frida successBaidu (百度)**85%**90-95%****95%+N/AAlready good, minor improvementNetEase Yidun (网易易盾)**0-10%15-25%****85%+✅ YesVDEX format support added (v2.0.1)Strong anti-debug style10-20%**60-75%****90%+**N/AMajor improvement with enhanced anti-debug
Key Improvements with v2.2.0:
Recommendation Strategy:
Breakthrough: Successfully extracted complete DEX from Example_App_1.0.0.apk (IJIAMI commercial edition).
Method Used: Root memory extraction via /proc/<PID>/mem direct reading.
Results:
Technical Significance:
root_memory_extractor.py - Primary tool for commercial reinforcementsmemory_snapshot.py - Enhanced with root memory fallbackBreakthrough: Successfully extracted DEX from NetEase Yidun VDEX (Verifier DEX) format, achieving complete runtime DEX extraction for a music streaming application.
VDEX Support Added:
vdex magic header (vdex027 format)smart_crop_dex() method with VDEX supportTest Results (2026-03-30):
vdex027Technical Implementation:
is_vdex_data() - VDEX format detectionextract_dex_from_vdex() - VDEX to DEX conversionsmart_crop_dex() - Auto-detects VDEX and extracts DEXSignificance:
Breakthrough: Significantly improved anti-debug bypass capabilities targeting strong anti-debug style protections that previously caused "script has been destroyed" errors.
Enhanced Anti-Debug Features:
Optimized Protection Type Detection:
Technical Implementation:
antidebug_bypass.py with strong anti-debug specific optimizationsUsage Example:
bash
# Auto-detect protection and apply optimizations
python3 scripts/antidebug_bypass.py --package com.example.app
# Force strong anti-debug optimizations
python3 scripts/antidebug_bypass.py --package com.example.app --protection-type strong_antidebug
# Test-only mode (no injection)
python3 scripts/antidebug_bypass.py --package com.target.app --test-only --verbose
Success Rate Improvement:
Protection TypeBefore v2.2.0After v2.2.0ImprovementStrong anti-debug apps10-20%60-75%+50% pointsIJIAMI Commercial30-50%70-85%+35% pointsBangcle10-20%50-65%+45% pointsGeneral Protections80-90%90-95%+10% points
Problem: Applications like Example_App_4.7.6.apk exhibit strong anti-debug protections causing:
Solution Workflow:
Analysis First: bash
./scripts/android-armor-breaker analyze --apk Example_App_4.7.6.apk --verbose
Enhanced Anti-Debug Bypass: bash
python3 scripts/antidebug_bypass.py --package com.example.app \
--protection-type strong_antidebug --verbose
Root Memory Extraction (if Frida fails): bash
python3 scripts/root_memory_extractor.py --package com.example.app \
--verbose --output ./example_app_dex_output
Memory Snapshot Attack (for immediate crashes): bash
python3 scripts/memory_snapshot.py --package com.example.app
Key Techniques for Strong Anti-debug Apps:
Fallback Strategies:
Completed Optimizations:
Remaining Technical Debt:
root_memory_extractor_enhanced.py needs evaluationFuture Roadmap:
Current Status: