Skip to content

fix(backup): make no-checksum / no-manifest transparency actually visible#44

Merged
luisguzman-adfa merged 1 commit into
mainfrom
fix/backup-transparency-snackbar
Jun 24, 2026
Merged

fix(backup): make no-checksum / no-manifest transparency actually visible#44
luisguzman-adfa merged 1 commit into
mainfrom
fix/backup-transparency-snackbar

Conversation

@luisguzman-adfa

Copy link
Copy Markdown
Collaborator

Behaviour-only fix in BackupController (one file). Pre-existing UX bug from the integrity work (#37), spotted after the #43 carve and confirmed on-device.

Problem

  • Import: the install_warn_no_checksum / install_warn_manifest_missing snackbar was shown, then immediately replaced by the unconditional install_msg_import_success snackbar (Snackbar replaces, never queues) → the user never saw the transparency note.
  • Restore: no checksum transparency was shown at all (it was only wired at the import gate).

Fix

  • Import: one snackbar only — the warn strings (which already begin with "Imported") become the final message when the result is OK_NO_CHECKSUM / OK_NO_MANIFEST, else the normal success.
  • Restore: the restore log now leads with the no-checksum / no-manifest note, read cheaply from the identity manifest (origin:"device-backup"). A builder rootfs with a real checksum shows neither (correct). A persistent surface, so it's not a fleeting snackbar.

No new strings or imports. Verified locally by Luis (build + on-device: restore log shows the note; import shows a single snackbar).

Noted as pending (out of scope here)

Hardcoded "IIAB" in user-facing strings + a full strings.xml brand audit (rebranding), restore-specific wording, and snackbar-duration review — tracked in REBRANDING_PLAN.md.

…t + restore)

Pre-existing UX bug from the integrity PR (#37), surfaced after the #43 carve:
- Import: the install_warn_no_checksum / install_warn_manifest_missing snackbar
  was immediately replaced by the unconditional install_msg_import_success
  Snackbar (Snackbar replaces, never queues) -> user never saw it. Now ONE
  snackbar: the warn strings (which already begin with 'Imported') become the
  final message when applicable.
- Restore: no transparency was shown at all (it was only wired at the import
  gate). The restore log now leads with the no-checksum/no-manifest note,
  read cheaply from the identity manifest (origin=device-backup). The meaningful
  moment for the user.

No new strings/imports; behaviour-only fix in BackupController.
@luisguzman-adfa luisguzman-adfa merged commit ba70561 into main Jun 24, 2026
1 check passed
@luisguzman-adfa luisguzman-adfa deleted the fix/backup-transparency-snackbar branch June 24, 2026 17:21
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.

1 participant