Have you ever wondered where your contacts are physically stored on your smartphone Xiaomi? Most users do not even suspect that the entire phone book is not just a virtual list in the application, but real files in the Android system folders. Moreover, their location depends on whether you synchronize data with Google Account, use MI Account from Xiaomi or store contacts only locally on the device.
In this article we not only We will reveal the exact path to the folder with contacts on Xiaomi (including models on MIUI 14/15 and HyperOS), but we will also explain how this data is structured, why it cannot simply be copied through Explorer, and what to do if the contactsSuddenly disappeared after resetting the settings. You will also learn how to manually export your phone book without third-party applications and where to look for backups if synchronization is disabled.
We will pay special attention to hidden system folders, which can only be accessed through ADB or file managers with root access. This knowledge will be useful if you need to recover contacts after a phone breakdown or transfer them to another device without cloud services.
Why contacts on Xiaomi are stored in several places
Unlike photos or music, which are in open folders (/DCIM/ or /Music/), contacts on Android are data SQLite databasescattered across different system directories. On smartphones Xiaomi their location depends on three key factors:
- ๐ Synchronization with Google: if enabled, the main copy is stored on Google servers, and on the phone there is only a cache.
- ๐ฑ Local storage: contacts are saved in the system database
contacts2.db(available only with root). - ๐ MI Account: Xiaomi duplicates contacts in its cloud, creating separate backup files.
Moreover, MIUI automatically creates backup copies of contacts in .vcf (vCard) format under certain conditions - for example, when resetting the settings or updating the firmware. These files can be found in a hidden folder /MIUI/backup/AllBackup/, but they are encrypted and require special tools to extract.
โ ๏ธ Attention: If you delete your Google account or MI Account from your phone, all contacts associated with it will disappear from the device, even if they were displayed in the phone book. Local contacts (not synchronized) will remain, but they must be backed up manually.
To understand where exactly to look for your contacts, first determine what type of storage is used:
| Storage type | Where the data is stored | Can it be copied without root |
|---|---|---|
| Google Account | Google Cloud + cache in /data/data/com.android.providers.contacts/databases/contacts2.db |
No (only export via the app) |
| MI Account | Xiaomi cloud + local backups in /MIUI/backup/ |
Partially (backups only) |
| Local (on the phone) | /data/data/com.android.providers.contacts/databases/contacts2.db |
No (root required) |
| SIM card | SIM memory (available via Settings โ SIM cards) |
Yes (manual export) |
The main folder with contacts on Xiaomi: path and structure
The main file where all. contacts (including those synchronized with Google and local ones) is stored is called contacts2.dbThis is a SQLite database located along the path:
/data/data/com.android.providers.contacts/databases/contacts2.db
However, access to this folder is limited:
- ๐ Without root access you will not be able to open it through a standard explorer.
- ๐ ๏ธ Even with root, copying a file directly can lead to data corruption (the base is blocked by the system during operation).
- ๐ฑ On some models Xiaomi (for example, Redmi Note 12 or POCO X5) the path may differ due to features MIUI 14+.
Inside contacts2.db not only names and numbers are stored, but also:
- ๐ Call history (if synchronization is not disabled).
- ๐ค Photos of contacts (in the form of links to files in
/data/data/com.android.providers.contacts/files/). - ๐ท๏ธ Tags and groups (for example, "Family" or "Work").
- ๐ Linked accounts (for example, one contact can be linked to Google and MI Account at the same time).
โ ๏ธ Attention: If you try to copycontacts2.dbon a working phone, the system may block the file. To avoid errors, first disable contact synchronization in your account settings or switch your phone toAirplane Mode.
To view the contents of the database without root, you can use ADB (Android Debug Bridge). For example, a command to export all contacts to a file .vcf:
adb shell content query --uri content://com.android.contacts/contacts --projection display_name:phone_number > contacts.vcf
If you need to transfer contacts to a new phone, the easiest way is to use the built-in export function to Settings โ Google โ Backup or the Contacts application from Xiaomi (menu โ Manage contacts โ Export/Import).
How to find backup copies of contacts on Xiaomi
Xiaomi automatically creates backup copies of contacts in two cases:
- When update MIUI via
Settings โ About phone โ System update. - When reset (if the "Data backup" option is enabled in
Settings โ Additionally).
These backups are stored in the folder:
/MIUI/backup/AllBackup/[device_name]/
Inside you will find files with the extension .bak or .ab (encrypted archives). To open them:
- Copy the file to your computer.
- Use the official software Mi PC Suite or utility MIUI Backup Extractor (requires Python).
- Extract the data into a format
.vcffor import into another phone.
In addition to automatic backups, you can create a backup copy manually:
Open the "Contacts" application | Click on the three dots (โฎ) โ "Manage" contacts"|Select"Export/Import contacts"|Specify the format (.vcf or .csv) and save location|Confirm export-->
The contacts file will be saved in the folder /Download/ or on the SD card (if installed). You can copy it to your computer or send it to yourself by email.
What to do if the backup is damaged?
If the backup file does not open, try:
1. Rename the extension from .bak to .zip and extract with an archiver.
2. Use online VCF recovery services (for example, VCF Repair Tool).
3. Recover contacts via Google Contacts (if synchronization was enabled previously).
How to access the contacts folder without root
If you do not have root access, but need to extract contacts from your phone Xiaomi, there are several legal ways:
1. Via ADB (without root)
Connect the phone to a PC with installed drivers ADB i run:
adb backup -f contacts.ab -apk com.android.providers.contacts
This command will create a file contacts.ab with a backup copy of the contact database. To open it, use the utility Android Backup Extractor.
2. Through the Contacts application
The easiest way:
- ๐ฑ Open the application
Contact. - ๐ Click on the three dots (โฎ) โ
Manage contactsโExport/Import. - ๐ค Select
Export to deviceand specify the format.vcf.
3. Via Google Contacts
If contacts are synchronized with Google:
- ๐ Go to the website contacts.google.com.
- ๐ Click
Exportin the side menu. - ๐ฅ Select the format (
Google CSVorvCard) and download the file.
โ ๏ธ Attention: When exporting via Google, Contacts profile photos and some custom fields (for example, additional dates of birth) are not saved. For a complete backup, use local export in the format .vcf.
Export through the Contacts application on Xiaomi saves the most complete information, including photos and tags. This is the best way to backup without root.
Where contacts from the SIM card are stored on Xiaomi
Contacts saved on SIM cardare not stored in the phone's memory, but in the chip of the card itself. They cannot be viewed through Explorer - only through the SIM menu in the settings:
Menu path:
Settings โ SIM cards and mobile networks โ [Select SIM] โ SIM contacts
Features of working with contacts on SIM:
- ๐ Quantity limit: usually 250-500 contacts (depending on the operator).
- ๐ค Supported only name + number (without photos, email or addresses).
- ๐ When transferred to another phone, contacts are automatically imported when SIM is inserted.
- โ ๏ธ When you delete a contact from SIM, it disappears forever (no recycle bin or backups).
To export contacts from SIM to phone:
- Open the application
Contact. - Tap
โฎ โ Manage contacts โ Import/Export. - Select
Import from SIM cardand indicate where to save (to phone or Google account).
If SIM card is damaged or the phone does not recognize it, contacts can only be retrieved through specialized services (for example, in communication shops using software readers).
What to do if contacts disappeared after a reset or update
One of the most common problems on Xiaomi is the loss of contacts after:
- ๐ Updates MIUI (especially when switching on HyperOS).
- ๐ฑ Resetting settings to factory settings.
- ๐ Battery discharge to 0% (may damage the database).
- ๐ Deleting a Google account or MI Account.
Algorithm recovery:
- Check synchronization:
- Go to
Settings โ Accounts โ Googleand make sure that contacts are included in synchronization. - Wait 5-10 minutes - sometimes the data is restored automatically.
- Go to
Settings โ About phone โ Backup โ Restore
Select the last backup date (if available).
If you have a backup copy, transfer it to your phone and import via Contacts โ โฎ โ Manage contacts โ Import.
Applications like Dr.Fone or EaseUS MobiSaver can scan the phone's memory for deleted contacts (requires root for deep scanning).
โ ๏ธ Attention: If contacts are missing after the update MIUI, do not reset the settings - this will delete all local data without the possibility of recovery. First try to roll back to the previous version of the firmware via Fastboot.
If none of the methods helped, check the folder /MIUI/backup/AllBackup/ for the presence of old backups. Sometimes files are saved with the date of creation, not modification, so sort the files by size - contact backups usually take from 10 KB to 1 MB.
How to transfer contacts from Xiaomi to another phone
Transferring contacts from Xiaomi to a device of another brand (for example, Samsung or iPhone) depends on where they are stored:
| Contact source | Where transfer | Transfer method |
|---|---|---|
| Google Account | Any Android/iPhone | Automatic synchronization when adding an account on a new phone |
| MI Account | Other Xiaomi | Export to .vcf via "Contacts" โ import on a new device |
| Local (on phone) | Any phone | Export to .vcf โ file transfer โ import |
| SIM card | Any phone | Transfer SIM to a new phone โ import contacts |
Step-by-step guide for transfer on iPhone:
- On Xiaomi export contacts to a file
.vcf(via the Contacts application). - Send the file to yourself by email or upload to the cloud (for example, iCloud Drive).
- On iPhone open the file - the system will offer to add contacts to the phone book.
- If you use Google Account, just add it on the new phone - contacts will synchronize automatically.
- If the contacts are local, export them to
.vcf, copy them to a new phone and import through the Contacts application.
To transfer to another Android (not Xiaomi):
โ ๏ธ Attention: When transferring contacts from MIUI on iPhone some fields (for example, "Additional number" or "Notes") may not be imported. Check the data after the transfer!
FAQ: Frequently asked questions about storing contacts on Xiaomi
Is it possible to copy the contacts2.db file and transfer it to another phone?
Technically yes, but this not recommended. The file contacts2.db contains not only contacts, but also service information associated with a specific device. When transferring to another phone, synchronization errors or duplicate entries may occur. It is better to export contacts in format .vcf.
Why did contacts disappear after resetting the settings, although MIUI backup was enabled?
Probably, the backup was not created before the reset. Check:
- Whether the option was enabled
Settings โ Advanced โ Backup and reset โ Local backup. - Whether there was enough space on the phone to create a backup (minimum required 50 MB free space).
- Was the backup interrupted (for example, due to low battery).
If a backup was created, try restoring it through Settings โ About phone โ Backup.
Where are contact photos stored on Xiaomi?
Contact profile photos are stored in the folder:
/data/data/com.android.providers.contacts/files/
The files have random names (for example, 1657432198765.jpg) and are not directly linked to specific contacts. To extract them:
- Get root access or use
ADB. - Copy the entire folder
files/to your computer. - Use SQL queries to the database
contacts2.dbto match photos with contacts.
Without root, it is easier to reassign photos manually after exporting/importing contacts.
Is it possible to recover deleted contacts if there is no backup?
Chances Yes, but they depend on how long ago the data was deleted:
- ๐ If the contacts were synchronized with Google, check the trash on the website contacts.google.com (stored 30 days).
- ๐ฑ If the contacts were local, try the apps like DiskDigger or GT Recovery (scan the phone memory for deleted files).
- ๐ ๏ธ On phones with root you can use the utility
sqlite3to recover records fromcontacts2.db(requires database skills).
If more than 2-3 weekshave passed, the likelihood of recovery is minimal - system files could have been overwritten.
How to disable automatic synchronization of contacts with MI Account?
For Xiaomi to stop automatically uploading contacts to its cloud:
- Go to
Settings โ Accounts โ MI Account. - Click on
Data synchronization. - Disable the slider next to
Contact. - (Optional) Click
Delete datato erase contacts from the Xiaomi cloud (they will remain on the phone).
After this, contacts will be stored only locally or in Google (if synchronization is enabled).