Users of mobile devices based on Android often wonder about the safety of their personal correspondence. A sudden system crash, loss of a smartphone, or accidental deletion of an application can erase important conversations if you donโ€™t know how the internal architecture of the messenger works. Understanding where database files are physically located is key to secure information management.

Unlike cloud services that synchronize data in real time, local storage has its own characteristics and risks. Chat history files take up space in the internal memory and require the right approach to transfer or backup them. Next, we will analyze in detail the folder structure and methods of accessing this critical data.

Directory structure and data storage logic

The file system Android has undergone significant changes in the latest versions of the operating system, which directly affected the location of application data. Previously, all messenger files were located in the root of the internal memory, which made them available for quick viewing through any file manager. However, the security policy Google has been tightened, limiting access to system directories for third-party apps.

Now the bulk of the data, including chat history, has been moved to a protected area. Android/data. This change is aimed at preventing malicious software from gaining unauthorized access to user personal information. However, for rights owners root or when using specialized explorers, these folders remain open for manipulation.

It is important to distinguish between two types of storage: local on the device and cloud on servers Google Drive. Local copies are created automatically every night and are stored exclusively on the phone. It is these files that are the subject of our consideration, since they represent a physical database SQLitecontaining all text and metadata of messages.

โš ๏ธ Attention: Starting from version Android 11, standard file managers may not display the contents of the folder Android/data. To access, you may need to connect your smartphone to your computer or use specialized utilities with extended rights.

๐Ÿ’ก

If you do not see the WhatsApp folder after updating the system, try using the "Files by Google" file manager or connect your phone to the PC in file transfer mode (MTP).

The exact path to the database files

To find a specific file with history, you need to follow a strictly defined path in the deviceโ€™s memory. The address may vary slightly depending on the version of the installed messenger and the firmware modification of your smartphone. The main backup storage is located in the subfolder Databases.

The modern standard path looks like this:

/storage/emulated/0/Android/media/com.whatsapp/WhatsApp/Databases

However, on devices with an old version of the software or when using custom builds, the path may remain classic:

/storage/emulated/0/WhatsApp/Databases

In this directory you will find files with names like msgstore-YYYY-MM-DD.1.db.crypt14. The suffix crypt14 (or crypt12, crypt15) indicates the encryption version, which depends on the version of the application itself WhatsApp. A file without a date in the name, usually msgstore.db.crypt14, is the most recent backup created tonight.

  • ๐Ÿ“‚ msgstore.db.crypt.. โ€” Current database for the current day.
  • ๐Ÿ“‚ msgstore-DATE.db.crypt.. โ€” Archived copies for the previous 7 days.
  • ๐Ÿ“‚ wa.db โ€” File containing information about contacts and account settings.
  • ๐Ÿ“‚ axolotl โ€” Directory with encryption keys for the end-to-end protocol.
๐Ÿ’ก

Files with a date stamp in the name are stored for exactly 7 days, after which the system automatically deletes the oldest of them to save space.

Decryption of encryption formats and versions

Users often try to open database files on their computer in order to read correspondence in a convenient format, but are faced with an incompatibility error. This is because all messages are protected by a strong encryption algorithm. The decryption key is stored in a hidden system partition of the phone and is not available to the average user without the procedure root-access.

The encryption version number (for example, crypt12, crypt14, crypt15) is constantly updated by the developers to improve security. Old versions of keys do not fit new database files. An attempt to rename a file or change the extension will not lead to success, since the structure of the file header also changes.

Below is a table of correspondence between application versions and encryption types, which will help you identify the age of the file:

Encryption version Approximate implementation time Compatibility Features
crypt8 / crypt9 2014-2016 Old devices Used on older versions of Android
crypt12 2017-2019 years Android 7-9 Standard for a long period of time
crypt14 2020-2022 Android 10-12 The most common format now
crypt15 2023 and later Android 13+ Latest version of data protection

Attempting to manually decrypt these files without special software and a key key is almost impossible for the average user. The only legal way to view the content is to restore a backup copy inside the messenger application itself on the same or a new device.

Is it possible to read someone else's correspondence by copying the database file?

No, it is impossible. Without an encryption key file that is tied to a specific Google account and device, the database is a collection of unreadable characters. Even if you have root access, extracting the key requires deep technical knowledge.

Manual creation and management of backups

Automatic creation of copies occurs once a day at 2 am, but what if you need to save the history right before an important update or reset? In this case, you must initiate the process manually through the app interface. This ensures that the last sent messages will be archived.

To do this, open the messenger settings, go to the Chats section and select Chat backup. Clicking the "Create a copy" button will start the process of saving the current database to a local folder and, if configured, upload it to the cloud. The process may take from a few seconds to several minutes depending on the size of the media files.

  • ๐Ÿ”„ Frequency โ€” You can set up daily, weekly or monthly backups.
  • โ˜๏ธ Google Account โ€” Make sure you select the correct email address for cloud storage.
  • ๐Ÿ“ถ Only via Wi-Fi โ€” Option to save mobile traffic when uploading to the cloud.

โš ๏ธ Attention: Local copy stored only on the phone. If you lose your device or damage the internal memory, the file will be lost forever unless it was backed up to the cloud or to your computer.

๐Ÿ“Š How often do you back up your chats?
Daily automatically
Once a week manually
Only before selling a phone
I never do

Transferring history to a new smartphone

When changing a device, a natural problem arises: how to transfer the accumulated history of correspondence without losing a single message. The most reliable way is to use cloud storage Google Drive. When installing the application on a new phone and logging into the same account, the system will offer to restore data from the cloud.

However, if the cloud is full or there is no access to the Internet, you can use the direct file transfer method. To do this, copy the entire folder WhatsApp (or Android/media/com.whatsapp) from the old device to the computer, and then move it to exactly the same directory on the new smartphone before installing the application.

It is critical to follow the order of actions: first transfer the files, and only then install the messenger. If you install the application earlier, it will create an empty database and the recovery process may not work correctly or overwrite your files with new, empty versions.

Manual transfer algorithm:

1. Delete WhatsApp from the new phone (if installed).

2. Connect both phones to the PC.

3. Copy the WhatsApp/Databases folder from the old one to the new one.

4. Install WhatsApp on a new phone.

5. Go through verification and click "Restore".

โ˜‘๏ธ Checklist before changing phone

Done: 0 / 4

Recovering deleted messages from the archive

Situations where important messages were deleted by accident happen quite often. If less than 7 days have passed since the deletion, you have a high chance of returning the information using local archive copies. The mechanism of operation is simple: you need to replace the current database with a file for the desired date.

To implement this method, you will need a file manager with access to system folders. Find the file with the desired date in the folder Databases, rename it, removing the date from the name, so that it becomes msgstore.db.cryptXX. Make a backup copy of the current file first so as not to lose fresh data.

After renaming, delete and reinstall the application. When you first start it, the system will detect the database file and offer to restore history from it. Please note that all messages received after the creation date of the selected copy will be permanently lost during this process.

โš ๏ธ Note: This method only works if you have local backup enabled. If you have previously disabled this feature in settings or cleared the application cache, files for past dates may be missing.

๐Ÿ’ก

Before replacing database files, be sure to copy the entire Databases folder to your computer. This is your insurance in case the recovery process goes wrong and you lose your current chats.

Frequently asked questions (FAQ)

Where are pictures and videos from WhatsApp stored?

Media files are stored separately from the text database. They are located in a folder WhatsApp/Media inside the main application directory. Depending on the file type, they are distributed in subfolders: WhatsApp Images, WhatsApp Video, WhatsApp Audio. These files are not encrypted and can be viewed through any gallery.

Is it possible to transfer history from Android to iPhone?

Direct copying of database files is not possible due to different file systems and encryption formats. To transfer history from Android to iOS, you must use the official "Data Transfer" function when initially setting up your iPhone or special utilities from smartphone manufacturers that support chat migration.

Why does the database file take up so much space?

The file size msgstore.db grows in proportion to the number of text messages. However, the main amount of memory is occupied not by the texts themselves, but by links to media files and service information. If the file weighs hundreds of megabytes, this may indicate a huge number of forwarded stickers, voice messages, or failures in the database structure.

What to do if the recovery freezes at 99%?

Freezing is often associated with corruption of the backup file or lack of free memory on the device. Try freeing up some space, rebooting your phone, and trying again. If the problem persists, try restoring an older copy or use cloud recovery instead of local.