Bitwarden mobile apps (Password Manager and Authenticator) for Android. https://bitwarden.com
  • Kotlin 99.4%
  • TypeScript 0.3%
  • Ruby 0.2%
Find a file
2026-08-27 17:41:17 +00:00
.claude [AI-88] llm: Remove .claude/CONTRIBUTING.md (#7285) 2026-08-20 13:42:53 +00:00
.github llm: Dispatch bitwarden-software-engineer as a subagent for SDK-update evaluation (#7313) 2026-08-26 20:51:19 +00:00
annotation [PM-18403] tech-debt: Consolidate Authenticator minSDK version, increasing it to API 29 (#7104) 2026-06-29 19:42:30 +00:00
app [PM-36379] fix: Show the item type in the save snackbar (#7308) 2026-08-27 16:13:53 +00:00
authenticator [PM-42108] feat: Add policy restriction banner to View Send (#7275) 2026-08-19 15:35:18 +00:00
authenticatorbridge doc: Update MinSdk Docs (#7118) 2026-06-29 20:19:48 +00:00
core PM-31118: feat: Add support for SDK pin unlock (#7289) 2026-08-24 15:38:30 +00:00
cxf [PM-27903] feat: Remove Credential Exchange (CXF) dependency on f-droid builds (#7154) 2026-07-16 20:48:48 +00:00
data PM-41853: bug: Fix account keys migration for keystore encrypted shared preferences (#7273) 2026-08-18 14:24:26 +00:00
docs Remove remember ViewModel (#6618) 2026-03-09 16:41:54 +00:00
fastlane [PM-38570] Testharness Firebase distribution (#7274) 2026-08-18 13:50:07 +00:00
gradle Deps: Update Androidx Camera dependencies (#7323) 2026-08-27 17:41:17 +00:00
keystores Merge remote-tracking branch 'bwa-android/main' into bwa-monorepo 2025-02-26 22:13:24 +00:00
network PM-42616: Chore: Consolidate keys model (#7322) 2026-08-27 16:00:38 +00:00
scripts [PM-28041] Remove SDK Update PR changelog list size limit (#6152) 2025-11-10 21:58:01 +00:00
testharness doc: Update MinSdk Docs (#7118) 2026-06-29 20:19:48 +00:00
ui [PM-36379] fix: Show the item type in the save snackbar (#7308) 2026-08-27 16:13:53 +00:00
.editorconfig Refactor .editorconfig to focus on Kotlin and common file types (#4808) 2025-02-28 16:16:28 +00:00
.gitattributes Initial commit 2023-07-14 11:56:49 -05:00
.gitignore [PM-24930] New workflow to update the SDK and test ongoing work (#5742) 2025-08-19 15:19:57 +00:00
.mcp.json [PM-34487] llm: Add Android device interaction MCP server with ADB tooling (#6747) 2026-05-07 15:18:42 +00:00
.ruby-version [PM-22335] Support fastlane dev via rbenv (#5390) 2025-07-16 14:13:21 +00:00
build.gradle.kts chore: remove checkmarx sast job (#7225) 2026-08-03 16:59:30 +00:00
buildscript-gradle.lockfile Deps: Update to Kotlin v2.4.10 (#7315) 2026-08-26 19:21:02 +00:00
CONTRIBUTING.md Initial commit 2023-07-14 11:56:49 -05:00
crowdin.yml [PM-24175] Refactor Crowdin workflow (#5587) 2025-07-30 18:03:13 +00:00
detekt-config.yml [PM-27903] feat: Remove Credential Exchange (CXF) dependency on f-droid builds (#7154) 2026-07-16 20:48:48 +00:00
Gemfile [deps]: Update fastlane to v2.236.1 (#6972) 2026-07-06 19:20:38 +00:00
Gemfile.lock [deps]: Lock file maintenance (#6974) 2026-08-05 21:24:07 +00:00
gradle.lockfile Deps: Update to Kotlin v2.4.10 (#7315) 2026-08-26 19:21:02 +00:00
gradle.properties tool: Improve Gradle Sync performance with 'org.gradle.tooling.parallel' flag (#7174) 2026-07-17 15:30:22 +00:00
gradlew deps: Update to gradle v9.6.1 (#7122) 2026-06-30 20:01:57 +00:00
gradlew.bat deps: Update to gradle v9.6.1 (#7122) 2026-06-30 20:01:57 +00:00
LICENSE.txt Repo tuneup (#1400) 2024-06-20 17:08:07 +01:00
README.md doc: Update MinSdk Docs (#7118) 2026-06-29 20:19:48 +00:00
SECURITY.md [PM-18655] sync with bitwarden/template (#4795) 2025-02-26 15:24:00 +00:00
settings-gradle.lockfile deps: Update to gradle v9.6.1 (#7122) 2026-06-30 20:01:57 +00:00
settings.gradle.kts [PM-32758] ci: Improve CI cache to fix GitHub runners running out of memory (#6583) 2026-02-25 22:24:48 +00:00

Bitwarden Android

Contents

Compatibility

  • Minimum SDK: 29 (Android 10)
  • Target SDK: 37 (Android 17)
  • Device Types Supported: Phone and Tablet
  • Orientations Supported: Portrait and Landscape

Setup

  1. Clone the repository:

    $ git clone https://github.com/bitwarden/android
    
  2. Create a user.properties file in the root directory of the project and add the following properties:

  3. Setup the code style formatter:

    All code must follow the guidelines described in the Code Style Guidelines document. To aid in adhering to these rules, all contributors should apply docs/bitwarden-style.xml as their code style scheme. In IntelliJ / Android Studio:

    • Navigate to Preferences > Editor > Code Style.
    • Hit the Manage button next to Scheme.
    • Select Import.
    • Find the bitwarden-style.xml file in the project's docs/ directory.
    • Import "from" BitwardenStyle "to" BitwardenStyle.
    • Hit Apply and OK to save the changes and exit Preferences.

    Note that in some cases you may need to restart Android Studio for the changes to take effect.

    All code should be formatted before submitting a pull request. This can be done manually but it can also be helpful to create a macro with a custom keyboard binding to auto-format when saving. In Android Studio on OS X:

    • Select Edit > Macros > Start Macro Recording
    • Select Code > Optimize Imports
    • Select Code > Reformat Code
    • Select File > Save All
    • Select Edit > Macros > Stop Macro Recording

    This can then be mapped to a set of keys by navigating to Android Studio > Preferences and editing the macro under Keymap (ex : shift + command + s).

    Please avoid mixing formatting and logical changes in the same commit/PR. When possible, fix any large formatting issues in a separate PR before opening one to make logical changes to the same code. This helps others focus on the meaningful code changes when reviewing the code.

  4. Setup JDK Version 21:

    • Navigate to Preferences > Build, Execution, Deployment > Build Tools > Gradle.
    • Hit the selected Gradle JDK next to Gradle JDK:.
    • Select a 21.x version or hit Download JDK... if not present.
    • Select Version 21.
    • Select your preferred Vendor.
    • Hit Download.
    • Hit Apply.
  5. Setup detekt pre-commit hook (optional):

Run the following script from the root of the repository to install the hook. This will overwrite any existing pre-commit hook if present.

echo "Writing detekt pre-commit hook..."
cat << 'EOL' > .git/hooks/pre-commit
#!/usr/bin/env bash

echo "Running detekt check..."
OUTPUT="/tmp/detekt-$(date +%s)"
./gradlew -Pprecommit=true detekt > $OUTPUT
EXIT_CODE=$?
if [ $EXIT_CODE -ne 0 ]; then
  cat $OUTPUT
  rm $OUTPUT
  echo "***********************************************"
  echo "                 detekt failed                 "
  echo " Please fix the above issues before committing "
  echo "***********************************************"
  exit $EXIT_CODE
fi
rm $OUTPUT
EOL
echo "detekt pre-commit hook written to .git/hooks/pre-commit"
echo "Making the hook executable"
chmod +x .git/hooks/pre-commit

echo "detekt pre-commit hook installed successfully to .git/hooks/pre-commit"

Dependencies

Application Dependencies

The following is a list of all third-party dependencies included as part of the application beyond the standard Android SDK.

The following is an additional list of third-party dependencies that are only included in the non-F-Droid build variants of the application.

Development Environment Dependencies

The following is a list of additional third-party dependencies used as part of the local development environment. This includes test-related artifacts as well as tools related to code quality and linting. These are not present in the final packaged application.

CI/CD Dependencies

The following is a list of additional third-party dependencies used as part of the CI/CD workflows. These are not present in the final packaged application.