I have a non-gmail account with a cache of messages in my android gmail app. How can I make a backup of the emails and attachments? Accessing the mail server to make a backup is not possible. I tried the method in the answer here: Backup gmail emails offline However, the backup file is too small to realistically contain the emails and attachments. It's only coming out 549 bytes, even with trying a few different adb backup options.

  • Does this answer your question? Creating a backup with adb results in 41 byte file
    – alecxs
    Apr 8 '20 at 23:25
  • The GMail app has android:allowBackup="true" therefore app backup via adb should be possible. Try to backup a different app to test if adb backup works at all on your device.
    – Robert
    Apr 9 '20 at 14:30
  • Confirmed using adb 1.0.41. Apr 22 '20 at 0:55
  • Tried the methods in the above link, and was able to get a 141MB file, but it did not contain anything but manifests for most apps. gmail app database was not present. Per this link, it should be under /data/data/com.google.android.gm/databases/mailstore.* Am I correct in assuming gmail is blocking the including of the mail database from adb? Do I need to root to get around this, or is there another way? android.stackexchange.com/questions/27187/… Apr 22 '20 at 1:02

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.