Skip to content

Distribution & trust pack: themed icon, download verification, restore diff - #2

Merged
Avithegod2010 merged 1 commit into
mainfrom
feat/trust-pack
Nov 21, 2026
Merged

Avithegod2010 merged 1 commit into
mainfrom
feat/trust-pack

Conversation

@Avithegod2010

Copy link
Copy Markdown
Owner

Summary

Distribution and trust pack for Locker, plus the restore-preview diff.

  • Monochrome adaptive icon — new ic_launcher_monochrome vector (shield + keypad cut-outs) wired into the main and round adaptive icons, so Android 13+ themed icon packs tint it correctly.
  • Obtainium + verification docs — new docs/verify-download.md covers GitHub Releases, Obtainium setup, APK SHA-256 checks, and apksigner --print-certs. The permanent signing certificate SHA-256 is also in the README and SECURITY.md.
  • Restore diff before commit — BackupManager.previewRestore reads item metadata from the archive, compares it with the current vault, and returns merge and replace diffs. The backup card now shows added/replaced/removed counts with item names; Review and restore opens a full list before anything is written. Merge removes nothing; replace lists the current items that would be deleted. The archive checksum is still verified by the real restore path.
  • Tests — RestoreDiffTest covers merge add/replace/skip, replace removals, identical vaults, and sorting.

Verification

  • :app:testDebugUnitTest — BUILD SUCCESSFUL (all tests, including the new RestoreDiffTest).
  • processDebugResources — succeeded; packaged ic_launcher.xml includes <monochrome android:drawable="@drawable/ic_launcher_monochrome"/>.

The README screenshot/GIF item from the original brief is not included: the phone is not connected, and screenshot protection has to be turned off on-device first.

Notes

  • No version bump. Existing backup format and encrypted payloads are unchanged.
  • The preview stops after item records (they precede file bodies in format v1), so reviewing a large backup does not stream multi-GB files twice.
  • The full archive checksum is not claimed during the preview; the restore path verifies it before applying changes, and the review dialog says so.

- Add a dedicated Android 13+ monochrome adaptive icon and point the main
  launcher/round icons at it, so themed home screens tint the shield and keypad
  silhouette instead of the coloured foreground.
- Add docs/verify-download.md with Obtainium setup, the permanent signing
  certificate SHA-256, apksigner instructions, and APK hash checks. Link it from
  the README and mirror the fingerprint in SECURITY.md.
- Preview added/replaced/removed items before a restore commits. The preview
  reads item metadata from the archive (file records are skipped in format v1),
  computes both merge and replace diffs, and shows a review dialog with the full
  item lists. Replace-only removals are called out separately; merge removes
  nothing. The full archive checksum is still verified by the restore path.
- Add RestoreDiffTest for the pure diff decisions.
@Avithegod2010
Avithegod2010 merged commit 5ece47a into main Nov 21, 2026
1 check passed
@Avithegod2010
Avithegod2010 deleted the feat/trust-pack branch November 21, 2026 14:55
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