feat: polish Pakkit and strengthen release readiness

- Improve Wear splash, ongoing status, and progress focus
- Refine browser accessibility and connection recovery
- Add offline privacy and open-source notices
- Harden installation approval and storage error handling
- Expand emulator coverage and release artifact checks
- Document Play publication gates and hardware validation
This commit is contained in:
Meghdad committed 2026-10-15 23:25:36 +03:30
1 parent 6e41db2a74
commit 17f0609a3a
34 files changed
+1027 -111

No files matched your search

+18 -12
View File
@@ -15,30 +15,36 @@ See DEVELOPMENT.md for the commands and environment setup. Results are generated
| Android-to-Wear transfer | Chrome on Android Emulator -> actual Wi-Fi HTTP listener on Wear OS Emulator -> verified signed APK waiting for watch review |
| Release | Clean debug/test/release builds, Android lint, dependency and merged-manifest inspection, fixture exclusion from consumer artifacts |
The install-consent test calls the same ApkInstaller used by the explicit watch action, waits for Android’s STATUS_PENDING_USER_ACTION and abandons the test session afterward. It does not grant permission or install through a shell command. Tests that require source approval use the emulator’s normal system setting; skipped assumptions are reported as incomplete validation by the test runner.
One install-consent test waits for Android’s STATUS_PENDING_USER_ACTION and abandons the session. A separate full-journey test taps the actual watch action and system confirmation through the UI. Neither grants source trust or installs through a shell command. Tests that require source approval use the emulator’s normal system setting; skipped assumptions are reported as incomplete validation by the test runner.
Browser UI fixtures exercise interactions independently; the separate Android Emulator test proves that the actual browser/XHR path reaches the actual watch listener. These are not substituted for one another. The receiving protocol continues to have no browser-triggered installation endpoint.
## Latest completed run
Receiving simplification validation date: October 15, 2026. No physical device was accessed.
Final product review: October 15, 2026. No physical device was accessed. Evidence is generated under `app/build/reports/validation` and `app/build/test-results`.
- **27 JVM tests passed**, with zero failures/errors.
- **21 native tests passed** on the round Wear OS API 37 emulator, with no skipped assumptions. This includes the public installer’s required-consent callback, Wi-Fi loss/recovery without ending receiving, fixed-port reuse/collision behavior, IPv6, metadata rollback and released CPU wake locks after uploads.
- **Five round UI tests passed again** at 192 dp / 1.3x text: the initial receiving action stays visible, review/approval/error/success controls are reachable, connection details and transfer feedback work, and a decodable QR fits inside the circular bezel. Size, density and font scale were restored.
- **18 browser UI checks passed** on Chromium 140.0.7339.16 across four viewport widths and both themes, including connection recovery, keyboard focus, reduced motion and 200% zoom at an effective 320 px layout width, with zero JavaScript errors.
- **Real Android Emulator Chrome 145.0.7632.218 uploaded signed APKs of 69,588,292 bytes and 270,914,884 bytes directly to the Wear OS Emulator over virtual Wi-Fi**, receiving READY review state. The larger APK contains a stored 256 MiB asset, exceeding the removed individual-entry and expanded-content caps. There were zero JavaScript errors and browser access was approved through the visible watch control. The test dismissed its package, ended receiving and removed its local debug forward.
- **Debug, test and release builds succeeded** for the debug app, instrumentation APK, unit tests, lint and optimized release AAB. Lint has zero errors; three remaining warnings are SDK/Gradle/library update notices, not unused code/resources.
- Release inspection found exactly the three bundled web assets, no fixture APK/test payload, no package-visibility queries, one exported launcher and non-exported service/installer receiver. The release dependency graph contains ZXing Core, Kotlin stdlib and its annotations dependency.
- The unchanged Gradle distribution version is checksum-pinned to its official download. Release output is unsigned when signing inputs are absent; incomplete signing configuration fails clearly.
| Environment | Verified coverage |
| --- | --- |
| JVM | **27 tests**, no failures/errors: streaming, digest, disk/ABI/SDK checks, HTTP framing/64-bit lengths, browser approval, progress and watch contrast. |
| ARM64 round Wear OS API 37 | **26 native tests**, no skipped assumptions: real signed socket uploads, watch-gated access, malformed/interrupted/storage failures, Wi-Fi loss/recovery, IPv6/fixed-port behavior, wake-lock release, metadata/removal rollback, old-review preservation, focused progress updates and offline privacy. |
| Public Android installer | The native suite taps Pakkit’s Install action, taps the real system Install/Update confirmation and receives successful installation with staged-file removal. Separate tests verify required consent, digest mutation and rejected stale/forged callbacks. The QA fixture remains installed on the emulator. No shell installer or source-permission grant is used for this path. |
| Ongoing activity | Official OngoingActivity data and an immutable return intent are present. Review status updates the actual notification; its Stop action closes receiving and removes the notification. Optional notification access is granted only on the emulator for this test. |
| Small round Wear | **Eight UI tests** at 192 dp / 1.3x font: receiving and review actions, full decodable QR, progress/focus, approval-intent isolation and offline privacy. Settings restored afterward. |
| Desktop Chromium 140 | **23 browser checks** across 320/390/768/1440 px and dark/light: keyless access/denial/retry, credential isolation, keyboard focus, theme persistence, reduced motion, 200% zoom, cancellation, state transitions, legal links, stalled headers/body recovery and a streamed 64 MiB upload. Zero JavaScript errors. API fixtures test the UI separately from real transport. |
| Android Emulator Chrome 145 → Wear Wi-Fi | **270,914,884-byte signed APK**, containing a stored 256 MiB asset, reaches READY through the real browser File/XHR path and real watch approval. No host-memory File buffer or production debug endpoint. |
| Native swipe/resume | Real left-to-right swipe dismisses the watch activity while receiving continues; reopening preserves the active address. |
| Background process recovery | After that receipt, the test backgrounds and kills Pakkit’s debug process using its own UID, reopens the application, finds the durable review, explicitly restarts receiving and reuses port 8787. Process death revokes browser access. This is not a long-duration Doze or battery benchmark. |
| Build/artifact | Debug app, instrumentation APK, JVM tests, Android lint and optimized release AAB pass. Lint: **zero errors**, four tool/library-update notices. Release checker verifies the merged manifest and exact five web/legal assets, no test APK or native `.so` payload, and records the bundle digest. Local AAB is **unsigned**. |
Ten watch product-state screenshots at each tested size, browser screenshots, detailed XML, text logs and browser summaries are generated under app/build/reports and app/build/test-results. They are not source assets or claims of universal hardware/browser support. No elapsed-time test certifies indefinite availability: long-duration screen-off/power behavior remains a hardware gate, and the receiver has no product expiry timer. Successful large uploads prove receipt/review, not successful installation of every large app.
The complete test commands and recovery option are in [development](DEVELOPMENT.md). Run emulator automation sequentially; simultaneous instrumentation and shell `uiautomator` can interfere with each other. Watch screenshots cover actual state layouts, including offline privacy; browser screenshots cover both themes. Raw circular screenshots are development evidence, not automatically Play-compatible listing artwork.
Only API 37 emulator images were available in this environment. Minimum API 31 runtime validation remains outstanding. No elapsed-time test certifies indefinite availability or measured power quality. Large receipt proves transfer/review; it does not prove every large app installs. The successful system install uses the small signed QA fixture.
## Hardware-specific release matrix
- Fresh Google Play delivery, source approval and system confirmation on supported Galaxy Watch 7 and other firmware/regions, without preexisting source trust or developer setup. Include denied/revoked permission and cancellation.
- Transfers near actual free-storage capacity, prolonged receiving, interruption, repeated sessions, IP/network changes, guest/client-isolated networks, VPNs and browser local-network permission prompts.
- Long screen-off/Doze behavior, low battery/battery saver, charging transitions, memory/thermal behavior and measured battery consumption. Timed locks and bounded buffers alone are not measurements.
- Long screen-off/Doze behavior, low battery/battery saver, charging transitions, memory/thermal behavior and measured battery consumption. Scoped locks and bounded buffers alone are not measurements.
- Actual low storage and processor/SDK/package/update conflicts; system developer verification and managed-device restrictions. The OS is the final compatibility/security authority.
- TalkBack, rotary interaction, large font and physical small-round displays; camera scanning of QR on real displays under varied lighting.
- Safari on iOS/macOS, Firefox, Edge/Windows, Linux browsers and Android browser variants. Emulator Chrome and desktop Chromium do not certify the whole browser matrix.