bitwarden / mobile

Retired Bitwarden mobile app for iOS and Android (MAUI/Xamarin).
https://bitwarden.com
GNU General Public License v3.0
132 stars 21 forks source link

Android app crash [Root][MicroG] #463

Open nHOUSuuyMcy4hkZPmXR7wVy0TiRba28qgpjAtGg opened 5 years ago

nHOUSuuyMcy4hkZPmXR7wVy0TiRba28qgpjAtGg commented 5 years ago

So I've been facing this a lot lately. I use a rooted android device running android 9.0 and I'm currently using MicroG instead of gapps. App was working fine for a while but lately its been crashing a lot. After re-installing the app, it works fine for a day or two and starts crashing again. I'll be attaching logs below. Please, do have a look at it.

pPmnBRRYhIemiuiy3VBYULJIzQyZaEvWMbCPH1P commented 5 years ago

02-18 14:43:55.404 I/MonoDroid(17042): UNHANDLED EXCEPTION: 02-18 14:43:55.409 I/MonoDroid(17042): System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.InvalidOperationException: The configuration is invalid. Creating the instance for type ISecureStorageService failed. Failed to obtain information about key ---> SimpleInjector.ActivationException: Failed to obtain information about key ---> Java.Security.GeneralSecurityException: Failed to obtain information about key ---> Java.Lang.Exception: Key not yet valid

Looks like, for whatever reason, your device is losing the ability to access the Bitwarden encryption key from the Android keystore.

nHOUSuuyMcy4hkZPmXR7wVy0TiRba28qgpjAtGg commented 5 years ago

@kspearrin what I don't understand is how it can access the keys initially and then after a while it fails to do so. Do you suggest me trying anything in particular? This happens like after every 1 or 2 days after re-installing the app.

pPmnBRRYhIemiuiy3VBYULJIzQyZaEvWMbCPH1P commented 5 years ago

I am not sure either. Does your device have a PIN or fingerprint setup to unlock it?

nHOUSuuyMcy4hkZPmXR7wVy0TiRba28qgpjAtGg commented 5 years ago

@kspearrin yes, I do have two fingerprints setup with a password

R3Ns7l451iTAHZTXNjimOitXn5CQ0iECjxnjh2V commented 5 years ago

Same problem for me. Crashes 5 times per day on android 9.0. Drains a lot the battery in the same time 😕

pPmnBRRYhIemiuiy3VBYULJIzQyZaEvWMbCPH1P commented 5 years ago

Can you try v2.0 from play store beta?

h4V5i7QkwGtJj03LyCGdMLtgkXDJhXy0YLthdLA commented 5 years ago

Came looking for an issue of the Android app crashing. The app always crashes when attempting to add a login entry, either in a specific folder, or "No Folder". I've tried various combinations of data (no username, no password, no URI, etc.) to no effect. I cannot add any login entries. Doesn't matter if I use the fingerprint to unlock, or the master password. I can create a new issue, if needed.

Stock Android 9 on a Pixel 3 XL, with the June 5, 2019 security patch update, no root. Bitwarden 2.0.6 (1938).

EDITED TO ADD: It appears I couldn't sync either, even though I could elsewhere, and the state of the account seemed fine. Stopping the Android app, deleting the local cache and stored app data, uninstalling the app, reinstalling, then logging back in, everything is good. Somehow, it got in a bad state, and I don't know how.

q4fNY94xXXAATP0b0VjHhhODzYArM0eVZ1ynoGB commented 5 years ago

Came here looking for answers, just got a new galaxy s10e, out of the box, when I sign in the app crashes. Have tried enabling all permissions and accessibility service, still no dice.

TBYUJRvevV2a8vuDDfTSCBdWlZnLXkC5OBaJ3M3 commented 4 years ago

rewrite this app