Ever wonder where all your contacts are physically stored on a Xiaomi smartphone? A notebook with hundreds of numbers, addresses, and notes seems weightless until you have to transfer it to a new phone, recover it after a reset, or just understand how the system works. Unlike photos or documents, contacts are not in a DCIM or Downloads folder, but are hidden deep inside the Android system.
In this article, weโll take a look at exactly where Xiaomi (based on MIUI) keeps its contacts, from standard ways in the phoneโs memory to cloud syncs with Google and Mi Account. Youโll learn what database files look like, can they be edited manually, and what to do if contacts suddenly disappear. And weโll also reveal the unique nuance of MIUI: why, when reset to factory settings, contacts sometimes recover automatically, even if you havenโt made a backup.
1. Where to store contacts on Xiaomi: system paths in the memory of the phone
Contacts on Xiaomi (as well as on any Android device) are stored as a database SQLite - file with the extension.db.
/data/data/com.android.providers.contacts/databases/contacts2.dbThis file contains all local contacts, including numbers, names, email addresses and additional fields, but access to it is limited: the /data/data/ folder is protected by the system, and without root rights or special tools, you will not be able to open it.
What's more important:
- ๐ฑ Local contacts (those that are not synced to accounts) are stored only in this file. contacts2.db They'll be gone forever.
- โ๏ธ Synchronized contacts (via Google, Mi Account, or other services) are duplicated in the cloud, but local copies of them are also written to this database.
- ๐ When resetting the phone to factory settings file contacts2.db deleted, but if the contacts were synchronized, they will be restored after logging in to the account.
โ ๏ธ Note: Do not attempt to edit contacts2.db Manually through file manager without backup! error in database structure can result in loss of all contacts.
2. Contact Storage Formats: SQLite vs VCF vs XML
Xiaomiโs system works with contacts in three main formats, each of which has its own purpose:
| Format | Expansion | Wherever used | Can I edit it? |
|---|---|---|---|
| SQLite | .db | The main database of contacts in /data/data/ | Yes, but only with root or through ADB. |
| VCF (vCard) | .vcf | Export/import contacts via phone menu | Yeah, any text editor. |
| XML | .xml | Backups via MIUI Backup or Google | Yeah, but the structure is complicated. |
The most versatile format for users is.vcf. It can be created through the contact menu (Contact Management โ Export / Import) and opened on any device. The contacts2.db file is tied to a specific firmware and version of MIUI, so transferring it to another phone โas isโ will not work.
Interesting fact: when exporting contacts to.vcf, Xiaomi adds metadata about the MIUI version and phone model to the file, for example, at the beginning of the file you can see a line:
X-MIUI-VERSION: V12.5.3.0.RKHCNXM3. How to check where your contacts are stored: step-by-step instructions
To understand where your contacts are located โ in your phoneโs memory, in Google, or in your Mi Account โ follow these steps:
Open the Contacts app
Press three points (โฎ) โ Contact management
Select Settings โ Import / Export โ Account Management
See which accounts are marked as active for sync-->
If neither Google nor Mi Account is listed, all contacts are stored locally and will be lost when you reset your phone.
- Go to Contact Management. โ Exports.
- Select the.vcf format and specify the folder to save (for example, Downloads).
- Send the file to the mail or cloud (Google Drive, Mi Cloud).
โ ๏ธ Note: If you use dual applications (functions) MIUI For cloning messengers, contacts from the "second" account are stored in a separate database: /data/data/com.android.providers.contacts.secondspace/.... They need to be exported separately!
๐ก
To quickly check if your contacts are synced with Google, go to contacts.google.com from the same account you have on your phone. If the list is empty, sync is disabled.
4. Cloud Storage: How Xiaomi Syncs Contacts with Mi Account and Google
Xiaomi offers two main cloud services for backup contacts: its own Mi Cloud and Google Contacts. Letโs understand how they work and where they physically store data.
1. Mi Cloud (Mi Account)
- ๐ฒ Contacts are synchronized with Xiaomi servers in encrypted form.
- ๐ You can access them via the web version: i.mi.com โ Contacts.
- ๐ Synchronization is included in the Settings โ Mi Account โ Mi Cloud โ Contacts.
- โ ๏ธ When you delete your Mi Account, your contacts will be deleted from the servers after 30 days.
2. Google Contacts
- โ๏ธ Data is stored on Google servers and is available at contacts.google.com.
- ๐ Synchronization is configured in Settings โ Accounts. โ Google โ Synchronization of the account.
- ๐ If you turn off sync, local changes will not be saved in the cloud.
The main difference: Mi Cloud is integrated into MIUI and can automatically restore contacts even after a reset if you are logged in to the same Xiaomi account.Google Contacts are universal and work on any Android device, but require manual sync enabled.
What happens if you turn off sync with Google?
5. How to access contact files without root rights
If you donโt have root access but need to get the contacts2.db file (for example, to back up or transfer to another phone), there are a few legal ways to do this:
Method 1: ADB (Android Debug Bridge)
- Enable USB Debugging in Settings โ About Phone โ MIUI version (click 7 times, then go back to Additional Settings โ For Developers).
- Connect your phone to your PC and execute the command: adb pull /data/data/com.android.providers.contacts/databases/contacts2.db
Method 2: Through MIUI backup
- ๐ฑ Go to Settings. โ The phone. โ Backup.
- ๐ Select Local Backup and Mark Contacts.
- ๐พ The backup file will be saved to /MIUI/backup/AllBackup/ in.mbk format (can be unpacked through the MIUI Backup Extractor).
Method 3: Through Third Party Applications
Apps like Contacts Backup & Restore or Super Backup can export contacts to.vcf or.xml without root, but they donโt directly access contacts2.db, they only convert data into a user-friendly format.
๐ก
The most reliable way to save contacts without root is to regularly export them to a.vcf file through Xiaomiโs standard menu, which can be opened on any device, even an iPhone.
6 What to do if contacts disappear: recovery and diagnosis
If your contacts suddenly disappear, don't panic, 80 percent of them can be restored.
Step 1: Check the synchronization
- โ๏ธ Make sure that in the settings โ Accounts enabled sync with Google or Mi Account.
- ๐ Try to manually update data: open Google Contacts in your browser and click More โ Cancel changes (if contacts have recently been deleted).
Step 2: Restore from backup
- ๐ฑ If you were doing a backup through MIUI Backup, go to Settings โ The phone. โ Backup โ Restore.
- ๐พ If you have a.vcf or.mbk file, import it through Contacts. โ Management โ Imports.
Step 3: Use specialized tools
If contacts are deleted without a backup, try data recovery software, such as:
- ๐ ๏ธ Dr.Fone (restores contacts from internal memory).
- ๐ ๏ธ EaseUS MobiSaver (works even without root, but with limitations).
โ ๏ธ Warning: Do not write new data to your phone after deleting contacts (do not install apps, do not take photos). The fewer recording operations, the better the chances of recovery.
7. Features of storing contacts on different models Xiaomi
While the principle of keeping contacts on all Xiaomi is the same, there are nuances that depend on the model and version of MIUI:
| Model/Series | Features of storage | Recommendations |
|---|---|---|
| Redmi Note 8/9/10 | On older versions of MIUI 11-12, contacts could be duplicated when synchronized with Mi Account. | Before upgrading to MIUI 13+, export to.vcf. |
| Xiaomi 11/12/13 | Google Contacts Sync Adapter support is improved, but sometimes manual inclusion is required in Settings โ Sync. | Check your sync settings after major updates. |
| POCO F3/F4/F5 | POCO with lightweight firmware may not have MIUI Backup โ use Google Contacts. | Install Contacts Backup from Google Play for automatic backup. |
On devices with MIUI 14+, the Mi Cloud Cloud Contact Cloud Backup feature automatically saves changes every 24 hours to enable:
- Go to Settings. โ Mi Account โ Mi Cloud.
- Select Device Backup โ Contacts.
- Activate the option Automatic backup.