Operating system users Android often face the need to find the physical location of data from popular instant messengers. The question of where contacts are stored on WhatsApp on Android arises when trying to perform a manual backup, transfer data to a new device, or restore lost information after a system failure. Understanding the structure of the file system allows you to gain full control over your personal correspondence and phone book.
It is important to immediately distinguish between concepts: the messenger does not store phone numbers in the form of separate text files, accessible for easy viewing through Explorer. All information about contacts associated with an account is integrated into encrypted databases. These files are protected by cryptographic keys that are generated uniquely for each application installation on a specific device.
However, access to system directories is possible with root access or through specialized debugging tools. In standard operating mode, the operating system restricts direct access to application data folders for security purposes. However, knowing the exact paths to these directories is necessary to perform complex data recovery or profile migration operations.
Structure of data storage in the file system
File system Android has undergone significant changes in the latest versions, which directly affected the location of these messengers. Previously, all application files were located in the open root directory, but now they are isolated in protected sections. Understanding this structure is critical to finding the files you need.
Contacts in WhatsApp do not exist as a separate โcontacts.txtโ file. They are part of the overall message database and profile settings. This database is a file with the extension .db or .db.crypt14 (the number may vary depending on the encryption version). Inside this binary file, tables are stored SQLitecontaining information about chats, media files and synchronized phone numbers.
Before the security policy update Android 11 the path to the data was relatively simple and accessible to any file manager. Now the system requires additional permissions to access the folder Android/data. The user must grant special rights to the file manager so that it can display the contents of system directories.
โ ๏ธ Attention: Direct editing of database files without a decryption key will result in complete loss of access to correspondence. The files have an extension
.crypt, and without the original keykeyit is impossible to read them from the system partition.
The location of the files also depends on the version of the installed messenger. For the standard version and the business version, the paths may differ slightly in the names of the destination folders. This is done so that two applications can coexist on the same device without conflicting with each other.
Current paths to database files
The search for the place where contacts are stored in WhatsApp on Android begins with examining the internal memory of the device. Depending on the version of the operating system, the path will lead through different root directories. Below are the current routes for modern versions Android.
On devices with Android 11 and above, the main path looks like this: internal memory, folder Android, then media, further com.whatsapp. Inside this directory there is a folder WhatsAppthat contains all user data. This change was introduced by the developers Google to improve the application sandbox.
For devices with older versions of the operating system (up to Android 10 inclusive), the path was more direct. The data was located in the root of the internal memory in a folder named WhatsApp. If you're using an older device, searching for files will take less time because you won't have to work around complex system restrictions.
If you don't see the Android/media folder after updating the system, try rebooting the device or using a file manager with system file permissions, such as Total Commander or Solid Explorer.
Inside the destination folder Databases backup files are stored. This is where the current database is located msgstore.db.cryptXX. This file contains the entire correspondence history and the list of contacts that were synchronized with the device's phone book at the time of the last database update.
- ๐ Path for Android 11+:
/Internal Storage/Android/media/com.whatsapp/WhatsApp/Databases - ๐ Path for Android 10 and below:
/Internal Storage/WhatsApp/Databases - ๐ Path for WhatsApp Business:
/Internal Storage/Android/media/com.whatsapp.w4b/WhatsApp/Databases
It is worth noting that folder names are case sensitive, although in most file systems Android this does not play a critical role. However, when using the command line via ADB it is necessary to ensure that the paths are written accurately.
File types and encryption formats
Having dealt with directories, you need to understand which files you are dealing with. The database folder contains several files with similar names, but different purposes. The main difference is the creation date and encryption level.
File name msgstore.db.cryptXX (no date in the name) is the current active database. This is what the application currently uses to display chats and contacts. The number instead of XX indicates the version of the encryption algorithm, which changes with major application updates.
The rest of the files in this folder have a date in the name format YYYY-MM-DD. These are automatic backups that are created by the messenger every day at 2 am. They are stored locally on the device for 7 days and allow you to roll back the state of contacts and correspondence to a previous date.
| File name | Data type | Purpose | Storage period |
|---|---|---|---|
msgstore.db.crypt14 |
Current database | Current chats and contacts | Permanently |
msgstore-2023-10-01.1.db.crypt14 |
Backup copy | Archive for a specific date | 7 days |
wa.db |
Contacts database | Address book cache | Before clearing the cache |
key |
Encryption key | Database decryption | Constantly (systemically) |
The file keydeserves special attention. It does not lie in the shared folder with databases, but is stored in a protected system partition /data/data/com.whatsapp/files. Without this file, it will not be possible to decrypt the database on another device or using third-party software.
Why do encryption versions change?
Developers regularly update encryption algorithms (crypt12, crypt14, crypt15) to improve data security. Old versions of keys may not be suitable for new databases, which complicates the recovery of information on outdated software.
Synchronization with the system address book
It is important to understand the mechanism of how contacts work in WhatsApp. The messenger does not create its own isolated phone book from scratch. It works in conjunction with the system address book Android. Where are WhatsApp contacts stored on Android in the context of displaying names? The answer is simple: in the system contacts storage.
When you install an application, it asks for permission to access contacts. After confirmation WhatsApp scans the entire phone book of the device. Numbers registered in the service are marked with a special availability flag. The contact name is displayed exactly as it is recorded in your phone, and not what the user called himself in his profile.
If you delete a contact from the system address book, it will appear in the messenger simply as a phone number. This confirms that the visual part of the contacts is stored outside of the application folders. However, metadata about which numbers you communicated with remains in the database msgstore.db.
โ ๏ธ Attention: Clearing application data in Android settings will delete the local messenger contact database. The next time you log in, you will need to resynchronize with the system address book, which may take time if there are a large number of entries.
To export a list of contacts directly from the messenger interface, there is a โShare contactโ function. It allows you to transfer a specific userโs business card in .vcfformat. Bulk export of the entire phone book is only possible through system tools Android or account Google.
Manual backup process
Automatic backup to Google Drive convenient, but not always reliable when changing account or region. Manual copying of database files guarantees the safety of information. This process requires care and adherence to the sequence of actions.
First you need to connect your smartphone to your computer in file transfer mode (MTP). Then, using the file manager on your PC, navigate to the current path specified in the section above. Copy the file msgstore.db.cryptXX and, if possible, the key files if you have root access.
If you plan to transfer data to another phone, it is important to maintain the folder structure. On a new device, you need to create a similar directory and place the database file there before installing or launching the application for the first time. When you first launch the messenger will detect a local copy and offer to restore data from it.
โ๏ธ Checklist for manual backup
When restoring from a local copy, the cloud backup will be ignored. This is a useful feature if the dates of the cloud backup and the local file are different, and you need a more recent version of the data.
Recovering deleted contacts and data
Situations when contacts disappear from the list often happen. This may be due to a synchronization failure, accidental deletion, or system update. If the contacts have disappeared from the interface, but the database files are still there, you can try to get them back.
The first step is to check the display settings in the application itself. Make sure you don't have a filter that hides contacts without a number or certain groups. If the settings are in order, you will need to restore from a backup.
To roll back to the previous version of the database, you need to rename the current file msgstore.db.cryptXX, adding a postscript to it .old. Then select the backup file for the desired date, remove the date from its name, leaving only msgstore.db.cryptXX. After reinstalling the application, it will pick up this file.
Successful recovery depends on matching the encryption version. It is impossible to restore a crypt14 database using keys or algorithms from crypt12. The version of the backup file must match the version of the installed application.
In cases where you need to extract a specific number from a damaged database, you will need special utilities for working with SQLite and decryption scripts. This process is complex for the average user and requires technical knowledge.
Common problems and solutions
Users often encounter the โThe backup could not be foundโ error when trying to restore. This happens if the database file is in the wrong folder or has the wrong name. The system strictly checks the compliance of the path and format of the file name.
Another common problem is that contacts are displayed only as numbers without names. The solution lies in checking the application permissions. Go to your phone settings, find WhatsApp and make sure that the slider next to the โContactsโ item is activated. Sometimes forcing the application to stop and restart helps.
If you changed your phone to a device of a different brand, the paths to the files may differ due to custom skins. Some manufacturers (for example, Xiaomi or Huawei) may have their own features for accessing the folder Android/media. In such cases, it is recommended to use the built-in data migration tools from the manufacturer.
โ ๏ธ Attention: Settings interfaces and file paths may vary slightly depending on the firmware version and smartphone model. Always check the current folder structure through the file manager of your specific device.
Regularly checking the presence of backup files in the folder Databases will help avoid unpleasant surprises. Make sure that the date of the last file corresponds to the current day, which indicates that autosave is working correctly.
Is it possible to read contacts without installing WhatsApp?
No, the database files are encrypted. Without launching the application and going through the number verification procedure, it is impossible to decrypt and read contacts from the file. Decryption keys are required, which are generated only during installation. .crypt impossible. Decryption keys are required and are only generated during installation.
Where is the key file stored on Android 11+?
The key file is located in the protected system partition /data/data/com.whatsapp/files/key. root access is required to access this folder. Without this file, manually transferring the database to another device will not work.
Why did some contacts disappear after restoration?
Most likely, you restored the database created before these contacts were added to the phone book. It is also possible that synchronization with the Google account where the main records are stored is not enabled on the new device.
How to transfer contacts to iPhone from Android?
Simply copying database files will not work due to differences in file systems and encryption between iOS and Android. Use the official โTransfer to iOSโ function when setting up your iPhone for the first time or synchronize contacts through your Google account.