Skip to content

docs(app): prepare the Android app's Google Play closed test - #1736

Merged
devswha merged 2 commits into
mainfrom
feat/android-closed-test
Oct 23, 2026
Merged

devswha merged 2 commits into
mainfrom
feat/android-closed-test

Conversation

@devswha

@devswha devswha commented Oct 23, 2026 •

Copy link
Copy Markdown
Owner

The owner's Play developer account is a personal one made after November 2023, so Google lets the app into production only after a closed test with at least 12 testers opted in for 14 days in a row. This PR prepares that first closed-test release. Nothing is uploaded, no app is created, and no key or secret is made or stored.

What is here

  • app/store/android.md: everything for the closed test:
    1. The upload key: check an existing one, or a keytool command and a upload.properties layout for the owner to run himself, plus backup and reset advice.
    2. The release build: OVIS_UPLOAD_PROPERTIES=… ./gradlew bundleRelease and a signature check. The release config already on main is used as is: applicationId sh.ovis.app, versionCode 1, versionName 1.0, targetSdk 36. The doc states the "raise versionCode for every upload" rule.
    3. Store listing text (name, short and full description), store settings.
    4. App content answers: privacy policy, app access (the demo), ads, content rating, target audience 18+, news, government, financial, health, advertising ID. The doc also covers data safety; see below.
    5. Play Console steps, click by click: create the app, App content, listing, a tester Google Group, the closed testing track, the first release with Play App Signing, the opt-in link, the 14 days, and applying for production.
  • Store graphics in app/store/android/:
    • a 512 px icon;
    • a 1024x500 feature graphic;
    • three 1080x1920 phone screenshots: the connect screen and the bundled demo, from the Android 16 emulator with a SystemUI demo-mode status bar, no real PC.
  • Privacy policy (ovis-site/privacy, English and Korean): one paragraph naming what the Play listing will show as collected (it goes only to the user's own PC), and a new effective date.
  • changelog.d/play-closed-test.md (Maintenance).

Data safety

Two routes leave the phone: to the user's own PC, and from the PC to the developer, in the PC's anonymous usage counts.

  • To the PC: messages, terminal input, the pairing cookie and diagnostics (required); attached photos, videos, audio and files, and dictation (optional, user-initiated).
  • To the developer: the app's settings snapshot, a random install ID and the country. These are Analytics, optional, and on by default (opt-out).

Encryption in transit is No (plain http on a home network is allowed). Both privacy pages describe both routes. The details are in section 4 of the doc.

Verification

  • Unsigned ./gradlew bundleRelease from this branch: BUILD SUCCESSFUL, 31.8 MB app-release.aab.
  • The release manifest in the AAB has no debuggable.
  • Signing guard: OVIS_UPLOAD_PROPERTIES=/nonexistent/upload.properties ./gradlew bundleRelease --dry-run fails with "…is not a file". A debug build is unaffected.
  • Assets: icon 512x512, feature graphic 1024x500 RGB, screenshots 1080x1920 RGB (Play wants no alpha and at most a 2:1 aspect ratio).
  • bun test scripts/ovis-site.test.ts: 17 pass.
  • bun run check fast: pass.
  • Gate review: one reviewer per round, three rounds. Round 1 rejected the data-safety reasoning and Korean copy in the doc. Round 2 rejected the "No" recommendation. Round 3 approved, after the doc defaulted to disclosure and the Korean was removed.

No overlap

New files only, plus the two privacy pages. Nothing here is in #1697, #1695 or #1719.

What the owner does

See section 5 of the doc: create the app, fill App content (data safety as above), the listing, a Google Group with 12+ testers, the closed track, and upload the AAB built after #1697 merges. Then keep 12 testers opted in for 14 days and apply for production.

@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Oct 23, 2026 •

Copy link
Copy Markdown

Deploying ovis with  Cloudflare Pages  Cloudflare Pages

Latest commit: 6c6ef46
Status: ✅  Deploy successful!
Preview URL: https://798c7bd6.ovis.pages.dev
Branch Preview URL: https://feat-android-closed-test.ovis.pages.dev

View logs

@coderabbitai

coderabbitai Bot commented Oct 23, 2026 •

Copy link
Copy Markdown

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 26 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used all 4 included reviews currently available.

Learn how review limits work.

Review configuration:

⚙️ Run configuration
📥 Commits

Reviewing files that changed from the base of the PR and between 2210494 and 6c6ef46.

⛔ Files ignored due to path filters: 5
  • app/store/android/feature-graphic.png is excluded by !**/*.png
  • app/store/android/icon-512.png is excluded by !**/*.png
  • app/store/android/screenshots/phone-1-connect.png is excluded by !**/*.png
  • app/store/android/screenshots/phone-2-chat.png is excluded by !**/*.png
  • app/store/android/screenshots/phone-3-workspaces.png is excluded by !**/*.png
📒 Files selected for processing: 5
  • .gitignore
  • app/store/android.md
  • changelog.d/play-closed-test.md
  • ovis-site/ko/privacy/index.html
  • ovis-site/privacy/index.html
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@devswha

devswha commented Oct 23, 2026

Copy link
Copy Markdown
Owner Author

Merge-pass review of head 4214948, done by a gate reviewer on a different model than the author's. I'm not merging yet: the data-safety answers are incomplete, and the signing files aren't git-ignored.

What checked out:

  • All five graphics are the right sizes, and the names they show match the demo fixtures.
  • The English and Korean privacy edits say the same thing.
  • The site tests pass 17/17, and git diff --check is clean.
  • No secret is committed.

Please fix before merge:

  1. The data-safety table leaves out photos and other media (app/store/android.md ~137-147). The composer's attachment picker uploads any file, photos included, to the user's PC (src/components/Composer.tsx ~1315-1334, src/lib/api.ts ~467-477). Declare "Photos and videos" and "Files and docs" as optional and user-initiated, and add whatever else the picker can send.
  2. The table says no data reaches the developer, but some can (app/store/android.md ~148-150). The phone client sends its settings to the PC (src/components/TelemetryControls.tsx ~21-39). The PC can then forward telemetry to the developer's Worker (server/telemetry.ts ~240-255, ~414-433). Disclose that route, its opt-in or opt-out state, and what it contains, in this doc and on both privacy pages.
  3. Signing files aren't git-ignored (app/android/.gitignore ~49-52). The keystore patterns are commented out, and no rule matches upload.properties. git check-ignore matched none of the signing-file paths. The doc tells the owner to create these files, so ignore *.jks, *.keystore and upload.properties, wherever the doc places them, so nobody commits them by accident.

Once these are fixed and the checks are green, this goes back in the merge queue.

@devswha

devswha commented Oct 23, 2026

Copy link
Copy Markdown
Owner Author

Fixes for the merge pass's three findings on 4214948, in 6c6ef46.

  1. Attachments in data safety (app/store/android.md, section 4). The composer's picker takes any file (Composer.tsx file input, uploadPaneImage in src/lib/api.ts), and the composer's mic sends dictation to the PC (/api/voice/transcribe). The table now lists, each optional and user-initiated, collected and not shared:

    • Photos and videos > Photos, Videos;
    • Audio > Voice or sound recordings (dictation, which the PC passes on to the transcription provider the user set up there);
    • Audio > Music files and Other audio files;
    • Files and docs (attachments and the file viewer).

    Messages, terminal input (Other user-generated content), the pairing cookie and the diagnostics stay as before.

  2. The route to the developer is now disclosed, and the "no data reaches the developer" line is gone.

    • Route: the client tells the PC its settings (TelemetryNotice in TelemetryControls.tsx). server/telemetry.ts puts the last browser's or phone's allowlisted settings snapshot into its usage counts, which go to the developer's Worker (telemetry/worker.ts).
    • State: on by default (opt-out). Nothing is sent before the notice is shown, and the first event waits 10 minutes after that. The switch is under Settings > About > Anonymous usage counts, in the app or on the PC; OVIS_TELEMETRY=0 or DO_NOT_TRACK=1 on the PC also block it.
    • Contents: a random install ID, the version, the OS, CPU and install method, the settings snapshot, the agent kinds, and the country the receiver adds (the address is not stored).
    • Data safety: App activity > App interactions, Device or other IDs (the install ID) and Location > Approximate location are added for Analytics, optional (can be turned off), not shared.
    • Privacy pages: on both ovis-site/privacy and ovis-site/ko/privacy, the "In short" box no longer says the app sends nothing. A new paragraph says the app's settings reach the developer through the PC's usage counts, that they are on by default, and how to turn them off. The Korean page uses the UI's term "익명 사용 집계".
  3. Signing files ignored: the root .gitignore now has *.jks, *.keystore and upload.properties. I put them at the root rather than in app/android/.gitignore, because feat(app): receive Android push through FCM in a module of its own #1744 also changes that file and the one-PR-per-file rule applies.

    • git check-ignore -v --no-index matches app/android/app/ovis-upload.jks, app/android/app/upload.properties, app/android/upload.keystore, upload.properties, app/android/app/keys/release.jks and .config/ovis-android/upload.properties (.gitignore:32-34).
    • No tracked file matches the new rules.
    • The upload-key section of the doc mentions the rule.

Checks:

  • bun test scripts/ovis-site.test.ts: 17 pass.
  • git diff --check: clean.
  • bun run check fast: EXIT 0.
  • A gate reviewer on another model approved this commit.

The App Store side of finding 2 is fixed in #1737.

devswha added a commit that referenced this pull request Oct 23, 2026
)

Everything for the iOS app's first App Store submission that does not
need the owner's Apple login. Nothing is uploaded or submitted, no app
record is created, and no key is made.

## App changes (small)
- **`app/ios/App/App/PrivacyInfo.xcprivacy`** (new, added to the App
target's resources in `project.pbxproj`):
- no tracking, no tracking domains; the three usage-count data types
(linked, Analytics) as in section 5;
- the one required-reason API the app's own code uses is UserDefaults
(`PCStore`), reason `CA92.1`;
  - Capacitor ships its own manifest for its own use.
- **`Info.plist`**: `UIRequiredDeviceCapabilities` changes from `armv7`
to `arm64`. The binary is arm64-only, and armv7 is the Capacitor
template's leftover.

## `app/store/ios.md` (new)
1. What the project sets:
- bundle ID `sh.ovis.app`, version 1.0, build 1 (raise it for every
upload);
   - iPhone and iPad, iOS 15+, automatic signing with no team yet;
   - the camera text, export compliance, and the privacy manifest.
2. The owner's clicks: register the App ID, create the App Store Connect
app record, and (optionally) an App Store Connect API key, which is only
needed for command-line uploads.
3. Archive and upload from Xcode, then TestFlight.
4. Listing: name, subtitle, promotional text, description, keywords,
URLs, category (Developer Tools), price, and the screenshot table.
5. App Privacy: "Yes". Product Interaction, Device ID and Coarse
Location are declared for Analytics, linked, not tracking. They come
from the PC's anonymous usage counts, which carry the app's settings to
the developer; the privacy manifest lists the same three.
6. Age rating: unrestricted web access is **Yes**, because the connect
screen opens any http(s) address in the app, so Apple rates the app
**16+**.
7. App Review notes (use the bundled demo; no account) and a release
checklist.

## Screenshots (`app/store/ios/`)
- Three iPhone 6.9" shots, 1320x2868 (iPhone 18 Pro Max simulator).
- Two iPad 13" shots, 2064x2752 (iPad Pro 13-inch (M5) simulator).
- Content: the connect screen and the bundled demo, English, status bar
9:41, RGB without alpha.

## Verification (eamac, fresh clone in /tmp)
- Release simulator build: BUILD SUCCEEDED, `PrivacyInfo.xcprivacy` is
inside `App.app`.
- Unsigned device archive (`xcodebuild archive -sdk iphoneos
CODE_SIGNING_ALLOWED=NO`): ARCHIVE SUCCEEDED. The archive is arm64-only,
requires the arm64 capability, includes the manifest, and reports 1.0
(1), `sh.ovis.app`.
- `bun run check fast`: pass.
- Gate review: round 1 rejected the age-rating answer (it said
"unrestricted web access: No" and predicted 4+). It is now Yes and 16+,
and the re-review approved.

## No overlap
Nothing here is in #1697, #1695, #1719 or #1736. The Android closed test
is #1736. The fix for a white screen on iOS while the first page loads
(dark web view background) went into #1697, because it touches
`app/capacitor.config.json`.
@devswha

devswha commented Oct 23, 2026

Copy link
Copy Markdown
Owner Author

Merging without a CodeRabbit review: CodeRabbit was rate-limited, so no review ran. The merge pass reviewed it instead. Two gate reviews were done on a different model than the author's. The second found all three earlier blockers fixed:

  • Attachments are declared as optional and user-initiated.
  • The client-settings telemetry the PC forwards is declared field by field, with its purpose, the install ID and the opt-out, and the English and Korean privacy pages agree.
  • *.jks, *.keystore and upload.properties are ignored, and no tracked file is hidden.
    Site tests: 17/17. All required checks are green and no review thread is open.

@devswha
devswha merged commit 5a119f5 into main Oct 23, 2026
10 checks passed
@devswha
devswha deleted the feat/android-closed-test branch October 23, 2026 09:12
devswha added a commit that referenced this pull request Oct 23, 2026
…1744)

The Android half of the phone app's push: the PC's alerts reach an
Android phone through Firebase Cloud Messaging and are decrypted on the
phone. The relay side is a commit on #1695 (`feat/push-relay`), so that
PR grows instead of a second one touching `push-relay/`.

## Shape: a module of its own
This PR must not touch any file #1697 changes
(`app/android/app/build.gradle`, `AndroidManifest.xml`,
`MainActivity.java`, `app/package.json`, …). The owner chose a
self-contained library module, `app/android/ovis-push`:
- `settings.gradle` includes the module and adds it to `:app`, from
`plugins.withId('com.android.application')`.
- The module's manifest merges in the messaging service,
`POST_NOTIFICATIONS` and a startup provider.
- `OvisPushInitializer` (the provider) registers the plugin with the
app's `BridgeActivity` from `onActivityCreated`. That callback runs
inside `Activity.onCreate`, before `BridgeActivity` builds its bridge.
- Once #1697 is merged, the dependency and the registration can move
into `app/build.gradle` and `MainActivity`, and the two hooks go away.

## What it does
- **`OvisPush` plugin** (`subscribe({ applicationServerKey })`,
`getSubscription()`, `unsubscribe()`), called from the PC page:
  - asks for notifications on Android 13+;
- gets the FCM token and registers it with the relay as `{service:"fcm",
token, vapid_key}`, once per PC;
- answers like a browser's `PushSubscriptionJSON`: `{endpoint,
expirationTime, keys:{p256dh, auth}}`;
  - makes a new endpoint when the FCM token or the PC's key changes.
- Error codes: `unavailable`, `permission`, `no_pc`, `invalid_key`,
`failed`.
- **`OvisMessagingService`**:
  - receives the relay's data-only message;
- decrypts its `ovis` field (RFC 8291 / RFC 8188 aes128gcm,
`WebPushDecrypt`) with the phone's P-256 keys (`PushKeys`, kept in
app-private preferences by `PushStore`);
- shows the PC's title and body per tag, as `public/sw.js` does, or
"herdr needs you" when it cannot decrypt.
- **No Google contact until a PC subscribes**:
`firebase_messaging_auto_init_enabled=false`.
- **Firebase config without the google-services plugin**:
`ovis-push/build.gradle` reads `app/android/app/google-services.json`
(gitignored) or `$OVIS_GOOGLE_SERVICES`, and generates the resources
Firebase's own startup reads.
  - Without the file the app builds and runs with push unavailable.
  - `google-services.example.json` is a placeholder with fake values.
- The client side (`src/lib/push.ts` calling the plugin) is a later,
separate change.

## Verification
- `./gradlew :ovis-push:testDebugUnitTest`: 4 pass.
  - The RFC 8291 appendix A message decrypts to its plaintext.
  - A changed ciphertext is refused.
  - Other keys are refused.
  - Generated key halves agree.
- `:ovis-push:lintDebug`: 0 errors, 2 deliberate warnings.
- `commit()` on first key generation, so keys persist before the public
half is handed out.
- No `onNewToken`: endpoints re-register lazily at the next `subscribe`.
- Android 16 Play emulator, against an isolated QA server:
- Without `google-services.json`: `OvisPush` is registered
(`Capacitor.PluginHeaders`). `subscribe` answers `no_pc` on the connect
screen and `unavailable` on the PC page; `getSubscription` returns null.
- With the placeholder config: Android's "Allow Ovis to send you
notifications?" dialog appears. After Allow, `POST_NOTIFICATIONS` is
granted and Firebase's token request fails on the fake API key, as it
should. A bad `applicationServerKey` answers `invalid_key`, and the PC's
real key from `GET /api/push` gets to Firebase.
- Real FCM delivery needs the owner's Firebase project; see below.
- `bun run check fast`: pass.
- Gate review: round 1 rejected `readAllBytes()` (needs API 33; minSdk
is 26). It was replaced, and the re-review approved.

## What the owner sets up (`ovis-push/README.md`)
1. A Firebase project, with an Android app `sh.ovis.app` in it.
2. Download `google-services.json` into `app/android/app/`. It is never
committed.
3. A service-account JSON key, which goes only into the relay: `wrangler
secret put FCM_SERVICE_ACCOUNT`.
4. Before this ships in a Play build, update the data safety form and
the privacy policy: the FCM token goes to the relay.

## No overlap
New files plus `app/android/settings.gradle`, `app/android/.gitignore`
and a changelog fragment. Nothing here is in #1697, #1695, #1736 or
#1737.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant