Galaxy S7 - How to back-up stored email mailboxes with ADB? 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:


Android email Extraction
How to backup with ADB
Backup problems
Backup FLAG info
SQLite database use
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.