-
-
Notifications
You must be signed in to change notification settings - Fork 524
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Keystore operation failed; java.security.InvalidKeyException: Keystore operation failed #430
Comments
What phone was your colleague using? Which biometric method? |
My colleague is using a Pixel 3 XL, with fingerprint. But we are not using biometrics to retrieve/store data. It also seems like that rebooting the phone fixed the issue, but that I suppose is not really a "fix". |
We started to see this behavior in our Mattermost app since the last Android 11 update (specially on Pixel 5 devices, but reported with other android devices as well). We were using version 4.0.5 but the issue also remains with 6.2.0 using SECURE_SOFTWARE and no biometrics |
To add on to this, we've got several user reporting this with both the Pixel 4 and Pixel 5 on the January Patch for Android 11. |
The patch was installed on January 5th, and the app has been used without issues until today :/ |
I can replicate this pretty much consistently. I login to MM on pixel 5, latest patches... A few hours later.... Logged out again. Happy to grab logs, just need to know how. |
https://github.com/ecgreb/pidlog |
This seemed relevant, but I'm not 100% sure. Specifically... https://source.android.com/security/keystore/tags ?
|
FWIW after seeing the data @NeilHanlon posted I ran into this issue again and just restarted my phone, the app worked again without issue and I didn't even have to reenter my credentials so it definitely seems to be related to the |
Getting this issue on variety of Android devices. Samsung S6 being one of the more prevalent. |
Same issue here, can't access keychain store consistently on android, does the latest patches work? where to get the latest patches? |
@oblador I hope it's okay if I ping you directly. |
@oblador does 7.0 resolve this issue? |
It should fix some Pixel 4 issues, would you mind trying it out and report back? |
I'm seeing this issue on 7.0.0. It seems to appear after a certain amount of time. After a reboot of the device, the problem goes away but always seems to come back after a while. I store the token that's used for API calls in the keychain and access it each time a call is made. If there is in fact some kind of MAX_USES_PER_BOOT limit, should I not be doing this and just accessing the token once in the keychain and storing it in memory or something? |
We ended up patching the library that adds an internal cache, see if this works for you https://github.com/mattermost/mattermost-mobile/blob/master/patches/react-native-keychain+7.0.0.patch |
Thanks @enahum. I will take a look at your impl. Seems like a pretty glaring issue unless I'm missing something. |
Hello everyone,
we are facing an unexpected issue. Suddenly, and fortunately, one of my colleagues wasn't able to login to our app in our production environment.
After some investigation, we were able to catch some exceptions from logcat. It looks like the app is not able to access the phone's cypher storage.
here you can find the logs:
Did anyone had the same issue?
The text was updated successfully, but these errors were encountered: