Android app (Kotlin, Compose, UniFFI) #21
Loading…
Reference in a new issue
No description provided.
Delete branch "board/982-5039ce"
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?
The native Android app for #982, written in Kotlin with Jetpack Compose on top of the
ffi/crate's UniFFI Kotlin bindings. All crypto, sync, import and Watchtower logic stays in Rust. Kotlin only draws screens and keeps keys in the Android Keystore.It targets main now that #14 (the
ffi/crate and the iPhone/Mac app) has landed, and main is merged in. It doesn't changeffi/orapple/, and it needs no new FFI exports: Rust already passes every attachment name throughsafe_file_name, andserver_addressdecides which hosts may use plain http.What's in it
android/, a Gradle Kotlin DSL project.android/build.shbuildsplaintext-ffifor arm64-v8a and x86_64 with cargo-ndk 4.1.2 and NDK 28.2. It then generates the Kotlin bindings through a tinyandroid/bindgencrate (uniffi-bindgen0.33, from the sources, since release libraries are stripped) and runs Gradle.Logcalls are stripped, and no dependency metadata goes into the APK./v1/info), setup code or invite, the Emergency Kit as a PDF (saved or printed), then biometrics.EXTRA_IS_SENSITIVEand cleared after 30 s, 90 s or 5 min, and on lock.cache/open. That folder is wiped on lock, sign-out and app start, and served only through a non-exported FileProvider.safe_file_name. The cache copy's name is also capped at 200 bytes.server_addressallows, and the app says so.allowBackup=false, with no cloud backup or device transfer.keepPassword) before it opens the site, so a lock can't lose it.lock(endSessions)ends server sessions only when nothing on the device can resume them;forgetis used when the server signs this device out;.forgejo/workflows/android.ymlbuilds the x86_64 release variant (minified, unsigned) on every PR that touches Android, the FFI or the Rust crates it uses.android/TESTING.mdcovers how to build, run a local server and what to check.AutoFill and passkeys are a follow-up.
Testing
All of this ran on an API 36 emulator against a local server, with the CLI playing the people you share with:
unlockData;cache/openwiped on lock;Not tested: QR scanning on a real camera (the emulator has none), the sync problems banner (it needs a vault that fails to verify), and signing out of a locked account that still has a stored session (one fingerprint opens every account, so that state is hard to reach).
Review
An independent Opus review of exact head
c879819found 1 high, 3 medium and 7 low issues. All were fixed in4f1ae3cand confirmed:safeNamelimits; a stale swipe action.A re-review found 4 follow-ups (
safeNamecost, API 29 copy and fresh check, two stale-epoch edges), all fixed in8ea2d96. Onboarding network copy was confirmed at046ce4b. The merge of #14's latest was reviewed at9552bbf(long cache names, decrypting one session on sign-out), and both were fixed inf13dcbb.Test APKs are not published anywhere (Nikita, 2026-11-27: local testing only). They are handed over as files and installed directly; see the ticket.
🤖 Generated with Claude Code
f45bdaaf94790bd978aeWIP: Android app (Kotlin, Compose, UniFFI)to Android app (Kotlin, Compose, UniFFI)