Files
opencodejr[bot] 82d4223c78 android: Labs › Keyboard › Keypress vibration strength (off) (#3319) (#3320)
Co-authored-by: opencodejr[bot] <348916617+opencodejr[bot]@users.noreply.github.com>
2026-12-02 20:36:58 +00:00

80 KiB
Raw Permalink Blame History

Hex for Android

Hold the Hex key, speak and release to insert text in the current app. A tap starts hands-free dictation; ✓ finishes and ✕ discards. The Hex key sits at the strip’s trailing end, where Gboard has its mic; while dictating it becomes ✓ and the live dot waveform grows out of it, above the keys. While Hex transcribes, a spinner takes the checkmark’s place and ✕ still cancels, which also stops the transcription itself. A recording stops at 1 minute and says so (“Stopped at 1 minute”); its text is still inserted. While a dictation opens, listens or transcribes, the keyboard’s and Home’s windows hold Android’s FLAG_KEEP_SCREEN_ON (no permission), so the display timing out can’t hide the IME and cancel the recording; the screen sleeps normally again once Hex is idle. Dictation’s notes show in the strip even while Hex Preview’s update line is waiting, which returns afterwards. The keys are Gboard’s size and place (Gboard 15.1, measured on an emulator at 13 screen sizes): like Gboard’s, their rows follow the screen’s smallest width in three steps, 46.9 dp keys every 59 dp from 400 dp wide (a Pixel 8), 40.3 every 50.3 from 360, and 37.7 every 48 below, and their letters and corner hints are the same share of the key on every screen, never larger with the system font size (nor are the strip’s words, as Gboard’s suggestions aren’t), so nothing turns into “…” and a hint never touches its letter. Hex has ?123, comma, space, period and enter in the bottom row (the second symbols page puts < and > there, as Gboard does); the system’s own switcher in the navigation bar, or Hex menu › Next keyboard, changes keyboards.

Speech model and privacy

Whisper small Q5_1 is the default; multilingual tiny Q5_1 is bundled and works from first launch in airplane mode. The Android benchmark compares tiny, base, small, Parakeet and Android’s strictly on-device provider on the same 40 clips. Hex’s small configuration reduced WER from 17.54% to 5.26% and used 344 MiB peak native RSS on short clips. Norwegian remains the weakest language.

Labs › Faster English dictation (off) runs English dictations on NVIDIA's Parakeet TDT-CTC 110M instead, through transcribe.cpp at the commit desktop Hex pins, in a second native library (libhexenglish.so, built from source with the same patch and import check as libhexspeech.so, and only Parakeet in its model registry). Turning it on shows Download 135 MB; nothing is fetched until that tap, or until Labs › Pick the English model for this phone chooses it. The file (handy-computer's Q8_0 GGUF at 1c3f0d53, 135,373,280 bytes, SHA-256 7dd44c74…) goes through ModelStore like the default model and is hashed once more per process before its first use; Delete download removes it (and turns the switch off). Only English uses it, decided when a dictation starts: every other language, Automatic resolving to one or choosing among several (Labs › Automatic listens for the language: which one is spoken is known only once today's model has heard it, and Dictation then doesn't say English uses the faster one), and Paste in English keep today's model, and the library isn't even loaded with the switch off. One model is loaded at a time. When the faster one can't run (no file, a file failing its hash, a failed load) or fails, the same audio goes to today's model; short of memory with today's model already loaded, an English dictation keeps it, and the strip says so at most once a day. On the host's clip sets it used 26× less processor time than small on short dictations and 13× less on long ones, with no English errors (benchmark).

Labs › Pick the English model for this phone (off) chooses faster English dictation where English dictation is slow. 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 of speech kept, the model loaded before ✓ (already loaded, or loaded while the person spoke) and no second decode without the custom words, counts its decode's wall time per second of speech kept. Once the median of the last 5 is at least 0.5 and the last 20 dictations would all have gone English, it records the choice and the date; it never decides again. The keyboard only records. The next time a Hex screen opens (ModelChoice, from MainActivity), it turns faster English dictation on and starts the 135 MB download, which waits for Wi-Fi like any other; Dictation's speech model card says what is true (waiting, downloading, ready). Turning faster English dictation off by hand, or Delete download, is the person's choice, and the rule never turns it on again; only turning the lab itself on (a new request) clears an earlier off, such as one from before the lab existed. It keeps only numbers, in the private modelChoice preferences: the last 5 ratios, the English dictations in a row (up to 20), how many counted and how many didn't by reason, and the date and median of the choice. Turning the lab off deletes that file; a setting or download it already made stays as an ordinary one. Diagnostics' Model choice line says all of it. Debug builds take adb shell setprop log.tag.HexDecodeScale DEBUG (each decode counted 10× as long) or VERBOSE (half) to act out a phone; release-type builds don't contain it.

Setup's speech model row says the download's size (190 MB, the only one Hex needs), and setup's first tap begins a fixed HTTPS download on an unmetered network (most Wi-Fi), as Android judges it through ACCESS_NETWORK_STATE (Hex asks only whether the network is metered; Android leaves the network's name out). On mobile data or a metered Wi-Fi the Speech model row says 190 MB. Starts by itself on Wi-Fi. and offers Use mobile data; the download starts by itself when an unmetered network arrives while a Hex screen is open, or the next time one opens, and a mobile-data choice holds until the file is installed. Labs' 135 MB download waits the same way (135 MB. Starts by itself on Wi-Fi. with Use mobile data), whether its tap or Labs › Pick the English model for this phone started it; on Wi-Fi the tap starts it at once; setup shows progress and lets you continue with tiny. The privacy page says what else uses the internet (feedback when you tap Send, and Hex Preview's update check). The partial file is kept: when Android closes the connection because Hex went to the background, or Hex is closed or the phone restarts, the download continues with an HTTP range request the next time a Hex screen is open. A real failure (no connection, server error, full storage) says so and offers Retry, which also continues. ModelStore verifies the exact byte count and SHA-256 before atomically installing it in private, non-backed-up storage. The keyboard never makes a network request. Missing or unusable small weights fall back to tiny. Voice, words and translations stay on the device; Hex has no telemetry, transcript history or network speech service. The app’s only other request is Send feedback, made when you tap Send.

Keyboard and styles

Automatic follows a keyboard layout chosen in Keyboard › Keyboard layout, else the first supported Android system language, else English. It never listens for the language, so Settings › Dictation language and the Hex menu name the one it dictates in now, in its own name (“Automatic · English”). With Labs › Automatic listens for the language (off) it chooses among up to three: that keyboard language first, then the phone’s other languages Hex dictates, then the last language picked by hand in Dictation language. Bokmål and Nynorsk are one, and Danish and Swedish never count. The language comes from the first window the decode encodes anyway (a patch: one decoder step, about 3 ms on the host, where whisper.cpp’s own detection encodes a second, full window), and the keyboard’s is kept unless another is at least 99% likely among them, 95% from 4 s of audio (measured). The text is formatted and inserted in the language chosen. With one language there is nothing to choose and dictation runs exactly as with the lab off. While it chooses among several, the Hex menu and Settings say just “Automatic”, and its entry in the list names them (“Automatic · English, Español”). Labs › Diagnostics’ Last dictation then adds a line with the language written, whether it kept the keyboard’s or switched, each candidate’s probability against what a switch takes, and the choice’s time. Hold the language-labelled space bar to switch immediately between Automatic, English, Español, Deutsch, Norsk (Bokmål), Français, Italiano, Nederlands, Português, Polski and Русский. Português is one entry for Brazil and Portugal (Whisper has one pt). Its layout is QWERTY with the iPhone’s Portuguese accents held on a, e, i, o, u, c and n, and its typing model is Brazilian Portuguese, which keeps Portugal’s own spellings (“facto”, “telemóvel”) as typed. Nederlands and Polski keep the English layout (Polish letters are held on their base keys), so they type with English’s keys and accents and none of English’s suggestions, next words or autocorrections — your own dictionary words still complete and your text shortcuts still apply — and have no cleanup or list rules; pin a layout in Keyboard › Keyboard layout to type with that layout’s words. Русский has its own ЙЦУКЕН keys (below) but no typing model yet, and no cleanup or list rules. Português has spoken punctuation, the other three don’t. Slide on the Hex key or tap Hex menu to change the spoken language or style:

  • Polished (default): trims standalone hesitation sounds, fixes spacing/capitals and closes sentences.
  • Casual: lowercase texting, without the period at the end of a single statement.
  • Notes: “bullet point,” “next bullet,” “new line” and “new paragraph” become list items and breaks.
  • Verbatim: keeps the recognizer’s words and punctuation; no cleanup is applied.

Clean up what I say is off by default. The deterministic rules remove hesitations and resolve explicit self-corrections against nearby words of the same kind. Spanish, German and Norwegian use the iOS word lists and pause boundaries; English uses explicit markers, not iOS’s learned tagger or an LLM. Ambiguous repairs stay as spoken. Ordinary negation and language-specific words such as German “eh” and Norwegian “er” stay intact.

Translate what I say is also off by default. With Español and translation enabled, Next dictation offers Paste in English or Paste as spoken. With Labs › Automatic listens for the language, that is whenever Español is one of the languages it chooses among: Spanish heard is translated, and any other language heard is written as spoken. The choice is captured when recording begins; after a one-off spoken-language insertion, the next dictation returns to English. The pair is fixed, Spanish to English, and Settings › Dictation says so under the switch: “Speak Spanish, Hex writes English”, “Spanish Hex hears is written in English; other languages as spoken” while Automatic chooses among several, and, while the Dictation language can’t be translated, “Spanish to English only. Set Dictation language to Español to use it” (the switch can still be turned on and waits for Español). Translation is multilingual Whisper’s native speech-to-English task, not a second text model or online SDK. The tested Spanish WAV inserted both “El café todavía está caliente.” and “The coffee is still hot.” offline.

Typing assistance

All four layouts have a bundled, memory-mapped HXTM v3 word and word-pair model. English and Spanish keep the original iOS Google Books files. German uses Google Books; Bokmål uses the National Library of Norway’s book counts filtered by Norsk ordbank. Start typing to see ranked suggestions; tap one to insert it. While one word is typed, a word already in the strip keeps its slot as the next letter or the fix after the pause comes in; only what was typed (left), the fix (middle) and an emoji (right) have fixed places. A word the model doesn’t know shows what was typed on the left from its first strip, kept there after the pause even with no fix, and the likeliest completion on the right, where the fix won’t take it. An Italian or French elision typed without its apostrophe is offered joined up while the word after it is one of the model’s own starting with a vowel or h (“laltro” gives “l’altro”, “dellanno” “dell’anno”, “lho” “l’ho”, “lheure” “l’heure”), the longest elision first: Italian’s h is only for ho, hai, ha and hanno, and a word the model itself has (“lago”) or a books’ run-together spelling whose word after it is not much likelier (“allodio”, “sensei”) is left alone; a suggestion only, as the English contractions are. A space brings up next-word predictions. Where text follows the cursor, a pick still goes in: a next word picked right after a word with no space yet (a pick whose space waits for the next word, or a word you came back to) puts the space in first, a word picked before a letter (Gmail’s Smart Compose text) goes in with its space before it, and after a pick whose space waits, a first space keeps it for the next word and a second one goes in. Passwords and email addresses use literal typing; a URL or web search field, as a browser’s address bar is, keeps suggestions and swipe typing but never autocorrects, shows no highlighted autocorrection and changes nothing typed there (no double-space period, text replacement or tap correction); a picked suggestion goes in with a space, as Gboard’s does there, and a following mark such as . or / takes that space (“github.”, “github/”), while a swiped word gets the usual space before it and none after; a field that asks for no suggestions, completions or filtering, as a search box does, keeps suggestions, next words, emoji suggestions, swipe typing, text replacements and double-space period but does not autocorrect on space or punctuation: no autocorrection is highlighted in the strip, though a text replacement still shows and applies; a field that asks not to be learned from, as an incognito tab does, keeps every suggestion, autocorrection, swipe and double-space period, and remembers nothing typed there: an undone autocorrection is not counted, and a picked emoji does not join the picker’s recents. A field that keeps its own text, as a terminal’s TYPE_NULL editor does, gives Hex nothing to read back or edit: suggestions, autocorrection, swipes and smart quotes are off there, Delete and a held Delete send one delete key press each (a key press per press, never a surrounding-text delete), Delete’s slide is off, the space bar’s cursor slide steps with arrow keys instead of setting a selection, and Enter sends an Enter key when the editor has no action. Read from the source and the field’s unit test; not tried on a device.

Nederlands and Polski have no typing model of their own: while one of them is dictated and no layout is pinned, English’s word list only gives the keys their geometry. The strip offers what you typed and your own dictionary words as completions; there are no next words, no autocorrection or replacement on space and punctuation, and no tap correction, swipe typing or English emoji keywords: a swipe types nothing, and the first one in a field says “Swipe typing isn’t available in Nederlands yet” (naming the language dictated) in the strip, on two lines and a little smaller where one is too short, until you type, tap it or its ✕. Double-space for a period, your personal-dictionary text shortcuts, capitals and the literal chip keep working. Pin a layout in Keyboard › Keyboard layout to type with its model.

Keyboard › Keyboard layout follows dictation by default; an explicit layout can differ from the space bar’s spoken language. Spanish has a dedicated ñ, and holds ¿ and ¡ on ? and !. German is QWERTZ with ü, ö and ä; hold s for ß (Labs › Keyboard › Compact German layout drops those three keys and holds them on a, o and u). Bokmål has å, ø and æ. Русский is ЙЦУКЕН (11, 11 and 9 letters, so shift and delete are one key wide); hold е for ё and ь for ъ. It has no typing model yet, dictated or pinned: its letters type exactly as tapped, double-space still types a period and capitals still follow the field, but the strip offers no words, your text shortcuts don’t apply, nothing is corrected, and a swipe types nothing and says “Swipe typing isn’t available in Русский yet”. Its Latin letters are a layout away: hold the space bar for English, or pin a layout.

Keyboard › Suggest swear words is off by default on every layout. Slurs on the curated list are never offered, even when swear words are enabled. The filter applies to completions, next words, autocorrect and both halves of a missed-space correction. Typing a listed word in full keeps your exact spelling; its literal chip accepts what you typed. The filter never changes the HXTM models.

On space, the Kotlin decoder compares each tap with the measured key centres and combines those distances with the previous word’s probability. It can recover a missing space. A known spelling requires a higher confidence margin than a nonword. Immediately press Delete to restore exactly what you typed, without the space. With Labs › Keyboard › Punctuation after autocorrect (off) on, a comma, period or other closing mark typed right after takes the space the correction, or one of your text replacements, added (“keyboadr”, space, “.” gives “keyboard.”), as it does after a picked suggestion; a space you typed after a word left as it was keeps the mark apart. Off, the mark goes after that space as before (“keyboard .”). Undo the same replacement twice and Hex keeps that spelling in later sessions. Only rejection counts keyed by hashes and, with Labs › Learn from my fixes on, the dictation word pairs you corrected are saved locally; there is no typing journal. In a field that asks not to be learned from (an incognito tab), undo still restores exactly what you typed, but that rejection is not counted; a picked emoji is not remembered either.

Keyboard › Swipe typing is on by default, as on iPhone Hex and Gboard (Gboard calls it glide typing). Slide from a letter through a word's letters and lift: a trail follows the finger and the strip shows the word so far. Lifting types the best reading, after a space unless the text before ends in one, a line break or opening punctuation, with a capital from shift or a sentence's start; names and German nouns take theirs from the capitals list. The strip then offers the next three readings; tapping one puts it in the word's place. A letter, digit or opening mark tapped next goes in after a space; a comma, period or other closing mark goes against the word. Delete right after takes the whole word back as Gboard's does: the space before it stays, the strip offers the word again, and the same swipe there types its next reading instead (with Labs › Keyboard › Delete swiped words letter by letter on, it deletes one letter and the swipe is forgotten). Space never autocorrects a swiped word. A drag that comes back to the key it started on types that key; a hold for accents, a slide from shift or ?123, the space bar's cursor and Delete's slide work as before, and a second finger going down finishes the swipe first. Swipes work in all seven layouts, in fields where Hex reads words (not passwords, addresses or URLs), except while a dictation language without a typing model is dictated and no layout is pinned (Nederlands, Polski or Русский; Русский’s own keys have no model either, pinned or not): English’s words are only standing in for the keys there, so they never guess ahead; the strip says so instead, once per field. ß is read through s, and French œ and æ through o and e and through a and e.

SwipeDecoder is iPhone Hex's decoder in Kotlin with the same parameters. A path is resampled in key pitches, and the words starting and ending near its ends are read in place from the same HXTM model. Each is scored on location, shape, where the finger turned and paused, and the word before. On the iPhone benchmark's method and the held-out sentences (swipe-bench.py), the Android and iPhone decoders give the same four readings for every one of 12,514 English swipes. The first word is right for 96.9% of English swipes and 94.3% of Spanish, 95.9% German, 96.4% Bokmål, 95.2% French and 96.0% Italian; the word is typed or in the strip 99.2–99.6% of the time. A swipe takes 1.0–1.4 ms at the median and under 5 ms at p99 on the API 36 emulator. Swipe results and how to run them

Keyboard settings and Hex menu → Typing feedback control key pop-ups and key haptics independently. Both default on. Each key press is one short click that Hex plays on the vibrator itself, not Android’s keyboard effect, which some phones (Samsung’s One UI) keep for their own keyboard. The click is touch feedback, so the phone’s touch vibration setting, its strength and Do Not Disturb apply (Pixel: Sound & vibration › Vibration & haptics › Touch feedback; Samsung: Sounds and vibration › System vibration › Touch interactions). Hex doesn’t follow Android’s Keyboard vibration switch (Android 15 and later; a Galaxy S23 stores it off with touch vibration on): Hex’s own Haptics switch turns its taps off. Hold a letter, slide to an accent, and release. Turning off pop-ups leaves the deliberate accent picker available.

English/Spanish typing benchmark, model sources and licences

Settings

After setup, Home shows Ready (Ready · speech model 63% while setup's download runs) or Finish setup, a Dictate bar and four destinations, following the iOS navigation in #2054. Tap Dictate, speak, then Finish dictation: Hex displays the local result on Home. Dictation controls style, language, translation, cleanup and the offline speech model. Keyboard has layout, height, autocorrect, swipe typing, key pop-ups, haptics and a practice field (Test keyboard…; with Labs › Keyboard › Test keyboard on Home, off by default, that field is on Home below the Dictate bar instead, so the Hex keyboard comes up there; Send feedback's picture of Home paints over what was typed in it, as it does the dictation result). Keyboard › Height has seven steps named as Gboard’s were (Extra short to Extra tall, 0.75 to 1.25 of the rows’ step, Normal by default and the screen’s own Gboard step): the keys grow or shrink and the gaps between rows stay, as Gboard’s Resize does (which goes from 0.69 to 1.62); the strip, the keys’ widths and the letters don’t change, except that letters shrink on the shortest rows. A change shows the next time the keys are drawn (at once, or after a dictation that is running). Privacy explains storage and links the model credits. Labs has a Dictation group with Faster English dictation (off; see Speech model and privacy), Automatic listens for the language (off; see Keyboard and styles) and Learn from my fixes (off): a dictation inserted in a word field is followed by its text around the cursor, never by position, for a minute or until the field changes, and the words you correct become fixes once you make the same one twice. Fixes are applied to later dictations, and the words you meant join the recognition hints. It holds only the word pairs, their counts and when you last made each fix, on this phone, and off it tracks, applies and hints nothing; Settings lists each learned pair with a switch and Delete what Hex learned, which stays reachable while the lab is off because the records remain. The same group has Dictate from Quick Settings (off), for apps where Hex can’t be the keyboard, such as a work profile whose admin allows only the phone’s own keyboard: on, Hex enables its Quick Settings tile (Android 13 and later also ask whether to add it) and, off, disables it, so Android offers no Hex tile at all. Tapping the tile, after unlocking if the phone is locked, opens a small sheet over the app in front that starts listening at once with the keyboard’s dictation — the same language, style, translation, models (faster English when that lab is on, the bundled model until the download finishes), notes and 1-minute stop — and copies the text for you to paste: Android 13 and later show their own copied preview and the sheet closes; Android 12 says Copied for a moment. Finish dictation stops, Cancel, Back, a tap outside the sheet or leaving it discards the dictation and copies nothing, and a note (the 1-minute stop, low memory, no speech) keeps the sheet open. Without the microphone permission the sheet asks for it, or points to Android’s settings once it was refused for good. The text is unsigned, as Home’s Copy is. The sheet makes no network request: it neither resumes the model download nor checks for updates. The tile adds no permission; the person pastes the text, so it works in a work app wherever the admin allows pasting from personal apps, Android’s default. The same group has Dictation sounds (off, #3010): desktop Hex’s sounds for dictation, wherever Hex dictates (the keyboard, Home, the Quick Settings sheet and apps’ speech requests with Labs › Keyboard › Answer apps’ speech requests). A sound plays as the microphone opens, as it closes (✓, a hold’s release, the 1-minute stop), on ✕, Cancel, Back or a tap outside a sheet when a dictation is discarded once its start sound has played, as the stop sound needs too (Hex closing, the screen going off or a field going away stay silent), when a dictation fails (no microphone, the speech model unavailable, a failed transcription; “No speech heard” is silent), and “done” when the text goes in 2 s or more after the stop sound, as on desktop. Done and error don’t play while another dictation is recording. Sound picks the set: desktop’s seven, in its order and with its names (Classic keys, the default, Kalimba, Click, Soft tone, Wood, Warm synth, Thock); a tap plays a short dictation in it. Classic keys and Thock have no done sound, and Classic keys’ error is Kalimba’s, as on desktop off macOS. The files are desktop’s own (resources/audio/sounds/, the five dictation sounds of each set, about 1 MB, packed by the build, never copied), played through one SoundPool as USAGE_ASSISTANCE_SONIFICATION, so silent and vibrate mute them and the phone’s system volume sets their level. The recording is zeroed from when the microphone opens until the start sound has played out plus 120 ms, counted from when it actually played, so it is never transcribed; this also drops any speech in that moment. While the set is still loading (the first dictation after the lab is turned on or Hex restarts) a sound waits up to 300 ms and is then dropped, and the recording stays zeroed while the start sound waits. The stop sound plays only once the microphone has stopped. Off, nothing is loaded or played and the recording is untouched. An Output group with Signature (off): each keyboard dictation ends with “Sent from Hex” on its own line. The line is editable, one line of up to 200 characters, and an empty line adds nothing. The next dictation starts on a new line below the signature, and a signed dictation never continues the signature line. Home’s preview and Copy stay unsigned, and Hex’s own fields are never signed. Labs also has a Keyboard group with Symbols on letter keys (off): hold a letter from any of QWERTY’s three rows, such as m, to type ? first, with the letter’s accents after it. Symbols follow the letter, so AZERTY q/w and QWERTZ y get none where their layouts draw those letters on rows 2 and 3. Row 1 keeps its digit while it shows one: with Number row off it hints and holds the digit first; with it on, the top row’s letters show Gboard’s symbols in its place and hold them first (q for %, p for }, r for =), and a letter that already has a row 2 or 3 symbol keeps that one (@ on AZERTY a, * on AZERTY z and QWERTZ z). The top row’s symbols stay on row 1, and no two letter keys show the same symbol. Off, the keyboard is unchanged. The same group has Number row (off): while it is on, every letter layout draws 1 2 3 4 5 6 7 8 9 0 in a row above the letters, so a digit types without switching to ?123. The digits type like normal keys, with key pop-ups, haptics and their held symbols, and shift leaves them alone. With the number row on, the letter keys’ corner digits and digit-first holds are gone, and the Symbols on letter keys hints and holds still work, row 1’s first ten letters showing a symbol instead of the digit (Gboard’s, such as q for % and p for }, or the letter’s own home- or bottom-row symbol where it has one, like AZERTY a for @). The keyboard grows as Gboard’s does with its number row (measured on the same screens), by less than a row: the letter rows close up to 0.956 of their step with the same keys, and the number row’s step is 0.892 of theirs (0.814 turned), so a Pixel 8’s keyboard grows by 45 dp, not 59, and turned by 30 dp, not 43. ?123, =< and the symbol pad keep that height, their three rows stretched over it as Gboard’s are, so switching pages never resizes the keyboard (a number or phone field’s pad keeps its own). The Hex menu and the emoji panel match it. With the toggles off the keys are exactly as before. The same group has Local currency (off): the ?123 page shows your region’s currency in $’s place, and d holds it on the letters — £ in Britain, € in the eurozone, ¥ in Japan and China, and ₹, ₱, ₩, ₽ or ₴ where those are used. Only the first system language with a country is read, and the currency’s code decides the symbol, so it never follows the phone’s wording; an unknown region, a first language whose region isn’t a country (such as Latin American Spanish, es-419), a currency Hex has no single symbol for, and the United States keep $. Holding the key types $ first, then the key’s held symbols without a second copy of the local one. The second symbols page’s money row is £ ¢ € ¥: a local £, € or ¥ gives its slot to $, and any other local currency takes only ¥’s slot, so £, ¢ and € stay drawn and no page shows a symbol twice. Off, both pages draw Gboard’s rows and d keeps ****. That group also has **Emoji suggestions** (off): on the English keyboard, while an English word that names an emoji is being typed (never while English’s list only stands in for a dictation language without a layout), the strip’s last slot offers it beside the word suggestions — “smile” gives 😊, “joy” or “haha” gives 😂, “heart” gives ❤️. It always takes that last slot, even when it is the only suggestion. Matching is case-insensitive and whole-word; continuing to type keeps the word, and nothing matching leaves the strip unchanged. Tapping the emoji replaces the word and commits it with the same space rules as a word suggestion. The word list uses the same 0.85 strong cut-off as iPhone Hex, plus a reviewed “joy” → 😂 and a reviewed exclusion list (number words that name clock faces, and ordinary words that name an emoji’s object in another sense), generated from the [iOS keyboard’s emoji index](../ios/HEXShared/FullKeyboard/Emoji/emoji-index-en.txt) (Unicode emoji-test 18.0 and CLDR 49, plus Hex’s chat words) by [build-emoji-suggestions.py](scripts/build-emoji-suggestions.py). It is a 10 KB asset (828 words), read lazily only while the toggle is on; the loader keeps only emoji the device’s `Paint.hasGlyph` can draw (minSdk 31 draws up to Emoji 13.1), so the strip never shows tofu. The same group has **Keyboard tools** (off): while the strip has nothing else to show (no suggestions, Undo dictation, notice or dictation), its **Hold Hex to talk** hint becomes up to four buttons — emoji, paste, Hex’s Keyboard settings and undo of the last autocorrection — without making the keyboard taller. A field with no text either side of the cursor shows them in place of the sentence-start words the strip would otherwise offer, so they are there as soon as an empty field opens; typing anything brings predictions back, and switching the toggle swaps the two at once while the field is empty; a word being typed, a swipe’s readings or a word Delete took back keep their line. The emoji button appears only on the letters page, where the keys’ own emoji key is; a symbol page or a number, phone or date pad has none. Paste uses the editor’s own paste and appears only while the clipboard has something, and password and PIN fields show none. Undo appears only while the last autocorrection is still right before the cursor, and only when no next-word suggestions fill the strip; the Delete right after an autocorrection still undoes it when they do. Settings reopens Hex on its Keyboard page, replacing whatever Hex screen was open. The same group has **Keyboard tools between words** (off, #3235), which needs Keyboard tools: right after a sentence ends (“. ”, “! ”, “? ”, a closing quote or bracket before the space allowed, or a new line) the tools take the line in place of the sentence-start words, as in an empty field, and while the strip shows suggestions a tools key at the start of its line swaps them for the tools and back. The swap lasts until the suggestions change (a letter typed, a word picked, another field); password fields get no key. Off, the strip is as before. The same group has **Smart quotes** (off): in a plain-text field (not a password, email or URL field, or a TYPE_NULL field such as a terminal), the **'** and **"** keys type ’ ‘ “ ”. An opening quote — ‘ or “ — goes in at the start, after whitespace, or after an opening bracket or quote; the closing quote or apostrophe — ’ or ” — goes in after anything else. A word picked from the strip, autocorrected or swiped goes in with ’ for its apostrophe (“don’t”), your own text replacements get ’ for each straight apostrophe they contain (a **"** in one stays straight), and a dictation’s straight quotes are placed by the same rules, after its spacing is decided, in the same plain-text fields as the keys. The strip shows the ’ a suggestion will insert. The Italian and French elisions the keyboard section above describes (“laltro” gives “l’altro”) go in with ’ too. A quote key’s held alternates still type exactly what they show. With the toggle off, keys, picks and dictation insert the straight characters they always did, and existing ’ and ” are treated like **'** and **"** for word boundaries, spacing and lookups. The same group has **Delete swiped words letter by letter** (off), as iPhone Hex's experiment: Delete right after a swipe removes one letter instead of taking the word back, and the swipe is forgotten with it, so the strip stops offering the word, the next swipe there is a new word, and what's left is ordinary text. Held, Delete repeats letter by letter from the first; its slide still selects whole words. Off, Delete takes the swiped word back as before. The same group has **Delete words when held** (off, #3007), as SwiftKey's held delete: Delete held for the usual 400 ms removes the word before the cursor at once (what Delete's slide would select first: the word with the spaces and punctuation after it), with no letters first, then one more word after the **Initial delay**, each next gap the **Acceleration** shorter than the one before and never under 90 ms (by default 500 ms and 20%: 500, 400, 320, 256… ms), and each word plays Android's heavy click (with Haptics on) so the words can be counted by feel. A tap still deletes one letter and Delete's slide still selects words; a password or `TYPE_NULL` field, a selection or a cursor Hex can't place repeat letters as before. While it is on, two sliders sit under it (#3032): **Initial delay**, 200–1000 ms in steps of 50, and **Acceleration**, 0–50% in steps of 5 (0% keeps every gap at the initial delay); both are kept while the lab is off. Off, a held Delete repeats letters every 50 ms as before. The same group has **Punctuation after autocorrect** (off, #2813): a comma, period or other closing mark typed right after an autocorrection or text replacement on space goes against the word (“keyboard.”), as after a picked suggestion; off, it goes after the space as before. The same group has **Space after punctuation** (off, #3000): outside URL and web-search fields, a comma, period or other closing mark typed right after a picked suggestion (or, with Punctuation after autocorrect on, after an autocorrection) still goes against the word but puts the space back after itself (“here” picked, then “,” gives “here, ”), and a space typed straight after is swallowed, as one after a pick is, so typing one out of habit still leaves a single space; that space never makes a double-space period. URL fields keep joining (“github.”). Off, the mark goes against the word with no space after it, as before. The same group has **Click when a hold opens** (off, #3006): while Haptics is on, holding a key for its symbols or accents plays a key press’s click the moment they open, so the hold is felt before you lift. The Hex key’s and the space bar’s holds are unchanged, and with Haptics off nothing plays. Off, a hold opens silently as before. The same group has **Closing quotes take the space** (off, #3001): in a plain-text field (not a password, email, URL or TYPE_NULL field), a **"** or **”** typed while a quote is open in the paragraph takes the one space right before it, whether a pick, an autocorrection or you typed it (“she said "see you soon " gives “she said "see you soon"”), and goes in as ” with Smart quotes on. A quote is open when the paragraph before the cursor (up to 1,000 characters) has an odd number of **"** or more “ than ”; an opening quote keeps its space, and two spaces, or a space right after the quote that opened, stay as typed. It reads only the text, so the space still counts after switching to ?123 for the quote. Off, the quote goes after the space as before. The same group has **Password manager suggestions** (off): while Android’s autofill service — **Bitwarden**, **1Password** or **Google Password Manager**, which must itself support Android 11’s inline suggestions — offers logins, one-time codes or cards for the focused field, its own chips take the word suggestions’ place in the strip: up to six, in the service’s order, the pinned ones held at the edge outside the scroll, each drawn on Hex’s own key colour with the strip’s text colours so it reads in light and dark mode. Tapping one lets Android fill the field: Hex lays the service’s views out and never reads a login, a code or a card, and nothing is logged or sent. A new field, the keyboard hiding or the toggle turning off clears them. Off, Hex makes no inline request, so Android’s own autofill dropdown is exactly as before. The same group has **Clipboard history** (off): while Hex is the keyboard, it listens for copies (Android lets the default keyboard read the clipboard, with no “pasted from your clipboard” notice) and keeps the last 20 texts plus up to 20 pinned ones in one file in the app’s no-backup folder, which neither a backup nor a transfer to a new phone copies; an unpinned text goes an hour after it was copied. It never keeps a clip an app marks with `IS_SENSITIVE`, Hex’s own copies (Home’s Copy, the Quick Settings tile, Diagnostics), anything copied while a password field or a field that asks not to be learned from is open, or anything but text (only the clip’s own text, never a `content:` address), and only copies Android announces while Hex is the default keyboard are kept: the keyboard never reads the clipboard as it opens, so copies made under another keyboard or while Hex’s process is stopped are missed, and on the API 35 emulator so was a work profile’s copy that Android places on the personal clipboard (observed, not a platform guarantee). The Hex menu gets a **Clipboard** page, and with Keyboard tools on the strip gets a Clipboard button after Paste; neither shows in a password field. A tap types the text, a hold adds Pin, Delete and Cancel under it, and Clear (which asks, and leaves pinned texts) sits on the line above the tiles. Off, the listener is never added and the clipboard is never read; turning it off deletes every kept text. The same group has **Offer what I just copied** (off, #3188), as Gboard’s suggestion row offers a fresh copy: with Clipboard history and Keyboard tools on, the newest kept text, copied in the last 2 minutes, takes the tools’ place as a chip with its first line and a ✕ whenever the tools would show (an empty field), never in a password field. A tap types it as the Clipboard page does, ✕ hides it, and suggestions taking the line (typing a letter) use it up too: each copy is offered once, kept in memory only, and the chip goes by itself at 2 minutes. It reads only what Clipboard history kept, so everything that lab skips (sensitive clips, Hex’s own copies, copies in password or no-learning fields) is never offered, and the clipboard itself is never read. Off, the strip is as before. The same group has **SwiftKey words** (off): while it is on, **Import words…** reads SwiftKey's export (its data portal's View data › Export all ZIP or the `sync_words.json` inside it) or a plain list of words and adds its single words to a list Hex keeps on this phone, up to 50,000: numbers, links, addresses and phrases are left out, words already there stay, each word is kept once whatever its case, the same file twice adds nothing, and the row says how many new words were added. The keyboard then completes, swipes and reads taps as them as it does your personal dictionary's words, in every layout whose letters spell them, leaving out the words a layout's own model already has. **Remove imported words** shows while any are kept. Off, the imported words are kept but not used, and suggestions are as before. The same group has **Hex key on the left** (off, #2800): the Hex key moves to the strip’s left end, for the other hand. It works as on the right — hold to talk, tap for hands-free, slide for the Hex menu — and while dictating ✕ sits just right of ✓ and the dot waveform grows rightwards out of it. The hint, suggestions and Hex menu button keep their order in the rest of the strip, and the voice-only bar is unchanged. The choice is kept, and flipping it moves the key in an open keyboard at once. Off, the Hex key stays at the right end, where Gboard has its mic. The same group has **Voice bar from the Hex menu** (off, #2869): the Hex menu gets **Voice only** (not in password fields), which folds the keys into a small dictation bar in the same field, keeping its text, cursor and focus. Tap the Hex mark to talk and ✓ to finish; the text goes in and the bar stays for the next one. **Show keyboard** (the keyboard icon) finishes a recording, so its text still goes in, and brings the keys back; so does dismissing the keyboard. A dictation whose field went away waits in the bar’s line (“Dictation waiting”) until Show keyboard offers it in the strip. Off, the Hex menu has no Voice only. The same group has **Volume in the Hex menu** (off, #2868): the Hex menu gets a **Volume** row that closes the menu and opens Android’s own volume panel, as a volume key does, over the same field. Android picks the slider (media while something plays); the row itself changes no volume, so it needs no permission or Do Not Disturb access. Off, the Hex menu is unchanged. The same group has **Key click volume** (off, #3005): the key click plays at a level you choose instead of the one the phone picks for its system click (louder on a Galaxy than other keyboards’ clicks, as Gboard’s Volume on keypress fixes). On, a 5–100% slider sits under it, in steps of 5, where every 10% below 100 is 3 dB quieter (50% is −15 dB, 5% −28.5 dB); dragging it plays a click at the level shown. The click is still Android’s own sound, scaled by the system volume, and it still follows Touch sounds: Android’s volume-taking click doesn’t check that setting, so the keyboard reads it first and stays silent while it is off. The level is kept while the lab is off. Off, the keys click exactly as before, at the phone’s level. The same group has **Keypress vibration strength** (off, #3319): typing’s taps (a key going down, a held key’s lift tick, an emoji picked, a hold’s click) play at a strength you choose instead of the phone’s usual tap, without changing vibration anywhere else on the phone. On, a 5–100% slider sits under it, in steps of 5 (50% by default), and dragging it plays a key press’s tap at the strength shown. On a phone whose vibrator has amplitude control the tap becomes a pulse of its usual length (20 ms for a press, 12 ms for the lift tick) at that share of the vibrator’s full amplitude; a phone without amplitude control says so under the toggle and keeps the default tap. Hex’s Haptics switch, Android’s touch feedback setting and Do Not Disturb still apply to the keys and the slider’s preview alike, and dictation’s start and end cues and held Delete’s word clicks keep their strength. The strength is kept while the lab is off. Off, the keys vibrate exactly as before. The same group has **Answer apps’ speech requests** (off, #3022): Hex answers Android’s standard speech request (`RecognizerIntent.ACTION_RECOGNIZE_SPEECH`), which another keyboard’s mic sends when it doesn’t use Google’s voice typing (SwiftKey’s does) and some apps send themselves. The voice-only bar opens at the bottom over the app that asked and listens at once with the keyboard’s dictation (the same language, style, models, notes and 1-minute stop); ✓ sends the text back as the request’s one result, and ✕, Back, a tap outside the bar or leaving it send nothing. The 1-minute stop sends back what was said so far. A dictation that ends with a note and no text (no speech heard, a microphone or speech model problem) keeps the bar open, and its ✓ listens again. The first time, Android asks which app should answer: choose Hex and Always. While listening the bar never takes the keyboard from the app’s field; once the text is ready it hides and takes the keyboard for a moment, until the keyboard shows on it (plus 50 ms, at most 400 ms), so on Android 17 a keyboard that types the result the next time it starts on the field (SwiftKey) finds it ready (from the reporter’s emulator and phone tests; not tried here). The switch is the activity’s enabled state: off, Android never lists Hex as a speech app. Like the Quick Settings sheet, it makes no network request. The same group has **SwiftKey layout** (off, #3021), for muscle memory from Microsoft SwiftKey (English QWERTY, from screenshots of SwiftKey on one phone; the symbol pages' key sizes are not exact): held letters offer SwiftKey's symbols first and show them as hints, whether or not Symbols on letter keys is on (`@ # & * - + = ( )` on the home row, `_ " ' : ; /on the bottom row, and% ^ ~ | [ ] < > { }on the top row only beside the Number row; without it row 1 keeps its digits). The bottom row is ?123, emoji, comma, space, period, enter. A held period opens one row,! , . ?, with the period under the finger, in that order wherever the key is; a sideways flick opens it at once and the finger already picks (one key left ,, two !, one right ?). On the letters, holding the comma still for 350 ms dictates as holding the Hex key does, finished as it lifts, and types no comma; a microphone in its corner says so. Where Hex can’t dictate (a password field, no microphone permission), the hold does nothing and the comma types as it lifts. ?123 opens SwiftKey's 123 page (digits; @ # $ & _ - ( ) = %; then {&=, " * ' : / ! ? +and delete; ABC, comma, a wider space with no emoji key, period, enter), and its{&= key the second page (£ € ¥ ¢ © ® ™ ~ ¿; Tab, which types a tab, and [ ] { } < > ^ ¡; then 123, `` ; ÷ \ | ¦ ¬ `` and delete; ABC, space, × § ¶ °, enter). With Local currency on, the local symbol takes 's place on x and the 123 page, and takes its slot (or ¥'s) on {&=. The bottom row's keys move and hide in place, so a finger already on ?123 keeps its press. Off, the keyboard is Gboard's as before. The same group has Compact German layout (off, #3039), as Gboard's compact QWERTZ: German draws ten keys on rows 1 and 2 with no ü, ö or ä keys, so the others are wider, and holding a, o or u offers ä, ö or ü first after the letter itself (behind row 1's digit, under the finger as before), in capitals with shift. s still holds ß. Taps and swipes read the umlauts through their base keys, and German's suggestions, next words and autocorrection are unchanged. Other layouts ignore it. Off, German keeps its separate ü, ö and ä keys. The same group has Learn new words (off, #3020): a word you keep the way you typed it joins Android’s personal dictionary, so it is no longer corrected and completes like your other words. Keeping means tapping your own spelling in the strip, or undoing its autocorrection (Delete right after, or Keyboard tools’ Undo) and then ending that same word unchanged with a space or a closing mark; a letter, another Delete (holding Delete included) or any other edit in between keeps nothing, and of two words a missed space joined neither is kept. Only a spelling no dictionary Hex reads knows (the typing model’s words, your personal dictionary and imported SwiftKey words) of 2–32 letters and apostrophes, all in the typing model’s alphabet (the only letters the dictionary is read back in: English’s has no accents, German’s, Spanish’s, Bokmål’s and Portuguese’s no apostrophe), starting and ending with a letter and never on the curated never-suggest list, is added, under the typing model’s language, and a capital only the sentence’s start gave is dropped (“Tailscale” first in a sentence goes in as “tailscale”). Nothing is added in password, email, URL or TYPE_NULL fields, in a field that asks not to be learned from (an incognito tab), or while a dictation language without a typing model is dictated. The strip then says “Added “tailscale” to your dictionary. Tap to remove” in its suggestions’ place for 4 s, until you type, tap it or its ✕ (another notice, such as Hex Preview’s update line, keeps the line and this one isn’t shown); tapping it takes the word out again, and Android’s personal dictionary settings remove it later, after which it can be learned again. The words are Android’s, not Hex’s: clearing Hex’s storage or uninstalling it leaves them. The current keyboard writes the dictionary with no permission, and the keyboard reads it back as for any change; other keyboards can read it too. Off, Hex writes nothing to the dictionary, as before. The same group has Letters over the space bar as spaces (off, #3233): a word no dictionary knows can read taps on the bottom row's letters right above the space bar (such as c, v, b, n and m) as the spaces the thumb missed, when they landed near the key's lower edge: several in one word and one at its end, before the space you did hit (“ichbmanchmalb” gives “ich manchmal”, “thebcatbsat” “the cat sat”). The lower a tap lands the cheaper it is as a space: one on the key's centre, above it or a little below it (12 pt on a 45 pt key) stays a letter. Each word of four letters or more may have one slip, shorter ones are spelled as typed and a two-letter one must be common (never “et” or “al”), up to six words. A one-word reading must be likelier than the spelling as typed by a margin; a reading of several words may be somewhat less likely than it, by a fixed allowance for each word after the first, since several words' odds multiply where an unknown spelling's are counted once. Even so, rare words (“zombie”) and some short sentences (“das auto ist neu”) stay joined. With the lab on, German nouns take their capital in every reading that splits a word, also the single missed space and the one tap below the letters Hex already read without it (“dasauto” gives “das Auto”). What can still split: a compound the model doesn't know whose bottom-row letter lands at the key's lower edge (“webhook” as “we hook”, “nonbinary” as “no binary”, “handybildschirm” as “hand bildschirm”), and such a letter can also be read as the space while the word after it gets a slip (“nebenbeimal” as “neben einmal”). A word that really ends in one of those letters, typed low, can lose it as a missed space before the real one (a word the model knows never does). Delete right after takes either back. Off, a word reads as before: one missed space, or one bottom-row tap as space. It doesn't learn where your thumb hits the bar yet. The same group has Looser fast taps (off, #3232): a tap that comes quickly after the last key (any key, in the same field) lands further from its key's centre, so the decoder reads it with a wider spread. A gap of 350 ms or more reads as always, 110 ms or less is fastest, and between them it scales evenly; the fastest taps' spread is (1 + the gain) times the drawn one (0.29 of a key's width sideways), so their spatial cost is divided by the square of that. The gain starts at 0.2 and tunes itself on this phone, only where autocorrect reads words and Hex may learn (the fields Adaptive touch learns in): undoing an autocorrection lowers it and picking a correction from the strip raises it, both only when the letters change: a completion, an emoji, a missed space put in, or a change of capitals, accents or apostrophes alone (“ill” to “I’ll”, “mary” to “Mary”) never moves it, while a space typed as a letter (“ofbthe” to “of the”) does, each step 0.04 times how fast that word was typed, so slowly typed words never move it; it stays between 0 and 0.8, a single number in Hex's typing preferences, listed on the Privacy page. Turning the lab off, or Delete what Hex learned, forgets it, so it starts again at 0.2; an open keyboard takes the reset at once. Swipes are unchanged. Off, every tap is read with the same spread as before and nothing is tuned. The same group has Hold delay (Default): how long a key is held before its accents or symbols show, and the space bar before its hold acts. Short is 200 ms, Default 300 ms and Long 500 ms for the keys, inside Gboard’s Key long press delay (100 to 700 ms, 300 by default). Default leaves the space bar on Android’s own touch-and-hold delay (400 ms unless changed in Accessibility); Short and Long scale that delay by the same share, so Android’s 400 ms becomes 266 or 666 ms. Pop-ups, haptics and Delete’s repeat are unchanged. The same group has Hold space to move the cursor (off): holding the space bar still for Android’s touch-and-hold delay no longer opens the dictation-language menu. A click says the hold took, then a slide moves the cursor one character at a time from where the finger was held, as iPhone Hex’s trackpad does, and letting go types nothing, moved or not. A tap types a space and a slide without a hold moves the cursor, as before. The language stays in the Hex menu’s Language page, and TalkBack’s long click on the space bar still opens it. Off, holding the space bar opens the menu as before. The same group has Emoji search (off): the emoji panel gets a Search emoji bar at its top. Tapping it brings the keys back under a search field in the strip’s place, and the keys type into the search, never into the app’s field: no suggestions, corrections, swipes or learning, and nothing typed there is kept. Results follow each key in two rows above the field, where the panel’s extra height is, so the keyboard keeps its height. They match each English word typed against the start of an emoji’s name or keywords, as iPhone Hex’s panel does (whole name words first, then name prefixes, then keywords; among equals a short name the query fills, then your recent emoji and the everyday ones), from a 86 KB asset generated from the iPhone keyboard’s emoji index (Unicode emoji-test 18.0 and CLDR 49 names and keywords, plus Hex’s chat words) by build-emoji-search.py, read the first time a search opens and kept to emoji the phone can draw. An empty search shows your recently used emoji first, then the everyday ones. Tapping a result types it into the app’s field and adds it to Recently used, and the search stays open for more; ✕ or Return goes back to the panel, and Back leaves the search and the panel for the letters. Off, the panel has no bar. Keyboard › Spatial autocorrect controls tap-based correction; it starts on to preserve existing Android behavior. Turning it off keeps dictionary completions and the fixed English typo/contraction rules; turning off Keyboard › Autocorrect disables all automatic replacements, while the strip still offers the corrections and near words as plain words to tap (Gboard keeps its suggestions too).

Privacy › Privacy policy opens the Android policy text even in airplane mode.

Labs › Diagnostics (Hex Preview and debug builds, never the Play release) makes a plain-text report that a tester copies and pastes wherever they like. Nothing runs until a button on the page is tapped, and nothing is sent. The report has the build, the phone's maker, model, Android version, public build number and security patch, total and available memory, the processor's cores as the kernel rates them (cpu_capacity, top frequency), the thread count and speech library ("standard" or "faster") Hex picks, whether the downloaded model is installed, the haptics switches and what the vibrator supports. It holds nothing typed or said, no identifiers and no list of apps. Speed test transcribes a bundled 11 s English clip (whisper.cpp's public-domain samples/jfk.wav, shipped only in those builds) twice each way, each row named by what it does so reports from different builds read the same: "new threads every graph" (ggml's default, a new pool for each encoder pass and each token); "threads kept ready, any core" (a pool made with the model, a patch); "threads kept ready, fast cores" (that pool kept on the cores the kernel rates at least half the strongest, shown only where Hex can tell them apart); and, where the kernel rates six or more cores fast, "threads kept ready, 6". The row a dictation uses in that build is marked "(what dictation uses)". The Speech line says where dictation's threads are kept ("dictation threads: 4 kept ready on cpu 4-7", or "on any core" when Hex can't tell the cores apart or the kernel refuses to pin them), and each run and the last dictation say where theirs were, read back from the decoding thread. It runs in the app, or, after Run in the keyboard, the next time the keyboard opens in another app's field. The keyboard and the app share one process, so that second run measures the scheduling a dictation gets. Each run reports wall and processor time, the encoder and decoder time (whisper.cpp's own timings, read through a patch), the thread's cpuset, cgroups and allowed cores (said once when every run shares them), the cores it ran on, and, sampled every 150 ms during the run, each cluster's clock range and the share of samples below its top frequency, so a clock cap shows up. Last dictation shows how long the last real dictation's steps took, kept in memory only until Hex's process ends, with nothing said or typed: where it was made (the keyboard or Home), seconds recorded and kept after the trim, the threads and encoder window, where the model was at ✓ (already loaded, loaded while the person spoke, still loading, or loaded after ✓), the ms after ✓ at which recording stopped, the decode started and finished and the text went in, whisper.cpp's encoder, decoder and prompt time, the process's processor time against the decode's wall time, and, when a decode with the custom words repeated itself, wrote a phrase twice, came back empty or wrote only those words and was decoded again without them, which it was and how long that took. The speed test never replaces it. The haptics part says what Android's settings and the vibrator report, what each of Hex's taps resolves to on the phone (Tap.plays, the decision tap() uses), and how many taps Hex asked the vibrator for and how many its settings stopped since Hex last started (counted in memory). Tap through the vibrator plays a key press's tap through KeyHaptics and its one gate, Hex's Haptics switch, Tap the way Android does for keyboards plays Android's own KEYBOARD_TAP, and Stronger pulse plays an 80 ms full-strength pulse on the touch channel without Hex's gates.

Send feedback

Home’s Send feedback opens a form: Problem, Idea, Question or Other (Other sends no category), an optional subject, the message, up to five pictures and an optional email. Nothing is sent until Send. Then the app makes one multipart POST https://api.blhp.app/v1/feedback to Bellhop, Anomaly’s feedback inbox, with HttpURLConnection and a hand-built body, following Bellhop’s checklist: upload progress; an Idempotency-Key made at the tap and reused for every retry; network failures and 5xx retried with the same body after 1, 2 and 4 s; 409 request_pending and 429 retried after Retry-After (up to a minute), no other 4xx; limits and the email’s shape checked before sending. 401 and 403 feedback_disabled show feedback as unavailable and log a warning (debug builds; R8 strips every android.util.Log call from release and preview).

The first picture is Hex’s own window, drawn with PixelCopy just before the form opens, never the screen, the keyboard or another app; Home’s dictation result is painted over first, so no transcript leaves the phone. More come from Android’s photo picker (no permission). Every picture is re-encoded as JPEG at 80% with the longest side at most 2048 px. With an email, the request carries it and a random install ID kept in the app’s preferences (made at the first such send); without one it is anonymous: no email, install ID or user. Metadata is the screen, the channel (play or preview), the speech model and the dictation language. Dictations, transcripts, recordings, vocabulary and corrections are never sent, and the keyboard has none of this.

The report key is the Gradle property hexFeedbackKey (in gradle.properties; publishable, it can only send feedback to Hex), surfaced as BuildConfig.FEEDBACK_KEY. A build without it has no Send feedback. Debug builds log each request without the key (adb logcat -s HexFeedback), and am start -n ly.anoma.hex/.MainActivity --ez feedback_drop_first_response true loses the first answer to show the retry returns the same issue.

Phase 4 verification

On identical held-out synthetic taps and unchanged English and Spanish iOS models, Android’s English word error rate fell from 10.53% to 7.40%, against 8.39% for iOS R1 without offsets. Spanish was 10.33% against 10.43% for iOS (phase 3 Android: 10.06%). The step-by-step benchmark explains the original 298 extra English errors; the replay table gives raw counts, exact sentences and timing.

Emulator checks verified Spanish, German and Bokmål suggestions and space-triggered corrections in a separate Android app, including ¿¡, ß and æøå. The German and Bokmål assets were also checked byte-for-byte with the iOS Swift model reader across all 95,000 words per language and every stored pair score.

With airplane mode on and Wi-Fi off, fixed audio went through the emulator microphone and Whisper small into that editor. Spanish “Nos vemos mañana en la estación” and German “Wir treffen uns morgen am Bahnhof” matched. Bokmål “Tusen takk for hjelpen” also matched; on corpus clip 40 Hex inserted “Biblioteket stenger tydelig på lørdag” instead of “Biblioteket stenger tidlig på lørdag.” The same Spanish clip also produced a transcript from Home’s Dictate bar.

Five unit tests passed in each of the debug and release variants. Home, the four settings pages and all four detail pages were captured in light and dark. Deselecting Hex as the current keyboard changed Ready to Finish setup · 1 step; selecting it again through setup restored Ready.

How it works

  • App: Kotlin and Jetpack Compose. One setup page (microphone, keyboard, speech model and the language Automatic dictates in, each said as a status line) with one button that always does the next step Android needs a person for: Allow microphone, Turn on keyboard (Android's list; the line above the button says Android warns about every keyboard), Choose keyboard (the picker opens by itself on return, even after Android ended Hex's process while its list was open), Try it. Then a real practice field, where the first dictation is confirmed and, when the smaller built-in model wrote it because the download is still running, says so. The language line reads Android's system languages, never Hex's own App language, the list Automatic reads too; it names the phone's first language Hex dictates, the other phone languages a hold of the space bar away, and a first phone language Hex can't dictate, in its own name. With Labs › Automatic listens for the language on, it lists the languages Automatic chooses among, as Settings does. Setup reads live system state; it remembers the page, not the words.
  • Keyboard: HexKeyboard is an InputMethodService with native key views. Letters, shift/caps lock, symbols, delete, editor actions and next keyboard use Android input APIs; in a TYPE_NULL editor (a terminal) delete and the space bar’s cursor slide are key events, since the editor’s text can’t be read or edited. Enter runs the field’s action (Search, Go, Send, Done) when it has one; without one, a multi-line field gets its line break as text, as before, while a field that holds one line (and a TYPE_NULL editor) gets the Enter key instead, so a one-line search box that waits for that key (a launcher’s, #2864) searches rather than taking a line break. It commits through the active InputConnection. When an app hides the keyboard during a dictation (some do when you scroll back up), the recording stops at once, as with ✓, and its text still goes into the field it was spoken in, typed there even with the keyboard hidden; a hold on the Hex key that the hide cuts short finishes the same way. Only that field ever types it by itself. Moving to another field or app, the app restarting input (a browser, a WebView or a Compose screen moves between its inputs that way, so Hex can't tell a restart from another field), or the field going away, stops a recording the same way, and a text whose field is gone (or turned into a password field) is kept in memory only, for 2 minutes: the strip offers Insert dictation once, in the next field the keyboard opens in the same app that isn't a password field, without showing the words; a tap types it at the cursor, ✕ (“Discard dictation”) drops it, and so does that field closing. It is never written to disk, the clipboard or a log. Password fields allow typing only. Typing lives in KeyboardEngine, which reaches the editor only through KeyboardTextTarget; the views are KeyboardView (strip, keys or Hex menu), StripView and KeyPlaneView; each layout's letters are data in KeyboardLetters. KeyPlaneView turns a letter touch that travels a key's pitch into a swipe and draws its trail (SwipeTyping). While the finger moves, the path is read off the main thread every 70 ms; on lifting it is read on the main thread.
  • Audio: MicCapture records up to 60 s of mono 16 kHz PCM in RAM and releases the microphone before CPU inference. Whisper hears only the speech: from 0.3 s before it to 0.5 s after it; pauses in between stay. Speech is a stretch of voiced 40 ms blocks (RMS above −48 dBFS, the test that also decides “No speech heard”) less than 0.3 s apart with at least 120 ms of voice, so a click, a knock or the tap on ✓ doesn’t count. Quiet around the speech only slowed it down and added stray words: on the test host, 3 s of speech in a tap that waited for the 1-minute limit took 8.5× as long and ended with an invented “you”; trimmed, it takes as long as the 3 s alone, and the 40 benchmark clips and 15 long ones keep the same text. The recognizer interface operates on that capture and its language/task. A dictation longer than 30 s (more than one Whisper window) is decoded with timestamps, so each window ends at the last sentence it finished and the next starts there; moving on a whole 30 s at a time lost the words across the cut and, in windows full of speech, whole sentences (27 of 457 on 32 clips of 36–58 s in the ten dictation languages; with timestamps, 1, a sentence said twice in a row). Hex requests no audio focus and does not change playback routing. A microphone the phone has muted (a Samsung Mode that doesn’t allow Hex, or Android’s microphone access switch) still starts and records, but reads only exact zeros, which a real microphone’s noise never does: after 1 s of nothing but zeros (not counting the head Labs › Dictation sounds zeroes) the dictation stops and says “The phone muted the microphone. Check its Modes and microphone access” instead of listening on and ending with “No speech heard”.
  • Speed: the model loads when the Hex key goes down, while the person speaks, and stays loaded between dictations; it is freed 2 minutes after the last one or when Android runs short of memory, and nothing runs while it waits. The encoder's window is sized to the speech: up to 8 s, speech plus 3.84 s (at most the earlier 512 frames); longer, speech plus 12.8 s, until that reaches Whisper's full 30 s window (about 16.7 s and more). On 53 long clips in six languages (8.5–30 s) this margin made no clip worse than the full window; at 576 frames and less clips start to lose words, so it isn't lowered without rerunning the long-clip check. On the test host it took 8–10 s dictations from 2.1 s to 1.6 s and 10–12 s from 2.2 s to 1.7 s (median of three interleaved rounds). The bundled tiny model keeps the full window; shortened, it repeats itself. Inference uses one thread per fast core (at least half the strongest core's cpu_capacity), at most four. On the 40-clip benchmark this cut the emulator's median from 0.76 s to 0.56 s with the same word errors (5.26%). Those threads are made once, when the model opens, and kept with it (a patch) instead of ggml starting and joining a pool for every graph, each encoder pass and each decoded token, threads that often land on little ones; a decode keeps the pool, and the thread running it, on the fast cores, and gives that thread its own affinity back afterwards. The pool asks for the fast cores themselves, even from a thread the phone has narrowed (HyperOS keeps threads started during a touch on cpu 4-6, #3037); when it can't be pinned, it gets no more threads than the cores it may run on. A decode may write at most 15 tokens a second of audio plus 16 (Whisper’s own limit is 220 per 30 s window), and one that fails Whisper’s checks is retried once, greedy then 0.2, with one decoder instead of five at each of five temperatures, so a language the model handles badly can’t run on for seconds. A dictation of up to 30 s with recognition hints (custom vocabulary, or the words Labs › Learn from my fixes learned) that repeats itself to that limit (a hint in front of a short clip can cause it), writes one phrase two or more times in less time than saying it twice takes (over 4 words a second), comes back empty, or writes only two or more of the hints is decoded once more without them, and that text is used (prompted-clip check); only those decodes pay for it. ✕ and Home’s Cancel stop a decode in progress (whisper.cpp’s abort callback, asked after each encoder pass and each token), so the next dictation waits at most for the encoder pass under way, not the whole abandoned decode.
  • Known limits: a sentence said twice in a row comes out once, under every decoding setting tried (the model's behaviour), so a repeat you meant has to be typed (benchmark, footnote 1).
  • Type: unmodified InterVariable.ttf from Rasmus Andersson and the Inter Project, v4.1, licensed under SIL OFL 1.1. One Compose font family and native TextView helper cover Hex’s text, including keys, menus, strip labels and tabular digits (tnum). Android supplies missing glyphs; permission dialogs and the system keyboard picker use the OS font. Gradle verifies the bundled TTF’s SHA-256.
  • Licences: OpenAI Whisper weights and whisper.cpp/ggml are MIT. transcribe.cpp, with its ggml, miniz and Silero VAD code, is MIT. Parakeet TDT-CTC 110M's weights are NVIDIA's, CC BY 4.0, converted and quantized to 8 bits by the transcribe.cpp authors; they are not in the APK and download only on request. Kotlin/AndroidX are Apache 2.0; libc++ is Apache 2.0 with LLVM exceptions. Bundled credits and licence texts. No ML Kit or third-party language packs are shipped.

Build and run

Use JDK 21, SDK platform 36, NDK 27.2.12479018 and CMake 3.22.1. The Play packaging checks use Build Tools 36.0.0 and bundletool 1.18.3. From the synced android/ directory, with an ARM64 emulator or phone running:

export JAVA_HOME="/opt/homebrew/opt/openjdk@21/libexec/openjdk.jdk/Contents/Home"
export ANDROID_HOME="$HOME/Library/Android/sdk"
export PATH="$ANDROID_HOME/platform-tools:$JAVA_HOME/bin:$PATH"
./gradlew assembleDebug
./gradlew test
adb install -r app/build/outputs/apk/debug/app-debug.apk
adb shell am start -n ly.anoma.hex/.MainActivity

On a headless host, start an ARM64 AVD with -audio none -grpc 8566 -grpc-use-token. inject.py uses the matching emulator discovery record and streams paced mono PCM16 into the guest microphone. Generate the bindings from the SDK emulator’s lib/emulator_controller.proto with grpcio-tools, then put them on PYTHONPATH. No recording or transcript is injected directly into the application.

For the upload bundle, run ./gradlew :app:bundleRelease. Release packaging requires a private properties file at ~/.config/hex-android/keystore.properties or the path in HEX_ANDROID_KEYSTORE_PROPERTIES. It must contain storeFile (relative to that file, or absolute), keyAlias, storePassword and keyPassword. Release uses R8 and resource shrinking and never falls back to the debug key. Gradle writes app/build/outputs/bundle/release/app-release.aab.

Hex Preview (outside Google Play)

Hex Preview is the preview build type: the release build as an APK, application id ly.anoma.hex.preview, named Hex Preview in the launcher and in Android's keyboard list, so it installs beside Hex from Google Play with its own settings, words and speech model. It is signed with its own key (never the Play upload key), read from ~/.config/hex-android-preview/keystore.properties or HEX_ANDROID_PREVIEW_KEYSTORE_PROPERTIES; every build must be, because Android refuses an update signed with any other. The certificate's SHA-256 is 13:35:68:F6:F0:61:4F:E5:7B:C8:8D:AE:CA:32:AF:A7:2C:6A:B7:40:20:26:29:F7:52:FA:A0:33:BE:35:D9:8E.

Its update check lives only in app/src/preview (code, strings); debug and release build app/src/play's empty Updates, which is inlined away, because Google Play forbids an app updating itself. It reads latest.json on the android-preview branch when the app opens and at most once a day when the keyboard opens (never in a password field; Settings › Check for updates automatically). Hex Preview installs nothing itself and asks for no install permission: Download update opens the release's APK on GitHub (latest.json's apk.url, accepted only as a GitHub HTTPS address) in the browser, which downloads it. Opening the download, Android's own installer asks whether to update Hex Preview and accepts only an APK signed with Hex Preview's key; the first time, Android asks once to allow the browser to install apps, and after allowing it the person goes back and taps the download again (Back lands on the browser's downloads, not the installer).

scripts/preview-release.sh publishes a build: the build number is the count of commits up to the built commit of dev, the version name <versionName>-preview.<build>, the tag android-preview-<build> (a pre-release, never moved), and the channel branch android-preview holds only latest.json and the README people land on.

Play Protect, before and after publishing. Scan the dry run's APK (android/build/preview/<build>/HexPreview-*.apk) on the Google Play system image system-images;android-36;google_apis_playstore;arm64-v8a (AVD hex-playprotect-vogel), signed out, with no Google account: start it with emulator -avd hex-playprotect-vogel -port 5760 -no-snapshot -audio none, serve the APK's folder with python3 -m http.server <port> --bind 127.0.0.1, open http://10.0.2.2:<port>/<file> in the emulator's Chrome, install it and accept Scan app. It passes on “This app looks safe” (adb -s emulator-5760 logcat | grep VerifyApps shows JIT scan response: {"verdict":"SAFE"}). After publishing, uninstall it and install the published file fresh from the download button on anoma.ly/hex/android, accepting a scan if one is offered, so Google holds a verdict before people's phones ask; a second fresh install then shows nothing from Play Protect (logcat response=15). The preview must never again declare REQUEST_INSTALL_PACKAGES or UPDATE_PACKAGES_WITHOUT_USER_ACTION: of nine test builds, every one that requested it was judged harmful (POTENTIALLY_UNWANTED, generic_malware) after Google's scan, even with no updater code, and every one without it was safe, which is why updates go through the browser.

Scope: Android 12+ (min API 31), target 36, ARM64, seven typing models and ten dictation languages. See the Play release evidence, listing drafts, phone screenshots and real-device checklist. Emulator checks also exercised offline fallback, all four styles, per-dictation translation, both appearances and insertion into a separate app with music playing.