Android 14 - App in EMM work profile failing with android.security.KeyStoreException: Keystore not initialized
Our team previously encountered this exact issue with Android 12: https://support.google.com/work/android/thread/119702868/app-in-emm-work-profile-failing-with-androi...
The issue was mitigated on Google's side since Android 12.1, with no further customer reports. However, we are seeing it again on a customer device running Android 14. This is necessary for our app to use the work profile's biometric to authenticate into our app. No other customers (thousands) reported the issue, and we could not reproduce. We confirmed not just our app being affected by this, by checking other apps in the work profile that rely on biometrics, and they also failed to do so.
Eventually the customer was able to mitigate by reprovisioning their work profile. May be some bug/edge case during work profile provisioning and keystore availability. Any way we can workaround this programmatically/avoid this high customer friction of re-provisioning a work profile? Or perhaps something Google can ack/fix on their side in case of a regression since Android 14?
You should open a bug report with your EMM, and if you're the EMM raise this to Google with a proper bug report.
Next time this issue occurs make sure to create a bug report so that it can be investigated.