Commit Graph
752 Commits
Author SHA1 Message Date
Blendman974 75bceb3b92 fix: support Android 16 KiB pages in native llama library 2026-11-06 04:21:43 +01:00
James Babcock 6df52021c8 Apple Watch: Sound-effects and vibrate settings, build scripts 2026-11-04 03:04:43 -08:00
James Babcock 2696f3b76c Add an Apple Watch app that can control the glasses 2026-11-04 02:20:26 -08:00
James Babcock c896ce9ac8 Merge branch 'case-battery-ui' 2026-11-02 00:31:41 -08:00
James Babcock 27756913d0 Show G2 charging case on Settings tab and charging view rather than main activity 2026-11-02 00:30:21 -08:00
James Babcock 8c700823fd Merge pull request #61 from Om-Alve/voice-permission-no-activity
Don't need an Activity to check already-granted permissions
2026-11-02 00:13:44 -08:00
Om Alve bdf4fc2f1d Correct how the app ends up with no Activity
The previous commit's comment and test said Android starts the app in the
background (a home-widget update, a notification-listener rebind) with
the glasses session running. A background start alone doesn't connect
the glasses; only the main page does. The state that breaks voice is
the Activity being destroyed afterwards: swiping the app away in Recents
destroys it while the foreground service keeps the process and session
running, and NativeScript then clears both foregroundActivity and
startActivity. On Android 12+ Back on the main page only moves the task
to the back, so the Activity survives it. Comment and test wording only.
2026-11-02 13:28:21 +05:30
Om Alve 9fac7a29ba Voice: don't need an Activity to check already-granted permissions
ensurePermissions looked up the Activity before checking whether any
permission was missing, and getActivity() throws when there is none.
Android starts the app in the background with no Activity (a home-widget
update, a notification-listener rebind), and the glasses session runs
from there until the app is opened. So in that state every "Hey Even"
failed in ensureVoicePermissions even though the mic permission was
granted, and the voice dialog kept showing the idle "Voice control
stopped.". The same throw hit ensureBlePermissions.

The Activity is now only looked up when a permission actually has to be
requested. A capture that fails to start for any reason other than a
denied permission now says so in the dialog instead of leaving the idle
status up.
2026-11-02 13:17:16 +05:30
Om Alve 5e729d1236 Case battery: read the glasses battery soon after they dock
Only the settings reply says the glasses are charging. Outside charging
mode it is polled every five minutes, and not at all while the display
is suspended, which it is once the glasses come off the face. So after
docking, the phone kept showing the glasses as "Not charging", and
charging mode (which pauses display traffic) didn't start until the
display woke or the link reconnected.

The case push that reports the glasses going from out of the case to
docked arrives within a second. It now schedules a battery read about
three seconds later. The drive loop queues it as a pending message,
which still goes out while the display is suspended.
2026-11-02 12:30:39 +05:30
Om Alve 046454e8c0 Merge remote-tracking branch 'origin/main' into g2-case-battery
# Conflicts:
#	native/kotlin/shared/src/commonMain/kotlin/com/faceclaw/app/g2protocol/session/GlassesSessionCore.kt
2026-11-02 12:02:53 +05:30
Om Alve fa7f33bfe8 Case battery: stop showing stale charging; read after the layout
Review fixes for the charging-case battery:

- The case reports whether the glasses are docked. An empty caseInfo
  (the reply out of the case) now parses as "not docked, no level"
  instead of nothing, and undocking is reported even when the level and
  charge state are unchanged. TS keeps the last level but clears
  caseCharging while the glasses are out of the case.
- The phone line shows the charging mark only while it is live: G2 and
  Case only with a link to the glasses (connected or charging), and Case
  only while docked. Levels stay as the last known ones.
- The session-start case read waits until the layout is up, so a
  firmware that ignored it could no longer hold up the first frame. When
  the glasses are already charging at connect, the charging-mode read is
  the only one; the old duplicate read and its "late ACK" log are gone.
- Case dedup state resets on every connect, as wearState does, so each
  session's read reaches TS.
- caseCharging uses > 0 like the headset, and is normalized to 0/1.
- iOS now feeds the reading into the shell battery state, and the
  assistant's describeState includes the case level.
- The batteryLine accessors move above connectionStatusLabel's doc
  comment.
2026-11-02 12:01:12 +05:30
James Babcock 8ea3795f07 Bring evenhub-extensions version number into sync with Faceclaw version number 2026-11-01 19:34:12 -08:00
James Babcock 742a5a3f81 0.8.6 2026-11-01 12:44:15 -08:00
James Babcock 7289496c09 R1 ring: Debug health-data sync 2026-11-01 12:19:46 -08:00
James Babcock fcea0b369a Merge branch 'main' of https://github.com/jimrandomh/faceclaw into ring-health-fixes 2026-11-01 11:00:38 -08:00
Om Alve 9c0535014a Phone UI: show the glasses, charging case and R1 battery levels
A line under the mirror lists each device whose level is known, e.g.
"G2 100% · Case 98% ⚡ · R1 72%" (⚡ = charging), in portrait and
landscape. The case level joins the shell's battery state beside the
glasses and R1 (it is not drawn in the glasses' top bar) and reaches the
page through the dashboard snapshot. Like the glasses level it is kept
across disconnects: the case only reports while the glasses are docked
and only drains while charging them.
2026-11-01 21:29:32 +05:30
Om Alve acfcf79787 Read the charging case battery (sid 0x81 GlassesCaseInfo)
The glasses relay the charging case's state on UX_GLASSES_CASE_APP_ID
(sid 0x81): GlassesCaseDataPackage{commandId=CASE_INFO, magicRandom,
caseInfo{soc, chargeStatus, lidStatus, inCaseStatus, errorCode}}, the
schema in g2-kit-unofficial's glasses_case.proto. The Even app reads it
with an empty caseInfo (ProtoBaseSettings.getGlassesCaseInfo).

Observed on G2 2.3.0.24 / Faceclaw/38: while docked the right temple
pushes a GlassesCaseInfo (flag 0x01, its own magic) on every change --
docking, lid, USB, each 1% -- and answers a read with full data; out of
the case a read comes back with an empty caseInfo. Docking pushes
{inCaseStatus=1} before the level, and proto3 drops zero fields, so a
missing soc means no level rather than 0%.

So read it once at session start (docked glasses may be fully charged
and never enter charging mode) and again on entering charging mode,
which clears the queue; pushes carry every later change. Every 0x81
frame is taken as state in onNotification (pushes skip the ack path by
flag). New readings reach TypeScript through
FaceclawBleCommunicatorListener.onCaseState (level, case-charging), on
Android and iOS. Captured frames are tests.
2026-11-01 20:38:32 +05:30
James Babcock a4adb73182 Fix spurious unit test failure in github CI 2026-11-01 02:31:09 -08:00
James Babcock 41ff1d2733 Fix reasoning_details accumulation; filter assistant settings to settings relevant to the selected model 2026-11-01 02:20:37 -08:00
James Babcock 571c4c84df Merge branch 'main' of https://github.com/jimrandomh/faceclaw 2026-11-01 00:29:30 -07:00
James Babcock 7f3e3f2305 Merge branch 'pr-57' 2026-11-01 00:29:16 -07:00
James Babcock 60caf9fcdb Mark stock 2.4.0.24 as validated for flashing firmware over 2026-11-01 00:14:02 -07:00
James Babcock 188bdff0d1 Port fixes from Glassly fork 2026-10-31 23:17:13 -07:00
James Babcock 4973fd2aea Support Apple Intelligence as an on-device AI model for the voice assistant/etc 2026-10-31 17:48:45 -07:00
James Babcock 3c3aa31542 Merge branch 'main' of https://github.com/jimrandomh/faceclaw 2026-10-31 17:05:00 -07:00
James Babcock 3f1c1a87ef Add FaceclawWebSignIn.kt 2026-10-31 17:04:48 -07:00
James Babcock 6e5864f981 Use iOS SpeechAnalyzer API to support on-device transcription with the Transcribe app 2026-10-31 17:03:56 -07:00
James Babcock 49ea8a7d74 Use Spotify API if an API key is provided 2026-10-31 17:03:09 -07:00
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 f47d82b871 Port the Developer app's resource monitor to iOS 2026-10-31 14:45:43 -07:00
James Babcock c5f80a0b00 Merge branch 'main' of https://github.com/jimrandomh/faceclaw 2026-10-31 14:04:41 -07:00
reidellawfirm 9a8c681d67 Add Venice assistant web search option 2026-10-31 16:01:25 -05:00
reidellawfirm cc8dc544be Add compatible assistant model discovery 2026-10-31 16:01:25 -05:00
reidellawfirm 77e8a86196 Add OpenAI-compatible assistant provider 2026-10-31 16:01:25 -05:00
James Babcock a5eda29368 Port developer debug tests to iOS 2026-10-31 13:57:18 -07:00
James Babcock 12c24529fb iOS: Notifications are selectable via the task switcher 2026-10-31 13:22:55 -07:00
James Babcock 032797f0f6 Add support for embedded icons and custom layouts in Android notifications
The practical upshot of this is that gmail, messages and similar apps
show the sender's profile picture on the glasses, the Dexcom app shows a
2026-10-31 12:39:20 -07:00
James Babcock 032fc307e9 Update CHANGELOG 2026-10-28 12:34:31 -07:00
James Babcock 773965716c Merge branch 'main' of https://github.com/jimrandomh/faceclaw 2026-10-28 12:33:42 -07:00
James Babcock 71bccd2c1c Ensure connection is re-set to 2M on reconnect 2026-10-27 13:05:13 -07:00
James Babcock 8e50c004a6 Make BLE benchmark work on iOS 2026-10-26 11:12:55 -07:00
James Babcock bc57557f04 Merge branch 'main' of https://github.com/jimrandomh/faceclaw 2026-10-26 00:45:27 -07:00
James Babcock 1ec77a8ade Add a distance unit option 2026-10-26 00:45:10 -07:00
James Babcock 50c608c26b Fix spuriously failing unit tests 2026-10-25 16:51:46 -07:00
James Babcock e15098c96e Version 0.8.5 2026-10-25 16:18:40 -07:00
James Babcock 79ea7858ca Fix double-dimming when app menu submenus are open 2026-10-25 16:17:04 -07:00
James Babcock a82184316e Fix word-wrapping in iOS Spotify setup help text 2026-10-25 16:09:12 -07:00
James Babcock daa306aa7c Fix some white-on-white text when in dark mode 2026-10-25 15:59:49 -07:00
James Babcock 361b514f9a Fix an iOS issue where depth would be incorrect on first frame of fade-in on wake; also refine the keyboard input dialog 2026-10-25 15:59:45 -07:00