# Pre-registration

```
run_id:        2026-11-26-viallo-photo-vault-apps-tested
product:       viallo
tier:          standard
written_at:    2026-11-26T15:05:00Z (adversary folded in; frozen with run-index.mjs freeze)
```

Working files (corpus, tools, snapshots, APKs) live in
`~/Repositories/.in-progress/viallo-study-2/work/` (below: `W/`), because a hook refuses copying data
files into the skills folder. Paths `data/…` and `tools/…` below are relative to `W/`.

## 1. Question

When the same five test files (three phone photos, one screenshot, one video) are hidden in each of
twelve photo vault apps that Google Play's search shows first for "photo vault" and "hide photos",
ordered by download count, current version, on an Android 14 device, which apps leave a hidden file
readable (a) to someone holding the unlocked phone (gallery, gallery trash, the recent-apps picture, a
file manager), (b) over a cable or to another app in shared storage, (c) in the app's own external
folder, (d) only with root, or (e) as a thumbnail; which store the vault PIN in their own files; which
give back an identical file when it is un-hidden; and what is left after the app is uninstalled?

## 2. Method

### 2.1 Population and sample (fixed rule, nobody picks)

- Frame: Google Play web search, `hl=en_US&gl=US`, queries `photo vault` and `hide photos`, fetched
  once by `tools/frame.py`, saved as HTML. Candidates are the unique `details?id=` app ids in page
  order, the first 30 of each query. The frame is what Play's search ranking shows for two strings; it
  is not a census of all vault apps, and the article says so.
- Each candidate's Play detail page is saved; recorded: title, developer, download bucket,
  last-updated date, description head, and coded from the description: (i) does it claim encryption,
  (ii) does it say it moves/deletes originals or copies them.
- Inclusion: title or description says the app's main purpose is hiding, locking or encrypting photos
  and videos, and the download bucket is at least `1M+`. Exclusion rule written per candidate in
  `data/frame/frame.csv`: general app lockers, carrier or cloud backup apps, galleries whose hiding is a
  side feature.
- Order: download bucket descending, then first appearance across the two searches. Candidates are
  taken in that order until **12 apps** have been measured; every skip is recorded with its reason
  (no APK, signer not confirmed, needs an account, needs payment before a file can be hidden, refuses
  to run on the test device, detects the emulator). The published frame table shows measured and
  skipped apps, and which of the 18 apps of the 2017 study appear in it.
- Reference arm, not part of the 12: Files by Google "Safe folder" and Google Photos "Locked
  Folder", each measured the same way if it can be used without signing in, recorded as skipped
  otherwise.
- **Baseline device** (B-1, B-6, C-7): one fresh device with no vault, the five inputs pushed and
  scanned, opened once in the Files app, snapshot taken. Every file in it is platform-made and is
  subtracted from each app's results.

### 2.2 Getting each app (gate)

- APK from APKPure (`https://d.apkpure.net/b/APK/<pkg>?version=latest`, XAPK when only that exists),
  saved under `data/apks/`. Recorded: version name and code (`aapt2 dump badging`), SHA-256 of every
  APK file, signing certificate SHA-256 (`apksigner verify --print-certs`).
- **Signer gate:** the same certificate SHA-256 must be confirmed from a second independent source
  (APKMirror's page for the package, or the APK from a second mirror). An app whose signer cannot be
  confirmed is a skip with reason `signer not confirmed`. Claims name the build by package,
  versionCode, APK SHA-256 and signer, never just the app name.

### 2.3 Device

- Own emulator per session, `system-images;android-34;google_apis;arm64-v8a` (Android 14, no Play
  Store, `adb root` available), names `VS2_VAULT_A`, `VS2_VAULT_B`, `VS2_VAULT_R`, ports 5610, 5620,
  5630, started with `-tcpdump data/pcap/<app>.pcap`. Never another session's device.
- **Fresh device per app**: boot with `-wipe-data`, set screen lock PIN `1111`
  (`locksettings set-pin 1111`), push the five inputs to `/sdcard/DCIM/Camera/`, run the media scan
  (`content call --uri content://media --method scan_volume --arg external_primary`), confirm all
  five are in MediaStore.

### 2.4 Inputs

`data/corpus/corpus.json`, fixed before the first app, SHA-256 per file. P1, P2 (landscape) and P3
(portrait): the first matches of the Commons API query stored in `commons-query.json`, CC0 Google
Pixel 7 originals with GPS, no identifiable face (checked by looking). S1: a 1080x2400 PNG drawn by
script with seeded noise. V1: a 10-second 1920x1080 H.264 MP4 from ffmpeg's test pattern with a
location tag. Corpus gates, checked: pairwise dHash distance between images ≥ 25 (all above 20), no
shared 64-byte probe chunk between any two inputs, every input above 200 KiB.

### 2.5 Per app, in this order

1. Install, launch, take snapshot **B0**.
2. Set the vault up with PIN `583719` (pattern or password `583719` where no PIN is offered,
   recorded). Decline every optional account, sign-in, cloud backup and paid offer. Permissions:
   grant **photos and videos, "Allow all"**; grant all-files access only if the app cannot import
   without it, and record the grant. Any system dialog asking to delete or move originals to trash:
   **Allow**, and record the dialog text verbatim (A-4, B-1).
3. Import all five inputs through the app's own flow. Where the app asks whether to delete the
   originals, take its default; record default and choice, and which source folders its import screen
   offered (A-15).
4. **Verify the import (A-16):** open the vault, count the items it shows by name or by thumbnail,
   screenshot. If fewer than five are in the vault, every leak check below is `N/A` for the missing
   inputs, not `false`.
5. With the vault grid of hidden items on screen, press Home (not force-stop), so the system keeps
   its recent-apps picture (C-5). Then force-stop the app and take snapshot **S1**. Ten minutes later
   run the media scan again and take **S1b** (B-3); results are the union of S1 and S1b, and both are
   kept.
6. Un-hide (export, restore) P1 and V1 through the app's own flow; record where the file landed; take
   **S2**.
7. Uninstall with `adb uninstall <pkg>`. If it fails with a device-admin error, remove the admin
   (`dpm remove-active-admin`), record "resisted uninstall", and uninstall (A-6). Take **S3**.

A snapshot is `tools/snapshot.sh`: the MediaStore listing; SHA-256 of every file under
`/data/media/0`; SHA-256 of every file under the app's own folders; what the shell user (adb without
root) can list in the app-external folders (B-10); `dumpsys package` backup flags (C-6); and a root
`tar` of `/data/media/0`, `/data/data/<pkg>`, `/data/user_de/0/<pkg>`,
`/data/system_ce/0/snapshots` and `recent_images`. The snapshot fails (exit 3) when the tar holds
fewer files than `find` counts (A-8).

### 2.6 Analysis, one script for every app (`tools/analyze.py`, falsified in `falsify/RESULT.txt`)

Location of each pulled file: **shared** (under `/data/media/0`, outside `Android/`),
**app-external** (`Android/data|media/<pkg>`), **private** (`/data/data/<pkg>`, `/data/user_de/0/<pkg>`),
**recents** (system snapshots). For each file and input: **exact** (SHA-256 equal); **carved** (a
JPEG, PNG or MP4 found at any offset that decodes and whose dHash is within 10 bits of the input's;
the inputs' own EXIF thumbnails are excluded, A-3); **body** (≥ 4 of 16 probe chunks of 64 bytes at
10 % to 85 % of the input, beyond 64 KiB, found verbatim); **base64** (the file decodes as base64 to the
input or its body); **xor** (a repeating-key XOR of the input with a key up to 64 bytes); **thumb only**
(a carved match whose long side is under half the input's, in a file that is not otherwise readable).
A hidden input is **readable** at a location when any of exact, carved, body, base64 or xor holds.
Files that also appear in the baseline device are platform-made and reported apart (C-7).

The analyzer was falsified before freezing: planted plain, renamed, header-altered, embedded,
thumbnail, base64 and XOR copies were all found; an AES-256-CTR copy was not; a PIN hash was found and
an epoch value containing the digits was not.

| Check | Definition |
|---|---|
| K1 hidden from the gallery | at S1/S1b no MediaStore row in any state (normal, trashed, pending) points at a file exact for an input |
| K1b in the gallery trash | an input exact as `.trashed-*` or with `is_trashed=1`, and the system dialog text that caused it |
| K2 original left in place | an input exact at its original path at S1/S1b |
| K3 readable in shared storage | a vault-made file (not at the original path, not platform-made) readable in shared storage |
| K4 readable in app-external | readable there; reported twice, listable by the shell user or root only |
| K5 readable in private | readable there (root only) |
| K6 thumbnail only | a thumbnail of an input in any location, where the full file is not readable there |
| K7 PIN stored in its own files | `583719` as ASCII or UTF-16LE with non-digit boundaries, or its MD5, SHA-1, SHA-256 or SHA-512 (hex either case, base64, raw), in any pulled file |
| K8 round trip identical | at S2 exported P1 and V1 are exact; else size, pixel size and GPS recorded |
| K9 after uninstall | at S3: inputs readable / vault files left but not readable / nothing left; plus the backup flags |
| K10 recent-apps picture | the system's picture of the app at S1 shows hidden photos (judged by looking, Opus) |
| K11 left the device | bytes sent by the emulator during import (pcap) exceed half the input total (a possible upload) |

K3 to K6 are recorded separately for photos (P1 to P3, S1) and for the video (V1). Two summary scores
are reported and never averaged (C-12): **holding the unlocked phone** (K1, K1b, K2, K3, K10) and
**cable, other apps or root** (K4, K5, K6). The article states for each K whether the emulator stands
in for a phone (the table in ADVERSARY.md C-4).

### 2.7 Replication

- Re-execution (DeepSeek): the whole of 2.5 to 2.6 repeated on `VS2_VAULT_R` for every measured app.
  A check on which the two runs differ is published as "differed between two runs" with both values
  and both versionCodes (C-13).
- Independent derivation (Opus): a session given the question and the APKs, not this method, devises
  its own way of finding hidden files on the device for at least four apps (two from each end of the
  results) and its verdicts are compared.

### 2.8 Output

`data/measurements.jsonl` (one row per app × check × input group, protocol Rule 2 provenance),
`data/apps.csv`, `data/frame/frame.csv`, per app `notes/<app>.md` with every screen choice (button text
from `uiautomator dump`) and screenshots `data/screens/<app>/`. **Tarballs and app private files are
never published (C-9):** only derived rows, SHA-256 values and paths.

### 2.9 Discarded, and on what rule

Nothing measured is discarded. An app that cannot complete steps 2 to 4 is a skip with its reason and
the next candidate is taken.

## 3. Expectation

- K3 (readable in shared storage, vault-made): at most 3 of the 12 apps.
- K4 or K5 or K6 (readable in app-external or private, file or thumbnail): at least 4 of the 12.
- K7 (PIN in its own files): at least 2 of the 12.
- K8: a byte-identical round trip in at most half of the apps.
- K9: in most apps uninstalling leaves no readable copy, and in at least a third it leaves nothing.
- The video is readable (K3 to K5) in more apps than any single photo.

## 4. Falsifier

Each line of section 3 is evaluated against the counts and recorded `confirmed` or `refuted`. The
expectation as a whole is wrong if K3 holds for 4 or more apps, or K4|K5|K6 for 3 or fewer.

## 5. Abandonment condition

- Fewer than 6 apps of the frame can be installed and taken through import without an account or a
  payment: `NOT_MEASURABLE`.
- `adb root` unavailable on the test image, or the analyzer fails its falsification test:
  `METHOD_BROKEN`.

## 6. Estimate

- **What the run needs from the site owner:** nothing. APKs are public downloads, the device is an emulator
  on this Mac, the inputs are public-domain files, no account is created. Before production, not
  before beta: his decision whether to notify the named developers first (C-8, C-16); the run drafts
  the notices and sends nothing.
- Machine time: about 6 to 8 hours of agents.
- Money: 0 USD for data; DeepSeek a few US dollars; Opus judgement roles on this session's model.
- Claims expected in the ledger: type M (every K count, per app), type S (each app's own claim from its
  Play page; the 2017 and 2022 studies; Android documentation on trash and backup), type D (Search
  Console demand, context only).

## 7. Adversary dispositions

44 objections in `ADVERSARY.md`: 31 changed the method, 12 accepted as stated limitations, 1 rejected.

| Id | Disposition | What |
|---|---|---|
| A-1 | changed | S1 regenerated with texture to 6.1 MB; every input above 200 KiB is a corpus gate |
| A-2 | changed | corpus gate: pairwise dHash ≥ 25 measured, no shared probe chunk |
| A-3 | changed | inputs' own EXIF thumbnails excluded from carving; K6 is thumbnail-only |
| A-4 | changed | system delete/trash dialog: always Allow, text recorded |
| A-5 | changed | photos and videos permission: Allow all |
| A-6 | changed | device-admin removal pre-declared; "resisted uninstall" is a finding |
| A-7 | changed | K1 read from SHA-256 of every file, MediaStore parsed by anchored row; count compared |
| A-8 | changed | snapshot fails when tar count < find count |
| A-9 | accepted-as-limitation | segmented or transcoded video copies are found only by the body probes; the article says readable "as a file or its unchanged bytes" |
| A-10 | changed | base64 and repeating-key XOR detection added and falsified; the article never says "encrypted" for an app, only "not readable by these tests" |
| A-11 | changed | K1 counts rows in any state; K1b gallery trash split out |
| A-12 | changed | PIN digits need non-digit boundaries; falsified with an epoch value |
| A-13 | changed | K7 renamed "PIN stored in its own files"; the article says a PIN absent from files does not mean the content is encrypted |
| A-14 | accepted-as-limitation | app code is not reviewed; a key inside the APK is not detected |
| A-15 | accepted-as-limitation | inputs only in DCIM; the source folders each import screen offered are recorded |
| A-16 | changed | import verified by count; missing inputs are N/A |
| B-1 | changed | baseline device; K1b split; dialog text recorded |
| B-2 | changed | media permission first, all-files only if required, grant recorded and reported with K2 |
| B-3 | changed | second snapshot S1b ten minutes later after a rescan |
| B-4 | accepted-as-limitation | the sample is the free, no-account subset; frame table with skip reasons published |
| B-5 | changed | signer gate from a second source |
| B-6 | changed | baseline device subtracts platform-made files |
| B-7 | changed | Play-description claims coded (encrypts; moves or copies) and set beside the results |
| B-8 | accepted-as-limitation | emulator, not a phone; per-check table in the article; no physical Android 14 phone on this desk |
| B-9 | accepted-as-limitation | taps not scripted by selector; both sessions' notes are diffed and disagreements published |
| B-10 | changed | app-external listed by the shell user as well as root |
| B-11 | changed | emulator pcap; K11 bytes sent during import |
| C-1 | changed | results placed by access state; two scores never averaged |
| C-2 | changed | question names app-external storage |
| C-3 | accepted-as-limitation | a developer-enabled emulator, said in one sentence in the article |
| C-4 | accepted-as-limitation | per-check stand-in table published |
| C-5 | changed | recent-apps picture pulled and judged (K10) |
| C-6 | changed | backup flags recorded; a cloud copy is reported unknown |
| C-7 | changed | platform behaviour reported apart from app behaviour; headline only from app-caused checks |
| C-8 | accepted-as-limitation | no notice is sent by the run; notices drafted for the site owner; production waits for his decision |
| C-9 | changed | no tarballs or app private files published |
| C-10 | changed | no identifiable face, checked by looking at P1 to P3 |
| C-11 | accepted-as-limitation | the 2017 and 2022 tables are not comparable with this one; said in the article with which techniques each can detect |
| C-12 | changed | two separate scores |
| C-13 | changed | disagreement rule pre-registered |
| C-14 | changed | question and frame worded as Play's search ranking, not "most downloaded" |
| C-15 | accepted-as-limitation | the emulator shares the Mac's network; only signer-confirmed APKs are installed |
| C-16 | accepted-as-limitation | wording describes what was observed on one build; legal read and developer notice are the site owner's call before production |
| C-17 | rejected | the APK is the developer's own signed file; the signer gate confirms it, so "not the build" is answered by the signer, and the claim names the build |

## 8. Amendments

Amendments after the freeze are appended to `AMENDMENTS.md` in this directory, because
`run-index.mjs check-frozen` compares this file's hash.


---
Published copy: the site owner's first name was replaced by "the site owner" in three places; the frozen original is otherwise identical, and its SHA-256 at freezing was 00eb4e3f291fa27168f4066407356b79f2d2042187d5e58a489b6d8aba4b56b9.
