android wallet: self-heal the stored wallet_rpc_bin, gate Start/Create, one info banner #202
Loading…
Reference in a new issue
No description provided.
Delete branch "wt/t_d63f9279"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Android-only fix for the two dead ends in the device report (v0.7.0).
What changed
WireViewModel.healStoredWalletBin()readschainSource()and, whenwalletRpcBinis not an existing executable file whilebundledBinaries().walletRpcis non-null, re-saves the record with the resolved absolute path. Kind, mode, host/port, datadir, filename and arti path are preserved; receive-only (ChainChoice.NONE) is skipped; a stored path that is a real executable file is never overwritten. Runs on wallet-screen open and again at the top ofstartWalletChild().startGateReason()= existingstartBlockedReason()(unchanged copy/order) plusstoredWalletBinBlockedReason(), which names the stored path, the resolved path, or returns the unchangedNO_WALLET_RPC_MESSAGEwhen nothing is bundled.startWalletChild()re-reads the stored record after the heal and refuses to spawn a path this device cannot run, writing the named reason rather than the core's opaquespawn monero-wallet-rpc: ….shouldStartAfterSelectingChain(storageBlocked, starting, startBlocked)now takes the same reason Start is disabled by; a mode tap stores the source and only launches when the gate agrees.walletSetupBlockedReason()disables Create/Import with a sentence (node card pointer) until the child answers.walletFailureTextmaps the TUI'swallet not configured — open F7 / ONIONWIRE_WALLET_RPCcopy to a phone sentence;F7can no longer render.walletFailureBanner()paintsWALLET_NOT_OPEN_TEXTas info (or suppresses it when the existingNo wallet openhint already says it) instead of the redWallet error; the sticky error is cleared when a wallet opens. Connect refusals andexitedstill paint red.Verification
./gradlew :app:testDebugUnitTest— 241 tests, 0 failures (includes the four required cases: heal path, stored-bin gate with named path, mode-tap auto-start refusal,open F7mapped; plus no-wallet-open info-only and real-failure-still-red)../gradlew :app:assembleDebug— BUILD SUCCESSFUL, 40,894,470 Bapp-debug.apk.No changes under
src/,crates/, packaging,jniLibs, or signing. Thespawn()path-in-message change is the separate rust-dev card (t_af5bbc1a).