Commit Graph
27 Commits
Author SHA1 Message Date
James Babcock 210b111e27 Unify Android and iOS config formats 2026-10-31 15:43:55 -07:00
James Babcock 35a4ae7064 Add a notification-icons database (from Pebble) for iOS 2026-10-31 14:47:02 -07:00
James Babcock da44ade803 Build-system cleanup 2026-10-23 17:29:05 -07:00
A-nony-mous ae7fdef734 fix(build): make the Kotlin build work on Windows
Node cannot hand gradlew.bat to CreateProcess (EINVAL); run the wrapper
through a shell there. Two tests also assumed a POSIX checkout's
trailing newline and path separators.
2026-10-24 00:22:59 +08:00
James Babcock 668876a511 Merge pull request #49 from FilipAlexander/pr/bundleid
iOS: IOS_BUNDLE_ID overrides the bundle ID for sideloading
2026-10-17 11:40:06 -07:00
FilipAlexanderandClaude Opus 5.5 0a9625806e iOS: IOS_BUNDLE_ID overrides the bundle ID for sideloading
Building under another signing team needs a bundle ID that team owns.
IOS_BUNDLE_ID (build_paths.sh) sets the iOS app ID, defaulting to
com.faceclaw.app, and the iOS config transfer scripts use it too.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-17 16:42:42 +02:00
James Babcock fedc7fed67 Merge branch 'nightscout-missed-bolus-detector' 2026-10-16 18:25:20 -07:00
James Babcock f01214f4a0 Phone screen input shows gesture help for wake (and not random other gesture-help) 2026-10-14 01:01:41 -07:00
James Babcock 00c36602d6 Add a prototype nightscout "missed bolus" detector 2026-10-12 17:06:38 -07:00
James Babcock 406cefe0c5 Add stats collection and first-run on-glasses onboarding app 2026-10-10 17:33:32 -07:00
James Babcock c3a0ba9f56 Refactor Kotlin for iOS commonality 2026-09-22 19:55:08 -07:00
James Babcock 44eddedc01 Add script for collecting CPU profile information 2026-09-22 11:54:45 -07:00
James Babcock ccb320c66f Add tokens and faceclaw-input script, which allows using a CLI utility as an input device for the glasses 2026-09-20 00:34:58 -07:00
James Babcock 68810197a8 Refactor Java to shared kotlin 2026-09-18 22:48:20 -07:00
James Babcock bc8e80c533 Kotlin on iOS 2026-09-18 19:59:13 -07:00
James Babcock 44bd1d8a2d iOS porting: EvenHub app compatibility first pass 2026-09-08 14:47:58 -07:00
James Babcock 99793a37a7 iOS porting: Main screen and compositor 2026-09-05 22:59:37 -07:00
James Babcock d903ab0af9 scripts/pull-frame-timings.sh can take arguments to disambiguate multiple connected adb devices 2026-09-04 10:39:36 -07:00
James Babcock 2d45b65098 Scripts to push/pull config take arguments 2026-08-30 16:28:48 -07:00
James Babcock 3e8be93833 Add a settings import/export receiver
If you install a signed release build and want to switch to an unsigned
debug build, that involves an uninstall and reinstall, which by default
will lose your configuration. Modify scripts/pull_config.sh and
scripts/push_config.sh so it works on release builds, not just debug
builds, and update README.md to tell you to export your config before
doing this kind of upgrade.
2026-08-30 12:25:06 -07:00
James Babcock 4415c645f7 Add sync-site script 2026-08-29 15:21:53 -07:00
James Babcock fe28a6de4b Add missing scripts/before_build.sh 2026-08-28 21:23:22 -07:00
James Babcock ed8302bc6b Refactor build scripts 2026-08-28 12:02:59 -07:00
James Babcock 69ec828cb7 Add release-build script; and bump version number to 0.5.0 2026-08-22 22:28:36 -07:00
James Babcock 8cc29acaea Add scripts/update_deltas.sh for updating in-app firmware updater to latest custom firmware versions 2026-07-25 01:20:08 -07:00
James Babcock ddec2a7b39 Add scripts for pulling/pushing configs, frame timings; update ackrc 2026-07-14 15:58:12 -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