What folder stores contacts on the Android Xiaomi Redmi

Xiaomi Redmi and Poco smartphone owners often face the need to find the physical location of the phonebook database, which may be required when transferring data to a new device, trying to recover accidentally deleted records, or deep cleaning the system. Unlike the old button phones, where the contacts were in the open. SIM-The modern Android operating system hides them in system partitions, access to which is limited by the rights of the superuser.

Understanding the structure of MIUI and HyperOS file storage allows you to manage your personal data effectively. If you lose access to your account or synchronize, knowing the paths to the files can be the only way to save information. However, it is worth remembering that direct editing of system databases without proper preparation often leads to the complete disappearance of records from the phone interface.

In this article, we will discuss in detail where the file is located. contacts2.db stored on your device, what alternative export methods exist and how to properly back up so you don’t lose important numbers.We’ll look at both standard user paths and hidden system directories, accessible only through Root rights or ADB-team.

System architecture of data storage on Xiaomi

The Android file system is built on the principle of application isolation. This means that the contact database is not publicly available in the Downloads or Documents folder. By default, it resides in a secure partition, which is accessible only by the system application Contacts and the user himself with Root permissions. The standard path looks like /data/data/com.android.providers.contacts/databases/.

Inside this directory is the contacts2.db file, which is a SQLite database, and it's where names, phone numbers, email addresses, and social networking anchors are stored, and copying that file directly without first stopping the contact service can damage the database, because when you copy, you actively record changes.

Xiaomi also often has Mi Cloud and Google Contacts syncs on its smartphones, which creates additional copies of data in the cloud, but they are still projected locally into the same database. If you try to replace this file manually, the system can roll back changes on the next connection to the network, restoring the old version from the cloud buffer.

⚠️ Note: Trying to replace the file contacts2.db manually without stopping the process com.android.phone will lead to desynchronization: you will see contacts in the file, but in the interface of the phone they will not be.

To work with system folders, you will need a file manager with access to the root of the system, for example, Root Explorer or MT Manager. The usual conductor that comes with the MIUI shell simply won’t show you the contents of the /data/ folder, since it is hidden from the standard user for security reasons.

Direct access to the contact database

If your Xiaomi Redmi smartphone has an unlocked bootloader and SuperUser (Root) rights installed, you can access the database file directly.This is the most reliable way to get a physical copy of all records, including those that have been deleted from the interface but have not yet been overwritten in memory.

To navigate, use the following path: /data/data/com.android.providers.contacts/databases/. Here you will find the main contact2.db file and the contacts2.db-journal cache file. You need to copy the main file. The base size is usually small, from a few kilobytes to a couple of megabytes, depending on the number of numbers saved and the length of the call history, if integrated.

β˜‘οΈ Preparation for database extraction

Done: 0 / 4

When working with the database, it is important to consider the version of Android. 11, 12, 13 and 14 file-access /data/data/ may be further restricted even if there are Root rights due to the Scoped Storage policy. ADB-commands to extract the file directly to the computer.

Once extracted, the file can be opened on your computer using SQLite software like DB Browser for SQLite, which allows you to browse tables, find deleted entries (they are often marked with the deletion flag but physically remain in the file until the base is compressed) and export them to a readable CSV format.

Alternative Pathways: VCF and Local Exports

For most users, obtaining Root rights is unnecessarily complex and risky. Fortunately, Android provides a regular mechanism for exporting contacts to the universal format vCard (.vcf). Files created by this method are stored in the user-accessible memory area, most often in the root directory or /MIUI/backup/ folder.

To create such a file, go to the Contacts app, select the management menu and click "Contact Export." The system will prompt you to choose the format (vCard recommended) and the location of the save. By default, Xiaomi often saves backups to a hidden folder /MIUI/backup/BSF/, from where they can be easily copied to your computer or sent by mail.

  • πŸ“‚ Default path: Internal memory β†’ MIUI β†’ backup β†’ BSF (There are backups of the system and contacts).
  • πŸ“‚ The Way of Manual Export: Internal Memory β†’ The root folder (the file will be called) 00001.vcf similar).
  • πŸ“‚ Google Drive: When synced, a copy automatically flies to the Google cloud without taking up space on the device.

The.vcf format is cross-platform. You can open it on an iPhone, any Android smartphone, or in an email client on a PC, making it an ideal choice for migrating data between devices of different brands, for example, when switching from Samsung to Xiaomi or vice versa.

πŸ’‘

When exporting contacts in VCF Choose the format "All contacts" and not "Only contacts from the phone" so as not to lose the numbers saved on the phone. SIM-Map or Google account, if not displayed in the list.

Use of Google Contacts and Cloud Services

The modern approach to maintaining contacts on Xiaomi Redmi is to move away from local storage in favor of cloud services, with Google Contacts being the main player, and if you add a Google account and sync to your device, all new numbers are automatically saved to the cloud.

This solves the problem of β€œin which folder is stored”, since the file is physically on Google servers, and only a cached copy of it is stored on the phone in the database, you can access this data through the web interface contacts.google.com from any computer, and there is a reconnection feature that allows you to roll back the state of the phone book by 30 days.

Xiaomi ecosystem users can also use Mi Cloud. Path to Settings β†’ Settings β†’ Mi Account β†’ Sync β†’ Contacts. When you turn on this option, contacts are duplicated on Xiaomi servers. This is convenient if you plan to move between smartphones of different brands, but want to maintain a single backup ecosystem for all Redmi and Poco devices in the family.

ParameterGoogle ContactsMi CloudLocal VCF
Storage areaGoogle serversXiaomi serversPhone memory
Access without phone accessThrough the browserThrough i.mi.comOnly if there's a file.
AutopreservationInstantly.Scheduled/Wi-FiOnly manually.
Risk of lossMinimumMedium (depending on region)High (when broken)
πŸ“Š Where do you prefer to keep your contacts?
Only in the memory of the phone (locally)
Google account
On the Mi Cloud account
Nana SIM-map

Recovery of remote contacts

If you accidentally delete important numbers, panic early. There are several levels of data protection on Xiaomi smartphones. The first level is the basket in the Contacts app. Deleted records can be stored there for up to 30 days. To check this, open the app, go to the settings or menus and find the item "Baskbasket" or "Recently deleted".

The second layer is cloud archives. As mentioned earlier, Google allows you to roll back the contact state. Go to Google Contacts on PC, select Settings β†’ Undo Changes and select a time slot (10 minutes ago, 1 hour, yesterday, a week ago), which is an action that overwrites the current database on your phone with the saved copy you selected.

If cloud backups are not enabled, you can rely on local MIUI backups. Xiaomi automatically backs up your system and data (including contacts) when connecting to Wi-Fi and charging. Check /MIUI/backup/ for archives with a date prior to deletion. Use the built-in Security β†’ Backup & Recovery app to restore.

⚠️ Note: Recovery from Google’s cloud backup will completely replace the current contact list.All new numbers added after the backup date will be removed unless they are previously exported separately.

Specifics of working with SIM-card

We should not forget about the classical method of storage β€” SIM-On modern Xiaomi Redmi smartphones, this is considered an outdated method due to format limitations (often cropped name, no photo, no multiple numbers per contact). SIM-card, not in the phone's memory.

To move the contacts with SIM-card memory of the phone (and thus make them available for sync with the cloud), use the import function. In the Contacts app, select Settings β†’ Import/Export of contacts β†’ Import with SIM-After this operation, the data is copied to the database. contacts2.db It will be available for cloud synchronization.

Physical extraction SIM-The card and installing it in another phone will instantly transfer only those contacts that are left on the chip. SIM-use the card exclusively for identification in the operator's network.

Why do contacts disappear after MIUI update?
Often, after a major shell update (e.g., from MIUI 13 to 14), access rights or sync settings are lost. The system may temporarily stop displaying contacts if your Google account is disabled. Check account settings in the Passwords and Security section and make sure the contact sync slider is active.

Frequently Asked Questions (FAQ)

Can I restore contacts if the Xiaomi Redmi phone is not turned on?
Yes, if the contacts were synced with Google or Mi Cloud, just log in from any other device (computer or new phone) through the browser, and all the data will be available, if the sync was not turned on and the phone is not turned on, it is almost impossible to restore data without repairing the device and accessing memory.
Where can I find a contact file if I connect my phone to my computer as a drive?
When you connect in drive mode (MTP), you will only see custom folders. the contacts2.db file is in the /data/ system partition, which is hidden. You will only see export files (.vcf) if you created them yourself and saved them to a shared folder, such as in Downloads or the root of internal memory.
How to transfer contacts from old Android to new Xiaomi?
The easiest way is to use the Mi Mover app, which is pre-installed on Xiaomi, and you can just log in to your Google account on a new device, and the contacts will be automatically connected. VCF-File on an old phone and import this file on a new one.
Why do contacts duplicate after synchronization?
This happens when the same contact is stored in both the phone’s memory and the phone’s memory. SIM-When you turn on sync, the system combines all sources. To remove duplicates, use the "Combine duplicates" function in the Contacts settings or do it through the Google Contacts web interface.

πŸ’‘

Regularly exporting contacts to a.vcf file and storing it on an external medium (PC, flash drive) is the only way to guarantee the safety of data even if you completely lose access to cloud accounts.