Introduction: Why it is important to know where contacts are stored
Losing contacts on a smartphone is one of the most frustrating situations for a user, especially if you have hundreds of important numbers dialed over the years. Xiaomi offers several ways to store contacts, and each has its own nuances. Where exactly your numbers are stored depends on how you added them: through your Google account, Mi Account, manually to your phoneβs memory or on your phone. SIM-map.
If you've never set up sync, there's a risk that all contacts are stored locally, which means that if you reset your phone, break it, or steal it, you'll lose them. In this article, we'll look at how to check the storage location, how to transfer contacts to a secure cloud, and what to do if they're gone. And we'll also uncover the hidden path to the contact database file in MIUI, which can be copied manually for backup.
1. Main locations for keeping contacts in Xiaomi
Xiaomi smartphones (including Redmi, POCO and Black Shark) support four main types of contact storage.
- π± Local phone memory β contacts are stored in the database contacts2.db It's only available on this device, it's not synchronized.
- π SIM-card β limited number of records (usually up to 250), supported only name and number, no photos, emails or additional fields.
- βοΈ Google Account β synced to the cloud, available on all authorization devices, supports complete contact data (including photos and notes).
- πΆ Mi Account (Xiaomi Cloud) is an alternative cloud storage from Xiaomi, which works even without Google services, but less universally.
To find out where your contacts are stored, open the Contacts app, click on the three dots in the top right corner, and select Contact Management β Import/Export. This will show a list of all sources with the number of records in each.
β οΈ Warning: If you see that all contacts are stored only in the phone memory, export them to the cloud immediately.
2. How to check where a particular contact is stored
Not all contacts are stored in one place, for example, some may be tied to a SIM-map, and others to Google account to find the source for a particular number:
- Open the Contacts app.
- Find the right contact and click on it.
- At the top of the screen will appear the source icon: π± β localism; π β SIM-map; πΆ β Mi Account; βοΈ β Google.
If the icon is not there, the contact is stored in the phone's memory, which is the most unreliable option, since this data is not automatically backed up.
3. where the contact database in MIUI is physically stored
For power users: All contacts in Xiaomi are stored in the database file contacts2.db, which is located along the path:
/data/data/com.android.providers.contacts/databases/contacts2.dbThis file contains all local contacts, including those synced to Google or Mi Account (but not the cloud copies themselves). /data/data/ is only available with root rights or through ADB.
| Type of contact | Storage path | Do root rights need to be accessed? |
|---|---|---|
| Local (in the memory of the phone) | /data/data/com.android.providers.contacts/databases/contacts2.db | Yes. |
| SIM-map | /data/data/com.android.providers.telephony/databases/ | Yes. |
| Google (synchronized) | Google Cloud (not locally) | No. |
| Mi Account | Xiaomi Cloud (not locally) | No. |
If you need to manually copy the contact database (for example, before your phone firmware), use ADB pull:
adb pull /data/data/com.android.providers.contacts/databases/contacts2.dbβ οΈ Note: Do not edit the file contacts2.db manually without backup.Database damage can cause all contacts on the device to be lost.
π‘
If you donβt have root rights but need to save contacts, use the standard export to the VCF file via the Contact Management β Export menu.
4 How to transfer contacts from the memory of the phone to the cloud
If your contacts are only stored in Xiaomi memory, they need to be transferred to a reliable cloud storage, the most popular options are Google Contacts and Xiaomi Cloud.
Method 1: Sync with Google Account
- Open Settings β Accounts and Sync β Google.
- Select your account (or add a new one).
- Activate the Contact Switch.
- Go back to Contacts β Manage β Import/Export and select Export in Google.
Method 2: Synchronize with Mi Account
- Go to Settings. β Mi Account and log in.
- Enable contact synchronization in your account settings.
- In the Contacts app, select Management β Sync with Mi Cloud.
Once synchronized, all contacts will be available on contacts.google.com (for Google) or on the Mi Cloud web version.
Check your internet connection|Sign in to Google or Mi Account|Make a backup copy of local contacts|Make sure there is enough space on your account.-->
5 How to Recover Remote Contacts
If your contacts are gone, don't panic -- you can restore them if they've been synced to the cloud.
Recovery from Google Contacts
- Go to contacts.google.com.
- In the left menu, select Cancel Changes.
- Specify the time range (up to 30 days ago) and confirm the recovery.
Recovery from Mi Cloud
- Open i.mi.com and log in.
- Go to the Contact section β Basket.
- Select the necessary contacts and click Restore.
If contacts are not synchronized, try using data recovery software (such as Dr.Fone or Tenorshare UltData), but the chances of success depend on whether the data was overwritten after deletion.
What if your contacts are lost after the MIUI update?
6. Manual export and import of contacts (VCF-file)
The most universal way to back up is to export contacts to a.vcf (vCard) file, which can then be imported to any device, including an iPhone or computer.
Exporting contacts to file
- Open Contacts β Management β Import / Export.
- Select Export to file.
- Specify which contacts to export (e.g., from your phoneβs memory only).
- Click Export and save the file to a convenient location (e.g., Google Drive or Google Drive). SD-map).
Import contacts from the file
- Copy the.vcf file to your phone (for example, via Telegram or Explorer).
- Open Contacts β Management β Import / Export β Import from the file.
- Select a file and confirm the import.
If the problem is not solved, try resetting the Contacts app settings (Settings β Apps β Contacts β Storage β Reset) This will not delete the contacts themselves, but will return the standard display settings.