Skip to content

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.

01 — Computer Science Basics

> Printable reference. Tables and commands only.

02 — Linux Basics

Printable. Tables and commands only. Full explanations in README.md.

03 — Programming Fundamentals

Printable. Tables and commands only. Explanations in README.md.

04 — Java

> Printable reference for 04 — Java. Tables and commands only.

05 — Kotlin

Printable reference for chapter 05 — Kotlin. Companion chapters:

06 — Android Architecture

Printable. No prose. See README.md for why each of these is true.

07 — AOSP

Printable. Tables and commands only. Full explanation in README.md.

08 — Build System

Printable. Tables and commands only. Full explanation in README.md.

09 — Android App Internals

> Printable. Tables and commands only. Full explanations live in README.md.

10 — APK Internals

Printable reference for chapter 10-APK-Internals. Tables and commands only.

11 — Android Runtime

Printable. No prose. See README.md for why each of these works.

12 — DEX Internals

Printable. No prose. See README.md for why each of these is true.

13 — ART

Printable. No prose. See README.md for why each of these works.

14 — Dalvik

Printable. Tables and commands only. Full explanations in README.md.

15 — Native Code

> Tables and commands. Prose is in README.md.

16 — JNI

Printable. Tables and commands only. Full explanations in README.md.

17 — Libraries

Printable. Tables and commands only. Full explanations in README.md.

18 — ARM

> Printable. Tables and commands only. Explanations are in README.md.

19 — Memory

Dense reference. Explanations are in README.md.

20 — Security Architecture

| State | Bootloader | Signed by | ro.boot.verifiedbootstate | Warning |

21 — App Sandbox

Printable. No prose. See README.md for why each of these is true.

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.

23 — Permissions

Dense. Tables and commands only. Full argument in README.md.

24 — IPC

| Mechanism | Reachable by | Needs permission? | Visible in manifest? |

25 — Binder

Values marked M were measured on a physical device: Xiaomi M2101K6P, Android 11 / API 30,

26 — Intent

Dense reference. Prose lives in README.md.

27 — ContentProviders

| Attribute | Default | Note |

28 — Services

Printable. Tables and commands only. Everything marked M was measured on a

29 — BroadcastReceivers

Measured values are from a Redmi M2101K6P, Android 11 / API 30, rooted, frida-server 16.1.6.

30 — Activities

Dense reference. Prose is in README.md.

31 — Fragments

Dense reference. No prose. Everything marked [m] was measured on

32 — Manifest

Printable. The manifest audit reference. See README.md for why each attribute matters.

33 — Storage

Dense reference. Prose is in README.md.

34 — Cryptography

Printable. No prose. See README.md for why each of these works.

35 — SSL

Printable. No prose. See README.md for why each of these works.

36 — CertificatePinning

Dense and printable. Full explanations in README.md.

37 — RootDetection

Printable. No prose. See README.md for why each of these works and what it is worth.

38 — TamperDetection

Printable. Tables and commands only. Full reasoning in README.md.

39 — EmulatorDetection

Measured on Redmi M2101K6P (Android 11 / API 30, arm64, real) and

40 — Obfuscation

Printable. No prose. See README.md for why each of these works.

41 — ProGuard

Dense reference. Prose lives in README.md.

42 — R8

Dense reference. Prose lives in README.md.

43 — WebView

Dense reference. Prose is in README.md.

44 — NetworkSecurityConfig

Dense reference. Prose lives in README.md.

45 — OAuth

Printable. Tables and commands only. Full explanations in README.md.

46 — Tokens

Dense reference. No prose. Full explanations in README.md.

47 — Authentication

Dense reference. Prose lives in README.md.

48 — Biometrics

Printable. Tables and commands only. Full reasoning is in README.md.

49 — KeyStore

Printable. No prose. See README.md for why each of these is true.

50 — HardwareBackedSecurity

Dense reference. Prose lives in README.md.

51 — DynamicAnalysis

*Printable. The runtime observation catalogue: *what to capture, with which command, and what it

52 — StaticAnalysis

Printable. Tables and commands only. Full reasoning in README.md.

53 — Frida

Printable. No prose. See README.md for why each of these works.

54 — Objection

Dense reference. Measured against objection 1.11.0, frida 16.1.6, frida-server

55 — MobSF

*Dense. Tables and commands. The centre of this file is §3: *every MobSF finding category mapped to

56 — JADX

Dense. Printable. Measured against jadx 1.5.3. Chapter: README.md.

57 — Ghidra

Printable. No prose. See README.md for why each of these works.

58 — IDA

Printable. Tables and commands only.

59 — radare2

> Every radare2 command here is Unverified — radare2 was not installed on the machine where

60 — ADB

Protocol and transport only. For the command set, see

61 — Fastboot

> Commands marked D are DESTRUCTIVE. Two marked B can BRICK a device.

62 — Magisk

Printable. Tables and commands only. Full explanations in README.md.

63 — LSPosed

Dense. Tables and commands. Prose lives in README.md.

64 — Xposed

Dense reference. Prose lives in README.md.

65 — Hooking

Dense reference. Prose lives in README.md.

66 — Instrumentation

Dense reference. Everything marked [M] was measured on sdk_gphone16k_x86_64, Android 15 /

67 — BypassingProtections

Printable. Tables and commands only. Full reasoning in README.md.

68 — ReverseEngineering

> Printable. No prose. See README.md for why each of these works.

69 — MalwareAnalysis

> Dense reference. Full explanation in README.md.

70 — VulnerabilityResearch

Dense reference. The reasoning lives in README.md.

71 — OWASP Mobile

Printable. Tables only. The condensed version lives in

72 — RealWorldFindings

Printable. Tables and commands only.

73 — Labs

Dense reference. Prose lives in README.md.

74 — CaseStudies

Dense reference. Full narratives in README.md; raw evidence in

75 — InterviewQuestions

Printable. Tables and commands only.

76 — CheatSheets

Printable. No prose. Every command was executed in the form shown, on

77 — UsefulCommands

Printable. No prose. See README.md for what each command actually talks to.

78 — Diagrams

Notation, conventions, commands and failure modes on one page. Chapter: README.md.