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.
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.dbBut 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.dbEnable 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:
- Copy the contacts2.db file to your computer (see the previous section).
- 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.db | What it keeps. | Example of data |
|---|---|---|
| raw_contacts | Basic contact information (ID, account) | _id=1, account_name="Google" |
| data | Phone numbers, email, addresses | mimetype_id=5, data1="+79991234567" |
| mimetypes | Types of data (phone, email, etc.) | mimetype="vnd.android.cursor.item/phone_v2" |
| groups | Contact groups | title="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?
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:
- Export your contacts to.vcf.
- Open the file on your computer and import it to iCloud via www.icloud.com.
- 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 cause | Decision |
|---|---|---|
| Contacts are not displayed | Sync failure with Google/Mi Cloud | Reconnect your account to Settings β Accounts |
| Duplicate contacts | Contacts are saved on both SIM and Google | Use Combine Contacts in the Contacts app |
| No new contacts are maintained. | Ended memory space or database failure | Clear the cache of the application Contacts in Settings β Applications |
| Contact photos disappear | Synchronization without photos | Use Google Contacts for a full backup |
If your contacts are missing after the MIUI update, try:
- Reboot the phone.
- Check the synchronization settings in Settings β Accounts.
- Update the Contacts app through Play Market.
- 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