onionwire/android/app
Repository files (latest commit first)
Filename Latest commit message Latest commit date
agent 3431a9eda9
All checks were successful
android-ci / android (pull_request) Successful in 10m39s
android: block the wallet screen on an unbacked seed, and make it re-showable
A created wallet's seed was two lines of small text at the bottom of the
wallet page, dismissed by one tap, gone for good once the screen was left.
A real user created a wallet, never saw the seed, and the app had no way to
show it again.

- `SeedBackupGate` (new, pure Kotlin): the confirm word `SEEN` and its
  case-insensitive match mirror the TUI's own `WalletSetup::CreateSeed`
  gate; create starts unbacked, import is backed up without the gate, and
  only a correct word can confirm.
- The seed card is the whole body until the word is typed and Done is
  tapped: no Cancel, no copy button (the Android clipboard is readable by
  every other app), Done dead until `SEEN`.
- "Back up seed" re-reads the seed through the new `Wire::wallet_seed()`
  (`WireViewModel.walletSeed()`), so a seed missed the first time is not
  lost. Its failure is shown next to the button, not at the bottom of a
  long scroll.
- While unconfirmed: a warning strip stays at the top of the wallet screen
  and the receive address and Show QR are hidden — XMR received into a
  wallet whose 25 words were never written down is unrecoverable.
- The flag lives in app-local prefs (`wallet_seed_backup`), not in the
  Keystore-wrapped store, and is reset by `createWallet` itself so no
  caller can forget it. An install that predates the flag reads as
  unconfirmed: "we never asked" is not "the user wrote it down", and
  "Back up seed" is the way out.

The app-bar Back still leaves the screen, deliberately — it is the TUI's
`Esc`. It costs nothing now, because leaving no longer loses the seed.

Verification: `./gradlew :app:testDebugUnitTest` green, 132 tests
(`SeedBackupGateTest` 15 of them).
2026-09-20 12:09:48 -04:00
..
src android: block the wallet screen on an unbacked seed, and make it re-showable 2026-09-20 12:09:48 -04:00
build.gradle.kts android: start/stop the monero-wallet-rpc child from WalletScreen, bundle the binary 2026-09-18 10:20:08 -04:00