Commit Graph
63 Commits
Author SHA1 Message Date
James Babcock 5c73ba2a4d Add Timer, Weather apps; build out UI of music app; add wakeword action setting 2026-07-20 02:04:21 -07:00
James Babcock 161dbd104e Add wakeword support 2026-07-19 20:45:51 -07:00
James Babcock 9b05c20c1b Add RLE to compressed image format 2026-07-17 01:21:51 -07:00
James Babcock 89ff59ca6b Quantize rendered icons for better screen-image compressibility 2026-07-16 13:50:06 -07:00
James Babcock 0d4905ff28 Multi-rect optimization and pipelining 2026-07-15 12:39:19 -07:00
James Babcock 1550c0ca32 Add support for voice-input refinement prompts, and other improvements to Temrinal 2026-07-14 15:57:14 -07:00
James Babcock b2c90bc043 Performance optimizations; add TerminusV variable-width font 2026-07-11 23:41:57 -07:00
James Babcock ff447d5161 Add calendar app and accelerometer demo 2026-07-11 14:15:10 -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 2c04d99dfb Change Nightscout icon, app-switcher sidebar highlight style 2026-07-08 13:51:59 -07:00
James Babcock 22c779553c Sidebar uses icons for apps 2026-07-08 10:45:56 -07:00
James Babcock d0c30f9ca9 Port Transcribe to new UI; remove legacy dashboard 2026-07-07 22:11:28 -07:00
James Babcock 56d0f8c351 Sound effects demo, and music controller 2026-07-07 21:21:02 -07:00
James Babcock 5f82981b92 Continued UI redesign 2026-07-07 12:06:11 -07:00
James Babcock 68ab599856 Migrate things into new UI design 2026-07-07 00:52:47 -07:00
James Babcock 1133f952e9 App-switchign UI: Sidebar, top bar, launcher 2026-07-06 20:06:29 -07:00
James Babcock 1533c550b4 Enable incremental frames; add config setting for controlling custom firmware debug flags 2026-07-06 12:42:58 -07:00
James Babcock 2bc53b8c0e Debug recording 2026-07-05 23:17:46 -07:00
James Babcock 097d40efb2 Work on voice input 2026-07-05 20:59:53 -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 c9fe92dc1c Massively improve framerate 2026-07-04 12:29:50 -07:00
James Babcock 630b511d32 Add a performance tracing system (FrameTimings) and fix a big that would cause 6-second stalls 2026-07-04 12:20:13 -07:00
James Babcock acda9cdd7e Add sound demo to Faceclaw; use CFW mode 6 (headerless 4bpp) for images 2026-07-03 23:32:46 -07:00
James Babcock 116e8891e7 Add a wake-lock when the G2 screen is on 2026-07-03 13:03:03 -07:00
James Babcock 6632ada3c3 Update image-sender to include a mode number 2026-06-28 18:08:54 -07:00
James Babcock 8f28ede647 Send a single large image rather than 4 tiles 2026-06-23 10:49:20 -07:00
James Babcock 401cf6d4c1 Support sending zlib-compressed images to modified firmware 2026-06-23 00:03:06 -07:00
James Babcock 7857e6337a Try to connect directly to the ring (requires ring to be unpaired) 2026-06-09 19:05:34 -07:00
James Babcock 5a92637537 Turn on screen when Android notifications are received 2026-06-01 00:40:55 -07:00
James Babcock 8d6fe60c79 Notifications menu; UI refinements; teleprompt by sharing a text file 2026-05-17 17:05:54 -07:00
James Babcock adb93ae441 Switch to a different pipelining method 2026-05-12 00:45:04 -07:00
James Babcock e3be5dd629 Fix an off-by-one in single-tile image fragment sending 2026-05-11 20:27:32 -07:00
James Babcock b82019617f Move framePb to send-time 2026-05-11 20:18:12 -07:00
James Babcock 6d693d13b6 Migrate various connection options to ConnectionOptions.java 2026-05-11 19:10:11 -07:00
James Babcock f946c11cea WIP on-device voice model 2026-05-07 17:47:30 -07:00
James Babcock da2b44dfe1 Refactor connection options into a config class 2026-05-07 16:35:15 -07:00
James Babcock e853f0ea5d Refactoring 2026-05-06 16:12:34 -07:00
James Babcock 831e927dc8 Refactor message construction 2026-05-05 17:10:47 -07:00
James Babcock af27ed6383 Change ack handling to not overreact to timeod out heartbeat messages 2026-05-04 17:44:03 -07:00
James Babcock 5c963f1048 Refactor OutboundMessage to have onAck and onTimeout callbacks 2026-05-02 15:13:28 -07:00
James Babcock 29f911185f Refactor 2026-05-02 02:29:22 -07:00
James Babcock 9c199cd195 Refactor 2026-05-02 02:01:35 -07:00
James Babcock 05775a927c Improve connection resiliency
Remove some spurious locking around NativeScript/Java interfaces that
were added while debugging something that turned out to be unrelated.
Don't send messages to the left lens while a heartbeat is pending on the
right lens.
2026-05-02 00:48:08 -07:00
James Babcock bcc30545ad Add Transcribe screen 2026-05-01 15:00:53 -07:00
James Babcock 811477811e Fix Bluetooth connection priority setting 2026-05-01 11:46:45 -07:00