Where in Xiaomi are stored contacts: the path to the system folder and backup methods

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.db

Why 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:

  1. Open the Contacts app (an icon with a personโ€™s silhouette).
  2. Press three points (โ‹ฎ) top-right โ†’ Contact management.
  3. Select Import/Export Contacts โ†’ Export to File.
  4. Specify which contacts to export (e.g. only with the SIM-Maps or from a Google account).
  5. 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.
๐Ÿ“Š How do you usually reserve your contacts?
Through Google Account
Exporting to.vcf file
I use third-party apps.
I don't make backups.

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:

  1. 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 there are no backups, try: 1. SIM-Map: some contacts may have been saved on it (insert into another phone and export). 2. Use recovery software: Dr.Fone or EaseUS MobiSaver can scan the phone's memory for deleted data (does not always work). 3. Contact Xiaomi Support: If the contact loss occurred due to a firmware failure, they can help restore data from the IMEI (Proof of purchase required).

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/SeriesFeatures of storage of contactsRecommendations
Redmi Note 8/9/10Contacts 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/13MIUI 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/F5It uses pure Android without duplicate Xiaomi services, and only syncs through Google.Set up automatic sync with your Google Account.
Xiaomi Pad 5/6On 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:

  1. Make a full backup of your phone via TWRP or Mi PC Suite.
  2. Copy the contacts2.db file to your computer using ADB: adb pull /data/data/com.android.providers.contacts/databases/contacts2.db
  3. Open the file in SQLite Browser (e.g. DB Browser for SQLite).
  4. Only make changes to the data table (where phone numbers are stored).
  5. Return the file back to: adb push contacts2.db /data/data/com.android.providers.contacts/databases/
  6. 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+:

  1. On your old phone: Settings โ†’ Mi Account โ†’ Mi Cloud โ†’ Contacts โ†’ turn on backup.
  2. 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:

  1. On an old phone, export contacts to a.vcf file (see section above).
  2. Transfer the file to a new phone (e.g., via Bluetooth, Google Drive, or USB cable).
  3. 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:

  1. On the old phone: Contacts โ†’ Import / Export โ†’ Export on SIM.
  2. Move it. SIM-card.
  3. 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:

  1. Go to Settings โ†’ Applications โ†’ Application Management.
  2. Find Contacts and press Warehouse.
  3. Choose Clear Data and Clear Cache.
  4. Reboot your phone. Contacts should be restored from synchronized accounts.

FAQ: Answers to Frequent Questions About Contacts in Xiaomi

Can I restore remote contacts if there is no backup?
If contacts have been synced with Google, check the shopping cart in Google Contacts (stored for 30 days). For local contacts, try recovery programs like Dr.Fone or EaseUS MobiSaver, but the odds are low - MIUI immediately clears the memory after deleting.
Why are contacts duplicated when synchronized with multiple accounts?
This happens when the same contact is saved on Google, Mi Cloud, and locally on your device. To avoid duplicates: Select one primary account to store (like Google). Turn off synchronizing contacts on other accounts (Settings โ†’ Accounts โ†’ [Account] โ†’ Contact sync). Use the Simpler Merge app to combine duplicates.
How to transfer contacts from iPhone to Xiaomi?
Portability: Through iCloud: Export contacts from iCloud.com to a.vcf file and import to Xiaomi. Through Google Account: On iPhone, add a Google account and sync contacts, then log in to that account on Xiaomi. SIM-Map: Transfer the main contacts to SIM On your iPhone, then import them to Xiaomi (only for phone numbers), and the first one is that it saves all fields (email, addresses, birthdays).
Where are WhatsApp contacts stored and can they be exported?
WhatsApp contacts are not a separate database, but simply displaying contacts from a phone book. To save the WhatsApp chat list: Back up your WhatsApp chats (Settings โ†’ Chat โ†’ Backup). Export your phone contacts via.vcf (as described above). When you restore your new device, import your contacts first, then restore your WhatsApp backup. WhatsApp contacts don't store them themselves - it takes them from the system phone book.
Why didnโ€™t your contacts recover from Google?
Possible causes and solutions: ๐Ÿ”Œ No Internet connection: Make sure your phone is connected to the network (Wi-Fi or mobile data). ๐Ÿ”„ Sync is disabled: Check the settings โ†’ Accounts. โ†’ Google โ†’ Synchronization of contacts. โณ Sync delay: Sometimes recovery takes up to 24 hours. try manually updating your data in Google Contacts. ๐Ÿ“ฑ Version Conflict: If you are on the phone MIUI 13, and after the discharge was established MIUI 14, you may need to re-link your account. If the contacts never show up, try deleting your Google account and adding it back.