docs(android): rewrite the Android docs to match the tree #135
Loading…
Reference in a new issue
No description provided.
Delete branch "onionwire/t_4afe292a-docs-android-audit-rewrite-the-android-d"
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?
docs-only. Audited
android/README.md,android/CUPRATE_DAEMON.md, andandroid/MONERO_BINARIES.mdagainstorigin/main.Started on
fa0e4b2. While this card was in flight, PR #134 (t_07542df0) merged: the APK poller now paints withwallet_statusthen tickswallet_child_refresh. This branch was rebased ontod2d49d2(origin/main). #134 did not touch these three markdown files. PR base ismain.Files
android/README.md— full rewrite (operator-facing)android/CUPRATE_DAEMON.md— audit + updateandroid/MONERO_BINARIES.md— audit + updateNothing else changed (
git diff --stat origin/main...HEADis those three files).Audit table
doc claim → what the code actually does → file:lineThe four card findings (confirmed or corrected)
mainbefore this PR)android/README.mdsaid any push tomainthat touches Android sources/build config builds and attachesonionwire-<version>-android-arm64-v8a.apk(mangled sentence around the old path filter).android-release.ymlon:isworkflow_dispatch(+ unusedworkflow_call). Nopush.release.ymlon:isworkflow_dispatchonly. Releases are two manual dispatches:release.ymlmints the tag (dry_run=truefirst), thenandroid-releasewithtag=<that tag>.android-ci.ymldoes run on push/PR path filters, but it is debug-signed and publishes nothing..forgejo/workflows/android-release.yml:31-51,.forgejo/workflows/release.yml:13-37,.forgejo/workflows/android-ci.yml:21-41,docs/RELEASING.md:88-118v*.*.*tag plus patch, or v0.1.0";versionNamematches the tag.android-releaseis dispatched withtag=and checks out that tag (ref: ${{ github.event.inputs.tag || inputs.tag || github.sha }}).versionCodeismajor*10000 + minor*100 + patch. Emptytagchecks outgithub.sha(usuallymain) and may join the previous release's version (re-stamp oldversionName) if that release is missing the APK, orpatch+1if it already has one — Android will refuse to install a restamped sameversionNameover the installed app. Core (release.yml) owns minting; defaultbump=minor. The APK is built from the tag's tree whentag=is set, not frommain.android-release.yml:85-90,101-174,android/app/build.gradle.kts:28-30,docs/RELEASING.md:53-59,144-152crypto/,ui/,src/test/,src/androidTest/only.wallet/(ChainStorage.kt,WalletChildBinaries.kt),keepalive/(NodeHost.kt,KeepAliveService.kt,KeepAlivePolicy.kt,NodeLifetime.kt), and newerui/files (WalletChildStatusText.kt,OutboxDetail.kt,Insets.kt,UnlockSubmit.kt,MessageDelivery.kt). README also claimed noFOREGROUND_SERVICE/ keep-alive in v1. Wrong: manifest declaresFOREGROUND_SERVICE,FOREGROUND_SERVICE_SPECIAL_USE,POST_NOTIFICATIONS;KeepAliveServiceis registered.android/app/src/main/java/com/siriusdevops/onionwire/{wallet,keepalive,ui}/,android/app/src/main/AndroidManifest.xml:15-33,62-69Wire::wallet_child_refresh) is not described for the Android reader.WalletChildStatusText.walletChildLineappends· sync h/t(WalletChildStatusText.kt:304-313). Live loop (after #134):openWalletChild→walletChildRefreshLoop— first paintpaintWalletChildCached()→Wire.walletStatus(); every 2 srefreshWalletChild()→Wire.walletChildRefresh(). Serialized; never spawns.WireViewModel.kt:652-709,909-922,WalletChildStatusText.kt:287-328,crates/onionwire-sdk/src/lib.rs:647-677Other findings this rewrite fixed
main)CUPRATE_DAEMON.md"Not verified" omitted theexitedlimit the card required.node_stateis projected from wallet-child state; a daemon that dies after the wallet child came up cannot be reportedexited— probe fails, state stayssyncing.exitedstill means themonero-wallet-rpcchild is gone.crates/onionwire-sdk/src/lib.rs:907-921CUPRATE_DAEMON.md"the job's timeout-minutes is 120".android-ci.ymlis 120;android-release.ymlAndroid job is 90; publish job 20.android-ci.yml:79,android-release.yml:78,404CUPRATE_DAEMON.mdStart refused below a 3 GiB floor only.StatFsis fail-closed.WalletChildStatusText.kt:379-429,ChainStorage.kt:20-28CUPRATE_DAEMON.mdcompanion pathsdocs/WALLET.md(no../).android/those do not resolve. Now../docs/….MONERO_BINARIES.md"CI here runs on a Raspberry Pi".android-ci.yml/android-release.yml) runs ondocker-amd64. The Pi runs Linuxci.yml/release.ymland the Android publish job. The wallet-rpc rebuild is still not a CI job.android-ci.yml:78,android-release.yml:77,403stat19954224; sha256d9126788…1b5ad4; equalsandroid/monero-binaries.sha256;readelfNEEDEDlibdl.solibm.solibc.so. Tagv0.18.4.4peels to commit516e5355…(GitHub). Script pins the tag, not the commit.android/monero-binaries.sha256+scripts/build-monero-wallet-rpc-android.sh:28Already correct (not churned)
28.2.13676358—android/sdk/build.gradle.kts:21-26,android/app/build.gradle.kts:14,25-26minSdk 26—android/app/build.gradle.kts:25cmake—android-ci.yml:128,android-release.yml:237isMinifyEnabled = false—android/app/build.gradle.kts:65--features cuprate-daemononcargoBuildAndroidonly; host bindgen feature-free —android/sdk/build.gradle.kts:69,176-181,204-265RUST_TOOLCHAIN: "1.98"vs workspace MSRV1.91— both Android workflows;Cargo.toml:5.onionrefused withoutarti; wallet RPC loopback; chain traffic off until opt-in; in-process node opt-in with warning above Start; storage floor is a floor; no percent / progress bar / ETABlob verification (this run)
android/monero-binaries.sha256is the same digest forapp/src/main/jniLibs/arm64-v8a/libmonerowalletrpc.so.scripts/build-android-local.sh:56-59issha256sum -cof that file;:98-109compares the APK entry.Drift that belongs in
docs/orscripts/(not edited — out of scope)scripts/build-monero-wallet-rpc-android.sh:8still says "CI here runs on an arm64 Raspberry Pi". True of Linux CI; false as a description of the Android Gradle jobs. Left alone (forbidden path).docs/WALLET.md:188-194describeswallet_statusvswallet_child_refreshas SDK methods. After #134 the APK loop matches that pair (cached first paint, live ticks). Nodocs/edit in this PR.README.mdAndroid/release sections already match the two-dispatch story (PR #133).Not examined / not verified
libonionwire_sdk.soon this card. CUPRATE CI cost table (runs 402 / 406 / 412,.so/ APK / AAR byte sizes,librandomx_rs1,122,296 B) is kept as the recorded provenance of those runs, labelled not re-measured on this HEAD.readelf -da builtlibonionwire_sdk.so(only the committed wallet-rpc blob). The "DT_NEEDED isliblog.soand nothing else" sentence remains the original measurement.monero-wallet-rpcorcupratedon a device or emulator. Cross-compiled is not device-proven; mainnet remains unvalidated.docs/**, rootREADME.md, Gradle, or workflows (forbidden). Path-filter claims forandroid-ci.ymlwere read from the workflow file, not from a live run.android/sdk/build/is a build output; not in the tree; not opened.WalletChildRefreshLoopTest.kt) was read as the loop contract, not re-run here.