The question of which specific folder on an Android phone numbers are stored in often arises among users who want to make a manual backup or restore deleted data without using cloud services. It is important to immediately clarify a fundamental misconception: in modern versions of the operating system, contacts are not stored in the form of a simple text file that can be opened with Notepad and read.
The Android system architecture is more complex. Contacts are part of a secure database, access to which is limited by superuser rights. However, there are ways to export this data into a readable format, as well as specific directories where files are saved manually. Let's look at the information storage structure in detail.
System contact database
Physically, all information about your calls and subscribers resides inside the deviceโs internal memory in a special section. The main storage is a SQLite database. It is located along the way /data/data/com.android.providers.contacts/databases/. Inside this directory you will find a file named contacts2.db.
This file contains tables with numbers, names, email addresses and even interaction history. The problem is that the folder /data/data/ is closed by default for viewing by regular file managers. Without obtaining root access (superuser rights), you will not be able to go there and copy this file.
An attempt to copy a database on a working phone can lead to file corruption, since the system constantly accesses it for reading and writing. Therefore, direct access to this path is recommended only for advanced users who understand the risks of working with system files.
โ ๏ธ Attention: Directly editing or replacing a file contacts2.db without stopping the corresponding system services can lead to a complete disappearance of the contact list or an error in the Phone application.
Why canโt you just copy database?
The Android system blocks access to the /data/data/ folder for security reasons. Even if you have root access, copying the active database can lead to desynchronization of indexes, and contacts will no longer be displayed correctly.
Export to vCard format and user folders
For the average user, the most reliable way to get a file with contacts is the standard export function. When performing this procedure, the system creates a file with the extension .vcf (vCard). This is a universal format that is understood by all smartphones and email clients.
By default, when you select the โExport to fileโ option, the system saves it to the internal memory. The path to this file usually looks like /storage/emulated/0/Contacts/ or simply the root of the internal memory /storage/emulated/0/. The file often has a name 00001.vcf or contacts.vcf.
You can change the save location yourself. When exporting, the file manager will prompt you to select a directory. Many users prefer to create a separate folder, for example Backup_Contacts, so as not to lose an important file among many downloads. The format vCard is convenient because it is text and contains structured data.
- ๐ The .vcf file contains not only the number, but also the name, photo (encoded), address and notes.
- ๐ One file can store thousands of contacts, which is convenient for transferring to a new phone.
- ๐ก๏ธ The file can be encrypted or sent to your email for safe storage.
When exporting contacts, always check the size of the resulting file. If it weighs several bytes or kilobytes when there are hundreds of numbers in the phone book, then the export was unsuccessful.
Storing contacts on a SIM card
Despite the development of technology, many users still store numbers on a SIM card. In this case, the data is not located in the Android file system as separate files. They are recorded in the non-volatile memory of the plastic card itself.
To access this data through the file system, special equipment for reading smart cards would be required. However, Android provides a programming interface to work with them. You can copy contacts from SIM to the phone memory through the menu Settings โ Contacts โ Import/Export.
SIM cards are limited by the amount of memory and data format. Usually no more than 250-500 numbers are placed there, and the long contact name is often cut off. In addition, additional fields, such as address or e-mail, are not saved on the SIM card.
| Parameter | Phone memory | SIM card | Google Account |
|---|---|---|---|
| Limit contacts | Thousands/Unlimited | ~250-500 pcs. | 25,000 pcs. |
| Additional. fields (email, address) | Yes | No | Yes |
| Device dependency | Yes (without synchronization) | No | No |
| Risk of loss when changing SIM | No | High | No |
Synchronization with cloud services
Modern approach to storing contacts means abandoning local files in favor of cloud synchronization. In the Android ecosystem, these are primarily services Google Contacts. In this case, your numbers are physically stored on Google's servers, and only a local cached copy remains on the phone.
This copy also resides in the database contacts2.db, but it is constantly updated if there is an Internet connection. The advantage of this method is that if your smartphone is lost or broken, you just need to enter your login and password on the new device so that all the numbers appear automatically.
In addition to Google, there are alternatives: synchronization with your account Microsoft Exchange, Yahoo or specialized services like MyPhoneExplorer. It is important to understand that when synchronization is enabled, deleting a contact on your phone will also delete it in the cloud.
Access files via computer and ADB
If you need to access system contact files without root access on the phone itself, you can use the debugging tool ADB (Android Debug Bridge) via a computer. This method allows you to create complete backups of applications, including their data.
To do this, you need to enable "USB Debugging" in the menu For developers. Then, by connecting your phone to your PC, you can run the command to backup the contacts application. The command looks like this:
adb backup -f contacts.ab -noapk com.android.providers.contacts
The resulting file contacts.ab will contain a database. However, it is encrypted and compressed. To extract the file from there contacts2.db you will need additional utilities to convert the Android Backup format into a standard tar archive.
โ ๏ธ Attention: On many modern smartphones (Android 9 and above), the function adb backup for system applications can be disabled by the manufacturer for security reasons. In this case, this method will not work.
Recovering deleted contacts from memory
If contacts were accidentally deleted and synchronization was turned off, users look for traces of data in the file system in hopes of finding "junk" files. It is worth understanding that when deleting a contact, the entry in the database is marked as free space, but physically the data can remain on the media until it is overwritten.
Specialized data recovery apps scan not a specific folder, but the entire section of the deviceโs memory in search of SQLite database signatures. They try to find fragments of deleted records in a file contacts2.db or in the transaction log contacts2.db-journal.
The chance of success depends on how much new information was written to the phone's memory after the deletion. The more actively you used your smartphone (taking photos, installing applications), the less chance you have of restoring old numbers.
Regular export to a .vcf file and uploading it to a computer or cloud storage is the only guaranteed way to protect against losing contacts without using synchronization.
Frequently asked questions (FAQ)
Is it possible to open the contacts2.db file on a computer without special apps?
No, this is a binary SQLite database file. To view its contents, you will need the DB Browser for SQLite app or an equivalent. A simple text editor will only show a set of unreadable characters.
Where is the contacts folder on the SD memory card?
By default, the system does not save the contact database to the SD card. Only the exported .vcf file can be saved there manually. Automatic storage of the system always occurs in the internal memory section.
How to find deleted contacts in the Google Recycle Bin?
Go to contacts.google.com from your computer. Select "Cart" from the menu on the left. Deleted contacts are stored there for 30 days, after which they are erased irrevocably.
Why did the contacts disappear after resetting the settings, although the .vcf file was in memory?
When performing a full reset (Factory Reset), the internal memory of the phone is completely cleared. If the export file was in the phone memory and not on the SD card or in the cloud, it was also deleted during the reset process.