Android

Android

packages.txt owns the SDK and NDK package selection used by :install and :installer_tar. The latter packages the installer and the pinned Linux x86-64 command-line tools for Ansible deployment without bootstrapping Bazel on the remote host. It requires a host Java runtime; downloading SDK packages happens only when the installed command runs, never in a Bazel build action.

Release manifest versions

Stamped APKs use STABLE_VERSION for Android’s version name. Build production APKs on the weekly release branch. Their codes order releases by ISO week and patch. Development builds use code 1.

AL’s nightly channel appends .nightly to the manifest package so the APK can install alongside the weekly release. Nightly codes use the UTC date from STABLE_NIGHTLY_DATE as a YYYYMMDD integer.

The app-owned launcher.svg files are rasterized by Bazel at the Android xxxhdpi size. F-Droid extracts the launcher image from the resulting APK.

APK signing identities

Each app’s sign_apk target uses Android SDK signing code with its own Vault Transit key and original public certificate. Android uses the certificate to authenticate upgrades. The F-Droid repository key signs the index separately.

An authorized Vault operator imports the existing RSA-4096 private keys using the same wrapped import procedure as the repository key. For each AppRole, import its original apk_signing key into transit/default/keys/<approle>. Put its unchanged PEM certificate in the role’s apk_signing_certificate KV entry with field certificate.

  • Android Launcher uses src_projects_android_launcher.
  • ActivityWatch Ingester uses src_projects_activitywatch_ingester_android.

Compare each certificate fingerprint with the deployed APK before importing. After provisioning both keys and certificates, apply the app policies through //infra/vault/tf:tf. The signing roles can read their certificates and ask Transit for signatures. The original private-key entries are restricted to operators.