Losing a smartphone or accidentally deleting an application often becomes a cause for panic due to the risk of losing valuable correspondence. However, the Android system is designed in such a way that instant messengers create local backups, allowing you to restore communication history even without cloud synchronization. Understanding where these files are physically located gives the user full control over their data and the ability to save them before resetting the settings.
In this article we will analyze in detail the file structure of the messenger, changes in access paths introduced in the latest versions of the OS, and ways to manually manage archives. You will learn how to find database files, transfer them to another device and restore chats when automatic methods did not work.
Evolution of data storage paths in Android
For a long time, Android users have become accustomed to a single standard for storing application data in the root of the internal memory. For WhatsApp it was a clear and easily accessible directory /WhatsApp. However, with the release of the operating system Android 11 and the introduction of the Scoped Storage policy (limited storage), Google has tightened the rules for accessing the file system for the sake of security.
Now the system application folders have been moved to a protected area, to which only the apps themselves have access. This means that standard file managers may not display the contents of the new directory without granting special permissions. Old way /WhatsApp/Databases may still exist on some devices or after an update, but the current standard has become a path inside the system folder Android.
The change in storage structure is aimed at preventing malware from reading personal data from other applications. For the average user, this creates minor inconvenience when trying to manually copy the database, but significantly increases the overall level of protection of the device from information leaks.
โ ๏ธ Attention: On devices with Android 11 and higher, access to the folder
Android/datamay be limited by standard Explorer. To view files, you may need to install a third-party file manager with extended rights, for example Total Commander or Solid Explorer.
If you do not see the Android folder in the root memory, check the visibility settings for hidden files in your file manager or give the application access to system files when you first launch.
Current paths to the database folder data
To find backup files, you need to know the exact address in the file system hierarchy. Depending on the version of the operating system and the update history on your smartphone, the data may be located in one of two main places. The search should start with the new standard, since it is a priority for modern versions of the messenger.
The main path for current OS versions is as follows: Internal memory/Android/media/com.whatsapp/WhatsApp/Databases. This is where files with the extension .db.crypt14 (or other encryption version number) that contain your correspondence are stored. If you do not find the folder com.whatsapp in the mediasection, it is worth checking an alternative placement option.
An alternative path, typical for older versions of Android or specific builds firmware, located at: Internal memory/WhatsApp/Databases. In some cases, when updating the system, files may be duplicated in both directories, however, when restoring, the messenger first turns to the path inside the folder Android.
- ๐ Full path to the new folder:
/Android/media/com.whatsapp/WhatsApp/Databases - ๐ Old path (for Android 10 and below):
/WhatsApp/Databases - ๐พ Backup file name:
msgstore.db.cryptXX(where XX is the encryption version)
Backup file structure
Inside the folder Databases you will find a set of files, the names of which may seem like a chaotic set of symbols and numbers. In fact, the naming system is strictly regulated and makes it possible to understand which copy is current and which are archival. Understanding these names is critical for proper data recovery.
The main file that the application uses during installation to restore chats always has a name msgstore.db.cryptXX. Here msgstore denotes the message store, and cryptXX indicates the encryption algorithm (for example, crypt12, crypt14, crypt15). The number changes only when the security protocol of the messenger itself is globally updated.
The rest of the files in this folder contain the creation date in their name, for example, msgstore-2023-10-25.1.db.crypt14. These are automatic backups that are created daily at 2 am, provided that the phone is connected to the network and is not actively used. The system stores the last 7 days of such archives, allowing you to roll back to a specific date in the past.
| File name | Copy type | Recovery priority |
|---|---|---|
| msgstore.db.crypt14 | Last current | High (used by default) |
| msgstore-DATE.1.db.crypt14 | Archive (yesterday) | Medium (requires renaming) |
| msgstore-DATE.2.db.crypt14 | Archive (day before yesterday) | Low (requires renaming) |
| wa.db / chatsettings.db | Service databases | Not used to restore chats |
Why are the files encrypted?
Whatsapp database files are protected by end-to-end encryption. Even if you copy the file to your computer, you will not be able to read the correspondence with a regular text editor. Decryption is only possible within the application on the device where your account is active, since the decryption keys are stored in a protected area of โโthe system.
How to manually restore chats from a local copy
Sometimes automatic recovery from Google Drive does not work, or you need to return the correspondence to a date that has already been overwritten in the cloud. In such situations, the only solution is to manually replace the database file. This process requires care, as an error in the file name will result in the application not seeing the backup.
First, make sure that you have the desired file msgstore.db.cryptXX in the internal memory. If you want to recover chats from a specific date, find a file with the corresponding date in the name. You need to rename it, removing the date from the name so that it becomes exactly the same as the current file - msgstore.db.cryptXX.
After renaming, completely uninstall the messenger. This is a required step, since during a normal reinstallation over an old version, the recovery process may not start. Delete the application, restart your smartphone, and then install WhatsApp again from the official store.
โ๏ธ Manual recovery checklist
When you first start after entering your phone number, the system will detect a local backup and offer to restore it. Agree with the proposal and the process will take some time depending on the volume of correspondence. Do not interrupt the installation until it is complete, otherwise the database may be damaged.
โ ๏ธ Attention: Before renaming files, make a copy of the current folder
Databasesto a safe place. If you make a mistake with the encryption version (for example, you try to open crypt14 with a crypt12 file), the application will not be able to read the data and you will lose access to chats.
Transferring chats to a new smartphone without the cloud
When changing devices, users often encounter the problem of transferring correspondence history, especially if the transition is made between phones from different manufacturers or without using a Google account. Directly copying a folder with files is the fastest and most reliable method, regardless of Internet speed and cloud storage volume.
To implement this method, connect your old smartphone to the computer and copy the entire folder WhatsApp (or directory com.whatsapp inside Android/media) to hard drive. Then connect the new phone and place the copied folder in exactly the same location in the internal memory of the new device.
It is extremely important to maintain the directory structure. If on the old phone the path was /Android/media/com.whatsapp/..., then on the new one it should be identical. After copying, install the messenger on your new device. When registering, the system will automatically find the transferred files and offer to restore data from them.
Local folder transfer is faster than cloud transfer and allows you to save media files in original quality, since they do not go through Google or Apple servers, where they may be subject to compression.
This method is especially relevant when moving from Chinese versions of smartphones, where Google services may be absent or not work correctly. It is also indispensable if you want to transfer chats to a phone that has not yet been configured and connected to the Internet.
Access problems and superuser rights
Owners of devices with received ones root access have advanced capabilities for managing messenger files, but face other nuances. Having superuser rights allows you to edit database files directly, but this carries the risk of violating the integrity of the encryption and blocking the account by the security service.
Without Root access on modern versions of Android, access to the folder /Android/data or /Android/media can be hidden from the user. The system considers these directories private for each application. An attempt to copy files through a standard explorer may result in an access error or copying an empty folder.
To bypass restrictions without obtaining root access, it is recommended to use specialized backup utilities, such as Swift Backup or the built-in backup functions of the smartphone manufacturer. These tools request special permissions through ADB or system APIs, legally gaining access to protected areas.
Is it possible to read chats on a computer without a phone?
No, the database files are encrypted with a key that is stored in the secure memory of the smartphone itself. Without access to the phone and the application itself, it is impossible to decrypt correspondence on a third-party PC. There are services that offer such services, but in 99% of cases it is a scam. msgstore.db.cryptXX encrypted with a key that is stored in the protected memory of the smartphone itself. Without access to the phone and the application itself, it is impossible to decrypt correspondence on a third-party PC. There are services that offer such services, but in 99% of cases it is a scam.
What to do if the backup file is damaged?
If an error message appears during recovery or the process freezes, the database file may be damaged. Try to restore a copy from the previous day (a file with a date in the name), after renaming it to msgstore.db.cryptXX. Also make sure that there is enough free space on the disk.
How often are local copies created?
By default, the messenger creates a local backup copy of the database every night at 02:00. Copies for the last 7 days are stored. Older files are automatically deleted to save space in the device's internal memory.
Does changing your phone number affect backup files?
Backup files are linked to the account (phone number) on which they were created. When changing a number within the application, the old local copy will not work for the new number. You will need to first change the number in the settings of the old account, make a fresh copy, and only then transfer the data.