mirror of
https://github.com/anomalyco/hex.git
synced 2026-11-28 13:02:21 +01:00
* 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 3af9e292f run (365 tests, 0 failures).
26 lines
5.1 KiB
Text
26 lines
5.1 KiB
Text
Hex for Android
|
|
Last updated November 25, 2026
|
|
|
|
Anomaly Innovations, Inc. makes Hex and Hex Keyboard for Android. We do not collect or share your personal data, except feedback you choose to send. Hex has no accounts, ads, tracking or analytics.
|
|
|
|
Typing
|
|
In ordinary text fields, Hex uses nearby text and your taps to suggest words and correct spelling on your phone. It keeps no keystroke log. In fields that Android marks as passwords, including visible passwords and PINs, Hex types literally. It does not read the field's text, offer suggestions or start dictation.
|
|
|
|
Dictation
|
|
Hex uses the microphone only when you start dictating. It processes the audio in memory, without saving a recording, and turns speech into text on your device. Translation and cleanup also run on your device. Hex keeps no transcript history. The app where you insert text may save or send it according to its own policy.
|
|
|
|
Model downloads
|
|
During setup, Hex asks Hugging Face and its delivery network for one public speech model (190 MB) over HTTPS. If you turn on Faster English dictation in Labs and tap Download, or turn on Pick the English model for this phone in Labs and it finds English dictation slow on your phone, Hex asks them the same way for a second public model (135 MB) that it uses for English. The host sees the IP address needed to deliver each file. Hex does not send your words, audio, account information or device identifier with either request. After a download, no connection is needed to use the model. If the first is interrupted, you can retry or use the smaller model included in Hex.
|
|
|
|
Both models wait for Wi-Fi unless you tap Use mobile data. To know whether the phone's network charges for data, Hex has Android's network state permission (ACCESS_NETWORK_STATE). Hex uses it only to ask Android whether the network is metered, such as mobile data, or not, such as most Wi-Fi. Android leaves the network's name out of that answer, and the permission doesn't let Hex see what goes over the network. Android grants it when Hex is installed, without asking.
|
|
|
|
Feedback you send
|
|
Hex's Send feedback form, on Home, sends nothing until you tap Send. Then Hex sends, over HTTPS, to Anomaly's feedback inbox (Bellhop, run by Anomaly): your message, and a subject and kind if you chose them; the pictures shown in the form, which start with a picture of Hex's own screen taken when you opened the form (never the rest of your phone's screen, and with any dictation shown on Home painted over) and any photos you add, each removable before you send; Hex's version, your phone's model, its Android version and language, the screen you opened the form from, and the language and speech model Hex dictates with; and your email, only if you type one, so Anomaly can reply.
|
|
|
|
Nothing is emailed when you send. If Anomaly replies, you get an email and confirm your address once. With an email, Hex also sends a random install ID it makes the first time, so your reports stay together; it is not tied to your phone or Google account, and uninstalling Hex removes it. Without an email, feedback is anonymous: no email and no install ID, and it can't be answered. Feedback never includes your dictations, transcripts, recordings, vocabulary, corrections or anything you type in other apps, and the Hex keyboard never sends it. Anomaly uses feedback only to answer you and fix what you report. Like any request, the server sees your IP address.
|
|
|
|
What stays on your phone
|
|
Hex saves your settings, setup progress and downloaded models in private app storage; Delete download in Labs removes the second one. If you undo an autocorrection, Hex keeps a count against a hash of that word pair so it can avoid repeating the correction. It does not store the original words. If you turn on Learn from my fixes in Labs, Hex keeps the word pairs you corrected right after dictating, how often and when you last corrected each, on this phone only; it never sends them, and it learns nothing from password fields. Turning it off stops the learning but keeps the pairs until you tap Delete what Hex learned, which removes them. If you turn on Adaptive touch in Labs, Hex keeps, for each letter key, an average of where your taps land on it, in a table of fixed size (under 32 KB) on this phone only; it keeps no letters, words or order of taps, never sends it, and learns nothing from password, email or web address fields. Turning it off stops the learning but keeps the averages until you tap Reset touch learning or Delete what Hex learned, which remove them. If you turn on Pick the English model for this phone in Labs, Hex keeps, on this phone only, how long each of your last five counted English dictations took to transcribe against how long you spoke, how many dictations in a row were in English, how many it didn't count and why, and the date it chose the faster model; it keeps no words or audio and never sends these numbers. Turning it off deletes them. Clearing Hex's app storage or uninstalling Hex removes this data. Microphone access can be revoked in Android settings.
|
|
|
|
Contact
|
|
For privacy questions, use https://github.com/anomalyco/hex/issues. To report a security problem privately, use https://github.com/anomalyco/hex/security/advisories/new.
|