Cheat-sheet router — by chapter¶
Built mechanically by build-cheatsheet-index.py
from every chapter's cheatsheet.md. It routes; it does not copy. An entry
separated from the chapter that justifies it is how a reader ends up pasting a
command they cannot defend — see ../README.md section 7.
79 sheets, 1212 sections, 29484 lines. Concatenating them would produce a 29,484-line file that is stale the moment any chapter is edited. This is the index instead.
| Sheet | Lines | Sections | Fences | Covers |
|---|---|---|---|---|
| 00 — Introduction | 587 | 18 | 29 | 1. Toolchain install — Windows; 2. Toolchain install — macOS; 3. Toolchain install — Linux (Debian/Ubuntu); 4. Version pin quick reference; 5. SDK manager / AVD manager / emulator; 6. adb — the commands you type daily; … |
| 01 — Computer Science Basics | 759 | 20 | 0 | 1. Number bases — decimal / binary / hex / ASCII; 2. Powers of two; 3. Two's complement; 4. Data type sizes; 5. Endianness; 6. AArch64 registers (AAPCS64); … |
| 02 — Linux Basics | 288 | 15 | 6 | Navigation and files; Permissions; Identity; Processes; /proc; Signals; … |
| 03 — Programming Fundamentals | 286 | 15 | 7 | 1. Primitive types — memorise this table; 2. Overflow quick reference; 3. Where things live; 4. Control flow → machine; 5. Big-O; 6. Data structures; … |
| 04 — Java | 486 | 14 | 8 | 1. Primitive types, sizes, ranges, descriptors; 2. Boxing, caching, and identity; 3. Access modifier visibility matrix; 4. String methods and their cost; 5. Collections comparison; 6. Generics and type erasure; … |
| 05 — Kotlin | 330 | 9 | 6 | 1. Kotlin construct to JVM/DEX construct mapping; 2. Null-safety operators; 3. kotlin.jvm.internal.Intrinsics methods and what each one tells you; 4. Scope functions; 5. JADX fingerprints — is this class Kotlin?; 6. Coroutines — builders, dispatchers, jobs; … |
| 06 — Android Architecture | 298 | 15 | 13 | The stack, bottom up; Boot chain — the trust transitions; SpecializeCommon() — where the sandbox is built; Security-relevant properties; Property service asymmetry; Partitions; … |
| 07 — AOSP | 432 | 15 | 16 | Getting the source; Source tree map; Reading AOSP — the procedure; Reading conventions; @hide, @SystemApi, stubs; Hidden-API blocklist; … |
| 08 — Build System | 348 | 24 | 10 | The two build systems; Platform build commands; Build variants; Soong module types; Security-relevant Android.bp properties; Platform output tree; … |
| 09 — Android App Internals | 856 | 17 | 36 | 1. Identity — package, UID, appId, userId; 2. Package / UID inspection commands; 3. /data/system/packages.list; 4. /data/system/packages.xml; 5. Well-known AIDs (from system/core/libcutils/include/private/android_filesystem_config.h); 6. Directory layout; … |
| 10 — APK Internals | 877 | 26 | 40 | 1. ZIP record signatures (all little-endian on disk); 2. Local File Header — field offsets (30 bytes fixed + variable); 3. Central Directory File Header — field offsets (46 bytes fixed + variable); 4. General Purpose Bit Flag; 5. End Of Central Directory (EOCD) — field offsets; 6. Compression methods seen in APKs; … |
| 11 — Android Runtime | 275 | 13 | 13 | The two commands that unblock you most; What the runtime enforces — and what it does NOT; Class loading; Dynamic code loading; Reflection; Runtime.exec; … |
| 12 — DEX Internals | 355 | 16 | 9 | File identity; Header — the constants that must hold; File layout; Encodings; Registers; Instruction format identifiers; … |
| 13 — ART | 352 | 19 | 14 | The one command that matters; Artifacts on disk; Compiler filters; Commands; OAT header key-value store; ArtMethod; … |
| 14 — Dalvik | 443 | 14 | 4 | 1. Register model; 2. Type descriptors; 3. Directives; 4. Label prefixes generated by baksmali; 5. Complete opcode map — 0x00–0xFF; 6. Mnemonic suffix decoder; … |
| 15 — Native Code | 492 | 14 | 9 | 1. ELF header — ELF64 / ELF32; 2. Program headers — the loader's table; 3. Section headers — the tools' table; 4. Dynamic array (DT_*); 5. Symbols; 6. Relocations; … |
| 16 — JNI | 673 | 15 | 10 | 1. Type descriptors; 2. Name mangling; 3. The calling convention; 4. Registration; 5. JNIEnv vs JavaVM; 6. Reference kinds; … |
| 17 — Libraries | 337 | 15 | 7 | Ring classification; Bionic vs glibc — what changes for exploitation; Platform library quick reference; Enumeration commands; ELF inspection; Static-linkage detection by symbol prefix; … |
| 18 — ARM | 386 | 18 | 10 | Registers — AArch64; Registers — ARM32 (armeabi-v7a); AAPCS64 at a glance; Condition codes; Pattern recognition table; Verified encodings; … |
| 19 — Memory | 613 | 14 | 22 | 1. /proc/<pid>/maps — field by field; 2. Page-protection flags; 3. /proc/<pid>/smaps — counters, field by field; 4. Allocator by Android version; 5. Pointer tagging; 6. Detection: modes and how to enable them; … |
| 20 — Security Architecture | 155 | 11 | 5 | Boot states; Device posture properties; One-shot posture command; AVB descriptors; dm-verity error modes; Encryption classes; … |
| 21 — App Sandbox | 329 | 16 | 12 | The one paragraph; UID arithmetic; Network GIDs (platform.xml → supplementary groups); Reading a process's sandbox; SELinux contexts you will see; Filesystem layout; … |
| 22 — SELinux | 563 | 12 | 17 | 1. Context format; 2. MCS category encoding; 3. Common domains; 4. Object classes and their key permissions; 5. avc field decoder; 6. The command set; … |
| 23 — Permissions | 469 | 18 | 10 | 1. The three lists — and the fourth; 2. protectionLevel — base levels; 3. protectionLevel — flags; 4. Permission → GID map (platform.xml) M; 5. The adb command set; 6. Where grant state lives on disk; … |
| 24 — IPC | 201 | 14 | 4 | Mechanism reachability; Permission protection levels; Identity APIs; clearCallingIdentity — the four bugs; Live enumeration; Decoding /proc/net/tcp; … |
| 25 — Binder | 441 | 15 | 7 | 1. Device nodes; 2. ioctl commands; 3. Structures; 4. BC_ — commands you send; 5. BR_ — events you receive; 6. Transaction flags and object types; … |
| 26 — Intent | 584 | 14 | 15 | 1. Intent fields; 2. Common actions; 3. Common categories; 4. Resolution matching rules; 5. am syntax — every extra type; 6. Intent flags; … |
| 27 — ContentProviders | 338 | 21 | 17 | URI anatomy; Manifest attributes; <grant-uri-permission> path matching; Protection levels; Provider contract; Query parameter → SQL mapping; … |
| 28 — Services | 249 | 18 | 5 | The three shapes; onStartCommand return values; bindService flags; <service> attributes; Where identity is and is not available; bindService outcomes; … |
| 29 — BroadcastReceivers | 303 | 14 | 6 | Enumeration; Protected broadcasts; Sending; Frida; dumpsys activity broadcasts record format; API / registration matrix; … |
| 30 — Activities | 220 | 11 | 4 | Launch modes; taskAffinity; Task-affecting FLAG_ACTIVITY_*; Caller identity; dumpsys field map; Commands; … |
| 31 — Fragments | 279 | 18 | 7 | The one-line facts; The reflective path, API 35 [m]; isValidFragment, API 35, exact [m]; The three gate states; Loader constraints (both libraries); Type-check ordering [m]; … |
| 32 — Manifest | 339 | 16 | 6 | Read it three ways — always; THE FIRST THING TO CHECK: targetSdkVersion; <manifest>; <application> — the highest-yield element; <activity> / <activity-alias>; <service>; … |
| 33 — Storage | 280 | 12 | 10 | Storage roots for one package; Subdirectories of the CE/DE tree; Availability by device state; Reachability: three gates, all must agree; Commands; Version matrix; … |
| 34 — Cryptography | 416 | 18 | 15 | The four commands that matter; Decision table — what to use; Modes; The transformation-string trap; IV vs nonce vs salt; Findings catalogue — quick reference; … |
| 35 — SSL | 546 | 18 | 12 | The five commands that matter; Version matrix — where the trust anchors live; Trust-anchor rule by targetSdk; Platform trust-manager delegation [M]; Protocol versions — server wire value vs Android client default; TLS alert codes; … |
| 36 — CertificatePinning | 283 | 12 | 11 | The pin; Compute it; Generate a backup key; The layers; Find it — static; Find it — dynamic; … |
| 37 — RootDetection | 300 | 17 | 14 | The one-line summary; Triage — is there root detection, and what kind?; Verdict table; Artefact reference; Bypass ladder — cheapest first; Frida commands; … |
| 38 — TamperDetection | 362 | 15 | 12 | 1. THE CATALOGUE — what each check proves, and what it costs to defeat; 2. THE THREE THREATS — do not conflate them; 3. THE API; 4. VERSION MATRIX; 5. TIER ORDERING — memorise this; 6. STATIC TRIAGE — in order; … |
| 39 — EmulatorDetection | 328 | 14 | 8 | Grades; The full signal table; The nine DEAD checks — memorise these; The inverted checks — these get it backwards; Quick device triage; Shell vs app — always check both; … |
| 40 — Obfuscation | 216 | 13 | 6 | Triage — is it protected, and how?; DEX header offsets; Extraction; Static grep table; Native .so recon; Frida — attach modes; … |
| 41 — ProGuard | 469 | 16 | 5 | 1. The keep matrix; 2. Keep modifiers; 3. Wildcards; 4. Class specification grammar; 5. Member specifications; 6. Complete directive reference; … |
| 42 — R8 | 333 | 12 | 4 | 1. Where R8 is, and how to run it; 2. mapping.txt grammar; 3. Synthetic-name decoder; 4. Keep-rule effects on R8's three phases; 5. Build outputs and where they must not go; 6. Triage commands; … |
| 43 — WebView | 339 | 11 | 13 | 1. WebSettings defaults by targetSdkVersion — the table (M); 2. Severity, honestly; 3. Commands; 4. Static analysis; 5. Dynamic analysis; 6. The boundary table; … |
| 44 — NetworkSecurityConfig | 326 | 16 | 12 | 1. The complete schema; 2. Every element and attribute; 3. src values; 4. Version matrix; 5. Resolution order for one hostname; 6. Three ways pinning silently does not happen; … |
| 45 — OAuth | 305 | 13 | 9 | 1. Identify the grant in five seconds; 2. Authorisation request parameters; 3. Token response fields; 4. PKCE — the only test that matters; 5. Redirect URI; 6. Static triage of an APK; … |
| 46 — Tokens | 414 | 18 | 5 | 1. Identify the token in one glance; 2. JOSE header members; 3. Registered claims (RFC 7519 §4.1); 3a. OIDC claims; 3b. Access-token and vendor claims; 4. Algorithms; … |
| 47 — Authentication | 344 | 16 | 9 | The one rule; The one test; Altitude ladder; Order of operations; Command reference; Session lifecycle tests; … |
| 48 — Biometrics | 310 | 16 | 10 | The one test; Authenticator constants; canAuthenticate() return codes; onAuthenticationError codes worth forcing; Key builder flags; KeyInfo read-back; … |
| 49 — KeyStore | 323 | 12 | 13 | The one sentence; The stack; KeyGenParameterSpec — the options that decide severity; KeyInfo — what you actually got; Attestation; The ten findings; … |
| 50 — HardwareBackedSecurity | 310 | 11 | 3 | 1. The security-level capability matrix; 2. Determine each capability on a device; 3. The scripts; 4. Measured results (record the device with every number); 5. Gatekeeper and the hardware auth token; 6. Attestation; … |
| 51 — DynamicAnalysis | 270 | 14 | 1 | The pipeline; Device posture — 40 seconds, run it first; The nine channels; Altitudes — pick the lowest that works; The unrooted path; Correlation — three subtractions, four questions; … |
| 52 — StaticAnalysis | 285 | 13 | 5 | The pipeline; Five-minute pass; The grep catalogue; The triage decision table; The four questions (severity comes from #4); The kill list; … |
| 53 — Frida | 554 | 12 | 34 | The four commands that start every session; Setup; CLI; Java API; Native API; Agent structure; … |
| 54 — Objection | 385 | 16 | 5 | 1. CLI; 2. Session hygiene — the four commands that prevent most problems; 3. Generic REPL commands; 4. android hooking — reconnaissance; 5. android hooking — modification; 6. android root — exactly three hooks; … |
| 55 — MobSF | 321 | 11 | 7 | 1. Install, run, authenticate; 2. REST API; 3. Finding categories — what it detected, and how to confirm; 4. Classify a "secret" before you name it; 5. Reading the JSON; 6. This chapter's scripts; … |
| 56 — JADX | 372 | 13 | 6 | Invocation; The ten-command first pass; Flags; Input formats; Search; Failure census; … |
| 57 — Ghidra | 382 | 13 | 17 | The first five minutes; Setup; Keyboard; The JNIEnv problem — fix this FIRST; JNI symbol mangling; Type signatures; … |
| 58 — IDA | 315 | 14 | 7 | Editions — what you can actually do [D]; Keyboard [D — verify on your build]; Headless [D]; IDAPython essentials; FLIRT; Debugger; … |
| 59 — radare2 | 433 | 21 | 5 | The grammar in one table; Launching; Info — no analysis required, fast on any size; Analysis — the expensive family; Functions and cross-references; Print; … |
| 60 — ADB | 370 | 17 | 6 | The 24-byte message header; Message types; Stream rules; Service strings (the A_OPEN payload); shell v2 packet framing (inside A_WRTE payloads); sync sub-protocol (SYNC.TXT); … |
| 61 — Fastboot | 396 | 20 | 7 | Risk key; Getting in and out; Reads — the whole safe surface; getvar variables; Writes; Lock state; … |
| 62 — Magisk | 265 | 14 | 5 | Install / flash; Which partition do I patch?; Verify installation; Filesystem layout; Module skeleton; Boot stages; … |
| 63 — LSPosed | 266 | 18 | 5 | The four layers; Framework comparison; Module anatomy; Entry points; LoadPackageParam; Installing hooks; … |
| 64 — Xposed | 300 | 15 | 6 | The one-paragraph summary; Timeline; Version matrix; What a classic install wrote [D, probed [M]]; Three-vantage artefact table [M]; hookMethodNative [D]; … |
| 65 — Hooking | 315 | 15 | 9 | 1. The five hook types; 2. Verified AArch64 encodings; 3. The three patch forms; 4. Branch and address-formation reach; 5. Relocating adrp; 6. Instruction classification masks; … |
| 66 — Instrumentation | 295 | 17 | 8 | The gate — measured matrix [M]; Startup ordering [M]; Identity inside the process [M]; Vantage: shell vs instrumented app [M]; Hidden-API census [M]; Manifest; … |
| 67 — BypassingProtections | 324 | 13 | 10 | The five seams; Seam / altitude table — cost and detectability; Symptom → cause → first move; ApplicationExitInfo decoder (API 30+); Measured response signatures (i9000S, Android 13 / API 33); Anti-debug: mechanism → defeat; … |
| 68 — ReverseEngineering | 385 | 23 | 15 | The loop; Evidence tiers; Question states; The first ten commands; Triage sheet — 8 questions, 20 minutes, no method bodies; Ranking candidates — distance to the question; … |
| 69 — MalwareAnalysis | 301 | 14 | 5 | 1. The triage checklist; 2. Capability → indicator table; 3. Weighting — what a signal is worth alone; 4. Accessibility descriptor — how to read it in ten seconds; 5. Provenance — what each artefact is worth; 6. Config decryption — the four shapes; … |
| 70 — VulnerabilityResearch | 320 | 10 | 6 | Bug class → where it lives → how to hunt it; Sanitizer flag matrix; libFuzzer flags; Triage decision table; Reachability evidence ladder; Disclosure routing; … |
| 71 — OWASP Mobile | 404 | 13 | 0 | 1. The four artefacts; 2. MASVS categories at a glance; 3. Every control, and what it actually requires; 4. Identifier schemes; 5. Citation forms; 6. Retired identifiers, and how to survive them; … |
| 72 — RealWorldFindings | 346 | 18 | 2 | The three units; The three gates; Gate 1 — how detectors manufacture false positives; Gate 2 — the vantage rule; Attacker positions — name one, or drop the finding; The finding classes; … |
| 73 — Labs | 266 | 14 | 11 | The corpus; Commands; Device identity — run before trusting anything; The su form; Install refusals; Vantages; … |
| 74 — CaseStudies | 294 | 18 | 6 | The six cases in one table; Symptom to first hypothesis; The H/P/R/E/O/V block; Evidence ladder — a claim inherits its WEAKEST rung; Five correction techniques; Four defects in a written case study; … |
| 75 — InterviewQuestions | 291 | 16 | 1 | The answer shape — five moves, 90–150 s; The five tiers — what escalates; Not knowing — four parts, 20 s; Stage → what is measured; Where candidates are lost (most → least common); Situation → move; … |
| 76 — CheatSheets | 353 | 17 | 6 | Start of every session — four commands; The five shell rules; Device posture; Root; Vantage — the same probe, three heights; Task: APK and one hour; … |
| 77 — UsefulCommands | 291 | 17 | 6 | Connection; Files; Install; Packages; Activities & Intents; Providers; … |
| 78 — Diagrams | 238 | 12 | 3 | Mermaid families; Flowchart notation; Sequence notation; State and class notation; Repository conventions (STYLE-GUIDE.md §6); Commands; … |
Every section, linked¶
Jump straight to the block you need. Anchors are GitHub's.
00 — Introduction¶
Printable reference for chapter 00-Introduction. Tables and commands only.
- 1. Toolchain install — Windows
- 2. Toolchain install — macOS
- 3. Toolchain install — Linux (Debian/Ubuntu)
- 4. Version pin quick reference
- 5. SDK manager / AVD manager / emulator
- 6. adb — the commands you type daily
- 7. Proxy setup — Burp on the wire
- 8. Burp CA → Android system certificate
- 9. frida-server deployment
- 10. jadx one-liners
- 11. apktool / signing one-liners
- 12. Key filesystem paths on a device
- 13. Default ports
- 14. MobSF quick start
- 15. Ghidra and Magisk starters
- 16. Career ladder
- 17. Legal jurisdiction quick table
- 18. Failure modes and their fixes
01 — Computer Science Basics¶
> Printable reference. Tables and commands only.
- 1. Number bases — decimal / binary / hex / ASCII
- 2. Powers of two
- 3. Two's complement
- 4. Data type sizes
- 5. Endianness
- 6. AArch64 registers (AAPCS64)
- 7. x86-64 registers (for comparison)
- 8. Linux syscalls (AArch64,
asm-genericnumbering) - 9.
mmap/mprotectconstants - 10.
errnovalues - 11. Signals
- 12. ELF format
- 13. Pages and virtual memory
- 14.
/procentries - 15. Command reference — inspecting bytes
- 16. Command reference — ELF and symbols
- 17. Command reference — runtime tracing
- 18. Command reference — processes and memory
- 19. Compilation pipeline
- 20. Quick recall
02 — Linux Basics¶
Printable. Tables and commands only. Full explanations in README.md.
- Navigation and files
- Permissions
- Identity
- Processes
/proc- Signals
- Streams, redirection, pipes
- Text tools
- Networking
- ADB
- Android filesystem
- Environment and linker
- Namespaces and mounts
- Shell scripting quick reference
- Toybox vs GNU gotchas
03 — Programming Fundamentals¶
Printable. Tables and commands only. Explanations in README.md.
- 1. Primitive types — memorise this table
- 2. Overflow quick reference
- 3. Where things live
- 4. Control flow → machine
- 5. Big-O
- 6. Data structures
- 7. Pointers and references
- 8. Memory management
- 9. Encodings
- 10. Reading a stack trace
- 11. Debugging commands
- 12. Git — the commands that find secrets
- 13. Reading code you did not write — the five moves
- 14. Translation strategies
- 15. Rules to keep
04 — Java¶
> Printable reference for 04 — Java. Tables and commands only.
- 1. Primitive types, sizes, ranges, descriptors
- 2. Boxing, caching, and identity
- 3. Access modifier visibility matrix
- 4. String methods and their cost
- 5. Collections comparison
- 6. Generics and type erasure
- 7. Exception hierarchy
- 8. Reflection API
- 9. Smali opcode to Java construct
- 10. JADX and compiler naming patterns
- 11. Toolchain command reference
- 12. Serialization quick reference
- 13. Concurrency quick reference
- 14. One-line recall prompts
05 — Kotlin¶
Printable reference for chapter 05 — Kotlin. Companion chapters:
- 1. Kotlin construct to JVM/DEX construct mapping
- 2. Null-safety operators
- 3.
kotlin.jvm.internal.Intrinsicsmethods and what each one tells you - 4. Scope functions
- 5. JADX fingerprints — is this class Kotlin?
- 6. Coroutines — builders, dispatchers, jobs
- 7. Java interop annotations
- 8. Command reference
- 9. Quick decision table — "what do I do with this decompiled method?"
06 — Android Architecture¶
Printable. No prose. See README.md for why each of these is true.
- The stack, bottom up
- Boot chain — the trust transitions
SpecializeCommon()— where the sandbox is built- Security-relevant properties
- Property service asymmetry
- Partitions
- dm-verity
- Mainline / APEX
- Recovery vs fastboot
- Process / privilege inspection
- Boot analysis
- Firmware offline
- Chapter scripts
- Where findings actually live
- Rules
07 — AOSP¶
Printable. Tables and commands only. Full explanation in README.md.
- Getting the source
- Source tree map
- Reading AOSP — the procedure
- Reading conventions
@hide,@SystemApi, stubs- Hidden-API blocklist
- Building
- Device reconnaissance
- Permissions and app-ops
- Tracing on a device
- Patching the platform
- Reversing an OEM framework
- Audit patterns
- CTS / VTS / GTS / STS
- Version matrix
08 — Build System¶
Printable. Tables and commands only. Full explanation in README.md.
- The two build systems
- Platform build commands
- Build variants
- Soong module types
- Security-relevant
Android.bpproperties - Platform output tree
- Gradle phases
- Files a reviewer opens, in order
- Dependency configurations
- App pipeline, in order
- Manifest merger priority (highest first)
tools:merge markers- Source set merge order (lowest → highest)
- APK signature schemes
- Commands — inspecting a build
- Commands — inspecting an APK
- Commands — hunting secrets
- Commands — component surface
- Commands — AAB and splits
- Commands — native hardening audit
- Debug-leak indicators in a shipped APK
- Supply-chain checks
- Platform-tree supply-chain checks
- Severity quick reference
09 — Android App Internals¶
> Printable. Tables and commands only. Full explanations live in README.md.
- 1. Identity — package, UID, appId, userId
- 2. Package / UID inspection commands
- 3.
/data/system/packages.list - 4.
/data/system/packages.xml - 5. Well-known AIDs (from
system/core/libcutils/include/private/android_filesystem_config.h) - 6. Directory layout
- 7. Install command reference
- 8. Reading
dumpsys package <pkg> - 9. Process inspection
- 10. Process model quick facts
- 11.
android:debuggable— what it actually unlocks - 12. Multi-user and work profiles
- 13. App standby buckets, Doze, background restrictions
- 14. Install-flow observation
- 15. ADB one-liners worth keeping
- 16. Fast triage checklist
- See also
10 — APK Internals¶
Printable reference for chapter 10-APK-Internals. Tables and commands only.
- 1. ZIP record signatures (all little-endian on disk)
- 2. Local File Header — field offsets (30 bytes fixed + variable)
- 3. Central Directory File Header — field offsets (46 bytes fixed + variable)
- 4. General Purpose Bit Flag
- 5. End Of Central Directory (EOCD) — field offsets
- 6. Compression methods seen in APKs
- 7. APK entry inventory
- 8. AXML / resource chunk type constants (
ResourceTypes.h) - 9.
Res_value.dataTypeconstants - 10. Resource ID bit layout
- 11.
resources.arscchunk layout - 12. Native libraries
- 13. Signature scheme comparison
- 14. APK Signing Block layout
- 15. Signature scheme detection — one-liners
- 16. Certificate inspection
- 17. Full unpack → modify → rebuild → align → sign sequence
- 18.
apktoolreference - 19.
aapt2reference - 20.
apksignerreference - 21.
zipalign,jadx,baksmali,bundletool - 22. Splits and App Bundles
- 23. Failure messages and causes
- 24. ZIP-level attack classes — detection commands
- 25. Runtime self-signature checks — API surface
- 26. Quick recall
11 — Android Runtime¶
Printable. No prose. See README.md for why each of these works.
- The two commands that unblock you most
- What the runtime enforces — and what it does NOT
- Class loading
- Dynamic code loading
- Reflection
- Runtime.exec
- Hidden API
- Manifest attributes that change runtime behaviour
- Packer identification
- Execution modes (summary — detail in ch 13)
- Diagnostics
- Chapter scripts
- Rules
12 — DEX Internals¶
Printable. No prose. See README.md for why each of these is true.
- File identity
- Header — the constants that must hold
- File layout
- Encodings
- Registers
- Instruction format identifiers
- Opcodes you actually need
- Payloads (all start with
00= nop) - try / catch
- map_list — the packer detector
- Access flags
- The 64K limit
- Commands
- Greps that pay
- Patching failure modes
- Rules
13 — ART¶
Printable. No prose. See README.md for why each of these works.
- The one command that matters
- Artifacts on disk
- Compiler filters
- Commands
- OAT header key-value store
- ArtMethod
- Why a hook fails
- Interpreters
- JIT
- dalvik.vm.* properties
- Manifest attributes affecting ART
- Heap spaces
- JNI references
- Mainline
- Class status ladder
- Dispatch
- Extract DEX from a device
- Quickening (A8–A10 only)
- Rules
14 — Dalvik¶
Printable. Tables and commands only. Full explanations in README.md.
- 1. Register model
- 2. Type descriptors
- 3. Directives
- 4. Label prefixes generated by
baksmali - 5. Complete opcode map —
0x00–0xFF - 6. Mnemonic suffix decoder
- 7. Format identifiers
- 8. Verifier rules that break patches
- 9. Patch recipes
- 10. Commands
- 11. Grep catalogue
- 12. Recognition table
- 13. Historical Dalvik VM
- 14. AOSP paths
15 — Native Code¶
> Tables and commands. Prose is in README.md.
- 1. ELF header — ELF64 / ELF32
- 2. Program headers — the loader's table
- 3. Section headers — the tools' table
- 4. Dynamic array (
DT_*) - 5. Symbols
- 6. Relocations
- 7. The hardening checklist
- 8.
elf-inspect.py - 9. Getting the library out of an APK
- 10. Run time
- 11. Loading sequence
- 12. Version matrix
- 13. Build flags
- 14. Triage in order
16 — JNI¶
Printable. Tables and commands only. Full explanations in README.md.
- 1. Type descriptors
- 2. Name mangling
- 3. The calling convention
- 4. Registration
- 5.
JNIEnvvsJavaVM - 6. Reference kinds
- 7. Strings
- 8. Arrays
- 9. Exceptions
- 10. Constants
- 11.
@FastNative/@CriticalNative - 12. The
JNINativeInterfacetable, complete - 13. Commands
- 14. Error message decoder
- 15. Security one-liners
17 — Libraries¶
Printable. Tables and commands only. Full explanations in README.md.
- Ring classification
- Bionic vs glibc — what changes for exploitation
- Platform library quick reference
- Enumeration commands
- ELF inspection
- Static-linkage detection by symbol prefix
- Version-string greps
- Six fingerprinting techniques
- Runtime enumeration
- Smali signatures
- SDK package-prefix map (abridged)
- Supply chain classes and controls
- Rating rubric
- Version matrix
- Session checklist
18 — ARM¶
> Printable. Tables and commands only. Explanations are in README.md.
- Registers — AArch64
- Registers — ARM32 (armeabi-v7a)
- AAPCS64 at a glance
- Condition codes
- Pattern recognition table
- Verified encodings
- Greppable byte signatures
- Address arithmetic
- Commands — build the fixtures
- Commands — disassemble
- Commands — symbols, imports, hardening
- Commands — this chapter's scripts
- Commands — Frida
- Commands — device
- LLDB
- ARM32 / Thumb quick reference
- Version matrix
- Failure modes, and what they mean
19 — Memory¶
Dense reference. Explanations are in README.md.
- 1.
/proc/<pid>/maps— field by field - 2. Page-protection flags
- 3.
/proc/<pid>/smaps— counters, field by field - 4. Allocator by Android version
- 5. Pointer tagging
- 6. Detection: modes and how to enable them
- 7. Capturing dumps
- 8. Commands
- 9. Manifest attributes relevant to this chapter
- 10. Page sizes
- 11. Runtime mitigations — what each costs an attacker
- 12. Reachability checklist
- 13. CWE quick reference
- 14. AOSP paths
20 — Security Architecture¶
| State | Bootloader | Signed by | ro.boot.verifiedbootstate | Warning |
- Boot states
- Device posture properties
- One-shot posture command
- AVB descriptors
- dm-verity error modes
- Encryption classes
- Play Integrity verdicts
- Device commands
- APK static checks
- Attack-surface priority (typical engagement)
- Forgeable vs not
21 — App Sandbox¶
Printable. No prose. See README.md for why each of these is true.
- The one paragraph
- UID arithmetic
- Network GIDs (
platform.xml→ supplementary groups) - Reading a process's sandbox
- SELinux contexts you will see
- Filesystem layout
- The three storage trees
- Version matrix
android:processvsandroid:isolatedProcess- What the sandbox does NOT stop
- Six classes of sandbox escape
- Commands
- Static analysis one-liners
- Verdict vocabulary for a probe app
- Reachability discipline
- Rules
22 — SELinux¶
Printable. Tables and commands only. Everything marked [M] was measured on a physical arm64 device running Android 13 / API 33, stock user build, SELinux Enforcing, not rooted.
- 1. Context format
- 2. MCS category encoding
- 3. Common domains
- 4. Object classes and their key permissions
- 5.
avcfield decoder - 6. The command set
- 7. The finding-shaped greps
- 8.
seapp_contextsquick reference - 9. Rule types
- 10. Enforcement states
- 11. Severity — is this denial a finding?
- 12. Traps
23 — Permissions¶
Dense. Tables and commands only. Full argument in README.md.
- 1. The three lists — and the fourth
- 2.
protectionLevel— base levels - 3.
protectionLevel— flags - 4. Permission → GID map (
platform.xml) M - 5. The
adbcommand set - 6. Where grant state lives on disk
- 7. Runtime permission flags
- 8. Runtime permission states
- 9. The check API family
- 10.
checkComponentPermission— the five-condition ladder - 11. Squatting — the rules, measured
- 12. Is this a finding?
- 13. Grep set
- 14. Version matrix — the grant model
- 15. Special app access
- 16. AOSP paths
- 17. This chapter's tools, and the two next door
- 18. One-line recall
24 — IPC¶
| Mechanism | Reachable by | Needs permission? | Visible in manifest? |
- Mechanism reachability
- Permission protection levels
- Identity APIs
clearCallingIdentity— the four bugs- Live enumeration
- Decoding /proc/net/tcp
- Exercising components
- Drozer
- Static grep corpus
- Smali signatures
- PendingIntent flag values seen in decompiled code
- Version gates that change the verdict
- Severity guide
- The discipline
25 — Binder¶
Values marked M were measured on a physical device: Xiaomi M2101K6P, Android 11 / API 30,
- 1. Device nodes
- 2. ioctl commands
- 3. Structures
- 4.
BC_— commands you send - 5.
BR_— events you receive - 6. Transaction flags and object types
- 7. Transaction codes
- 8. Parcel primitives
- 9. Identity API
- 10. Limits
- 11.
servicecommand - 12.
dumpsysandcmdentry points - 13. This chapter's tools
- 14. Static-analysis greps
- 15. Triage table
26 — Intent¶
Dense reference. Prose lives in README.md.
- 1. Intent fields
- 2. Common actions
- 3. Common categories
- 4. Resolution matching rules
- 5.
amsyntax — every extra type - 6. Intent flags
- 7.
PendingIntent - 8. Caller identity
- 9. App Links — the command set, by platform version
- 10. Recon and probing commands
- 11. Static-analysis grep set
- 12. Version matrix
- 13. Fix templates
- 14. Chapter scripts
27 — ContentProviders¶
| Attribute | Default | Note |
- URI anatomy
- Manifest attributes
<grant-uri-permission>path matching- Protection levels
- Provider contract
- Query parameter → SQL mapping
openFilemodes- URI grant flags
- FileProvider
<paths>elements - Enumeration
contentcommand- Response oracle
- Injection payloads
- Traversal payloads
- Drozer
- Frida one-liners
- Static greps
- Triage decision table
- Fixes
- Version matrix
- Rules
28 — Services¶
Printable. Tables and commands only. Everything marked M was measured on a
- The three shapes
onStartCommandreturn valuesbindServiceflags<service>attributes- Where identity is and is not available
bindServiceoutcomes- Transaction codes
- Reading an empty-parcel probe
- AIDL vs Messenger vs local Binder
- Version matrix
- Isolated process — measured
- Commands — enumeration
- Commands — driving
- Commands — this chapter's tools
- Greps
- Severity rubric — stop at the first "no"
- Measured device totals
- Gotchas
29 — BroadcastReceivers¶
Measured values are from a Redmi M2101K6P, Android 11 / API 30, rooted, frida-server 16.1.6.
- Enumeration
- Protected broadcasts
- Sending
- Frida
dumpsys activity broadcastsrecord format- API / registration matrix
- Intent flags for broadcasts
- Queue constants (measured)
- The two permission checks
- Ordered broadcasts
- Static analysis greps
- Severity rubric
- Measured device numbers (one snapshot)
- Quick decision tree
30 — Activities¶
Dense reference. Prose is in README.md.
- Launch modes
taskAffinity- Task-affecting
FLAG_ACTIVITY_* - Caller identity
dumpsysfield map- Commands
am start— three limits- Attack quick-reference
- Defences, one line each
- Severity anchors
- Gotchas
31 — Fragments¶
Dense reference. No prose. Everything marked [m] was measured on
- The one-line facts
- The reflective path, API 35 [m]
isValidFragment, API 35, exact [m]- The three gate states
- Loader constraints (both libraries)
- Type-check ordering [m]
- Lifecycle: Fragment vs Activity
- Back stacks
- Grep / find
- Device commands
- Driving the labs
- Frida (
scripts/fragment-trace.js— reviewed, unrun; see README §7.4) - Allowlists that do NOT work
- Fixes, ranked
- Severity
- Corpus sweep, 241 APKs on a stock Android 15 image [m]
- MASVS
- Traps
32 — Manifest¶
Printable. The manifest audit reference. See README.md for why each attribute matters.
- Read it three ways — always
- THE FIRST THING TO CHECK: targetSdkVersion
<manifest><application>— the highest-yield element<activity>/<activity-alias><service><receiver><provider>— the richest surface<intent-filter>- Permissions
- Other elements
- Manifest merging
- Audit commands
- THE DISCIPLINE
- Severity quick guide
- Rules
33 — Storage¶
Dense reference. Prose is in README.md.
- Storage roots for one package
- Subdirectories of the CE/DE tree
- Availability by device state
- Reachability: three gates, all must agree
- Commands
- Version matrix
- Measured on the test device (Redmi M2101K6P, Android 11 / API 30, rooted, Enforcing)
- Static-analysis greps
- SQLite companion files
- Backup rules domains
- Severity rubric
- Traps
34 — Cryptography¶
Printable. No prose. See README.md for why each of these works.
- The four commands that matter
- Decision table — what to use
- Modes
- The transformation-string trap
- IV vs nonce vs salt
- Findings catalogue — quick reference
- Static sweep, in order
- Dynamic
- Data analysis
- Key sizes and lifetimes
- AndroidKeyStore
- Providers
- Frida one-liners
- Smali patterns
- MASVS mapping
- Named attacks (safe to cite)
- Standards
- Rules
35 — SSL¶
Printable. No prose. See README.md for why each of these works.
- The five commands that matter
- Version matrix — where the trust anchors live
- Trust-anchor rule by targetSdk
- Platform trust-manager delegation [M]
- Protocol versions — server wire value vs Android client default
- TLS alert codes
- Reading a cipher suite
- openssl
- adb
scripts/tls-posture.pyscripts/trace-tls-validation.js- Validation steps — and what breaks at each
- Static analysis — find it in source
- Triage — interception fails
- Findings catalogue
- Severity rubric
- MASVS mapping
- Rules
36 — CertificatePinning¶
Dense and printable. Full explanations in README.md.
- The pin
- Compute it
- Generate a backup key
- The layers
- Find it — static
- Find it — dynamic
- Native
- Flutter
- Proxy plumbing
- Reporting
- Smali patterns
- Numbers
37 — RootDetection¶
Printable. No prose. See README.md for why each of these works and what it is worth.
- The one-line summary
- Triage — is there root detection, and what kind?
- Verdict table
- Artefact reference
- Bypass ladder — cheapest first
- Frida commands
- Frida one-liners
- RootBeer
- Objection
strace— the ground truth no hook can lie about- Static patches
- Layer map — hook low, catch more
- Play Integrity — the three tests that find real bugs
- Static analysis greps
- Common failure modes
- Version matrix
- Reporting
38 — TamperDetection¶
Printable. Tables and commands only. Full reasoning in README.md.
- 1. THE CATALOGUE — what each check proves, and what it costs to defeat
- 2. THE THREE THREATS — do not conflate them
- 3. THE API
- 4. VERSION MATRIX
- 5. TIER ORDERING — memorise this
- 6. STATIC TRIAGE — in order
- 7. DYNAMIC TRIAGE — in order
- 8. FRIDA SNIPPETS
- 9. SMALI
- 10. WHAT SURVIVES OBFUSCATION
- 11. EMPTY REPORT — honestly empty, or hidden?
- 12. SEVERITY — how to write it up
- 13. MEASURED NUMBERS (i9000S, Android 13 / API 33, unrooted)
- 14. THE CORRECT SERVER-VERIFIED FLOW
- 15. TOP DEVELOPER BUGS
39 — EmulatorDetection¶
Measured on Redmi M2101K6P (Android 11 / API 30, arm64, real) and
- Grades
- The full signal table
- The nine DEAD checks — memorise these
- The inverted checks — these get it backwards
- Quick device triage
- Shell vs app — always check both
- Static analysis
- Dynamic analysis
- Environment-side (no hooks in the app)
- Build the probes
- AOSP paths
- Reverse-engineering signatures
- Severity rubric
- Traps
40 — Obfuscation¶
Printable. No prose. See README.md for why each of these works.
- Triage — is it protected, and how?
- DEX header offsets
- Extraction
- Static grep table
- Native
.sorecon - Frida — attach modes
- Frida one-liners
- Objection
- Technique → recognition → counter
- What survives obfuscation
- Deobfuscation methodology (order matters)
- Packer runtime order
- Version matrix
41 — ProGuard¶
Dense reference. Prose lives in README.md.
- 1. The keep matrix
- 2. Keep modifiers
- 3. Wildcards
- 4. Class specification grammar
- 5. Member specifications
- 6. Complete directive reference
- 7.
-keepattributesreference - 8. The rules everyone needs, correct forms
- 9. Anti-patterns
- 10. Where rules come from (merged, in this order)
- 11. Build outputs
- 12. Commands
- 13. Grep catalogue
- 14. Recognising a configuration from the output
- 15. Version matrix
- 16. Measured facts (this chapter's fixture, R8 8.6.2, build-tools 35.0.1)
42 — R8¶
Dense reference. Prose lives in README.md.
- 1. Where R8 is, and how to run it
- 2.
mapping.txtgrammar - 3. Synthetic-name decoder
- 4. Keep-rule effects on R8's three phases
- 5. Build outputs and where they must not go
- 6. Triage commands
- 7.
kotlin.Metadata— the four states - 8. Measuring obfuscation coverage
- 9. Severity
- 10. What R8 never protects
- 11. Recognising R8 output in ten seconds
- 12. Gotchas
43 — WebView¶
Dense reference. Prose is in README.md.
- 1. WebSettings defaults by targetSdkVersion — the table (M)
- 2. Severity, honestly
- 3. Commands
- 4. Static analysis
- 5. Dynamic analysis
- 6. The boundary table
- 7. Numbers measured on 11 real APKs from this device
- 8. Measured facts that contradict common tables
- 9. Remediation, as code
- 10. On-disk artefacts
- 11.
SslErrorprimary error codes
44 — NetworkSecurityConfig¶
Dense reference. Prose lives in README.md.
- 1. The complete schema
- 2. Every element and attribute
- 3.
srcvalues - 4. Version matrix
- 5. Resolution order for one hostname
- 6. Three ways pinning silently does not happen
- 7.
<debug-overrides>decision table - 8. Severity, honestly
- 9. Static analysis — the three steps
- 10. Grep, once you have decoded XML
- 11. Dynamic analysis
- 12. Getting your CA trusted
- 13. Compute a pin
- 14. Errors and what they mean
- 15. What
dumpsyswill NOT tell you - 16. One-line reminders
45 — OAuth¶
Printable. Tables and commands only. Full explanations in README.md.
- 1. Identify the grant in five seconds
- 2. Authorisation request parameters
- 3. Token response fields
- 4. PKCE — the only test that matters
- 5. Redirect URI
- 6. Static triage of an APK
- 7. Dynamic analysis
- 8. Discovery document red flags
- 9.
id_tokenvalidation checklist - 10.
statevsnonce - 11. Post-flow tests
- 12. Severity guide
- 13. Report sentence templates
46 — Tokens¶
Dense reference. No prose. Full explanations in README.md.
- 1. Identify the token in one glance
- 2. JOSE header members
- 3. Registered claims (RFC 7519 §4.1)
- 3a. OIDC claims
- 3b. Access-token and vendor claims
- 4. Algorithms
- 5. Attack per failure class
- 6. Response-code interpretation
- 7. Storage on Android
- 8. Commands
- 9. Server tests, as request sequences
- 10. Lifetimes
- 11. Sender constraining
- 12. Revocation options
- 13. Is it a finding? (§5.10)
- 14. Static grep set
- 15. Android version notes
- 16. RFC index
47 — Authentication¶
Dense reference. Prose lives in README.md.
- The one rule
- The one test
- Altitude ladder
- Order of operations
- Command reference
- Session lifecycle tests
- Enumeration — four oracles
- OTP / MFA failure classes
- OTP delivery on Android
AccountManageron diskFLAG_SECURE- Device binding ladder
- Honest severity
- Version matrix
- CWE quick map
- Traps
48 — Biometrics¶
Printable. Tables and commands only. Full reasoning is in README.md.
- The one test
- Authenticator constants
canAuthenticate()return codesonAuthenticationErrorcodes worth forcing- Key builder flags
KeyInforead-back- Per-use vs time-bound — measured, API 35 emulator
adbtriage — no root, no Frida- Frida
- Objection
- Device probe
- Static
- Structural tells
- Vulnerability → severity
- Ten-minute checklist
- Boundaries
49 — KeyStore¶
Printable. No prose. See README.md for why each of these is true.
- The one sentence
- The stack
KeyGenParameterSpec— the options that decide severityKeyInfo— what you actually got- Attestation
- The ten findings
- Frida
- Objection
- Without Frida
- Static analysis greps
- Exception → meaning
- Rules
50 — HardwareBackedSecurity¶
Dense reference. Prose lives in README.md.
- 1. The security-level capability matrix
- 2. Determine each capability on a device
- 3. The scripts
- 4. Measured results (record the device with every number)
- 5. Gatekeeper and the hardware auth token
- 6. Attestation
- 7. Key builder options that matter here
- 8. Static-analysis one-liners
- 9. Severity language
- 10. Failure messages, decoded
- 11. Quick recall
51 — DynamicAnalysis¶
*Printable. The runtime observation catalogue: *what to capture, with which command, and what it
- The pipeline
- Device posture — 40 seconds, run it first
- The nine channels
- Altitudes — pick the lowest that works
- The unrooted path
- Correlation — three subtractions, four questions
- Validation — four questions
- The known-value storage sweep
- Did the exercise actually happen?
- Coverage
- Handoffs
- Measured numbers worth quoting
- Language for the report
- Never
52 — StaticAnalysis¶
Printable. Tables and commands only. Full reasoning in README.md.
- The pipeline
- Five-minute pass
- The grep catalogue
- The triage decision table
- The four questions (severity comes from #4)
- The kill list
- Confidence model
- Tool invocations
- Entry points, correctly
- Device confirmation (read-only)
- Measured numbers to quote
- Language for the report
- Never
53 — Frida¶
Printable. No prose. See README.md for why each of these works.
- The four commands that start every session
- Setup
- CLI
- Java API
- Native API
- Agent structure
- Failure modes
- No-root
- Framework boundary hooks
- Static recon before you start
- Scripts in this chapter
- Cleanup
54 — Objection¶
Dense reference. Measured against objection 1.11.0, frida 16.1.6, frida-server
- 1. CLI
- 2. Session hygiene — the four commands that prevent most problems
- 3. Generic REPL commands
- 4.
android hooking— reconnaissance - 5.
android hooking— modification - 6.
android root— exactly three hooks - 7.
android sslpinning disable— exactly seven hooks - 8. Filesystem — as the app's UID, from inside the app
- 9. Heap, KeyStore, memory, SQLite, intents, UI
- 10. Headless / API mode
- 11. No root —
patchapk - 12. Version skew — three relationships
- 13. The four failure modes
- 14. Reading your own agent
- 15. Honest severity
- 16. When to stop
55 — MobSF¶
*Dense. Tables and commands. The centre of this file is §3: *every MobSF finding category mapped to
- 1. Install, run, authenticate
- 2. REST API
- 3. Finding categories — what it detected, and how to confirm
- 4. Classify a "secret" before you name it
- 5. Reading the JSON
- 6. This chapter's scripts
- 7. The by-hand equivalent — ten commands
- 8. The checks the report does not contain
- 9. Blind spots — put these in the report
- 10. Numbers to remember
- 11. Report hygiene
56 — JADX¶
Dense. Printable. Measured against jadx 1.5.3. Chapter: README.md.
- Invocation
- The ten-command first pass
- Flags
- Input formats
- Search
- Failure census
- Comment reference
- Decompiler artefact → what it really was
- Drop to Smali when…
- Escalation ladder
- jadx → Frida
- Version and reproducibility
- Chapter scripts
57 — Ghidra¶
Printable. No prose. See README.md for why each of these works.
- The first five minutes
- Setup
- Keyboard
- The JNIEnv problem — fix this FIRST
- JNI symbol mangling
- Type signatures
- Static ↔ dynamic address arithmetic
- Headless
- Scripting API (Jython)
- Recognisable ARM64 patterns
- Common problems
- When not to use Ghidra
- The static/dynamic loop
58 — IDA¶
Printable. Tables and commands only.
- Editions — what you can actually do [D]
- Keyboard [D — verify on your build]
- Headless [D]
- IDAPython essentials
- FLIRT
- Debugger
- Triage before you open anything [M]
- Address arithmetic
- Structure recovery — three rules
- Hex-Rays microcode maturity levels [D]
- Database files
- Measured facts about what the compiler did [M]
- When to open IDA at all
- Related
59 — radare2¶
> Every radare2 command here is Unverified — radare2 was not installed on the machine where
- The grammar in one table
- Launching
- Info — no analysis required, fast on any size
- Analysis — the expensive family
- Functions and cross-references
- Seek and search
- Flags — the naming layer
- Writing / patching
- Visual and panels
- Configuration
- Projects
- The other tools
- r2pipe (Python)
- r2frida — live process
- Android triage recipes
- JNI offsets — Measured
- AArch64 patterns worth recognising
- Measured facts from this chapter
- Common traps
- Where to go instead
60 — ADB¶
Protocol and transport only. For the command set, see
- The 24-byte message header
- Message types
- Stream rules
- Service strings (the
A_OPENpayload) - shell v2 packet framing (inside
A_WRTEpayloads) - sync sub-protocol (
SYNC.TXT) - Authentication
- Privilege model
shell(uid 2000) versus an app — measured on API 30- Transports
adb install= three streams- Host smart-socket protocol (port 5037) — a different protocol
- Feature flags in the banner
- Posture: what to read, and what it means
- Severity
- Scripts in this chapter
- Gotchas
61 — Fastboot¶
> Commands marked D are DESTRUCTIVE. Two marked B can BRICK a device.
- Risk key
- Getting in and out
- Reads — the whole safe surface
getvarvariables- Writes
- Lock state
- Useful flags
- The wire protocol
- Lock states
- Device-side reads (no reboot, non-destructive)
- vbmeta flags
- Sparse images
superand dynamic partitions- A/B slots
- AOSP paths
- Boot image versions
- Failure diagnosis
- Claims versus evidence
- Measured facts worth not re-deriving
- Chapter files
62 — Magisk¶
Printable. Tables and commands only. Full explanations in README.md.
- Install / flash
- Which partition do I patch?
- Verify installation
- Filesystem layout
- Module skeleton
- Boot stages
- magiskpolicy
- resetprop
- Zygisk API (module native code)
- DenyList
- System CA certificate
- Magisk vs KernelSU vs APatch
- Module audit before install
- Detecting Magisk on an image
63 — LSPosed¶
Dense. Tables and commands. Prose lives in README.md.
- The four layers
- Framework comparison
- Module anatomy
- Entry points
LoadPackageParam- Installing hooks
XC_MethodHooksemantics- Priority
XposedHelpers- Timing
- Scope
- Limits — what a module cannot do
- Diagnostic order when a hook does not fire
- Device commands
- Static triage of a module APK
- Detection — what works and what does not
- Measured reference figures
- Related chapters
64 — Xposed¶
Dense reference. Prose lives in README.md.
- The one-paragraph summary
- Timeline
- Version matrix
- What a classic install wrote [D, probed [M]]
- Three-vantage artefact table [M]
hookMethodNative[D]- Dispatcher control flow [D] — and why the API is shaped this way
- Module format
- Measured module build [M]
- Corpus sweep [M] — 237 APKs, stock Android 15 image
- Why it died — five forces, none aimed at it
- Detection checks, ranked
- Commands
- Gotchas
- Related chapters
65 — Hooking¶
Dense reference. Prose lives in README.md.
- 1. The five hook types
- 2. Verified AArch64 encodings
- 3. The three patch forms
- 4. Branch and address-formation reach
- 5. Relocating
adrp - 6. Instruction classification masks
- 7. The six steps of an inline hook
- 8. Trampoline allocation
- 9. PLT / GOT
- 10. Why hooks fail
- 11. Diagnostic order
- 12. Registers at a function's first instruction
- 13. Commands
- 14. Frida one-liners
- 15. Measured facts from this chapter
66 — Instrumentation¶
Dense reference. Everything marked [M] was measured on sdk_gphone16k_x86_64, Android 15 /
- The gate — measured matrix [M]
- Startup ordering [M]
- Identity inside the process [M]
- Vantage: shell vs instrumented app [M]
- Hidden-API census [M]
- Manifest
am instrument- Wire protocol
- Commands
- Build a test APK without Gradle
- Instrumentation API
- Lifecycle side effects [M]
- Class loaders [M]
- Detection and defence
- Static detection
- Severity
- Traps
67 — BypassingProtections¶
Printable. Tables and commands only. Full reasoning in README.md.
- The five seams
- Seam / altitude table — cost and detectability
- Symptom → cause → first move
ApplicationExitInfodecoder (API 30+)- Measured response signatures (i9000S, Android 13 / API 33)
- Anti-debug: mechanism → defeat
- Anti-Frida: mechanism → defeat
- Timing: what runs when
- Commands
- Frida one-liners by seam
- Stop-hooking checklist
- Reporting
- Clean up
68 — ReverseEngineering¶
> Printable. No prose. See README.md for why each of these works.
- The loop
- Evidence tiers
- Question states
- The first ten commands
- Triage sheet — 8 questions, 20 minutes, no method bodies
- Ranking candidates — distance to the question
- Native call sites — the 40-second experiment
- Native triage commands
- The managed/native boundary
- Crossing routes, cost order
- Runtime
- Liveness — before any negative result
- Data flow, when control flow will not connect
- The four ways a tool lies
- Absence — the five checks (56-JADX)
- Obfuscation vs the ladder
- Note discipline
- Time boxes
- Stopping rule
- The residue
- Honest severity
- Environment traps
- Memorable figures
69 — MalwareAnalysis¶
> Dense reference. Full explanation in README.md.
- 1. The triage checklist
- 2. Capability → indicator table
- 3. Weighting — what a signal is worth alone
- 4. Accessibility descriptor — how to read it in ten seconds
- 5. Provenance — what each artefact is worth
- 6. Config decryption — the four shapes
- 7. Persistence — kill test
- 8. Native — the four facts that change your method
- 9. Packer recognition — any two is conclusive
- 10. Version matrix
- 11. Isolation rules
- 12. False-positive arithmetic — expect this
- 13. One-liners
- 14. Report skeleton
70 — VulnerabilityResearch¶
Dense reference. The reasoning lives in README.md.
- Bug class → where it lives → how to hunt it
- Sanitizer flag matrix
- libFuzzer flags
- Triage decision table
- Reachability evidence ladder
- Disclosure routing
- Command reference
- Arithmetic: wrong form → right form
- Mitigations: what each costs an attacker
- The numbers to remember
71 — OWASP Mobile¶
Printable. Tables only. The condensed version lives in
- 1. The four artefacts
- 2. MASVS categories at a glance
- 3. Every control, and what it actually requires
- 4. Identifier schemes
- 5. Citation forms
- 6. Retired identifiers, and how to survive them
- 7. Levels, profiles and depth
- 8. Finding → control lookup
- 9. Findings that do not map cleanly
- 10. Evidence that satisfies each category
- 11. Scoping decision table
- 12. Common mechanical errors
- 13. Chapter tooling
72 — RealWorldFindings¶
Printable. Tables and commands only.
- The three units
- The three gates
- Gate 1 — how detectors manufacture false positives
- Gate 2 — the vantage rule
- Attacker positions — name one, or drop the finding
- The finding classes
- Severity — the four inputs
- Corpus measurement — 243 packages, API 35 (chapter §3.5)
- Provider reachability probe — 82 authorities, shell vantage
- A provider has THREE guards
- Static-sweep blind spots, quantified
- Grep patterns
- Commands
- Command traps
- Reporting units
- Write-up rubric (10 binary points)
- Statistics discipline
- Quick verdicts
73 — Labs¶
Dense reference. Prose lives in README.md.
- The corpus
- Commands
- Device identity — run before trusting anything
- The
suform - Install refusals
- Vantages
- Verdict vocabulary
- Outputs that prove nothing
- Learning paths
- Lab header the index parses
- Writing order (not reading order)
- Pre-flight checks for a new lab
- Link depth
- Traps, one line each
74 — CaseStudies¶
Dense reference. Full narratives in README.md; raw evidence in
- The six cases in one table
- Symptom to first hypothesis
- The H/P/R/E/O/V block
- Evidence ladder — a claim inherits its WEAKEST rung
- Five correction techniques
- Four defects in a written case study
- Verdicts — only three
- Vantage: what generalises from
run-as - Measured: three-vantage file probe (AVD, API 35, Magisk 30.7)
- Measured: property visibility (same device, 2026-08-16)
- Measured:
ro.boot.verifiedbootstate— four values - Measured: compiler folding (NDK 25.2.9519653, AArch64)
- Measured: substring signatures
- "If a detector agrees with you about a lot of samples, suspect the detector"
- Commands
- Traps
- Report language
- Quick revision
75 — InterviewQuestions¶
Printable. Tables and commands only.
- The answer shape — five moves, 90–150 s
- The five tiers — what escalates
- Not knowing — four parts, 20 s
- Stage → what is measured
- Where candidates are lost (most → least common)
- Situation → move
- Severity vocabulary
- Take-home rubric (100 pts)
- Measured contradictions — one per interview, with device + method
- Vantage — the standing rule
- Emulator command traps
- Cross-cutting questions (no chapter owns these)
- Commands — drilling with this chapter
- Corpus — a timestamped measurement, not a constant
- Four-week programme
- Ethics — non-negotiable
76 — CheatSheets¶
Printable. No prose. Every command was executed in the form shown, on
- Start of every session — four commands
- The five shell rules
- Device posture
- Root
- Vantage — the same probe, three heights
- Task: APK and one hour
- Task: unrooted device
- Task: only an emulator
- Task: the app detects my hook
- Task: see the traffic
- Task: prove this finding
- Task: nothing works
- Package, APK, storage, logs
- Corrections — the obvious command lies
- The repo's own defect, measured
- Rebuild the generated parts
- Where to go next
77 — UsefulCommands¶
Printable. No prose. See README.md for what each command actually talks to.
- Connection
- Files
- Install
- Packages
- Activities & Intents
- Providers
- System services
- Settings & properties
- Logcat
- Process / filesystem
- APK handling
- Frida / Objection
- Network
- Fastboot — destructive
- Secret regexes
- Risky API grep list
- Rules that save you
78 — Diagrams¶
Notation, conventions, commands and failure modes on one page. Chapter: README.md.
- Mermaid families
- Flowchart notation
- Sequence notation
- State and class notation
- Repository conventions (STYLE-GUIDE.md §6)
- Commands
- Parse failures measured in this repository
- Escapes and entities
- Family selection
- Pre-ship checklist
- Boxes that are drawn as boundaries and are not
- The one claim every diagram makes