Android Operations
This runbook covers local Android tooling, launch commands, APK builds, CI artifacts, and smoke checks for the Tauri Android shell.
The redesigned reader does not include the Android sign-in handoff that the old frontend used. The APK still builds and opens, but Google sign-in inside it is not supported. On a phone, open the hosted reader in the browser and choose Add to Home Screen instead.
Tooling
Install the Tauri CLI once:
cargo install tauri-cli --version "^2"If the binary is unavailable, use the package runner:
bunx @tauri-apps/cli@latest android devInstall local Android tooling:
- Android Studio
- Java 17+
- Android SDK
- Android NDK
- Rust Android targets
Rust targets:
rustup target add aarch64-linux-android armv7-linux-androideabi \
i686-linux-android x86_64-linux-androidSet JAVA_HOME, ANDROID_HOME, and NDK_HOME in your shell profile or local environment.
Check device or emulator visibility:
adb devicesLocal Run
From the repo root, start the local stack:
./start_app.shThe Android shell is opt-in. Set the mobile launch flag in your shell before running ./start_app.sh when you want the script to launch Android after local services are healthy. Launch flag names live in backend/.env.example.
Manual Android launch:
cargo tauri android devKeep Android-facing frontend build values in the shared/local frontend env files. Do not add them to start_app.sh.
Local Connectivity
./start_app.sh configures local port forwarding for the Android shell. The frontend has a local Android fallback origin for http://tauri.localhost.
When browser-based sign-in needs a different origin than the Tauri-loaded frontend, set the browser-auth origin in the frontend env. Use frontend/.env.example for the current key name.
Smoke Check
Verify these after local launch or APK install:
- The app launches without a blank screen.
- The sign-in page shows the masthead and the Google sign-in button.
Build APKs
Debug APK:
cargo tauri android build -- --apk --debugRelease APK:
cargo tauri android build -- --apkAPK output:
src-tauri/gen/android/app/build/outputs/apk/Install a debug APK manually:
adb install -r src-tauri/gen/android/app/build/outputs/apk/debug/app-debug.apkCI
The Android workflow is .github/workflows/android.yml.
It:
- resolves deployed backend and docs URLs
- resolves Firebase frontend build values from Secret Manager
- builds the Android app
- uploads the release APK as a workflow artifact
The workflow needs Android signing secrets configured in GitHub.