Dense reference. No prose. Everything marked [m] was measured on
sdk_gphone16k_x86_64 (Android 15 / API 35) on 2026-08-16; see
README §7.7 for what was not.
# who am I on
adbdevices-l&&adbshellgetpropro.product.model&&adbshellgetpropro.build.version.sdk
# is the screen locked (app-originated starts can be silently refused)
adbshell"dumpsys trust"|grep-o"deviceLocked=[01]"# live fragment state -- the finding
adbshell"dumpsys activity <pkg>"|grep-A8"Active Fragments"
adbshell"dumpsys activity top"|sed-n'/Added Fragments/,/^$/p'# what absorbed my am start
adbshell"dumpsys window"|grepmCurrentFocus
# platform questions about THIS build
./scripts/preference-gate-probe.sh
# read the gate out of the device
adbpull/system/framework/framework.jar
python3-B-c"import zipfile;z=zipfile.ZipFile('framework.jar');[open(n,'wb').write(z.read(n)) for n in z.namelist() if n.endswith('.dex')]"
dexdump-dclasses3.dex|grep-A35"name : 'isValidFragment'"
-S is mandatory: am start compares Intents with filterEquals(), which ignores extras, so
without it the second run is delivered to the first instance. [m]
attack
expect
probe
5 exported, 1 internal
control
PUBLIC-FRAGMENT-REACHED
pref-inject
ADMIN-FRAGMENT-REACHED + secret
pref-hardened
IllegalArgumentException, host crashes
pref-legacy
RuntimeException @ tsdk 35; injection @ tsdk 17
host-inject
ADMIN-FRAGMENT-REACHED
host-hardened
refused screen=...
host-deeplink
ADMIN-FRAGMENT-REACHED, no attacker install needed
Frida (scripts/fragment-trace.js — reviewed, unrun; see README §7.4)¶
Java.use('android.preference.PreferenceActivity').isValidFragment.implementation=function(n){varr;try{r=this.isValidFragment(n);}catch(e){console.log('THREW for '+n);throwe;}// base impl throws at tsdk >= 19console.log(n+' -> '+r);returnr;};Java.use('android.app.Fragment').instantiate.overload('android.content.Context','java.lang.String','android.os.Bundle').implementation=function(c,n,a){console.log('instantiate '+n);returnthis.instantiate(c,n,a);};
Hook the base class, not the app's subclass — it catches subclasses you have not found.
Injection + attacker-controlled args driving an auth flag
High
Prefix/suffix allowlist
Medium–High (enumerate the reachable set)
No override, targetSdk >= 19, exported
Low–Medium (crash on demand)
Reflective loader behind exported="false"
Informational
Exported host, all reachable Fragments harmless
Low
Caps: the attacker gets display, not exfiltration; only public no-arg-constructor Fragments
are reachable; server-side checks and user-auth-bound keys still hold.
Raises: browsable deep link; attacker-controlled arguments.
Corpus sweep, 241 APKs on a stock Android 15 image [m]¶
tier 1 (input -> loader, one method) 1 (this chapter's own victim app)
tier 2 (PreferenceActivity gate) 6
tier 3 (structural only) 38 NOT findings
no signal 196
classes*.dex 254 = 234 STORED + 20 DEFLATED