Device-info probe: frame tracing, query retry, push acceptance, left-lens fallback

On stock 2.2.9 the settings read on the right lens goes unanswered even after
a successful security-auth exchange and fresh pairing. Since no 2.2.9-era
capture of a settings read exists (g2flash only exercises auth + OTA), turn
the probe into an experiment that a single on-device run can settle:

- Log every control-channel frame (sid/flag/type/magic/frag/payload prefix)
  and every write under the FaceclawDeviceInfo logcat tag.
- Retry the settings read once before concluding a lens is silent.
- Accept a sid-0x09 frame carrying firmware versions on the device's own
  magic (an unsolicited push) as an answer, not just the awaited ack.
- If the right lens stays silent, run the same connect/auth/prelude/read
  against the LEFT lens and use its answer, logging which lens replied, to
  test whether 2.2.9 moved the settings endpoint.

The probe now takes both arm addresses; the firmware-check page passes them.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_016ZqzwmRQ3HQxasBz5rYyZV
This commit is contained in:
James BabcockandClaude Fable 5 committed 2026-08-23 17:24:19 -07:00
commit a7684f603d
23 files changed
+121 -47

No files matched your search

+2 -2
View File
@@ -25,11 +25,11 @@ export class DeviceInfoProbe {
private resolveFn: ((info: DeviceInfo) => void) | null = null;
private rejectFn: ((error: Error) => void) | null = null;
constructor(rightAddress: string) {
constructor(rightAddress: string, leftAddress = "") {
const context = Utils.android.getApplicationContext();
if (!context) throw new Error("Android application context unavailable");
this.probe = new com.faceclaw.app.FaceclawDeviceInfoProbe(context, rightAddress);
this.probe = new com.faceclaw.app.FaceclawDeviceInfoProbe(context, rightAddress, leftAddress);
this.listenerProxy = new com.faceclaw.app.FaceclawDeviceInfoProbeListener({
onLog: (line: string) => this.emit(this.logListeners, String(line)),
onState: (state: string, detail: string) =>