3

I've been through several threads on Stackexchange / XDA to find a solution that yet eludes me for the following task :

As we all know, when we create and email account with our android devise and use the default email app, in my case Samsung Email, the synchronized emails are stored on our phone, in my case (rooted Samsung Galaxy S7 edge - Android 7.0), in this location :/data/data/com.samsung.android.email.provider/ with folders : App Cache App Databases

The idea, from what I have read, is to backup all those folders and the databases stored within them with ADB and then use SQLite tools to convert the databases into usable/readable information.

The problems I have encountered until now:

  • when I use ADB backup function, the stored backup is less than 1kb size, meaning the backup didn't work, this can be the result of wrong app name or no Allow_Backup Flag on that app (system app)
  • I have use several tools to get the exact name of the app, in my case com.samsung.android.email.provider or com.samsung.android.email.provider-1 but still no result
  • I have tried to use the backup -all command, and that's how I realized some apps where not backed-up in the resulting file, including the email app for my device.
  • I have read that in order to be backup and app, it needs to have the ALLOW_BACKUP flag, and the app (system app) does not have that flag

What do you think ? what should I do from here? (Important : the idea is to extract/backup the whole mailboxes and be able to access the contents of these mailboxes on a windows/mac mail client. I have no use for the 'export email to file (.eml)' available in the Samsung app, as that would require to do it for each email one by one).

Sources:

1
  • Why don't you copy those files & folders to another folder of your choice, then use sqlite to open the databases? Jan 25, 2019 at 22:59

1 Answer 1

1

What you want to do is simply impossible. The app Samsung Email (com.samsung.android.email.provider) contains the entry android:allowBackup="false" in it's AndroidManifest.xml.

This entry totally disables adb backup for all of it's app data. What ever you do the adb backup will therefore never contain the email data.

Of the app has no integrated bulk backup/export function for the whole mailbox you can not gain access to it's app data unless you have a rooted device or you use a root exploit.

2
  • Please view Source N_1 = it can be done. If not done that way, maybe the solutions are : 1- Edit the app flag to allow Backup. I know this can be done in general, but can it be done with system apps ? Since Samsung Email is not a default android app, maybe this can be done? 2- work with the files in Cache and Database and reverse / decode them (reverse java) back to emails ?
    – At0mX
    Jan 25, 2019 at 20:53
  • 1
    @At0mX The article is 4 years old. May be at that time Samsung Mail did not not yet had the allowBackup="false" entry. According to the versions available on apkpure.com Samsung Mail from 2017 already had this entry.
    – Robert
    Jan 26, 2019 at 12:29

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .