docs: record how the MIUI test phone behaves for installs and the 1.1.2 smoke test

The sideloaded release APK needs a confirmation tap on the phone: without one,
adb reports INSTALL_FAILED_USER_RESTRICTED: Install canceled by user even though
the transfer succeeded, so the install step has to be retried rather than
diagnosed as a signing or manifest problem. Also note that adb shell input, pm
grant and uiautomator dump did work in that session (try them, then fall back to
the debug broadcast hooks), and that API 31 grants READ_EXTERNAL_STORAGE because
READ_MEDIA_IMAGES only exists from API 33.

Release checklist: tick the minified-launch gate with what was verified on the
phone for 1.1.2, and record the smoke test - cold scan, three cancel paths, no
ForegroundServiceDidNotStartInTimeException - plus the one thing that was
deliberately not exercised (deleting real photos).
This commit is contained in:
2026-11-09 00:43:11 +01:00
parent c634a247a3
commit 2081cd1747
2 changed files with 35 additions and 3 deletions
+13 -2
View File
@@ -374,8 +374,19 @@ Do **not**:
- The machine may expose no `/dev/kvm`; AOSP AVDs run in software emulation. That is
fine for layout checks, but they have no Play services, so ads and Billing cannot
be exercised there.
- The real device used for earlier screenshots is MIUI, which denies `adb shell
input`; the debug broadcast hooks exist for that reason.
- The real device used for earlier screenshots is MIUI (Xiaomi M2101K7AG, Android 12 /
API 31). Observations from 2026-11-09, all worth keeping in mind:
- **`adb install` needs a tap on the phone.** MIUI asks for confirmation for a
sideloaded APK; if nobody taps it, the client reports
`Failure [INSTALL_FAILED_USER_RESTRICTED: Install canceled by user]` even though
the transfer itself worked. Just run the install again and confirm on the device.
This applies to the minified release APK, which is not debuggable.
- `adb shell input tap`, `pm grant` and `uiautomator dump` *did* work in that
session, so try them before falling back to the debug broadcast hooks in
`src/debug/`; earlier sessions had `input`/`pm grant` refused, so treat both as
"attempt, then fall back" rather than as guaranteed either way.
- On API 31 grant `READ_EXTERNAL_STORAGE`; `READ_MEDIA_IMAGES` only exists from
API 33, so `pm grant … READ_MEDIA_IMAGES` fails with "Unknown permission" there.
- `local.properties` is machine-specific and git-ignored. Use
`local.properties.example` as the template.
- Release builds are signed only when `keystore.properties` exists; otherwise they