The loss of important correspondence in the messenger always causes panic, especially if it contains work agreements or personal memories. Many Android users mistakenly believe that after clicking the โDeleteโ button, the data disappears forever, but the architecture WhatsApp works differently. The system regularly creates hidden backups, which can be stored both in cloud storage Google Driveand in the internal memory of the device itself.
The physical location of these files depends on the version of the operating system and the privacy settings of your smartphone. In modern versions of Android, the paths to system folders have been changed for security reasons, which often confuses even experienced gadget owners. Understanding where exactly the database files are locatedis the first and most important step for the successful recovery of lost information.
In this article we will analyze in detail the messenger data storage structure, show specific paths to the files and explain how to correctly initiate the recovery process. You will learn the difference between local backup and cloud backup, and also receive a step-by-step algorithm for returning deleted messages.
Data storage architecture in WhatsApp
The messenger uses a specialized database called msgstore.db to store the entire correspondence history. This file is an encrypted container that is constantly updated in real time as new messages arrive. However, to protect against accidental losses, the system creates copies of this file with timestamps.
Android divides data storage into two main levels: the internal memory of the application, access to which is limited without root access, and the public memory of the device, where backup copies are uploaded. It is the files in public memory that are of greatest interest to a user who wants to restore a chat manually.
Local copies are created automatically every day, usually at 2 a.m., although this time can be changed in the settings. The system stores not one, but several versions of the database for the last week. This means that if you deleted a message today, you can try to restore yesterday's version of the database, where it was still present.
โ ๏ธ Attention: Database files have the extension .crypt14, .crypt15 or .crypt16. The number indicates the encryption version, which depends on the version of the WhatsApp application itself. An attempt to open them with standard text editors is impossible without a decryption key.
Before any manipulations with database files, be sure to copy the current WhatsApp folder to a safe place on your computer. An error when renaming files can lead to a complete loss of current correspondence.
Searching for local backups on the device
To access files, you will need any file manager that can display hidden system directories. On devices with Android 10 and above, the folder structure has undergone significant changes due to the implementation of the scoped storage policy. Now the path to the data has become deeper and protected from accidental deletion by other applications.
The standard path to the backup folder on modern smartphones looks like this:
Android/media/com.whatsapp/WhatsApp/Databases
On older versions of the operating system (Android 9 and below), the data could be stored in the root of the internal memory. In this case, you should check the path:
WhatsApp/Databases
Inside this directory you will find a file named msgstore.db.cryptXX (where XX is the encryption version). This is the most recent database. Nearby there will be files with names like msgstore-2023-10-25.1.db.cryptXX, where the date the copy was created is indicated. It is these files that allow you to roll back in time.
- ๐ File
msgstore.db.cryptXXis the active database that the messenger is using right now. - ๐ Files with dates in the name are archived copies for previous days.
- ๐ File extension may change when the application is updated, but the naming structure remains the same.
If you do not see the folder Android or it is empty, check the access settings of your file manager. Some standard explorers hide system directories by default to protect the user from errors.
Restoring messages from a local copy
The process of restoring from a local file requires care, as it involves manual renaming of system files. An error in one character can cause the application to not recognize the database and create a new, empty one. Before starting the procedure, make sure that you have write rights to the selected directory.
First you need to delete or rename the currently active database file. Find the file msgstore.db.cryptXX and change its name by adding the word .oldto the end. This action will save the current correspondence in case the recovery is unsuccessful.
Then select the file with the desired date that contains the deleted messages. 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. After this, you need to completely remove the WhatsApp application and install it again.
โ๏ธ Restore algorithm from a local backup
When you first start after installation, the messenger will detect the local database and offer to restore chat history. Agree with this proposal. The process may take several minutes depending on the volume of correspondence and the memory speed of your smartphone.
โ ๏ธ Attention: Restoring from a local copy will replace the current correspondence with the one that was at the time the backup was created. All messages received between the date of the copy and the current moment will be lost.
Working with Google Drive cloud backups
Unlike local files, copies in Google Drive are not visible to the user as separate files in the cloud storage interface. They are hidden in a special application data management section. This is done to prevent accidental damage to the encrypted database by the user.
You can check the availability and date of the last cloud copy directly inside the messenger settings. To do this, go to menu Settings โ Chats โ Chat backup. The time of the last save and the amount of space occupied will be indicated there.
| Option | Local copy | Google Drive |
|---|---|---|
| Accessibility | Only on this device | Available when changing phone |
| Frequency | Daily (automatic) | Configured by user |
| Network dependence | Not required | Wi-Fi or mobile data required |
| Recovery | Manual file renaming | Automatic during installation |
To restore from the cloud, simply reinstall the application and log into your account. The system itself will find the latest available copy in Google Drive and offer to download it. Unlike the local method, you cannot select a specific date here - only the most recently saved snapshot of data will be restored.
The cloud copy is overwritten with each new save, so to restore old correspondence, local files are often the only chance.
Access problems and superuser rights
On some devices, manufacturers set additional restrictions on access to the folder Android/data or Android/media. Standard explorers may show these folders empty, even if the files are physically present there. This is a known feature of shells MIUI, OneUI and other custom interfaces.
In such situations, it is recommended to use specialized file managers, such as Total Commander or Solid Explorer, which request special system permission to access system directories. When you first launch the application, it will display a system window where you need to confirm the granting of rights.
If even specialized software does not see the files, you may need to obtain root access. This gives you full control over the file system, but will void your device warranty and may interfere with banking applications. The use of root access is justified only in extreme cases, when other methods have not worked.
โ ๏ธ Attention: Obtaining root access may trigger Google Play Protect security mechanisms and block the operation of some protected applications (banks, payment systems).
Alternative ways on different brands
On Xiaomi smartphones, the path may be duplicated in the MIUI/backup/AllBackup folder, but this relates to general system settings rather than specific WhatsApp databases. On Huawei, older models used the Huawei/Backup path, but new models follow the Google standard.
Prevention of data loss in the future
In order not to face the need for complex file manipulations in the future, it is worthwhile to correctly configure automatic backup. The best option is a combination of local and cloud copies. Local files are always stored, even without the Internet, and the cloud protects against physical damage to the device.
It is recommended to periodically manually copy the folder Databases to a computer or external drive. This will create an archive that can be accessed even months later, when the cyclical local copies on the phone have already been overwritten by new data.
- โ๏ธ Set the backup frequency in Google Drive to โDailyโ for maximum relevance.
- ๐พ Once a month, copy the database folder to your PC via USB cable.
- ๐ Make sure that the phone is connected to charging and Wi-Fi at night to successfully create copies.
It is also worth paying attention to the โVideo Backupโ function. If you enable this option, the amount of space occupied in the cloud will increase many times, but you will save not only text, but also media files. For text messages, the volume is usually small and does not exhaust your quota Google Drive.
Use the Export Chat feature to save particularly important conversations as a .txt text file. This file can be sent to yourself by email and stored independently of the messenger database.
Frequently asked questions (FAQ)
Can I restore messages if I did not make a backup copy?
Unfortunately, if you did not have automatic creation of local copies enabled (which is extremely rare) and no backup to Google Drive, messages cannot be restored. Files on the device are overwritten cyclically, and data not included in the archive is destroyed irrevocably.
Why does the backup file have a strange extension crypt14?
The extension indicates the version of the encryption algorithm used by WhatsApp to protect your correspondence. The figure changes with major app updates. The file is encrypted with a key stored in a protected area of โโthe phone's memory, so it cannot be read on another device without being linked to your account.
How many days are local backups stored?
By default, the messenger stores local copies for the last 7 days. Every day a new copy is created, and the oldest of the seven is deleted. Thus, you can restore correspondence from a maximum of seven days ago using local files.
Does changing the phone number affect restoration from a copy?
Yes, it does critically. Backups are linked to a specific phone number. If you change your number, you won't be able to restore old conversations from the copy you made for the previous number, even if you use the same Google Account. You must first change the number inside the application settings before creating a backup.
Where can I find the WhatsApp folder on Android 11 and higher?
On new versions of Android, the path has changed to Android/media/com.whatsapp/WhatsApp/Databases. If you do not see the folder com.whatsapp, your file manager may not have access rights to the directory Android. Try granting permission through the system rights request window.