Finding a specific path to a file with contacts on Android often becomes an urgent need when trying to manually copy the database before flashing the device or recover deleted numbers after a system failure, since, unlike a PC, here the data is not located in the obvious โ€œDocumentsโ€ folder, but is hidden in system directories, the structure of which directly depends on the version firmware and smartphone model.

By default, the standard file manager will not show you hidden system directories where the phone book database resides. Access to these areas often requires special rights or the use of the engineering menu. However, there are several ways to locate the necessary files, from simple export to a universal format to direct copying of system databases.

In this article we will look in detail at which folder contacts are stored on Android, what file formats are used by the system and how to safely extract this information. We will look at both standard methods for ordinary users, and advanced options for those who have root access and understand the structure of the Linux file system on which Android is based.

Standard storage paths and export to VCF

The most accessible way to find contacts is to use the built-in export function. When performing this operation, the system creates a copy of the database in a human-readable format. Typically this file is saved in internal storage in the root directory or folder Contacts.

The file receives the extension .vcf (vCard), which is a universal standard for electronic business cards. It can be opened on any device, sent by email, or uploaded to cloud storage. The path to such a file most often looks like /storage/emulated/0/00000.vcf or /sdcard/contacts.vcf.

If you are using synchronization with a Google account, then the physical file may not be on the device, since the data is stored in the cloud. In this case, a local copy is created only at the time of manual export. To restore, just import this file back through the Contacts application.

โš ๏ธ Attention: Export files (.vcf) contain only text information (name, number, email). Photos associated with contacts and call history are not saved in this format.

๐Ÿ’ก

When exporting contacts, always give the file a clear name with the current date, for example "contacts_backup_2026.vcf" so as not to get confused in backup versions.

System database SQLite for advanced users

For those who are looking for the original database file where Android stores contacts in โ€œrawโ€ form, the path lies in the system partition. These files have the extension .db and represent an SQLite database. Access to them without root access is prohibited for regular applications.

The main phone book database file is usually located along the path /data/data/com.android.providers.contacts/databases/contacts2.db. The file name may vary slightly depending on the shell manufacturer (MIUI, OneUI, ColorOS), but the directory structure remains similar.

To copy this file, you will need a file manager that supports root access, for example, Root Explorer or Solid Explorer in superuser mode. Simply copying a file to your computer may result in an error when trying to open it, since the database may be encrypted or locked by a system process.

Why canโ€™t you just open the database on your computer?

The contacts2.db file is protected by Linux permissions. Even if you copy it, standard SQLite viewers may not be able to read it without decrypting the keys that are stored in a protected area of โ€‹โ€‹the device's memory (Keystore).

Manual modification of this file is highly discouraged. Any error in the database structure may cause the Phone application to stop launching or display an empty list of subscribers. Restoring functionality in this case will require resetting the settings to factory settings.

Storage features on different versions of Android

The structure of the Android file system evolves with each major update. Starting with Android 10 and especially in Android 11-14, Google has tightened its file access policy (Scoped Storage). This means that applications and users have limited access to shared folders.

In modern versions of the system, direct paths to system databases can be hidden even for some root managers without special configuration. In addition, smartphone manufacturers often change application packages. Instead of the standard com.android.providers.contacts package from Xiaomi, Samsung or Huawei can be used.

Below is a table with approximate paths for different versions and shells:

Version / Shell Access type Approximate path to the database
Android 9 and below Root is required /data/data/com.android.providers.contacts/databases/
Android 10-13 (Stock) Root + ADB /data/user_de/0/com.android.providers.contacts/databases/
Xiaomi (MIUI/HyperOS) Root is required /data/data/com.miui.contacts/databases/
Samsung (OneUI) Root is required /data/data/com.samsung.android.app.contacts/databases/

As can be seen from the table, the paths may vary. If you do not find the file at the standard address, try searching in the file system using the mask contacts.db. This will help locate the file, even if the manufacturer has changed the application package name.

๐Ÿ“Š What version of Android is installed on your smartphone?
Android 9 and older
Android 10-12
Android 13-14
I don't know

Using ADB to retrieve contacts

If you are not rooted but have USB debugging enabled, you can try to extract the data using the tool ADB (Android Debug Bridge). This method is safer than directly interfering with the file system through Explorer, but requires a computer.

Connect your smartphone to your PC, open the command line and enter the command to create a backup of the contacts application. Please note that on some devices this function may be blocked by the manufacturer.

adb backup -f contacts.ab -noapk com.android.providers.contacts

The resulting file contacts.ab is a zipped image of the data. To read it you will need special utilities such as Android Backup Extractor, which will convert it into a standard tar archive. Inside you will find the same SQLite database.

โš ๏ธ Attention: The command adb backup does not work on devices with Android 12 and higher if the manufacturer has disabled this function in the firmware. In such cases, the method is useless.

An alternative option via ADB is to try to read the database file directly, if access rights allow. However, most often you will receive a "Permission denied" error. In this case, the only way out is to obtain root access or use standard export to VCF.

Restoring contacts from backups

Knowing where the files are physically located is useful not only for extraction, but also for recovery. If you have previously backed up your database or .vcf file, you can get your lost numbers back. The import process depends on the file format.

For files .vcf just go to the Contacts application, select the settings menu and click "Import from file". The system will prompt you to select a source (internal memory, SIM card or account). After selecting the file, the data will be added to the shared book.

  • ๐Ÿ“‚ .vcf file: The simplest method, suitable for all devices and does not require superuser rights.
  • ๐Ÿ’พ Base .db: Requires replacing the system file in the folder /data/data/... with overwriting. Itโ€™s dangerous without a backup of the current system.
  • โ˜๏ธ Google Account: Automatic recovery when logging into your account if synchronization was enabled.

When restoring from a database .db you must make sure that the version of the Contacts application matches the one for which the database was created. Otherwise, a database schema conflict may occur and the application will crash upon launch.

โ˜‘๏ธ Check before restoring contacts

Done: 0 / 4

Frequent problems and their solutions

Users often encounter a situation where contacts disappear after a system update or reset. In most cases, this is not due to the physical deletion of the file, but to desync of accounts.

Check whether your Google account is active in your phone settings. Go to the section Settings โ†’ Accounts โ†’ Google and make sure that the checkbox next to the "Contacts" item is checked. If the checkbox is unchecked, turn it on and click "Synchronize".

Another common problem is duplicate entries. This happens when the same contact is saved in both the phone memory, the SIM card, and the Google account. To solve this, use the "Merge duplicates" function in the contacts application settings.

โš ๏ธ Attention: Do not store important contacts only on the SIM card. If the slot breaks or the card is lost, the data will be lost forever, since the capacity of the SIM card is limited and does not allow saving additional fields (addresses, photos).

If contacts are missing after installing a third-party launcher or calling application, try clearing the cache and data of the new application. Often a conflict occurs because two apps are trying to manage the same database at the same time.

๐Ÿ’ก

Regular export of contacts to a .vcf file and uploading it to cloud storage is the most reliable way to protect against data loss, which does not depend on root access.

FAQ: Frequently asked questions

Can I view the contents of the contacts2.db database without a phone?

Yes, if you have a copy of the file. You can use free apps to view SQLite databases, for example DB Browser for SQLite on your computer. However, if the database is encrypted, you will only see a set of incomprehensible characters.

Where are the contacts stored if I have not signed in to a Google account?

In this case, they are saved exclusively in the internal memory of the device in the system database. When resetting to factory settings (Hard Reset), this data will be completely deleted if you did not export it first.

Why do names appear as numbers after transferring contacts?

This means that the import file is damaged or has an incorrect encoding format. Try opening the .vcf file in a text editor and check if the names are readable. Also, the problem may be that the contacts are saved in the SIM card format, which does not support the Cyrillic alphabet.

How to find deleted contacts in the Trash?

The Google Contacts application has a โ€œTrashโ€ function, where deleted entries are stored for 30 days. Go to the application menu โ†’ Settings โ†’ Trash. On smartphones from other manufacturers, this function may be called "Recently deleted" and can be found in the same settings menu.

Is it safe to give root access to a file manager to search for contacts?

Granting root access to a third-party file manager carries security risks. A malicious application with such rights can steal not only contacts, but also passwords saved in the browser. Use only proven tools with a good reputation.