Restoring a local WhatsApp backup on Android
On Android, WhatsApp doesn't save chats only to Google Drive: every night it also creates a local backup in the phone's memory and keeps those from the last few days. If you deleted a chat yesterday, one of those files may contain it. Here's how it works, with one caveat: it's a delicate operation, and a mistake can lose your most recent chats.

Where the local backups are
With a file manager app go to: - Android/media/com.whatsapp/WhatsApp/Databases (recent phones); - or WhatsApp/Databases in the main storage (older phones).
You'll find files like: - msgstore.db.crypt14 (or crypt15): the most recent backup; - msgstore-YYYY-MM-DD.1.db.crypt14: backups from previous days.
The crypt14 extension indicates a backup encrypted with a key tied to your account; crypt15 indicates a backup with end-to-end encryption, which requires the password or the 64-digit key you chose.
How to restore an earlier backup
In general: 1. Copy the whole Databases folder to your computer, so you have a safety copy. 2. Find the file with the right date, i.e. before the deletion. 3. Rename it to msgstore.db.crypt14 (or crypt15, keeping the original extension), after renaming or moving the current one. 4. Uninstall and reinstall WhatsApp, verify the same number. 5. When WhatsApp offers to restore, choose the local backup. If it offers the Google Drive one, bear in mind the restore will use that.
The result: chats go back to how they were on that date, and you lose messages that arrived afterwards. Export any recent chats you need first.
What NOT to do
- Don't reinstall WhatsApp repeatedly without having copied the Databases folder.
- Don't delete files from the folder hoping to “force” the restore.
- Don't install apps that promise to read backups: they ask for access to your account or are scams.
When it doesn't work
- the local backup is newer than the deletion (the chat is already gone);
- the backups are crypt15 and you don't remember the password;
- the phone is broken and you can't access the memory.
In the last case the lab can get the phone working again and copy the folder. Full guide on chats: recovering deleted WhatsApp chats. To move to another phone: transferring WhatsApp to a new phone.

