Skip to content

Latest commit

 

History

History
145 lines (126 loc) · 9.65 KB

ARCED.md

File metadata and controls

145 lines (126 loc) · 9.65 KB

ARCED fork notes

ARCEDians Vault for Android: the Bitwarden Android app, rebranded and preset to https://vault.arced.foundation (Vaultwarden). Installed as an APK from https://vault.arced.foundation/get, not from a store.

Pinned versions

Component Version
Upstream tag v2026.9.1-bwpm (bitwarden/android)
App version gradle/libs.versions.toml (appVersionName)
Vaultwarden 1.37.3 (server, in ARCED_Password_Manager)
JDK (build) 21 (Android Studio's bundled JBR works)
Minimum Android 10 (API 29), same as upstream

Only the F-Droid flavour is built (fdroidRelease): no Firebase, Play Services, push relay or Play billing. The vault syncs on unlock and on pull-to-refresh, which is on by default.

Test status

2026.9.1-arced.1, tested 2026-11-05 and 2026-11-24 on emulators (Android 10 and 16) against a local Vaultwarden 1.37.3:

  • Passed: fresh install opens on the ARCED server with no region picker; create account (after the camelCase fix below); log in; authenticator (TOTP) two-step login; item create and sync; offline unlock and reading items; autofill service selectable in Android settings; fingerprint unlock (Android 16; the Android 10 emulator's sensor isn't "strong" class, so the app correctly hides the option there); signed release installed over an earlier signed release, and the dev build over an earlier dev build while logged in; update dialog and its download link; About notice; light and dark themes; launcher icon.
  • Not tested: email two-step login (no mail server locally) and WebAuthn (no authenticator on the emulator). Both use Vaultwarden's endpoints and the server's own connector page (/webauthn-mobile-connector.html, which returns 200 on production), never bitwarden.com.

Signing

  • Application ID: foundation.arced.vault (permanent: a different ID is a different app).
  • Release key: alias arced-vault, RSA 4096, valid until 2059.
  • Certificate SHA-256: 4B:61:61:38:74:3F:71:7B:19:92:E3:D5:CA:EB:1D:C8:EE:40:9E:C1:31:9E:5A:B8:74:42:18:A1:F3:A1:DE:37
  • Stored as the Actions secrets ARCED_KEYSTORE_BASE64, ARCED_KEYSTORE_PASSWORD and ARCED_KEY_ALIAS, plus an offline USB copy (keystore and password) kept with the server backup key. Never commit it. If the key is lost, no update can install over existing installs: every user would have to uninstall (losing local data) and install a new app.
  • CI refuses to publish an APK signed with any other key.

Release steps

  1. Bump appVersionName and appVersionCode in gradle/libs.versions.toml. Name: <upstream version>-arced.<n>, e.g. 2026.9.1-arced.2. Code: YYYY·MM·P·NN from that name, e.g. 2026.9.1-arced.2 → 202609102. It must go up every release, or the update check and Android's installer ignore the new APK.
  2. Commit, push main, then tag: git tag v2026.9.1-arced.2 && git push origin v2026.9.1-arced.2.
  3. .github/workflows/arced-android.yml builds and signs the APK and force-pushes ARCEDians-Vault-<version>.apk and latest.json to the orphan branch android-dist.
  4. The server's deploy workflow (ARCED_Password_Manager) unpacks android-dist into /get/download/android/. Installed apps see the new versionCode on next start and offer the download.

Upstream update (monthly)

  1. Pick the newest vYYYY.M.P-bwpm tag that Vaultwarden supports (check Vaultwarden release notes and open issues mentioning Android).
  2. git fetch upstream tag vX.Y.Z-bwpm --no-tags && git merge vX.Y.Z-bwpm.
  3. git rm anything that reappears under .github/workflows/ (except arced-android.yml), .github/CODEOWNERS and .github/ISSUE_TEMPLATE/.
  4. Re-run node arced/rebrand-strings.mjs (new strings) and node arced/render-icons.mjs (if upstream touched the icons).
  5. Re-check every file in "Fork changes" below; resolve libs.versions.toml to our version.
  6. Build, run the test list in docs/ARCED-DEVELOPING.md, then release as above.

Fork changes

Every ARCED edit to upstream files goes here, one line each.

  • README.md: replaced with the ARCED README.
  • .github/workflows/: all upstream workflows deleted (they need Bitwarden secrets). Only arced-android.yml remains. .github/CODEOWNERS and .github/ISSUE_TEMPLATE/ deleted too.
  • gradle/libs.versions.toml: appVersionCode and appVersionName are ARCED's.
  • app/build.gradle.kts: applicationId and archivesName foundation.arced.vault (the Kotlin namespace stays com.x8bit.bitwarden to keep merges clean); arced release signing config read from ARCED_KEYSTORE_* environment variables; ARCED_UPDATE_URL build config field; optional -ParcedAbis ABI filter (CI ships arm64-v8a and armeabi-v7a only, about half the size).
  • network/src/main/kotlin/com/bitwarden/network/model/MasterPasswordAuthenticationDataJson.kt, RegisterFinishRequestJson.kt: JSON keys in camelCase. Upstream sends MasterPasswordAuthentication, Kdf, Salt, which Bitwarden's server accepts but Vaultwarden 1.37.3 rejects (422 on register/finish, so "Create account" failed). Drop this once Vaultwarden matches case-insensitively.
  • app/src/{main,release,beta}/res/xml/shortcuts.xml: shortcut targetPackage uses our ID.
  • app/src/{main,release,beta}/res/values/strings_non_localized.xml: app name "ARCEDians Vault".
  • app/src/main/res/drawable/ic_launcher_foreground.xml, ic_launcher_monochrome.xml: ARCED symbol. Generated by node arced/render-icons.mjs. The beta icons are unchanged.
  • app/src/release/res/drawable/ic_launcher_*.xml: deleted, so release uses the ARCED icon from main (upstream's main icon is the dev one). git rm them again if a merge brings them back.
  • app/src/main/res/values/ic_launcher_background.xml: launcher and splash background Charcoal.
  • app/src/main/res/values/styles.xml: splash icon is the launcher foreground.
  • ui/src/main/res/drawable/logo_bitwarden.xml, new drawable-night/logo_bitwarden.xml, logo_bitwarden_icon.xml: ARCEDians Vault wordmark and app icon (names kept). Generated.
  • ui/src/main/res/values*/strings.xml: "Bitwarden" replaced with "ARCEDians Vault", except strings about real Bitwarden products and bitwarden.com. Generated by node arced/rebrand-strings.mjs.
  • ui/src/main/res/values/strings_non_localized.xml: bitwarden (the biometric prompt title and credential provider label) is "ARCEDians Vault".
  • ui/src/main/kotlin/com/bitwarden/ui/platform/theme/color/ColorScheme.kt: PrimitiveColors blue ramp is the ARCED brand ramp (Charcoal primary in light, Yellow in dark) and the slate greys are warm charcoal. Dark background #15110E/#211C18.
  • data/src/main/kotlin/com/bitwarden/data/repository/util/EnvironmentUrlDataJsonExtensions.kt: with no saved server, the app uses https://vault.arced.foundation (instead of bitwarden.com).
  • app/src/main/kotlin/com/x8bit/bitwarden/ui/platform/components/dropdown/EnvironmentSelector.kt: the region picker (bitwarden.com / .eu / self-hosted) shows only in dev builds.
  • app/src/main/kotlin/com/x8bit/bitwarden/ui/auth/feature/startregistration/StartRegistrationScreen.kt: the Bitwarden terms and privacy line is hidden on self-hosted servers like ours.
  • app/src/main/kotlin/com/x8bit/bitwarden/ui/platform/feature/settings/about/AboutViewModel.kt (and its test): "© ARCED Foundation" plus "Based on Bitwarden, © Bitwarden Inc., GPL-3.0". Keep the Bitwarden notice: GPLv3 §5(d) requires the interactive UI to show the copyright notices.
  • app/src/main/kotlin/com/x8bit/bitwarden/data/platform/datasource/network/util/HeaderUtils.kt: the Bitwarden-Client-Version header sends the upstream version without -arced.N.
  • app/src/main/kotlin/com/x8bit/bitwarden/data/autofill/accessibility/util/AccessibilityNodeInfoExtensions.kt: accessibility autofill skips our own package instead of Bitwarden's.
  • app/src/main/kotlin/com/x8bit/bitwarden/data/platform/repository/SettingsRepositoryImpl.kt: pull-to-refresh sync defaults to on.
  • app/src/main/kotlin/com/x8bit/bitwarden/MainActivity.kt: runs the update check (once per app process) in onCreate.

New ARCED files: ARCED.md, docs/ARCED-DEVELOPING.md, arced/, app/src/main/kotlin/com/x8bit/bitwarden/arced/ArcedUpdateCheck.kt, app/src/main/res/values/arced.xml, .github/workflows/arced-android.yml.

Open issues

  • Help links. "Help center", "Learn more" and the privacy policy still open bitwarden.com, as in the extension (decided 2026-11-02 for the extension: those pages document the same features).
  • Callback scheme. WebAuthn, Duo and SSO callbacks use the bitwarden:// scheme, which the web vault's connector pages expect. If the official Bitwarden app is installed too, Android may ask which app to open after a WebAuthn 2FA prompt; pick ARCEDians Vault.
  • Bitwarden SDK licence. The app links com.bitwarden:sdk-android from Bitwarden's GitHub Packages registry, the same binary the upstream F-Droid build uses. It is under Bitwarden's SDK licence, not GPL; check it before any wider (store) distribution.
  • Sideloading verification. Google's developer verification for sideloaded apps (rolling out 2026–2027) may require registering ARCED in the Android developer console with this signing key. Check the status for Bangladesh before each release.
  • Unit tests. Upstream's unit tests are not run in CI; some will fail on ARCED strings and defaults (for example the default environment).
  • Rebrand leftovers. Premium and Authenticator upsell screens, the beta icons, and in-app illustrations keep Bitwarden's artwork (in ARCED colours).