Skip to content

Vital cards show the last reading's time; Restart ring; jring factory reset - #72

Merged
gabrielbr merged 2 commits into
mainfrom
ccr-67ccb970-dqwwqd
Nov 11, 2026
Merged

gabrielbr merged 2 commits into
mainfrom
ccr-67ccb970-dqwwqd

Conversation

@gabrielbr

@gabrielbr gabrielbr commented Nov 11, 2026 •

Copy link
Copy Markdown
Owner

Why

An owner with a JRING ring (firmware V138) saw "Updated 2h ago" on Vitals straight after a sync and read it as a failed sync. Their diagnostics export showed the sync had worked:

  • The ring's own heart-rate history stopped at 14:28.
  • The next block it had was 17:28. That block arrived on the following sync.

They also asked for a way to reset the ring from the app.

What

  • Vital cards: "Updated 2h ago" becomes "Last reading 14:28". Earlier this week it adds the weekday; older readings show the date. Covered by LastReadingLabelTest.
  • Translations: "bpm range", "% avg" and the "vs earlier", "vs baseline" and "vs previous" trend suffixes now go through tr(), with pt-BR entries added.
  • Ring & sync → Restart ring: works for every ring and erases nothing.
    • A jring ring is first rebooted with the vendor's "Restart device" command.
    • The app then reconnects. The connect sequence re-sends the clock, background-logging settings and profile, and runs a full history pass.
    • A snackbar confirms when the ring is back, or says so if it isn't back within 45 s.
  • Jring factory reset. Read from JRing 2.0.8 (com.jaga.ibraceletplus.jyring), decompiled with jadx.
    • The vendor SDK's setDeviceMode writes 0x0E plus an 8-byte key. The vendor buttons name the modes: 2 "Device off", 3 "Restart device", 4 "Factory reset".
    • Jring now declares FACTORY_RESET, so the existing flow (sync first, wipe, forget) appears for it.
    • JringDeviceModeTest checks the frames byte for byte against the vendor code.
  • Vendor code stays out of git: decompiled-*/ is now gitignored, so the vendor's code is read locally and cited, never committed. AGENTS.md records where the modes come from.

Not yet checked on hardware: jring restart (mode 3) and factory reset (mode 4).

Audit: audits/2026-11-11-v2.16.1-last-reading-restart-ring.md

Design canvas: updated.

  • RingSync.dc.html has the new Restart ring row. Its Factory reset row was already there.
  • Vitals.dc.html shows the "Last reading" label.

🤖 Generated with Claude Code

https://claude.ai/code/session_01P1t1aUqSUPd3whKXmgVm7w

- Vital cards: "Updated 2h ago" becomes "Last reading 14:28". An owner read
  the age as a failed sync; their diagnostics showed the ring itself had
  logged nothing between 14:28 and 17:28.
- Translate the remaining English on those cards (bpm range, % avg, the
  vs earlier/baseline/previous trend suffixes) and add pt-BR entries.
- Ring & sync: Restart ring, for every ring. It drops the link and
  reconnects, so the connect sequence re-sends clock, background-logging
  settings and profile, then runs a full history pass. Nothing is erased.
  Factory reset stays gated on FACTORY_RESET: there is no verified vendor
  reset command for JRING/YCBT/LuckRing.

Claude-Session: https://claude.ai/code/session_01P1t1aUqSUPd3whKXmgVm7w
Read from JRing 2.0.8 (com.jaga.ibraceletplus.jyring), decompiled with
jadx: the vendor SDK's setDeviceMode writes 0x0E plus an 8-byte key.
The vendor buttons name the modes: 2 "Device off", 3 "Restart device",
4 "Factory reset". Jring now sends mode 4 for factory reset (the existing
sync-first, wipe, forget flow, now offered for jring) and mode 3 when
Restart ring runs, before it reconnects. Other families keep the
reconnect-only restart.

decompiled-*/ is gitignored: vendor code is read locally and cited,
never committed. AGENTS.md records where the modes come from. Byte-level
test against the vendor frames.

Claude-Session: https://claude.ai/code/session_01P1t1aUqSUPd3whKXmgVm7w
@gabrielbr gabrielbr changed the title Vital cards show the last reading's time; add Restart ring Vital cards show the last reading's time; Restart ring; jring factory reset Nov 11, 2026
@gabrielbr
gabrielbr merged commit 550a371 into main Nov 11, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants