K-9: Request: Add possibility to backup with adb

Created on 27 Dec 2017  路  3Comments  路  Source: k9mail/k-9

Expected behavior

I'd like to backup K9-mail with adb in order to restore it faster after updating Android.
But in "k9mail/src/main/AndroidManifest.xml" android:allowBackup is set to false.
To allow adb backup it should be' android:allowBackup="true" '.

Steps to reproduce

  1. run adb backup -f filename.ab -apk com.fsck.k9
  2. an 41b empty backup file is produced

K-9 Mail version: master
Android version: 4+

architecture

Most helpful comment

I think that securing access to data on the device should be handled at the OS level; not per app - and I believe it is already taken care of: you have to trust the computer you are connected to and confirm the backup on the unlocked device.

Disallowing backup forces me to have a different procedure for each app; which cannot be scripted on the PC and requires a lot of manual intervention every time I want to create a backup.

Very counter-productive IMO.

All 3 comments

We allow you to export your settings (without passwords). Everything else is synced to your mail-server so doesn't benefit from back-up.

We deliberately don't allow back-up via ADB as it allows someone to export your email and passwords in plain-text.

Works as intended.

I think that securing access to data on the device should be handled at the OS level; not per app - and I believe it is already taken care of: you have to trust the computer you are connected to and confirm the backup on the unlocked device.

Disallowing backup forces me to have a different procedure for each app; which cannot be scripted on the PC and requires a lot of manual intervention every time I want to create a backup.

Very counter-productive IMO.

Philip,
I feel very sorry to read that is broke by design.

There might be a couple of reasons not to support adb backup,
like the fact it is marked as depreciated.
But I don't like the assumption to be smarter than the user.
Yes exporting the email and whatnot in plain-text, that would constitute a backup.
To be left to the discretion of the user to accept or not.

One of the use cases (and it happens to be the one I need a solution)
is the mail-server no longer exists and the mailbox in K9 is the last resort.
Please let me know how else I would do it.

Requirements of a good mail client go beyond receiving and reading email.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

robsmith11 picture robsmith11  路  3Comments

eleith picture eleith  路  3Comments

philipwhiuk picture philipwhiuk  路  3Comments

frederiiiic picture frederiiiic  路  3Comments

D0ve picture D0ve  路  3Comments