Have you ever lost contacts after a Xiaomi phone reset or MIUI upgrade? or just want to know where the phone numbers are physically stored on your device?This article will not only reveal the exact path to the system folder with contacts, but also explain how they are organized, why they can not be simply copied through a Explorer, and what are the ways to reliably back up.
Unlike photos or music, Android contacts (and MIUI in particular) donโt lie in a user-friendly folder as normal files, theyโre stored in a secure database that apps have limited access to, but that doesnโt mean you canโt retrieve or migrate them, it just requires the right tools and knowledge of Xiaomiโs nuances.
We'll take it apart.
- ๐ Where exactly are your contacts stored in your smartphoneโs memory (and why you canโt see them)
- ๐ How to export contacts manually and automatically
- ๐ง What to do if contacts are lost after updating or resetting
- ๐ฑ Features of storage of contacts in different models Xiaomi/Redmi/POCO
Where to store contacts in Xiaomi: the path to system files
Contacts in Xiaomi (as in any Android device) are stored in the SQLite database called contacts2.db. This file is in a secure system folder, not available without root rights or special tools.
/data/data/com.android.providers.contacts/databases/contacts2.dbWhy don't you see this folder through a standard conductor?
- ๐ folder /data/data/ It's hidden from the user for security reasons, and even with the hidden files on, you can't see it.
- ๐ก๏ธ Only system applications (such as Contacts or Google Contacts) and root-right applications have access to it.
- ๐ฑ On the new versions MIUI (12+) even ADB Does not give full access to this folder without unlocking the bootloader.
If you try to open this file through Root Explorer or ADB, You will see a binary database with tables. raw_contacts, Manual editing is not recommended, as it can lead to the loss of all contacts.
๐ก
If you need to transfer contacts to another device, donโt copy the contacts2.db file directly, instead use.vcf export (see next section).
How to export contacts from Xiaomi: 3 working ways
Since direct access to the database is limited, backup contacts using built-in MIUI tools or third-party applications.
1.Export through the standard โContactsโ app
The easiest way to do this is without additional programs:
- Open the Contacts app (an icon with a personโs silhouette).
- Press three points (โฎ) top-right โ Contact management.
- Select Import/Export Contacts โ Export to File.
- Specify which contacts to export (e.g. only with the SIM-Maps or from a Google account).
- Click Export and save the.vcf file to a convenient location (such as Downloads or Google Drive).
2. Sync with Google account
If you use Google Contacts, all numbers are automatically reserved in the cloud:
- ๐ Go to Settings. โ Accounts. โ Google โ Synchronization of the account.
- ๐ฑ Make sure the switch opposite the Contact is on.
- ๐ To check the backup, open contacts.google.com in your browser.
3. Backup applications
For advanced users, suitable:
- ๐ฒ Super Backup & Restore โ Keeps Contacts, SMS and a one-click call log.
- ๐ My Contacts Backup โ Exports contacts to.vcf and sends them to email.
- ๐ฑ Titanium Backup (requires root) โ Creates a full copy of the contact database.
What to do if contacts are lost after resetting or updating MIUI
Contact loss is one of the most common problems after a hard reset or firmware update. Here is an algorithm for recovery:
- Check sync with Google: Go to Settings โ Accounts โ Google. If sync was enabled before reset, contacts will be restored automatically after logging in to your account.
Import from backup
- If you have a.vcf file, open Contacts โ Import/Export โ Import from the file.
- Select the saved file and confirm the import.
- Restore from local MIUI: Xiaomi creates automatic backups of contacts in the MIUI/Backup/AllBackup folder. Check it through Explorer.
How to restore contacts if there is no backup?
If the contacts were linked to a Mi Account, try logging in on another Xiaomi device โ sometimes they sync automatically.
Make a backup of contacts in.vcf|Check sync with Google|Save photos and videos on PC|Write it down. IMEI telephone (in case of lockdown)|Unplug your Mi Account if you are selling your device-->
Features of storing contacts in different models Xiaomi
Although the principle of storing contacts in MIUI is the same for all devices, there are nuances depending on the model and firmware version:
| Model/Series | Features of storage of contacts | Recommendations |
|---|---|---|
| Redmi Note 8/9/10 | Contacts are stored in a standard database contacts2.db. Supports export to.vcf without restrictions. | Use built-in export or Google Contacts. |
| Xiaomi Mi 11/12/13 | MIUI 13+ has added MIUI Cloud to back up contacts to Xiaomiโs cloud. | Enable reservation in Settings โ Mi Account โ Mi Cloud โ Contacts. |
| POCO F3/F4/F5 | It uses pure Android without duplicate Xiaomi services, and only syncs through Google. | Set up automatic sync with your Google Account. |
| Xiaomi Pad 5/6 | On tablets, contacts can be duplicated between users (if multiplayer mode is enabled). | Before exporting, check which profile you are copying your contacts from. |
On MIUI 14+ devices, contacts can be stored in two locations simultaneously: in the standard Android database and in the Xiaomi cloud, which means that when reset, they can recover from the Mi Cloud even without being tied to Google.
Can I manually edit the contact database?
Technically, yes, but it's extremely risky. contacts2.db It does not only contain phone numbers, but also:
- ๐ Links between contacts (e.g., โworkerโ and โpersonalโ numbers of one person)
- ๐ Birthdays and events
- ๐ท๏ธ Tags and groups (e.g., โFamilyโ or โColleagues")
- ๐ Attached notes and addresses
Any incorrect change can lead to:
- ๐ Duplicate contacts
- ๐๏ธ Loss of data (for example, profile photos will disappear)
- ๐ซ Complete inoperability of the application Contacts
๐ก
If you need to edit contacts massively (like removing duplicates or changing the format of numbers), use specialized applications like Contacts Optimizer or Simpler Merge. They work with the Android API and do not damage the database.
If you want to try editing contacts2.db manually:
- Make a full backup of your phone via TWRP or Mi PC Suite.
- Copy the contacts2.db file to your computer using ADB: adb pull /data/data/com.android.providers.contacts/databases/contacts2.db
- Open the file in SQLite Browser (e.g. DB Browser for SQLite).
- Only make changes to the data table (where phone numbers are stored).
- Return the file back to: adb push contacts2.db /data/data/com.android.providers.contacts/databases/
- Reboot the phone.
โ ๏ธ Attention: On devices with MIUI 14 and newer editing contacts2.db This can cause the com.android.providers.contacts error and cause permanent crashes.
How to Transfer Contacts from Old Xiaomi to New
You can transfer contacts between Xiaomi devices in several ways, depending on the model and versions of MIUI:
1. via Xiaomi account (Mi Cloud)
The fastest method for devices on MIUI 12+:
- On your old phone: Settings โ Mi Account โ Mi Cloud โ Contacts โ turn on backup.
- On a new phone: log in to the same Mi Account and wait for sync.
2. Through the.vcf file
The universal method for any device:
- On an old phone, export contacts to a.vcf file (see section above).
- Transfer the file to a new phone (e.g., via Bluetooth, Google Drive, or USB cable).
- On the new phone, import the file via Contacts โ Import/Export.
3. Through SIM-map (for basic models)
Suitable for Redmi 9A/8A and other budget devices:
- On the old phone: Contacts โ Import / Export โ Export on SIM.
- Move it. SIM-card.
- On the new phone: Contacts โ Import / Export โ Import with SIM.
โ ๏ธ Note: When transferring through SIM-The card is lost photos of contacts, notes and additional fields (e.g. email addresses.
Frequent Mistakes When Working With Contacts in Xiaomi and How to Avoid Them
Even experienced users sometimes encounter problems with managing contacts, and here are the most common mistakes and solutions:
- ๐ Duplicate contacts: Reason: sync simultaneously with Google and Mi Cloud, or import the same.vcf file multiple times Solution: Use the Simpler Merge app to combine duplicates or manually delete duplicate contacts in Google Contacts.
- ๐ฑ Contacts are not displayed in the application: Reason: database failure or disabled synchronization. Solution: Go to Settings โ Annexes โ Application management โ Contacts and clear cache. If it doesn't work, delete the Contacts app updates.
- ๐ Cannot edit contacts: Reason: Contacts saved SIM-card (read-only) or linked to a corporate account (e.g. Exchange) Solution: copy your contacts to your Google account or device (Local Contacts).
- ๐ Contacts are missing after update MIUI: Reason: Application settings reset Contacts or database version conflict Solution: Check folder MIUI/Backup/AllBackup If you have an automatic backup or restore from Google Contacts.
If none of these methods helped, try resetting the Contacts app settings:
- Go to Settings โ Applications โ Application Management.
- Find Contacts and press Warehouse.
- Choose Clear Data and Clear Cache.
- Reboot your phone. Contacts should be restored from synchronized accounts.