Consumes the core branch's SDK surface (wallet_unlocked_balance,
wallet_send, wallet_view_only, import_seed, import_view_only,
TransferRow.direction) on top of the seed-offset import card.
- balance card: a dim mono `unlocked {n} XMR` under the headline, same
off/err sentinels as walletBalance, omitted for both sentinels and shown
even when it equals the total.
- receive address: a quiet `Copy` under it, gated with the address itself.
ClipEntry marked ClipDescription.EXTRA_IS_SENSITIVE, status `copied
address`. The seed still has no copy button.
- seed import: optional `restore height` after the offset field, digits
only, helper says a height after the first receive hides older funds.
importWallet/importWalletWithOffset are replaced by one importSeed(
password, seed, offset, height) RPC; the offset is still trimmed, blank
still means the plain path, and a non-empty offset still leaves the
persisted offset_pending flag and its SEEN card.
- recent transfers: TransferCard prefixes the core's own direction
(in/out/pending), dim, before the truncated txid.
- Send: a quiet action with address + amount, then a confirm step that
requires SEND (WalletSendGate, deliberately not the seed gate's SEEN).
Calls walletSend; success clears the composer and reloads transfers, a
failure shows the core's own words (view-only / unsynced) verbatim.
Blank fields never reach the SDK. Not the friend-only Invoice/Tip path.
- View-only: a `View-only` button beside Import, and its own card —
address, masked view key with a re-type gate (`view keys do not match`,
no RPC on mismatch), optional restore height, wallet file passphrase.
Calls importViewOnly. The key is never logged or copied and dies with
the card; SEED_BACKED_UP_KEY is not written on this path.
- SeedBackupGate: new `viewOnly` input. True hides the unbacked-seed
warning, shows the receive address, and outranks the offset card; false
keeps every existing rule. The probe is walletViewOnly(), never
walletKeys(). The screen pairs it with a session flag set by its own
view-only import, so a probe that has not answered cannot flash the
unbacked card over a wallet with no seed. Balance card is labelled
`view-only` in onSurfaceVariant.
Tests: :app:testDebugUnitTest --tests '*SeedBackupGateTest*' -> 34 tests,
0 failures (24 existing + 10 new), plus the full app JVM suite 229/0.
:app:assembleDebug green (app-debug.apk 40,755,755 B). Not verified on a
device.