freeotp / freeotp-android

Apache License 2.0
1.41k stars 298 forks source link

FreeOTP working but backup/restore missing password #373

Open mihaime opened 11 months ago

mihaime commented 11 months ago

I have FreeOTP running and all is good but if I try to do a backup and restore on another phone, I do not have the password. Is there any way to make this work out? I am having access to the app and QR codes are working. Or is this an unsupported scenario?

Truyn commented 9 months ago

Likewise, complete crap, I can’t transfer the backup, I don’t remember the password and I don’t even remember entering it. Why are there no other methods? Why this insanity, someone asked me if I needed an additional password

mariush444 commented 9 months ago

the same to me. I make backup - the apk doesn't ask to enter a password but during restore there is a message to enter password. But which one ?

EDIT it seems (based on #4 #5) that it is impossible and maybe in a future .... Probably it works with google version only but who need google version? https://github.com/freeotp/freeotp-android/commit/5e9d85eb74a3ecc7f0604ad596cabbf3d1a15c88

probably time to change the app :(

VincentSC commented 8 months ago

Duplicate of #367 #321 #348 #344 #283 and probably several more.

The app's "solution" is just to blame the user for not remembering ever entering a password years ago.

Assume this will not be fixed any time soon, and better put the time into replacing every OTP-code you use...

mariush444 commented 8 months ago

So remove export/import from menu because it is missleading and your explanation is "pure non-sens"

mihaime commented 8 months ago

I already implemented the final fix for this. Remove the app and replace it with something else :) One time recovering all accounts has been quite a life lesson. Never again.

VincentSC commented 8 months ago

Moved to Aegis. Took me on average 5 minutes per account to replace the 2FA. Most took 1-3 minutes, except three. Two microsoft-accounts were at WTF-level (same level of UX as FreeOTP), and had one webpage where I had to call for an account-reset. I left one microsoft-account to die, as it kept giving errors.

So who wants to move and has not managed to adb the "freeotp.ad" out, start with the accounts of old-fashioned corporates to see if it works. :)

For who wants to use the adb-method, a few remarks when your Android phone is encrypted:

You can recognize, when your backups are 500 to 600 bytes only, and it decrypts to an empty 1kb file.

After that it probably needs more steps, but I decided to just replace, as it was becoming a time-sink.

mariush444 commented 8 months ago

I already implemented the final fix for this. Remove the app and replace it with something else :) One time recovering all accounts has been quite a life lesson. Never again.

Yes, it is very very good advice. It is not ironic, it is security reason. If developer can't understand if-then-else that means it is time to escape. Over

Stan-Green-PM commented 7 months ago

Yes, I did know my backup password and I was able to use it to restore to my new phone. So, the lesson learned is to know your passwords! Update: I take it back; everything seemed to import, but the codes do not work. So, something is still not right.

VincentSC commented 7 months ago

Maybe you can import the file into Aegis, to see if the export or the import has the bugs?

Stan-Green-PM commented 7 months ago

Aegis cannot import the vault from FreeOTP: com.beemdevelopment.aegis.importers.DatabaseImporterException: com.beemdevelopment.aegis.vault.VaultFileException: org.json.JSONException: Value ... (I cannot get a screenshot in Aegis)

VincentSC commented 7 months ago

Then export is broken

Stan-Green-PM commented 7 months ago

UPDATE: I found out that the one token that was not restored cannot be copied to a new device. (I don't know the tech details here.) I had to re-enroll the token. All the other tokens are working. So, I don't think any "bugs" exist in the backup/restore process.