Biometrics fail to enable when installed inside Android Work Profile
- Dominant language
- Kotlin
- Stars
- 9.4k
- Forks
- 1.1k
- Avg merge
- 1d 14h
- Merged PRs (30d)
- 67
Description
### Steps To Reproduce
1. Create an Android Work Profile (see additional context)
2. Install Bitwarden inside the Work Profile
3. Open Bitwarden, login open vault
4. Go to Settings > Account security
5. Click "Unlock with Biometrics" toggle to enable
### Expected Result
Expected result is that biometrics is enabled.
### Actual Result
Biometrics fails to enable with the message: "An error has occurred." "We were unable to process your request. Please try again or contact us."
### Screenshots or Videos
_No response_
### Additional Context
This is related to Android's Work Profile feature which is used to isolate work-related apps. With Work Profile the phone essentially has two different users are logged in simultaneously, the Main Profile and the Work Profile, each with separate groups of apps. Apps in both profiles can be used simultaneously they are essentially sandboxed from each other (each has their own instance of Play Store etc).
https://support.google.com/work/android/answer/6191949?hl=en
When Bitwarden is only installed in the Main Profile, then Work Profile does not have access to the Main Profile Bitwarden autofill. To get autofill working in Work Profile you install Bitwarden in Work Profile, also. After this, Bitwarden works as expected for Work Profile apps; however, the Work Profile Bitwarden is not able to enable biometrics for some reason.
Other apps seem able to enable biometrics when installed simultaneously in Main Profile and Work Profile (tested example: Microsoft Authenticator).
To create a Work Profile if your employer/whatever doesn't support the feature, one way to test is to bootstrap the initial Work Profile is using the Shelter app. https://github.com/PeterCxy/Shelter (also available on F-Droid) After the Work Profile is setup then use Work Profile Play Store to log in to a Google Account (requires an account that is not already used in the device's Main Profile) and then install Bitwarden. Note: Shelter is able to copy apps from Main Profile to Work Profile, but I'm not sure whether or how updates to those apps happen. For Work Profile apps generally install from Play Store seems needed to install apps required by your employer (Outlook, etc).
### Build Version
2025.2.0 (19883)
### What server are you connecting to?
US
### Self-host Server Version
_No response_
### Environment Details
- Device: Google Pixel 7
- Android 15 (March 5, 2025 security update)
- Google Play (Jan 1, 2025)
- Build number: BP1A.250305.019
### Issue Tracking Info
- [x] I understand that work is tracked outside of Github. A PR will be linked to this issue should one be opened to address it, but Bitwarden doesn't use fields like "assigned", "milestone", or "project" to track progress.
Contributor guide
Assessment
This issue has not been assessed yet.