SUN Stream reusable access code - approved by user 2026-10-04; implementation in progress

Reason
Google Play requires free, reusable access to paid features for review. The current
release offers only Play purchase activation. Do not submit invented credentials,
ask reviewers to buy PRO, or detect reviewers to change app behavior.

Affected surfaces
Android phone (portrait and landscape), tablet and TV: About, a new access-code
dialog, PRO entitlement, About > Privacy, public Android Privacy and Play reviewer
instructions. Windows Host and its pairing controls remain as they are.

Old -> proposed UI
Old: About contains informational sections and a Close footer; no code activation.
Proposed: append a full-width "Access code" / "Kode akses" button after the Version
section, inside the existing scroll area, available to Free and PRO users.
Button height 48dp mobile/tablet, 56dp TV; reuse AdaptiveButton colors, type, border,
focus and pressed states. Adjacent gap 12dp. No new icon.

The button opens an ordinary visible dialog, not a hidden reviewer mode.
Dialog uses NightRaised, 20dp radius, 1dp white border at 0.14 opacity; horizontal
screen margin at least 24dp; width min(available width, 480dp). Padding 16dp mobile/
tablet, 24dp TV. Maximum height 90% of available height; scroll body when necessary.
Title 20sp mobile/tablet, 26sp TV, bold; body/input/status 16sp. Reuse existing theme
text colors. Vertical gaps 12dp. Input full width, minimum 56dp height. Footer is
two equally wide existing AdaptiveButtons, 12dp gap, 48dp mobile or 56dp TV height.
IME insets must keep input/actions reachable in mobile landscape.

Exact English / Indonesian copy
Title and About button: Access code / Kode akses
Body: Enter an access code provided by Sadavir. / Masukkan kode akses dari Sadavir.
Input label: Access code / Kode akses
Idle actions: Cancel / Batal; Activate / Aktifkan
While checking: Checking access code... / Memeriksa kode akses...
Success: PRO access is active. / Akses PRO aktif.
Invalid/revoked: This access code is invalid or no longer active. /
                Kode akses tidak valid atau sudah tidak aktif.
Network/server error: Could not verify the code. Check your connection and try again. /
                      Kode belum dapat diverifikasi. Periksa koneksi lalu coba lagi.
Already activated body: Access-code PRO is active on this device. /
                       PRO melalui kode akses aktif di perangkat ini.
Activated actions: Close / Tutup; Remove access code / Hapus kode akses
Removal confirmation: Remove access-code PRO from this device? Your Google Play
purchase, if any, is not affected. / Hapus PRO melalui kode akses dari perangkat ini?
Pembelian Google Play Anda, jika ada, tidak terpengaruh.
Confirmation actions: Cancel / Batal; Remove / Hapus

Interaction contract
- Input accepts 64 characters maximum, trims outer whitespace, ASCII alphanumeric
  and hyphen only, no autocomplete/capitalization/spelling suggestions. Code is
  masked; no clipboard read except an explicit user paste. Activate enabled only
  when nonempty and idle. No automatic submission while typing.
- TV initial focus input; D-pad down Activate, left Cancel; Back dismisses IME
  first, then dialog. Mobile/tablet touch and hardware keyboard supported.
- Cancel/Back while checking closes the dialog and invalidates its callback;
  a late response must not activate anything. Input/actions cannot double-submit.
- Successful activation keeps success visible and changes footer to Close/Remove.
- Closing restores focus to About's Access code button; reopening does not expose
  the saved code. No code, token or response-body logging or analytics.
- Remove is confirmed; a real Play purchase continues to grant PRO independently.

Entitlement and server contract
One high-entropy reusable, non-expiring complimentary code provided privately in
Play Console instructions, valid worldwide on clean installations. No purchase,
trial, personal Google account, location restriction or owner intervention needed.
This is the same visible access-code feature and same PRO behavior for anyone given
a complimentary code. No alternative payment, store link or paid code sales.
No reviewer detection and no changes to ads, consent, pairing, or security checks
other than the already-defined ordinary PRO exemption from ads and preview limits.

Server stores only a SHA-256 digest of the random code plus enabled/disabled state,
outside the repository. Code travels over HTTPS for verification. App stores the
accepted code encrypted with Android Keystore, excluded from backup; existing PRO
cache survives temporary network failure. Verify on foreground; definitive server
revocation removes only code-based PRO. Empty Play inventory does not revoke a
valid code entitlement; removing a code does not revoke a valid Play purchase.
Final PRO = valid Play entitlement OR valid complimentary-code entitlement.
Server must enforce bounded requests and rate limits. No device identifier or
per-device activation record required. No automatic expiry. A leaked code can be
revoked/replaced; reviewer instructions must be updated in the same operation.

Privacy additions (exact English canonical paragraphs)
Append to section 5:
Sadavir may provide complimentary access codes, including for application review.
If you enter one, SUN Stream sends it over an encrypted connection to Sadavir's
server to confirm whether it is active. An accepted code is stored encrypted on
your device using Android Keystore and is excluded from Android backup. SUN Stream
checks its status when the app returns to the foreground; temporary connection
failures do not remove previously confirmed access. This does not create a Google
Play purchase or require a separate SUN Stream account.

Append to section 13:
You can remove a saved access code through About > Access code or clear the app's
storage. Sadavir stores a hash of each issued access code and its active status
until the code is retired. The access-code verification service does not retain
the submitted code, device identifiers or IP addresses in access logs.

Validation before submission
Test activation on two clean installs, invalid/revoked code, offline restart,
late response after Cancel, Play refund while code remains valid, code removal
while Play purchase remains valid, backup exclusion and TV remote focus.
Run reviewer instructions on the final signed release. Populate Play Console only
after that evidence exists. Public privacy and final Data safety must match.

Approval applies to this full proposal, its copy, dimensions and state model. Once
approved, update specification, tokens, references and changelog together per AGENTS.md.
