hex/android/play/policy
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Ryan Vogel 1481e5f80e
Android: the speech model waits for Wi-Fi unless the person chooses mobile data (#2777)
What changed:
- ACCESS_NETWORK_STATE in the main manifest, so every variant gets it: debug, release (Google Play) and preview
  (Hex Preview). No other manifest line changes.
- unmeteredNetwork(context) in ModelStore.kt answers whether the phone's network is unmetered (NOT_METERED or
  TEMPORARILY_NOT_METERED), null with no network. It is the only thing Hex asks about the network.
- ModelStore.small is Wi-Fi-first: download() on a metered network (mobile data, a metered Wi-Fi) leaves it in the new
  State.WaitingForWifi. The Speech model row, in setup and in Dictation, says "190 MB. Starts by itself on Wi-Fi."
  with Use mobile data. An unmetered network starts it while a Hex screen is open (a default network callback), or
  when one next opens. A download whose Wi-Fi drops waits for Wi-Fi again instead of saying there's no connection.
  The mobile-data choice is kept until the file is installed or deleted, so a resumed download doesn't ask again.
- Labs' 135 MB download is unchanged: it starts on its tap, on any network. That work can call unmeteredNetwork().

Why: setup started the 190 MB download on mobile data without saying so. Ryan approved the permission.

Words: the in-app and Play policy, the site's Android page (a new "What does Hex Preview ask Android for?"; the old
"asks for the microphone and the internet and nothing else" is replaced, since it is no longer true) and privacy
page, android/README.md, and android/play/README.md's list of manifest permissions (which also lacked VIBRATE).

Checked: site bun run build, then bun test (25 pass). The Kotlin is not compiled yet (no Gradle on basebook); the
compile and unit tests, with the new waitsForWifi test in SignatureTest.kt, run on the Studio in the next window.
2026-11-24 21:38:42 -05:00
..
privacy-policy.txt Android: the speech model waits for Wi-Fi unless the person chooses mobile data (#2777) 2026-11-24 21:38:42 -05:00