Compare commits

..

1 Commits

Author SHA1 Message Date
SoftwareApp 2081cd1747 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).
2026-11-09 00:43:11 +01:00
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 - 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 fine for layout checks, but they have no Play services, so ads and Billing cannot
be exercised there. be exercised there.
- The real device used for earlier screenshots is MIUI, which denies `adb shell - The real device used for earlier screenshots is MIUI (Xiaomi M2101K7AG, Android 12 /
input`; the debug broadcast hooks exist for that reason. 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` is machine-specific and git-ignored. Use
`local.properties.example` as the template. `local.properties.example` as the template.
- Release builds are signed only when `keystore.properties` exists; otherwise they - Release builds are signed only when `keystore.properties` exists; otherwise they
+22 -1
View File
@@ -71,10 +71,18 @@ the rest are things you must do in the Play Console / with your own accounts.
`versionCode=7 versionName=1.1.2 targetSdk=36`; the merged release manifest `versionCode=7 versionName=1.1.2 targetSdk=36`; the merged release manifest
contains no AdMob test id. Rebuild and re-measure after any code, id or cutoff contains no AdMob test id. Rebuild and re-measure after any code, id or cutoff
change. change.
- [ ] **Launch the minified build before uploading.** Do not rely on - [x] **Launch the minified build before uploading.** Do not rely on
`assembleDebug`/unit tests: they do not run R8. Install the release APK on a `assembleDebug`/unit tests: they do not run R8. Install the release APK on a
real device (or a temporarily minified debug build side by side) and confirm it real device (or a temporarily minified debug build side by side) and confirm it
gets past the splash screen to the scanner/UMP consent. See `AGENTS.md` §9. gets past the splash screen to the scanner/UMP consent. See `AGENTS.md` §9.
✅ Done for **1.1.2 / versionCode 7** on 2026-11-09 (Xiaomi M2101K7AG, Android 12 /
API 31): the signed release APK starts past
`androidx.startup.InitializationProvider`, renders the UMP form, scans and cancels
without a crash. Two MIUI details: it asks for a **confirmation tap** on the phone
for a sideloaded APK (otherwise adb reports
`INSTALL_FAILED_USER_RESTRICTED: Install canceled by user` — just rerun it and
confirm), and the **Play-signed copy has to be uninstalled first**, because the
upload key cannot update it.
- [ ] Upload the **`.aab`** (not the APK) to the Play Console. - [ ] Upload the **`.aab`** (not the APK) to the Play Console.
⚠️ **Expect a native-debug-symbols warning here, and ignore it.** Play scans the bundle, finds ⚠️ **Expect a native-debug-symbols warning here, and ignore it.** Play scans the bundle, finds
`base/lib/<abi>/libandroidx.graphics.path.so`, and reports *"This App Bundle contains native `base/lib/<abi>/libandroidx.graphics.path.so`, and reports *"This App Bundle contains native
@@ -555,6 +563,19 @@ action except the items marked **[code]**.
still **19 groups / 47 photos / 40.1 MB**. Buy Pro still reports “purchases still **19 groups / 47 photos / 40.1 MB**. Buy Pro still reports “purchases
unavailable” because this debug build was sideloaded and `pro_no_ads` is not active unavailable” because this debug build was sideloaded and `pro_no_ads` is not active
on the internal track yet; that is the expected gate, not a crash. on the internal track yet; that is the expected gate, not a crash.
- [x] **1.1.2 foreground-service fix on the real phone** (Xiaomi M2101K7AG, Android 12 /
API 31; minified release APK *and* debug build): cold scan **5,379 photos → 19 groups
/ 47 photos / 40.1 MB in 16.3 s** (signatures 1.6 s · exact 32 ms · similar 14.2 s,
cut fitted to ≤ 10 bits, 5 unreadable); warm debug scans 2.1 s / 1.8 s. **Cancel** was
exercised three ways — the in-app button mid-scan, the notification's CANCEL action,
and a scan that finished inside the old `stopService()` window — and every time the
process kept its pid, `ScanService` stopped **itself**, and logcat had **no**
`ForegroundServiceDidNotStartInTimeException`, `RemoteServiceException` or `FATAL
EXCEPTION`. The banner request reached AdMob and returned **No fill**, which is
expected while the ad-serving review is pending (see the review note in
[MONETIZATION](MONETIZATION.md) § 2, step 6). Not exercised: the delete flow,
because that would remove real photos from the device — tap through it manually
once.
- [ ] Verify no crashes in *Play Console > Quality > Android vitals* after rollout. - [ ] Verify no crashes in *Play Console > Quality > Android vitals* after rollout.
## 7. Release notes ("What's new") and rollout ## 7. Release notes ("What's new") and rollout