Commit Graph
17 Commits
Author SHA1 Message Date
James Babcock e592058dc2 Fix the aspect ratio of the screen preview 2026-08-01 23:01:53 -07:00
James Babcock 37e95627b1 Add window persistence across app restarts 2026-08-01 15:27:44 -07:00
James Babcock b738ce4bb2 Add screen-recording option 2026-07-28 10:16:44 -07:00
James Babcock 57d8d2fc79 Add long-press and mic buttons to preview form; fix canula-age display in Nightscout when outside 4-day window 2026-07-26 17:31:55 -07:00
James Babcock a5c6f18795 Add silent-mode and low-battery indicators to Android preview form 2026-07-20 12:02:20 -07:00
James Babcock d97429a21a Autoconnect on reaching main screen; play sound effect on first launch 2026-07-10 23:24:17 -07:00
James Babcock ea80d05607 Detect custom firmware during onboarding; add uninstall option 2026-07-10 23:08:15 -07:00
James Babcock cb78841a9d Add (NOT YET TESTED) firmware flashing/OTA-updating
We're going to extend the Faceclaw app onboarding process to include checking for and installing the custom firmware (currently handled externally with the scripts in ../g2flash). We'll add script scripts/resetOnboarding.sh that uses adb to reset the app on the attached phone to default/pre-onboarding state for testing. The onboarding process will explain that it's only compatible with custom firmware, with options to either skip and try out the app using only the phone-screen preview (instead of pairing with glasses), or proceed with flashing.
If the user proceeds with flashing, we first connect to the glasses (with the existing mechanism), and display an on-glasses confirmation prompt. Because this prompt needs compatibility with stock firmware, it will use a different subset of the BLE protocol than the main app does (in particular, no image containers), so we'll have a separate bluetooth communication class rather than extending FaceclawBleCommunicator. We'll send an init message to start a Hub app, initialize a layout with a text container and a list, populate the text container with a message saying that flashing will void warranty and the list with No and Yes, set up a keepalive/heartbeat message timer, and wait for a menu selection. (Refer to ../g2-kit-unofficial/ble/docs and ../g2-kit-unofficial/ble/gen for protocol details). If the prompt is approved, we go to the flashing screen.
On the flashing screen, we first download the official firmware, apply patches to it, and check that it has the expected result hash. See ../g2flash/build_cfw.sh and ../g2flash/apply_patches.py for details.
Let's implement everything prior to the update itself now, ie, the on-device confirmation prompt, and downloading, patching and verifying the modded firmware.
scripts/resetOnboarding.sh is meant to reset a pref so that Faceclaw reruns its first-run onboarding on next launch, but fails with "No onboarding keys were set. App is already in pre-onboarding state." (And onboarding doesn't trigger on next launch)
Thanks. I tested the on-glasses prompt on real hardware and it worked as expected. Next up, let's port the flashing procedure itself.
One detail of the flashing procedure worth noting: the two lenses get updated separately, and at the end of updating either lens, both lenses get rebooted, creating a brief period when neither is reachable, so the timeout to look for the second lens should not be too short.
2026-07-10 12:07:15 -07:00
James Babcock 7fcab243a3 Debugged ElevenLabs STT; added debug-recording option 2026-07-05 21:00:40 -07:00
James Babcock 4b73cbff35 Add charging mode 2026-07-05 00:35:03 -07:00
James Babcock 875956e140 Background battery permission; incremental images 2026-07-04 19:57:41 -07:00
James Babcock fab6f6689e Terminal feature; raw screenshots. 2026-07-04 17:38:53 -07:00
James Babcock d2a942f5a3 UI improvements
Menus can paginate and be taller than quarter-screen. Text config
setting editor selects all on enter, exits on confirm. Notification
icons are displayed on the notifications-list and single-notification
pages.
2026-07-04 15:02:09 -07:00
James Babcock 3532b1f437 Compatibility check; notification icon fixes
* Display a warning if paired glasses do not have a compatible custo firmware
 * Fix certain notification icons being missing on system card
 * Rescale large notification icons with proper sampling; don't send unnecessary
2026-07-04 14:27:25 -07:00
James Babcock 5da3b48c7d Refactor settings 2026-06-01 15:35:35 -07:00
James Babcock 468291aac3 Screen test for dithering experimentation; landscape layout for phone preview 2026-05-17 18:17:06 -07:00
James Babcock ef6cb3bf55 Refactor (move some files around) 2026-05-13 20:38:58 -07:00