-
-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
allow backups #3846
allow backups #3846
Conversation
Without a backup agent configured the unencrypted account credentials make it into the backup. That's why we don't have this enabled. |
On modern android the adb backup flow works like:
Lets compare this flow to the only cumbersome way I am forced to use to backup k-9 mail today without rooting:
The ADB backup flow is strictly better for security and easy of use. |
If it was possible to only allow adb backup but not "auto backup" I'd be all for your change. But |
Thanks for pointing out the autobackup issue. I wonder if the account passwords can be stored in the location specified by getNoBackupFilesDir(), perhaps in a separate sqlite db. That might then back up everything but the passwords. But I realize this might not be compatible with earlier Android versions. And as I read the API docs, if minsdkversion is < 23, there will be no autobackup at all. |
Implementing a BackupAgent that uses the settings import/export code is probably the cleanest way to implement the backup functionality. |
Are you talking about google play services backup? While I would not use that personally, they do at least offer encryption/2fa options as good or better than those required to gain access to the phone directly. If someone is using a totally third party backup tool known to use insecure practices I think that is outside of an app authors responsibility similarly as the user choice to automatically leak the password via a bad password manger or choosing "Security None". |
Agreed about I don't think we can enable backups that automatically store users' passwords in the google cloud. |
I created issue #3857 for the |
Android has now option to enable backups, only if they are encrypted. Info: And mentioned example how it was enabled in the Tranportr app: |
I switch phones frequently for rom development and backups not being enabled is a real pain.
This one tiny change will make my life a lot easier, and presents no added security risk as you must approve on an unlocked device.