Deleting a messenger WhatsApp by mistake or as a result of a system failure often leads to panic due to the risk of losing important correspondence. Many users are sure that without creating a backup in the cloud, data is lost forever, but the architecture of the operating system Android allows you to save local copies of database files.

The recovery process depends on how exactly the application was uninstalled and how much time has passed since that moment. If you simply deleted a shortcut or uninstalled a app, but did not format the internal memory of your smartphone, the chances of getting back the message history remain high thanks to the hidden functions of the file system.

In this article, we will analyze in detail the mechanics of local databases msgstore.db and step by step describe the algorithm of actions for manually replacing backup files. This is a technical procedure that requires care, but it often saves where standard methods are powerless.

The principle of local backup operation

The WhatsApp messenger on the Android platform is by default configured to create automatic local copies of the message database. These files are saved to the device's internal memory daily, usually at night, regardless of whether you have Google Drive backup enabled.

Each such copy is an encrypted database file, which is stored in a special directory of the system. By default, the system stores the last 7 days of such copies, overwriting the oldest one when creating a new one. This means that even if you don't have access to the cloud, you have a week's supply of recovery points.

It is important to understand the difference between cloud and local storage. Google Drive requires explicit configuration and sufficient account space, while local files take up space directly on your drive. It is these hidden files that become a salvation when deleting an application without first synchronizing with the cloud.

โš ๏ธ Attention: Local backup files are encrypted with a key linked to your phone number and account. You wonโ€™t be able to transfer them to another smartphone with a different recovery number - you will need your number for verification.

Searching and preparing database files

The first step for manual recovery is to search for saved files in the file system of the smartphone. You will need any file manager that can display hidden folders and work with system directories. In modern versions of Android, access to some folders may be limited, so be careful when navigating.

You need to follow the path where the messenger stores its data. Depending on the version of Android and the version of the application itself, the path may differ. Usually it looks like this: Android/media/com.whatsapp/WhatsApp/Databases or an older version WhatsApp/Databases in the root of the internal memory.

In this folder you will see files with names like msgstore-YYYY-MM-DD.1.db.crypt14 and one file without a date msgstore.db.crypt14. The number at the end of the extension (for example, crypt12, crypt14, crypt15) indicates the encryption version, which depends on the version of WhatsApp installed. The undated file is the copy that the application uses during installation for recovery.

๐Ÿ’ก

If you do not see the WhatsApp folder after deleting the application, check the file manager trash or connect the phone to the PC - sometimes the files remain in the system cache until a complete reboot.

Algorithm for manual recovery of correspondence

The process of replacing files requires a strict sequence of actions. Out of order may cause the application to create a new empty database, overwriting your recovery attempts. Before you begin, make sure that you have access to the files discussed in the previous section.

First, you need to rename the current database file (if it exists) so that it does not conflict with the one being restored. Find the file msgstore.db.cryptXX and change its name by adding the word .oldto the end. This action will create a backup copy of the current state in case of an error.

Then select the file with the desired date that you want to restore. Rename it by removing the date from the title so it looks like msgstore.db.cryptXX. It is important to keep the file extension unchanged, including the encryption version. After that, install WhatsApp again, but do not open it right away.

โ˜‘๏ธ Recovery checklist

Done: 0 / 5

When you first start and enter your phone number, the messenger will detect a local file and offer to restore data from it. Refuse to restore from Google Drive if prompted and confirm restoring from a local copy. If everything is done correctly, the message history will appear in the interface.

Features of encryption versions and compatibility

One โ€‹โ€‹of the common problems with manual recovery is incompatibility of encryption versions. The messenger regularly updates security protocols, changing numbers in file extensions (crypt12, crypt14, crypt15, and so on). You cannot restore a database encrypted by a newer version of the application using an older version of WhatsApp.

If you try to restore a file with an encryption version that is newer than the installed application, the process will fail or the database will simply not be recognized. In such a situation, you need to update the messenger to the latest available version on Google Play before starting the recovery procedure.

Encryption version Approximate period Compatibility
crypt12 2018 - 2020 Only old versions of WhatsApp
crypt14 2020 - 2022 Medium versions applications
crypt15 2022 - present Current versions of the messenger
crypt16 Latest updates Only beta and latest releases

It is also worth considering that different versions of Android may handle access rights differently folder Android/media. On Android 11 and higher, access to this directory for third-party file managers may be limited, which will require the use of the built-in system explorer or granting special permissions.

โš ๏ธ Attention: The interface and file paths may change after major operating system updates. Always check the current folder structure in the official help or on the support forum if the standard paths do not work.

๐Ÿ“Š Have you encountered data loss in instant messengers?
Yes, I lost important chats
No, I always make a backup
It was, but I managed to recover
I donโ€™t use WhatsApp

Recovering deleted media files

Often users are concerned not only with the text of the correspondence, but also with lost photos, videos and voice messages. These files are stored in a separate directory, usually called Media, inside the WhatsApp folder. The subfolder structure there is organized by content type: WhatsApp Images, WhatsApp Video, WhatsApp Audio.

Unlike the message database, media files are not encrypted in the same complex way and are ordinary image or video files. If you deleted the application, but did not clear the memory manually, these files often remain in place even after uninstalling the app.

To get them back, simply check for the presence of the folder WhatsApp in the device memory after reinstalling the application. If the folder is empty, you can try using specialized utilities to recover deleted files, but success depends on whether these memory sectors have not been overwritten by new data.

Why are some photos not displayed in the gallery?

Sometimes the files are physically present on the disk, but the .nomedia file in the folder prevents them from being displayed in the Android gallery. Deleting this file solves the visibility problem.

Using third-party recovery software

If manual methods do not bring results, there are specialized apps for PCs that scan the internal memory of the smartphone in search of deleted data. Utilities such as Dr.Fone, Tenorshare UltData or DiskDigger can find traces of deleted databases that are not visible through a regular file manager.

The effectiveness of such apps greatly depends on the phone model and Android version. On devices without root access the scanning depth is limited, and the app can only find cached thumbnails or data fragments. Obtaining superuser rights significantly increases the chances, but carries the risk of losing the guarantee.

When using third-party software, it is important to be careful and download apps only from the official developer sites. There are many fraudulent applications that disguise themselves as recovery tools, but in fact contain malware.

โš ๏ธ Attention: Data recovery apps are often paid and do not guarantee 100% results. Before purchasing a license, be sure to use the free trial to make sure the app sees your deleted files.

๐Ÿ’ก

The chances of successful recovery without backup are maximum in the first 24-48 hours after deletion, until the system overwrites the memory sectors with new data.

Prevention of data loss in the future

In order not to encounter the need for complex manipulations in the future, it is recommended to set up automatic backup. It will take a couple of minutes, but it will save your nerves at a critical moment. Go to your chats settings and choose how often you want to make copies - it's best to set it to update daily.

Make sure your Google Drive settings for WhatsApp allow mobile data if you're not always connected to Wi-Fi. Also check if there is enough space in your cloud storage, since a full disk will not allow you to create a new backup.

Periodically make a manual copy of the folder Databases to your computer or external drive. This will create an additional level of protection, independent of cloud services and the smartphone itself. Storing archives for several months will allow you to roll back to the state of correspondence even if there is no access to the phone for a long time.

Is it possible to restore chats if I change my phone number?

No, the database files are tied to a specific number via a cryptographic key. When changing your number, you must use the "Change number" function inside the application before deleting to transfer the binding, otherwise the old backups will become useless.

What to do if the msgstore.db file is not renamed?

Check whether the WhatsApp process is running in the background. Close the application completely through application settings or restart your smartphone before trying to rename files in the file manager.

Does the Android version affect the recovery method?

Yes, starting with Android 10 and especially in versions 11-14, the paths to data folders have changed for security reasons. The path has moved deep into the Android system folder, and access to it may require special permissions.

How many local copies are stored in the phone's memory?

By default, WhatsApp stores the latest 7 daily local copies. The oldest of them is automatically deleted when a new one is created, so it is almost impossible to restore correspondence older than a week without a cloud backup.