Analyze APK integration surface
analyze_injection_surfaceAnalyzes a decoded APK workspace to identify manifest components, ABI coverage, JNI loading hooks, native libraries, anti-debug/root checks, and candidate injection hooks for security auditing.
Instructions
Perform static bytecode analysis and security auditing on a decoded APK workspace to identify manifest components, ABI coverage, JNI loading hooks, native libraries, anti-debug/root checks, and candidate injection hooks. This operation is read-only, non-mutating, and idempotent; requires workspaceDir pointing to a valid directory produced by decompile_apk with an AndroidManifest.xml and smali structures. Use after decompile_apk to audit the target before modifying files; review returned warnings, securityAnalysis, and candidate hooks before selecting an injection mode with inject_flutter_runtime_and_smali.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| workspaceDir | Yes | Path to decompiled APK workspace root directory containing AndroidManifest.xml and Smali structures produced by decompile_apk |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| luaMods | Yes | Detected Lua asset paths. | |
| multiDex | Yes | Multi-DEX architecture and Smali root layout analysis. | |
| warnings | Yes | Compatibility warnings that require review before mutation. | |
| packageName | Yes | Manifest package identity. | |
| assetScripts | Yes | Candidate script-like asset paths. | |
| workspaceDir | Yes | Analyzed decoded APK workspace. | |
| entryActivities | Yes | Manifest activities and their resolved Smali paths. | |
| existingFlutter | Yes | Whether Flutter embedding classes were detected. | |
| jniLoadingHooks | Yes | Evidence strings for detected JNI library loading calls. | |
| nativeLibraries | Yes | Detected native .so libraries grouped by ABI architecture. | |
| applicationClass | Yes | Declared application class, when present. | |
| manifestSecurity | Yes | Manifest security configuration and attack surface audit. | |
| securityAnalysis | Yes | Deep bytecode security audit (root, anti-debug, emulator, ssl pinning, obfuscator). | |
| existingNativeAbis | Yes | Native ABI directories detected in the target. | |
| existingApplication | Yes | Whether the manifest declares an application class. | |
| applicationClassPath | Yes | Resolved application Smali path, when available. | |
| existingFlutterClasses | Yes | Detected existing Flutter class paths. | |
| recommendedPatchPoints | Yes | Suggested host integration points. | |
| automatedChainSuggestions | Yes | Suggested next pipeline actions. |