Kunzisoft / KeePassDX

Lightweight vault and password manager for Android, KeePassDX allows editing encrypted data in a single file in KeePass format and fill in the forms in a secure way.
https://www.keepassdx.com/
GNU General Public License v3.0
4.6k stars 270 forks source link

How to backup? #968

Open starbrights opened 3 years ago

starbrights commented 3 years ago

For users without root adb backup/restore is the only way to backup app+data. Would you please be so kind to allow that in manifest? If not - is there any special reason not to do so? Thank you.

J-Jamet commented 3 years ago

You didn't look very hard...

The manifest already has a backup system for non-sensitive data : https://github.com/Kunzisoft/KeePassDX/blob/f45b3fc50a711f854a41f4b6f706e76105ac214b/app/src/main/AndroidManifest.xml#L32` And I also added an export system for the app configuration : https://github.com/Kunzisoft/KeePassDX/wiki/Import-and-Export Then you only need to recover your .kdbx file : https://github.com/Kunzisoft/KeePassDX/wiki/Backup

starbrights commented 3 years ago

I am sorry. I just run the apb backup over all apps I found, and yours (among others) created just a 47byte header. I searched a lot for reason and than I found that this android:allowBackup might be the reason. So shame on me, I didn't look into your repo. Sorry, my fault. But do you have a slightest idea why your app regret that? Not just data, app too?

Sure, the most important thing is database, but also other settings might be backuped. And the issue is: if you want to backup your phone, all apps might have a different mechanism. The adb backup would work for all in same way (if they work ;) )

(Am I in wrong app: package name is com.kunzisoft.keepass.libre ? This is KeePassDx?)

J-Jamet commented 3 years ago

https://medium.com/swlh/android-12-changelog-google-finally-restricts-the-power-of-adb-backup-44f2216c219

ADB backup is a command that will be removed by Google (it is now deprecated and only works under some conditions). It must depend on the ADB version. Yes, this is KeePassDX.