Where to store contacts on Xiaomi: the path to the system folder and access methods

Why it is important to know the location of contacts on Xiaomi

Contacts on Xiaomi smartphones (including Redmi and POCO models) are not stored in one place, but are distributed between system folders and cloud services. Many users face the need to find the physical location of contact files - whether for backup, transfer to another phone or recovery after a reset. Unlike photos or documents that lie in /DCIM or /Downloads folders, contacts are hidden deeper in the system.

The main challenge is that Android doesn’t store contacts as separate files (like images) instead they are written to the contacts2.db database, which is in a secure system folder. However, there are ways to access this database or export contacts to the universal.vcf (vCard) format. In this article, we’ll look at all possible methods, from standard MIUI tools to manual search through a file manager with root rights.

If you just need to move your contacts to a new phone, you need to sync with your Google Account or Mi Cloud, but if you need physical access to your files (for example, for manual editing or recovering deleted records), read on.

Standard ways to export contacts without access to folders

Before you go through the system folders, try the built-in MIUI tools, which allow you to export contacts to a.vcf file, which you can then copy to a computer or other phone. Here's how to do this:

  • πŸ“± Open the Contacts app (an icon with a person’s silhouette).
  • βš™οΈ Click on the three dots in the top right corner and select Contact Management.
  • πŸ“€ Choose Import/Export Contacts β†’ Export to file.
  • πŸ’Ύ Specify the location of the storage (for example, internal memory)/Downloads) and confirm.

A file with the.vcf extension will appear in the folder you select, open in any text editor (like Notepad++) or import to another phone, a method that works on all Xiaomi models, including the Redmi Note 12, POCO X5 and Mi 11.

⚠️ Note: Exported.vcf file may not contain photos of contacts. Use separate backups through Google Contacts or specialized applications like My Contacts Backup to save them.

If you need to not just export, but find original contact files in your phone’s memory, read the following section.

πŸ“Š How do you usually reserve your contacts?
Synchronizing with Google
Using Mi Cloud.
Exporting to.vcf file
I'm not reserving.

Where to store contacts on Xiaomi: the path to system files

Contacts in Android (including MIUI) are stored in a SQLite database called contacts2.db. This file is in a secure system folder that is restricted to access.

/data/data/com.android.providers.contacts/databases/contacts2.db

But you can't just open this folder, you need root rights or tools.

  • πŸ”§ Use it. ADB (Android Debug Bridge to copy files to your computer.
  • πŸ“ Install a file manager with root support (such as Root Explorer or Root Explorer) FX File Explorer).
  • πŸ”„ Backup through adb backup (no root, but with limitations).

If you have root access, just open the file manager, go up the path and copy contacts2.db to a safe place. Without root, you can try the adb pull command:

adb pull /data/data/com.android.providers.contacts/databases/contacts2.db C:\Backup\

⚠️ Attention: Direct file editing contacts2.db It is recommended to first make a backup copy through adb backup contacts or sync contacts with Google.

On some MIUI firmware (especially older versions), contacts may be stored elsewhere:

/data/com.android.providers.contacts/databases/contacts.db

Enable debugging over USB in the developer settings

Install ADB on your computer

Backup your contacts via Mi Cloud

Check for root rights (if you plan to use Root Explorer)-->

How to view and edit a contact database

File. contacts2.db β€” This is a SQLite database that you can open with special programs:

  1. Copy the contacts2.db file to your computer (see the previous section).
  2. Install one of the programs to work with SQLite: πŸ–₯️ DB Browser for SQLite (Free, Cross-Platform). πŸ–₯️ SQLiteStudio (Extended Functions). πŸ“± SQLite Editor (for Android, it requires root).

Overview of data

raw_contacts

data

mimetypes

For editing:

  • πŸ“ Change the required entries in the data table (for example, the phone number in the column) data1).
  • πŸ’Ύ Save the changes and transfer the file back to your phone (root only!).
  • πŸ”„ Restart the device to make the changes effective.

Important: Do not edit columns id, raw_contact_id or mimetype_id β€” This can disrupt the integrity of the database.

Table in contacts2.dbWhat it keeps.Example of data
raw_contactsBasic contact information (ID, account)_id=1, account_name="Google"
dataPhone numbers, email, addressesmimetype_id=5, data1="+79991234567"
mimetypesTypes of data (phone, email, etc.)mimetype="vnd.android.cursor.item/phone_v2"
groupsContact groupstitle="Family", notes="Family"

πŸ’‘

If you need to re-establish a remote contact, try checking the Recycle Bin in the Contacts app (Remote section) for up to 30 days.

Alternative methods of backup contacts

If access to system folders is difficult, use alternative backup methods:

  • ☁️ Mi Cloud: Go to Settings β†’ Mi Account. β†’ Mi Cloud. Enable Contact Sync. Backup is created automatically and is available at i.mi.com.
  • πŸ“§ Google Contacts: Add Google Account to Settings β†’ Accounts. Enable contact synchronization. Export data to contacts.google.com.
  • πŸ“± Third-party apps: My Contacts Backup (saves to.vcf and sends to email) Super Backup & Restore (reserves contacts, SMS, call-in).

The advantage of cloud services (Mi Cloud or Google) is that they automatically sync contacts between devices, but if you want a local copy, you’d better use exporting to.vcf or backing up through ADB.

⚠️ Warning: When you reset your phone to factory settings, contacts that are not synced to the cloud will be deleted. Always check backups before resetting!

What if your contacts are lost after the MIUI update?
After updating the firmware, the sync settings sometimes get lost. Try: 1. Go to Settings β†’ Accounts and reconnect Google Account. 2. In the Contacts app, click Update in Contact Management. 3. If contacts were linked to SIM-map, check the settings β†’ Contacts β†’ Import with SIM. 4. In extreme cases, restore the backup through Mi Cloud (if it was turned on).

How to Transfer Contacts with Xiaomi to a Different Phone

The transfer of contacts depends on where they were stored in the first place.

  • πŸ“² S SIM-Cards: On the old phone: Contacts β†’ Management β†’ Exports to SIM. On the new phone: Contacts β†’ Management β†’ Import with SIM. Limitation: SIM-The card stores only names and numbers (without email, addresses, photos).
  • ☁️ Google Account: On your old phone, enable Google Contact Sync. On your new phone, add the same account and wait for sync.
  • πŸ“‚.vcf: Export contacts to a file on an old phone (see section 2). Transfer the file to a new phone (e.g. via Bluetooth or Telegram). β†’ Management β†’ File-based import.

If you are migrating contacts to your iPhone, use Google Contacts or iCloud:

  1. Export your contacts to.vcf.
  2. Open the file on your computer and import it to iCloud via www.icloud.com.
  3. On iPhone, enable sync with iCloud.

πŸ’‘

The most reliable way to transfer is sync through Google Account, which works on any device (Android, iOS) and saves all data, including photos of contacts.

Frequent Contact Problems on Xiaomi and Their Solutions

Xiaomi users often face the following problems:

Problem.Possible causeDecision
Contacts are not displayedSync failure with Google/Mi CloudReconnect your account to Settings β†’ Accounts
Duplicate contactsContacts are saved on both SIM and GoogleUse Combine Contacts in the Contacts app
No new contacts are maintained.Ended memory space or database failureClear the cache of the application Contacts in Settings β†’ Applications
Contact photos disappearSynchronization without photosUse Google Contacts for a full backup

If your contacts are missing after the MIUI update, try:

  1. Reboot the phone.
  2. Check the synchronization settings in Settings β†’ Accounts.
  3. Update the Contacts app through Play Market.
  4. Restore backup from Mi Cloud.

If nothing helps, you can try resetting the Contacts app settings (without losing data):

Settings β†’ Applications β†’ Application Management β†’ Contacts β†’ Storage β†’ Clear cache

FAQ: Answers to Frequent Questions About Contacts on Xiaomi

Can I restore remote contacts on Xiaomi without backup?
If contacts have been synced to Google or Mi Cloud, you can restore them through the web version of the service (the basket stores 30 days).
Where are the contacts stored, if they are stored on SIM-map?
Contacts to SIM-The card is stored in its memory and does not appear as files on the phone. To transfer them, use the Import with the function. SIM in the annex Contacts.
Why don’t you save photos of your contacts when exporting to.vcf?
Standard MIUI export doesn't always include photos. To save them, use Google Contacts or apps like My Contacts Backup that support image export.
How to transfer contacts from Xiaomi to iPhone without loss?
The best way to do this is to sync your contacts with your Google Account on Xiaomi, then add that account to your iPhone and enable sync. The alternative is to export to.vcf and import via iCloud.
Can I edit contacts directly in the contacts2.db file?
Technically, yes, but it's risky. An editing error can lead to the loss of all contacts, and it's recommended to use specialized tools like SQLite Editor and back up before making changes.