| Filename | Latest commit message | Latest commit date |
|---|---|---|
* Android: Labs › Pick the English model for this phone (off)
Hex measures real dictations and, where English dictation is slow on the
phone, chooses faster English dictation for it (Ryan's decision; plan in
hex-android-model-by-phone-rule-plan.md, L135). Behind a new Labs switch,
off by default; whether it becomes the default, and every word, is Ryan's.
What it measures: only while faster English dictation is off, each
dictation that went in and would go to the faster model were it on
(English, not translated, Automatic with one candidate), on the standard
model, with at least 6 s kept, the model loaded before the tick (already
loaded, or loaded while the person spoke: the decode's wall time then
holds no load) and no second decode without the custom words. Its number
is decode wall time per second kept. MicCapture hands each dictation's
durations to Recognizer.timed; ModelChoice.after is the one place it
decides: median of the last 5 at least 0.5, and the last 20 dictations
all English-routable. One way: once chosen it never decides again.
What it does: the keyboard only records. MainActivity.onResume
(ModelChoice.whenOpened) turns faster English dictation on and starts its
135 MB download. Turning faster English dictation off by hand, or Delete
download, sets fastEnglishOffByHand, and the rule never turns it on again.
Changed behaviour: the 135 MB model is now Wi-Fi-first like the 190 MB
one, whoever asked for it. On a metered network a Labs tap no longer
downloads at once: its row says "135 MB. Starts by itself on Wi-Fi." with
Use mobile data, and Wi-Fi coming back starts it.
What it keeps: the private "modelChoice" preferences (the last 5 ratios,
English dictations in a row up to 20, counts by reason, the choice's
date and median), numbers only; turning the lab off deletes the file and
leaves a setting or download it made. Diagnostics gets a "Model choice:"
line (median, count, threshold, decision and date, N of 20 in a row,
counts not counted by reason). Dictation's speech model card says what is
true while it waits, downloads and once ready. Privacy page (both
copies), policy and site say what is kept (proposals for Ryan).
Debug builds only: setprop log.tag.HexDecodeScale DEBUG (x10) or VERBOSE
(x0.5) scales the measured time.
Verified on anomastudio (OpenJDK 21, SDK 36): testDebugUnitTest passed
362 tests, 0 failures (ModelChoiceTest's 17 among them, with the OnePlus
12's two reports); the R8-minified release and preview dex contain no
"HexDecodeScale" (the debug dex does). Emulator hex-modelrule-vogel (API
36): lab off stores nothing; fast dictations (median 0.30) and one 3.11
outlier don't decide; a Spanish and a translated dictation reset the row;
slow ones decide on the 20th in a row with no download from the keyboard;
on 5G it waits, Wi-Fi starts it, the next dictation runs on faster
English dictation and the rule stops measuring; low memory falls back;
Delete download keeps it off across restarts; a hand tap on 5G waits and
Use mobile data downloads; the lab off deletes the numbers and leaves
the download. Chinese screens checked.
* Android: review fixes for Pick the English model for this phone
From the faster-English helper's review of #2831:
- Turning the lab on clears fastEnglishOffByHand. It is a new request, so
someone who tried faster English dictation before the lab existed and
turned it off no longer gets a lab that silently measures nothing.
Turning faster English dictation off, or Delete download, after that is
still kept for good (ModelChoice.offByHandWhenLabTurned and
offByHandWhenFasterEnglishTurned, used by the Labs rows).
- The site's privacy text moves to its own pull request (#2832), to be
merged when the build that carries the lab is published; dev.anoma.ly
would otherwise describe a lab no published build has. The in-app
policy and both Privacy page copies stay here.
- Diagnostics' "Model choice:" line lists the last five ratios beside the
median, so a pasted report shows a steady set from a spread.
- Tests of behaviour rather than shape: ModelStore.download now asks
startsNow, which the mobile-data test exercises for both models; the
test that re-tested engineFor is removed (MicCapture has no JVM seam:
it needs Android's Looper and AudioRecord), and whenOpened loses its
onScreen parameter, which no caller passed, with its test. Added: the
OnePlus 13's 0.54-0.68 deciding and the emulator's 0.37 never
deciding, as sequences of real-length dictations.
Verified on anomastudio: testDebugUnitTest 365 tests, 0 failures
(ModelChoiceTest 20). Emulator hex-modelrule-vogel: Delete download set
the off by hand; turning the lab on cleared it; five slow (x10) and
fifteen short English dictations decided (ratios 2.91, 2.52, 2.80, 2.86,
2.88, as Diagnostics now lists them); opening Hex turned faster English
dictation on and downloaded it on Wi-Fi.
* Docs: the feature map counts ModelChoiceTest's 20 tests after the review fixes
Documentation only; the count is from the
|
||
| .. | ||
| artwork | ||
| en-US | ||
| policy | ||
| screenshots | ||
| content-rating.md | ||
| data-safety.md | ||
| README.md | ||
Hex keyboard on Google Play
Before submission: the public privacy policy currently returns HTTP 200 but explicitly covers only iPhone. Add the Android policy text at that URL alongside the iPhone policy. The signed app already shows the Android text offline in Privacy → Privacy policy.
Listing files
Default language: English (United States). Store category: Tools. No account or purchase is needed; a reviewer can use the welcome screen’s practice field. Dictation requires microphone permission and the keyboard must be selected to use it in another app.
| Field | Draft |
|---|---|
| App name · 12/30 characters | Title |
| Short description · 69/80 | Short description |
| Full description · 841/4,000 | Full description |
| Declarations | Data safety · IARC answers |
| Store art | 512 × 512 icon · 1024 × 500 feature graphic, from the shipped mark and Inter |
Phone screenshots — 1080 × 1920, portrait 9:16, RGB PNG. Captured from the final signed build, with synthetic input:
- Typing — Hex suggests “library” while a sentence is being typed.
- Dictation — the listening strip shows activity, finish and cancel.
- Settings — the ready state, Dictate and four settings pages.
- Welcome — how dictation works and why there is a model download.
Release candidate
ly.anoma.hex · 0.2.0 (version code 3) · Android 12+ · arm64-v8a. The first open-testing release, built from dev at bbebfa75 plus the version bump (#2286). 0.1.1 (version code 2) is on internal testing.
| Size | 0.2.0 bytes | 0.1.0 bytes |
|---|---|---|
| Upload-signed AAB | 47,950,821 | 41,192,298 |
| Estimated initial device download, bundletool 1.18.3 | 44,440,314 | 38,337,704 |
| Separate one-time Whisper small download | 190,085,487 | 190,085,487 |
Bundletool reported the same minimum and maximum for an API 36 arm64-v8a, en-US, 440 dpi device spec and for an API 31, 420 dpi one. The model downloaded by Get started is not part of the initial store estimate. A smaller multilingual model is included in the app. AAB SHA-256: 465d077ad7dde0a2cf625de9f1219fea478176377792d0069d66c150849184c1.
Policy checks on the signed bundle:
- Targets API 36, the new phone-app requirement effective August 31, 2026. R8 and the resource shrinker ran, and the bundle is signed with the upload key. The release DEX has no reference to
android.util.Log; typing and dictating a sentence on both emulators left none of its words in logcat. - The merged manifest requests
RECORD_AUDIO(user-started dictation),INTERNET(the model downloads and feedback you send),VIBRATE(key haptics) andACCESS_NETWORK_STATE(whether the network is metered, so the 190 MB model waits for Wi-Fi unless the person chooses mobile data). OnlyRECORD_AUDIOasks the person; the others are granted at install.BIND_INPUT_METHODprotects the bound IME; it is not a requested permission. - The external editor’s input connection received zero context reads while typing, deleting and pressing the Hex key in text, visible, web and numeric password fields on API 36 and API 31. Only literal writes reached each field, the strip said “Dictation off in password fields” and the microphone stayed off. The same trace counted twelve context reads, and the microphone started, in an ordinary field.
- All seven ELF load segments in
libhexspeech.soandlibandroidx.graphics.path.soare 16 KB aligned. BundleConfig requests 16 KB page alignment, and the arm64 and master splits passedzipalign -c -P 16 4. The release ran dictation on a guest with 16,384-byte pages.
Emulator checks of this bundle (installed from the AAB with bundletool, no phone): on API 36 and API 31 the first run downloaded and verified the model, then in airplane mode “teh” became “the” in another app, an emoji came from the emoji panel, the number pad typed, the phone pad opened, French turned “jai” into “J’ai”, all six typing models offered suggestions, words and shortcuts from Android’s personal dictionary were used, TalkBack’s explore-by-touch typed letters (API 31’s image has no TalkBack, so it was copied from the API 36 image), the licences and privacy pages opened, and one sentence was dictated through the emulator microphone. No crash or ANR. On API 36, installing 0.2.0 over a signed 0.1.1 kept the speech model, the style, the dictation language, the keyboard settings and the selected keyboard.
Known issue: on Android 16 (API 36) the model download stops 5 to 6 seconds after Hex goes to the background, for example while you turn on the keyboard in Settings, and the partial file is deleted; a trip of 1 to 3 seconds survives. Setup then offers Retry. It does not happen on API 31.
Device matrix
Both Studio emulators started with no installed model. Each downloaded the pinned Whisper small file from setup, verified its hash, then completed the rest in airplane mode with Wi-Fi disabled. In the practice field, tapping “library” completed “Meet me at the library”. In a separate Android Settings editor, the release inserted “Meet me at the library tomorrow.” from the emulator microphone.
| Emulator | Guest page | First-run ready¹ | Typing PSS | Peak dictation PSS / RSS² | Home PSS after |
|---|---|---|---|---|---|
| Android 12 / API 31, 2.5 GiB, 2 vCPUs | 4 KB | 18.6 s | 68.7 MiB | 376.7 / 492.5 MiB | 80.5 MiB |
| Android 16 / API 36, 4 GiB, 4 vCPUs | 16 KB | 19.8 s | 63.3 MiB | 367.3 / 496.5 MiB | 68.0 MiB |
¹ From Get started until the verified model was observed ready, including the permission interaction.
² Sampled from Android’s dumpsys meminfo on one short dictation (43 and 35 samples); PSS apportions shared pages, RSS counts them in full. The app process survived both runs. These are emulator observations, not handset performance targets.
Real-device checklist
The upload-key-signed APK set can be installed on a connected arm64 Android 12+ handset with bundletool install-apks --apks=<file> without using Play.
- Microphones and audio routes: dictate with the handset mic and with Bluetooth earbuds while music is playing. Check input quality, playback continuity and that cancel or loss of focus releases the mic.
- Low-memory hardware: on a 2–3 GB phone, time a cold dictation and several long ones. Check insertion latency, heat, battery use and whether Android evicts the IME or the app you’re typing in.
- Physical typing: try rapid taps, accents, corrections and undo with one hand. Check haptics, edge keys and the language switch on an OEM keyboard picker and in a password-manager field.
- Mobile network handoff: interrupt the model download between cellular and Wi-Fi, then retry. Confirm the smaller model remains usable and the completed model works offline.
The Studio verification and cleanup log and checksums accompany the local build.