-
Works at least with Samsung Galaxy S III phone (tested with LineageOS 14.1 alias Android 7.1.2)
-
A keyword: enable the following WhatsApp permission beforehand (before you launch the WhatsApp app for the first time):
- Contacts
- External Storage
- (Possibly also SMS)
-
Please note that you log out of your Google Account before starting the restoring process -
The factory reset via TWRP does not really reset the user's personal partition in the phone memory, so the
sdcard/WhatsApp/Databases
folder can still be found in the phone's memory even after resetting -
I took two WhatsApp backups in advance
- renamed
msgstore.db.crypt12
tomsgstore.db.crypt12.bak
- renamed an older backup file
msgstore-YYYY-MM-DD.1.db.crypt12
tomsgstore.db.crypt12
- renamed
-
I also looked at the guideline on the WhatsApp website
EDIT July 12th 2019: It's not necessary to log out the Google Account. I have tested that this process works also without it. The most important thing is to enable the permissions above before starting the restoring process.