fix(android): keep Tor bootstrap alive after the unlock activity dies
Some checks failed
android-ci / android (pull_request) Has been cancelled

Open set Phase.Opening then ran openWire on viewModelScope, and the
keep-alive refused to start until Wire existed. Closing the activity
cancelled bootstrap, so the spinner vanished and the lock screen came
back idle. Run openWire on NodeHost's process scope, start the FGS on
the Open tap, and treat in-flight bootstrap as keep-alive work. IME Go
also submits unlock the same way as the Open button.
This commit is contained in:
agent 2026-09-18 21:46:34 -04:00
commit 396e468f1a
No known key found for this signature in database
9 changed files with 226 additions and 30 deletions

View file

@ -10,7 +10,9 @@
<string name="keep_alive_channel_name">Node keep-alive</string>
<string name="keep_alive_channel_description">Shown while OnionWire keeps your onion address reachable in the background.</string>
<string name="keep_alive_title">OnionWire is reachable</string>
<string name="keep_alive_title_opening">OnionWire is starting</string>
<string name="keep_alive_text">Tor and the outbox are running so peers can deliver messages.</string>
<string name="keep_alive_text_opening">Bootstrapping Tor. This can take minutes — keep the device awake.</string>
<string name="keep_alive_text_onion">Tor and the outbox are running so peers can reach %1$s…</string>
<string name="keep_alive_stop">Stop keep-alive</string>
<string name="keep_alive_note_off">Reachable only while this app is open.</string>