# Adversary report

Written before measurement, against the pre-registration pasted in the brief (question, method,
sample). Nothing was measured, no result was seen or requested, and no file from the run directory
other than the brief was read.

Each item has an id, the objection in one sentence, the concrete failure it produces, and the
smallest change to the method that removes it.

## 1. What input would make the conclusion false

**A-1. The screenshot can be too small to test.**
The `body` test needs 4 of 16 probe chunks that all sit beyond the first 64 KiB, and a 1080x2400 PNG
of a smooth gradient plus text compresses to roughly 30 to 90 KB, so most probe offsets land inside
the first 64 KiB and none of them is valid.
*Failure:* S1 has zero usable probes, the body test is vacuous for it, and an app that stores the PNG
behind a 16-byte wrapper is scored "not readable" although the bytes are intact.
*Smallest change:* measure the PNG before `corpus.json` is frozen and regenerate it with texture
until it is over 200 KiB, or make the probe offsets a fraction of the actual file length with a 1 KiB
floor and mark the body test N/A when fewer than 8 probes are valid.

**A-2. The three photos can be visually close enough to cross-match.**
`dHash within 10 bits` compares a 64-bit hash at 15 percent distance, which two landscape photos can
meet, and the corpus rule ("first three matches of a stated API query") does not check similarity.
*Failure:* a carved or thumbnailed P2 is credited to P1 (or the body chunks of two near-duplicates
overlap), so an app is reported readable for a file it never stored.
*Smallest change:* add a corpus gate: pairwise dHash distance above 20 and zero shared 64-byte probe
chunks across P1, P2, P3.

**A-3. The input carries its own thumbnail.**
Camera JPEGs from Wikimedia usually embed an EXIF thumbnail, and K6 asks for "a thumbnail of any
input in any location", so the input's own embedded thumbnail satisfies K6.
*Failure:* any app that leaves the original readable anywhere (K2 or K3) is also scored as leaving a
readable thumbnail, and the article reports a thumbnail leak the app did not create.
*Smallest change:* hash the embedded EXIF thumbnail of each input at corpus freeze and exclude that
hash from K6, or strip EXIF thumbnails from P1 to P3 and record the pre-strip SHA.

**A-4. The tap on the system delete dialog decides K2 and has no rule.**
Inputs are pushed by adb, so they are owned by the `shell` uid, not by a camera, and on Android 11+
an app cannot unlink a file it does not own without a system consent intent (unless it holds all-files
access), so the dialog appears in almost every run and the agent chooses Allow or Don't allow ad hoc.
*Failure:* K2 flips between two apps that behave identically, and the choice is invisible in the
published table.
*Smallest change:* define one rule for the system dialog (always allow, recorded as "the app used the
system delete path"), state it beside K2, and create the inputs through MediaStore under one fixed
owner if comparability with a phone camera matters.

**A-5. Android 14 offers partial media access and the method has no rule for it.**
The Android 14 permission dialog offers "Select photos and videos" (`READ_MEDIA_VISUAL_USER_SELECTED`)
as well as "Allow all", and a partial grant gives the app only the files the agent picked.
*Failure:* one app imports all five inputs and another imports a subset or re-prompts, so K1 to K5
are measured on different effective inputs.
*Smallest change:* fix the grant to Allow all (Select all under partial access) in step 2, record the
grant string, and treat a partial grant as its own condition rather than as the app's normal path.

**A-6. An app with a device admin cannot be uninstalled.**
Vault apps routinely register a DeviceAdmin to resist removal, and `adb uninstall` then returns
`DELETE_FAILED_DEVICE_POLICY_MANAGER`, so step 6 never happens.
*Failure:* the app is either skipped (funnel bias toward the apps without uninstall protection) or
S3 is missing for the one class of app that is hardest to remove.
*Smallest change:* pre-declare `adb shell dpm remove-active-admin <pkg>/.<Receiver>` as part of step
6 and record whether it was needed; report "resisted uninstall" as a finding, not a skip.

**A-7. A file name breaks the MediaStore parser quietly.**
`adb shell content query` prints records as `Row: N key=value, key=value`, and a display name
containing a comma, an `=` or a newline splits or truncates the record.
*Failure:* a row disappears instead of raising, so a vault file present on disk never reaches K1 or
K3, and no error is logged.
*Smallest change:* parse with an anchored `Row: \d+` regex and assert the parsed row count equals the
file count from `find` for the same directory, failing the run on a mismatch.

**A-8. The tarball can skip long paths without failing.**
Android ships toybox `tar`, which may truncate or skip entries whose path exceeds the ustar limit and
still exit 0 with a warning on stderr.
*Failure:* every file under a deep app path is absent from the snapshot and `analyze.py` reports
"nothing readable" for an app that stored everything there.
*Smallest change:* compare `tar -t` entry count with `find | wc -l` for each archived root and abort
the snapshot on a mismatch.

**A-9. A video that is segmented or transcoded is not carved.**
The video detector looks for an `ftyp` box and decodes the whole stream, so HLS segments, a
re-encoded low-resolution copy, or a video split into encrypted chunks fails all three tests.
*Failure:* an app that stores a playable, viewable copy of V1 is scored "not readable".
*Smallest change:* add a segment detector (`ftyp`, `moof` or MPEG-TS sync bytes at any offset, decode
any resulting fragment) or narrow the claim to "readable as a single MP4".

**A-10. Obfuscation that is one line of Python away reads as protection.**
The falsification test plants AES-CTR, which destroys every signature and probe chunk, but base64,
gzip and a repeating-key XOR destroy them too, so the method calls them unreadable.
*Failure:* an app that base64-encodes a photo, or XORs it with a four-byte key, is reported as
protecting its files; the 2017 study's prefixing and header zeroing happen to be caught only because
`body` was written to catch them.
*Smallest change:* plant a base64 copy and a repeating-key XOR copy as additional falsification
inputs, and state in the pre-registration whether those count as readable; if they do not, the word
"encrypted" must never appear beside that app.

**A-11. "Hidden from the gallery" is true for a file the gallery would show.**
K1 only looks for rows with `is_trashed=0`, so a file renamed `.pending-<expiry>-<name>` or sitting in
a `.nomedia` folder has no such row and passes, while Google Photos' Trash album shows a trashed photo
for 30 days.
*Failure:* the same app can be reported "hidden from the gallery: yes" and "original left behind: yes",
and the article prints the first.
*Smallest change:* define K1 against the user-visible result (no row in any state, no file a gallery
browse displays, `.nomedia` and pending files named as causes) and add a separate "recoverable from
the gallery's Trash" row.

**A-12. The PIN search can match a longer number.**
K7 searches for `583719` as a raw substring, so `1765837190` (an epoch value) or any id containing
those six digits matches.
*Failure:* one false "PIN recoverable" per app with a large text or JSON cache, which is the single
most damaging kind of false positive in the table.
*Smallest change:* require a non-digit boundary on both sides for the ASCII and UTF-16LE forms.

**A-13. The PIN can be absent from the files and still not protect anything.**
Many vaults keep the media key in the Android Keystore and use the PIN only as a UI gate, and some
offer a reset that keeps the data, so no literal PIN ever reaches a file while the vault opens to
anyone holding the unlocked phone.
*Failure:* K7 prints "not recoverable" for the app whose lock is the weakest, and the article reads it
as the most secure.
*Smallest change:* add a check for whether the vault content is reachable after a wrong PIN (and
whether the media decrypt from the data tarball plus the APK alone), and rename K7 to "PIN stored in
its own files", which is what it measures.

**A-14. A key in the code is invisible because the APK is never pulled.**
The 2017 study's recurring finding is a static key, an MD5 of the PIN, or a key stored beside the
ciphertext, and this method never runs `pm path`, never pulls the installed APK and inspects no code.
*Failure:* an app whose vault is opened by a key in its own APK is scored "not readable in private"
on the strength of the data copy alone.
*Smallest change:* pull the installed APK at S1 and add one check, "key material present in the APK or
beside the ciphertext", even if it is only a string scan for known key shapes and a note that the
code itself was not reviewed.

**A-15. Every input sits in the one folder that needs no special access.**
All five files are pushed to `/sdcard/DCIM/Camera/`, the path a media permission covers completely,
while a photo in `Download/` or `Pictures/WhatsApp/` goes through SAF and a different code path and is
the path most users actually hide from.
*Failure:* an app that imports only from DCIM is measured as working and an app that opens a picker
for Downloads is measured as failing, so the sample cannot say whether the vault works where people
use it.
*Smallest change:* add one input in `/sdcard/Download/`, or record per app which source folders its
import screen offered and treat "DCIM only" as a finding.

**A-16. Nothing checks that the files are in the vault before the leak checks run.**
An app that silently drops the MP4, imports three of five, or moves files into a vault that never
commits them scores K1 true (nothing to show), K3 to K6 false (nothing stored), and reads as the
cleanest app in the table.
*Failure:* the best result is produced by an app that did not hide anything, and no field in
`measurements.jsonl` distinguishes "hid it well" from "did not hide it".
*Smallest change:* after step 3 open the vault, count the five items by name and size, and make every
downstream K N/A rather than false when the count is below five.

## 2. Confounds that explain the same observation equally well

**B-1. The platform's trash produces K2 without any app defect.**
Android 11+ offers two system paths, `createDeleteRequest` (permanent) and `createTrashRequest` (the
file is renamed `.trashed-<expiry>-<original name>`, kept 30 days, and still shown in the gallery's
Trash), and whenever an app takes the second, the retention, the readable name and the gallery
visibility are the platform's, not the vault's.
*Test that separates them:* on a fresh device with no vault installed, trash one input through the
system flow and record that it is readable at S1; log which request each app used (the dialog text or
MediaProvider's logcat lines) and report K2 as "app kept a copy" and "app used the system trash"
separately.
*Smallest change:* the baseline column above, computed once, and the K2 split.

**B-2. The permission tier decides whether the system path is used at all.**
With MANAGE_EXTERNAL_STORAGE an app can unlink a file it does not own directly and leaves nothing in
DCIM, while with media permissions only every removal goes through a consent intent whose result
depends on the request the app sends, and the method lets each app take whichever permission it
insists on.
*Test that separates them:* run one app twice on two fresh devices, once granting all-files access and
once refusing it, and report K2 per tier.
*Smallest change:* grant media-only to every app, record refusals as refusals, and report K2
stratified by granted permission.

**B-3. The snapshot can be taken before the system has finished.**
MediaStore indexing, thumbnail generation and the app's own deferred cleanup (WorkManager, next
launch) run after import, and the method snapshots once, immediately.
*Test that separates them:* repeat the S snapshot 15 minutes later and again after
`content call --method scan_volume`, and report the union of the three.
*Smallest change:* a second and third snapshot, with the earliest and latest results listed side by
side.

**B-4. The skip rule removes exactly the apps with the budget to encrypt.**
"Needs an account, needs payment" systematically excludes the subscription vaults, the ones with a
security team, and leaves the free ad-supported tail of the frame, which is also the group the 2017
study found wanting.
*Test that separates them:* record the Play claim of every skipped candidate and publish the frame
composition (12 measured, N skipped for account, M for payment); test one account-gated app in a
throwaway profile if the claim is meant to cover the frame.
*Smallest change:* the frame table with skip reasons, plus one sentence in the article that the measured
set is the free, no-account subset.

**B-5. The APKPure build is not necessarily the Play build.**
APKPure serves its own uploads, which can be an older version, a different split set, or a repack,
and in May 2026 it distributed a Telegram build whose signing certificate did not match the official
one.
*Test that separates them:* compare the APK signer SHA-256 with the developer's published certificate
where one exists and the versionCode with the Play page's current version on the day of the run.
*Smallest change:* a hard gate in `data/apks/`: no install without a recorded signer and a recorded
comparison, and a re-check of the Play page on the day of publication.

**B-6. The system writes the leak, not the app.**
Thumbnail caches are made by MediaProvider, the last screen is kept by SystemUI, backups go to Drive,
and the trash is the platform's, and the method's inventory does not separate "the app wrote this"
from "the system wrote this about the app".
*Test that separates them:* a baseline device that only views the inputs in a gallery and imports
nothing, with its file set subtracted from every app's S1.
*Smallest change:* the baseline device, one run, all its files entered in the table as "platform".

**B-7. Duplicating the file is documented behavior, not a leak.**
Several vaults copy rather than move on import and say so, and the phrase "leaves a readable copy"
reads as a defect.
*Test that separates them:* code each app's claim from its Play description and its import screen as
"moves or deletes originals" versus "copies", then cross-tabulate K2 and K3 against the claim.
*Smallest change:* the claim column and the cross-tabulation, which also produces the article's real
story (claim against behavior).

**B-8. The emulator is a different device.**
It has no StrongBox, no real TEE, no gallery app, no Play Store, no account, no SD card, and
`ro.kernel.qemu=1`, and apps that bind a key to hardware or check attestation take a different code
path or refuse to run.
*Test that separates them:* run one app at each end of the K ranking on one physical Android 14 phone
and compare K3 and K5.
*Smallest change:* one physical-device pair, reported as a validity check on the emulator's ordering.

**B-9. The agent's taps decide the outcome and differ between the two sessions.**
Onboarding offers "skip", "later", "upgrade", "restore" and "set up now", and two observers will pick
differently, so a disagreement between session A and session B is not a replication result.
*Test that separates them:* freeze a tap script by resource id or text selector, diff the two `notes/`
files, and count only checks whose tap sequence is identical in both.
*Smallest change:* the frozen selector script and the diff, published with the two runs.

**B-10. "Readable without root" is collected with root.**
The snapshot tars `/sdcard/Android/data/<pkg>`, `/sdcard/Android/media/<pkg>` and `/data/data/<pkg>`
as root, so K4 cannot answer the question's "without root", and plain adb access to that path is
reported to differ between Android builds.
*Test that separates them:* collect both views (root tar, and `adb shell tar -c` without root) and
report K4 as two values.
*Smallest change:* the second collection, and the K4 definition split into `shell` and `root`.

**B-11. A cloud-backed vault leaves the phone in plaintext.**
No step captures network traffic, so an app that encrypts at rest and uploads the decrypted photo at
import is measured as a local vault.
*Test that separates them:* one capture during step 3 per app (mitmproxy with the CA pushed to the
user store, possible with root) or, at minimum, bytes-out under the app's UID from `tcpdump` on the
emulator for the import window.
*Smallest change:* the capture, reported as a yes/no column "any input byte left the device".

## 3. What the author is not thinking of

### 3.1 The threat model, which decides what every number means

**C-1. The method measures a device state that no attacker has, and publishes sentences about states it never tested.**
Snapshots are taken with USB debugging on, `adb root`, the phone unlocked, and the screen lock known,
while the question in the article will be read as "what can someone who picks up my phone see".
*Failure:* a reader with a cable and a locked phone sees nothing, because MTP needs the device
unlocked and shows no `.trashed-` or `.nomedia` files; the published "readable by a computer" then
reads as false and takes the rest of the table with it.
*Smallest change:* one matrix of access states (locked plus cable, unlocked plus a file manager with
all-files access, unlocked plus adb, root), with every K placed in one cell and no K reported outside
its cell.

**C-2. The question's three buckets have no place for app-external storage, which is where Android puts an app's own files by default.**
K4 exists and collects readable files in `/sdcard/Android/data|media/<pkg>`, but the question names
only shared storage, root-only storage and thumbnails, so K4 maps to none of the three answers.
*Failure:* the article either drops K4 (and with it the most common vault location) or folds it into
"shared", which is false for a file manager and true for adb.
*Smallest change:* add the fourth bucket to the question in the pre-registration and name its access
path in the same sentence.

**C-3. As worded, the question cannot be answered by any snapshot design, and the honest statement belongs in the article.**
"Can a computer or a file-manager app read it without root" is a property of an access path, not of a
file, and a single file inventory with one fixed path cannot yield it.
*Failure:* the run produces a table and the article writes a sentence the table does not support, in
whichever direction the writer prefers.
*Smallest change:* keep the file inventory, add the per-path matrix from C-1, and state in the
article, in one sentence, that the measurement describes a developer-enabled device and that a locked
retail phone shows a different subset.

### 3.2 The emulator against a phone, check by check

**C-4. The emulator stands in for a phone for about half the checks, and the half where it does not is the half the article is about.**

| Check | Stands in for a phone | What differs |
|---|---|---|
| K1 hidden from the gallery | No | The image ships no gallery app (DocumentsUI is a file browser), so only MediaStore can be seen, not what a gallery displays |
| K2 original left behind | Yes | MediaProvider and FUSE are the same AOSP code |
| K3 readable in shared storage | Yes | Same volume layout |
| K4 readable in app-external | Partly | adb access to `Android/data` is reported to differ by build, and the snapshot uses root anyway (B-10) |
| K5 readable in private | Yes | `/data/data` as root behaves as on a rooted phone |
| K6 readable thumbnail | No | The gallery's and MediaProvider's thumbnail caches are never pulled, only the app's own directories |
| K7 PIN recoverable | Partly | No StrongBox and no real TEE, so an app that binds the PIN to hardware keys falls back or fails and may store it differently |
| K8 round trip identical | Yes | No transcoding is introduced by the platform |
| K9 after uninstall | Partly | Uninstall cleanup is the same, but Auto Backup and device transfer are never exercised (C-6) |
| Device identity | No | `ro.kernel.qemu=1`, no Play Store, no account, no SD card, failing Play Integrity attestation |

*Failure:* an app that detects an emulator, or that needs the Play Store to finish setup, takes a
different path or is skipped, and the table cannot say which of the two happened.
*Smallest change:* record the emulator-detection signals found per app, and run one app at each end of
the ranking on a physical Android 14 phone as an ordering check.

### 3.3 What gets published, and to whom

**C-5. The method never looks at the one screen the phone keeps for you.**
SystemUI stores a screenshot of the last screen of each app in `/data/system_ce/0/snapshots/`, and for
a vault that is the grid of the hidden photos; it survives the force-stop that S1 records.
*Failure:* an app is scored clean while its hidden photos sit as a picture in the recents switcher,
which is the leak a user is most likely to suffer.
*Smallest change:* pull `/data/system_ce/0/snapshots/` at S1 and S3 and dHash against the input
thumbnails.

**C-6. "Nothing left after uninstall" is false at the account level.**
Auto Backup is on by default, copies app data (SharedPreferences, databases, internal files, up to 25
MB) to the user's Drive, and restores it before first launch after a reinstall, and `allowBackup=false`
alone does not stop device-to-device transfer on Android 12+.
*Failure:* K9 reports "nothing left" for an app whose vault data, PIN state included, is in the cloud
and comes back on reinstall.
*Smallest change:* `dumpsys package <pkg>` for `allowBackup` and data extraction rules, plus a K9 row
"cloud copy exists" marked unknown where the run cannot check Drive.

**C-7. The most quotable number in the article is Android's, not the app's.**
K2 (trash), K6 (thumbnail caches), K9 (uninstall cleanup) and the backup row are platform behavior,
and naming an app for them is both the main defamation exposure and the main credibility risk.
*Failure:* a developer replies "that is the OS, not my app", which is correct, and the finding dies in
public.
*Smallest change:* one baseline column per platform behavior computed once without a vault, and one
sentence per K naming who caused it; the headline is built only from app-caused K.

**C-8. There is no disclosure step.**
The run names commercial apps, some of them one-person shops, with a defect list, and publishes
without notifying them or waiting, while the EU rules on comparative advertising set conditions that
include verifiability and a comparison of like with like, and one run on one emulator meets neither.
*Failure:* a wrong or platform-caused finding is published against a named business, and the correct
remedy is a retraction, which costs the article its subject.
*Smallest change:* a 30-day notice per app through its Play-listed developer email, the date of notice
published, the reply published, and every claim pinned to package, versionCode and APK SHA-256.

**C-9. The raw snapshots contain the developers' secrets.**
`data/snap/<app>/<S>/` holds each app's `/data/data` tarball, which contains its own API keys, ad SDK
ids and possibly third-party identifiers, and "nothing measured is discarded" plus a repository would
publish them.
*Failure:* the article about other people's data handling leaks someone else's credentials, and the
per-app "PIN recoverable" path is a map for the weakest apps.
*Smallest change:* publish only the derived K rows and SHA-256 values; keep tarballs off the public
tree; give the per-app detail to that developer alone.

**C-10. The test images can carry a stranger's face, and the method does not exclude one.**
The corpus rule takes the first three matches of an API query under CC0, and a CC0 photo of an
identifiable person is lawful to publish but the article attaches it to "this app leaks it".
*Failure:* a private individual's photo becomes the illustration of a security failure they never
consented to.
*Smallest change:* add "no identifiable face" to the corpus query rule and check each chosen image
before freezing the corpus.

**C-11. The 2017 and 2022 studies measured something this method cannot.**
Those studies decompiled apps and recovered PINs and keys from code (AppLock's plaintext password and
its `/sdcard/.MySecurityData/dont_remove/` folder, Vaulty's "obscured" prefix, GalleryVault's zeroed
first ten bytes, the 2022 study's extracted calculator-vault PIN), while this method reads data files
only.
*Failure:* a 2026 table beside a 2017 table reads as improvement when the difference is the method,
and a hard-coded key counts as encryption here.
*Smallest change:* one column per app with the technique the old study used and whether this method
can detect it (prefix and header zeroing: yes, via `body`; static keys, XOR and base64: no), and a
sentence that the two tables are not comparable.

**C-12. The reader's question and the paper's question are different.**
A user wants to know whether a partner holding their unlocked phone can find the hidden photos, which
is K1, K6 and the recents snapshot, while the ranking will be led by K5 (root) and K3 (a dot folder on
`/sdcard`) and will tell that user nothing about their risk.
*Failure:* the article is read, the reader changes nothing, and the strongest finding is about a
device state they will never be in.
*Smallest change:* two scores, "visible to someone holding your unlocked phone" (K1, K6, recents) and
"forensic" (K3 to K5), published separately and never averaged.

**C-13. Two sessions are not a replication when the app changes between them.**
Onboarding and ad experiments mean the same app shows different first-run screens, and the versions
in the Play listing can change during a 6-hour run, while the method has no rule for a disagreement.
*Failure:* the second run contradicts the first on a K and there is no pre-registered way to publish
it, so one of the two is chosen after seeing both.
*Smallest change:* pre-register that any K on which the two runs differ is published as "unstable in
2 of 2 runs", with both values and both versionCodes.

**C-14. "The most-downloaded photo vault apps on Google Play" is not what the frame measures.**
The frame is Play's relevance ranking for two query strings, capped at 30, on an arm64 emulator that
refuses an app without 64-bit libraries and, on Android 14, refuses an app targeting below API 23, and
download counts are never ranked across the population.
*Failure:* an app with 100M+ installs that does not surface for these two strings, or that ships
armeabi-v7a only, is absent, and the article's first sentence is unsupported.
*Smallest change:* retitle the frame to what it is, add a column for the 2017 study's 18 apps showing
which of them the frame returned, and say in the article's own words that download counts order the
frame but were never measured across the population.

**C-15. The run loads unknown APKs onto the Mac's network.**
The emulator's user-mode NAT gives the guest outbound access through the host, and a third-party mirror
has shipped a backdoored app whose certificate did not match the official one, so a repack can scan
the LAN as the Mac.
*Failure:* the research machine is exposed to whatever the least trustworthy app in the frame does,
and the method records the certificate without gating on it.
*Smallest change:* refuse to install any APK whose signer does not match the developer's published
certificate, and run the emulator with the host network restricted (a firewall rule, not
`-netdelay`).

### 3.4 Legal exposure of naming apps

**C-16. Naming a business with a security verdict opens four separate doors, and the method closes none of them.**
A published claim that a named app "leaves a readable copy" is a statement of fact about a business,
which a developer can answer as defamation if it is wrong, or as unfair comparative advertising if it
is true but unrepresentative; examining the app's data and code also sits near the software
directive's narrow observation exception, and the developer never licensed this use.
*Failure:* one wrong row (a trash artifact, a thumbnail the system made, a repacked APK) turns the
article into a legal letter, and the honest fix is to withdraw the row after publication.
*Smallest change:* a legal read before publication, wording that describes only what was observed on
one build ("in version X on Android 14, file Y was present at Z") rather than intent or a general
verdict, and an offer to correct against the developer's reply.

**C-17. The app that is named may not be the build that was tested.**
The APK comes from a mirror that redistributes the developer's file without the developer's consent,
and the Play listing is the only thing the article's first sentence can honestly refer to.
*Failure:* a developer shows that the tested build is not the one on Play, or that it was never
distributed by them, and every finding about that app is void at once.
*Smallest change:* claim only "the APK with this SHA-256, downloaded from APKPure on this date, whose
signer is this", and use the Play page for the claim the app makes about itself, never for the build.
