0xbb / otp-authenticator

A two-factor authentication App for Android
MIT License
160 stars 54 forks source link

Accounts get erased after Cache/Dalvik is wiped #8

Closed HazWard closed 4 years ago

HazWard commented 8 years ago

When I wipe my cache and dalvik cache in TWRP, my accounts keep getting deleted from the app. I don't know if I'm not supposed to wipe cache or it's how the app works.

0xbb commented 8 years ago

I have no idea what exactly a cache + dalvik cache does. It could be related to the hardware-backed keystore of Android and therefore causes a deletion of the account.

srguglielmo commented 8 years ago

Hm, I just discovered an odd bug that might be related. I was using the app for a few days before I fully wiped and installed an updated version of CyanogenMod (12.1 2015-11-16 Snapshot). The app was working fine before that.

After the wipe and reinstall, the app seems to be loosing my accounts. It goes back to an empty list both when I hit the "back" hardware button to close the app and when I swipe it away from the recent activities list. This happens right away. It goes back to the empty list with the message "No account has been added yet" and buttons to add it. This is quite odd.

Phoenix616 commented 8 years ago

It goes back to an empty list both when I hit the "back" hardware button to close the app and when I swipe it away from the recent activities list. This happens right away. It goes back to the empty list with the message "No account has been added yet" and buttons to add it.

Same happens on CyanogenMod 11 so it doesn't seem to be an issue of just the new version.

YellowApple commented 8 years ago

Potentially related issue: I seem to have lost all accounts after upgrading to Android N (via an OTA update for CopperheadOS). I thankfully have most of my 2FA accounts still on Authy, but it's certainly annoying to have to re-add them. Not sure what the cause would be, though I have noticed that some of my default application settings have been lost as well. Maybe some issue with the update process? Other apps seem to have retained their data without issue.

EDIT: also seeing the same behavior of losing accounts upon leaving the app. Very unpleasant.

LeoVerto commented 7 years ago

I'm experiencing the same issue, this basically makes the app unusable as entries just don't persist.

obifur commented 7 years ago

I can confirm. This must be a Nougat issue (I'm on lineageOS 14.1). Before the update everything was fine (with Android 6).

LeoVerto commented 7 years ago

@obifur It can't be a Nougat issue, I'm having the same problem on Lollipop. It was however probably related to the update to Nougat wiping your cache and dalvik cache.

MartinX3 commented 6 years ago

Same Problem here. Motorola Nexus 6 with LineageOS 14.1-20171013-NIGHTLY-shamu Installed from Google Play

Maybe the issue I connected with this issue interests you

mbakhoff commented 6 years ago

This happens every time I update lineageos. After the update all entries are lost and won't be persisted when closing the app. Workaround is to uninstall the app and reinstall it. After that the entries are persisted again.. until the next OS update :(

ganego commented 5 years ago

Move to a "fork" of this app: https://github.com/andOTP/andOTP