Commit Graph
773 Commits
Author SHA1 Message Date
Blendman974 b9ff58271d Merge Wear OS release build support 2026-11-06 01:42:07 +01:00
Blendman974 2b14ea38b4 build: support Wear OS release SDK 2026-11-06 01:41:57 +01:00
Blendman974 a9b0644217 docs: record combined release including app switcher close actions 2026-11-06 01:22:46 +01:00
Blendman974 e0887f9968 Merge app switcher regression test updates 2026-11-06 01:22:28 +01:00
Blendman974 be939f401b test: update system menu expectations and explicit in-app hold focus 2026-11-06 01:22:28 +01:00
Blendman974 ed3508ebfe Merge app switcher routing typecheck fix 2026-11-06 01:19:51 +01:00
Blendman974 9df5bd1598 fix: remove unreachable switcher focus branch after menu routing 2026-11-06 01:19:51 +01:00
Blendman974 5820c3c441 Merge app switcher close menu 2026-11-06 01:19:13 +01:00
Blendman974 299bf470c3 feat: add app switcher actions to close current or all apps 2026-11-06 01:19:13 +01:00
Blendman974 ec0be434ad Merge Android 16 KiB page alignment fix 2026-11-06 00:57:10 +01:00
Blendman974 68c9dc7ae9 fix: align llama native library for Android 16 KiB pages 2026-11-06 00:57:10 +01:00
Blendman974 40cd9eb5ba docs: record integrated APK build and software validation 2026-11-06 00:29:41 +01:00
Blendman974 61c017a0b0 test: verify executable Nix Android build tools 2026-11-06 00:27:12 +01:00
Blendman974 e915608b1a build: support Nix host CMake and Ninja for Android native libraries 2026-11-06 00:25:36 +01:00
Blendman974 e1e48ec038 chore: complete build-only Nix SDK and document head-up firmware checks 2026-11-06 00:22:05 +01:00
Blendman974 66f4147e38 Merge Nix Android build configuration fixes 2026-11-06 00:11:03 +01:00
Blendman974 096510f5ad chore: align Nix build tooling with Android Kotlin requirements 2026-11-06 00:11:03 +01:00
Blendman974 0786657441 Merge shared Android calendar selection 2026-11-06 00:05:59 +01:00
Blendman974 de318a7714 Merge notification filter preferences 2026-11-06 00:05:58 +01:00
Blendman974 398c62af9a feat: persist and synchronize head-up wake and angle controls 2026-11-06 00:05:48 +01:00
Blendman974 6397928c60 test: keep calendar widget imports isolated and update window fixture 2026-11-06 00:00:07 +01:00
Blendman974 1f12237dfe feat: share Android calendar selection across readers 2026-11-05 23:59:34 +01:00
Blendman974 62ae01a4f1 feat: configure notification defaults and bulk source actions 2026-11-05 23:54:14 +01:00
Blendman974 19cf564251 chore: add pinned Nix development environment 2026-11-05 23:52:02 +01: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