Galaxy S7 - How to back up stored email mailboxes with ADB?
3
votes
1
answer
1720
views
I've been through several threads on Stack Exchange / XDA to find a solution that yet eludes me for the following task :
As we all know, when we create an email account with our Android device 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:
The idea, from what I have read, is to back up 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 the wrong app name or no
/data/data/com.samsung.android.email.provider/
with folders : 

Allow_Backup
Flag on that app (system app)
- I have used 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 were not backed up in the resulting file, including the email app for my device.
- I have read that in order to backup an 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
Asked by At0mX
(31 rep)
Jan 25, 2019, 11:47 AM
Last activity: Feb 17, 2024, 08:23 AM
Last activity: Feb 17, 2024, 08:23 AM