Skip to content
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

recover from the backup file not work #62

Open
geekyouth opened this issue Aug 25, 2023 · 5 comments
Open

recover from the backup file not work #62

geekyouth opened this issue Aug 25, 2023 · 5 comments
Labels
Question Further information is requested

Comments

@geekyouth
Copy link

I have backup my 2fsAuth APP by Android BackUp APP ,but when i recover from the backup file , 2FS Auth APP can not work ,boot then exit.

image

@geekyouth geekyouth changed the title recover from the backup file noe work recover from the backup file not work Aug 25, 2023
@rafakob
Copy link
Collaborator

rafakob commented Aug 25, 2023

It is not possible to recover data from backup files created by a third-party application. For security measures, the 2FAS local database is encrypted with a random key generated during app installation (each app installation has a different key). This key is securely stored in the system keystore and cannot be accessed outside the scope of the 2FAS app. That's why we offer other backup methods - manual or automatic through Google Drive.

@geekyouth
Copy link
Author

I don't know what to do now. I even cloned the source code of the 2fas-android project and opened it with Android Studio. I found the code related to 'import from file', but I still don't know how to import my backup data:

database-2fas-shm, database-2fas-wal, and database-2fas.

@rafakob
Copy link
Collaborator

rafakob commented Aug 25, 2023

"Import from file" option is for backup files created using our in-app solution in "Settings -> 2FAS Backup -> Export to file".

Those database files are encrypted and it's impossible to import them. It's done for security measures.

@geekyouth
Copy link
Author

thank you , now i have to give up recovery my backup file from android system backup app ???

@rafaelazvdo
Copy link

thank you , now i have to give up recovery my backup file from android system backup app ???

Yeah, Android backup is completely useless for this kind of apps.

@KobeW50 KobeW50 added the Question Further information is requested label Feb 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Question Further information is requested
Projects
None yet
Development

No branches or pull requests

4 participants