Where are photos of contacts in Android Xiaomi: full analysis

Owners of Xiaomi, Redmi and Poco smartphones often face the need to find a specific file associated with the address book.This may be required for backup, recovery of accidentally deleted avatars, or simply out of curiosity about the structure of the MIUI and HyperOS file system. Understanding how the operating system manages users' media content is key to effective data management.

Android has a complex data storage hierarchy that has changed with the release of new versions of the OS. If you could find pictures at the root of internal memory, now access to them is limited by security policies. In this article, we will discuss in detail where exactly Google Contacts and the Xiaomi system shell save thumbnails and full images of your friends.

It's important to note that file location depends on the operating system version and the specific contact application. We'll look at all possible scenarios, including working with system hidden folders and cache, and this knowledge will allow you to avoid getting lost in the wilds of the file manager and quickly find the right one.

Standard System Contact Folder

In most modern Android devices, the main storage for contact images is a special directory at the root of internal memory. /contacts/ or /data/data/com.android.contacts/files/, But the last path without root rights is closed, and users usually only see the public part.

Often, users search for files in the DCIM folder, believing that all the photos are stored there, which is a common misconception: Contact avatars are not part of your photo gallery as usual, they are system files tied to the phone book database, so you need to search for them in specialized directories.

โš ๏ธ Attention: Directly deleting files from the contact system folders can cause all subscribers to lose avatars, leaving them with gray silhouettes.

If you use Xiaomiโ€™s standard Contacts app, the system can duplicate thumbnails into cache to speed up the interface. You can find these temporary files by going to /Android/data/com.miui.contacts/cache/. It stores smaller copies that load faster than the originals.

๐Ÿ’ก

Before removing any files from your contacts folder, back them up on your computer or in cloud storage to avoid losing important visual information.

Access to Android/data folder and restrictions

Since Android 11 and up, Google has implemented strict restrictions on access to the Android/data folder, which is done for security reasons so that apps canโ€™t scan data from other programs. On Xiaomi smartphones with MIUI 12.5 shell and later, you may encounter an empty window when trying to open this directory through a standard Explorer.

To get around this limitation and see where the photos actually lie, you'll need a third-party file manager, like Total Commander or Google Files, and when you first run them, they'll ask for special permission to access all the files, and once you get it, the path /Android/data/com.android.contacts/files/ will be visible.

Inside this directory, you can often find folders with names like thumbnails or images, and that's where.jpg or.png graphics files are stored, but their names are often a set of hash bags rather than contact names, which makes manually searching for a particular avatar a rather time-consuming process.

  • ๐Ÿ“‚ The standard path to data is often hidden from normal viewing.
  • ๐Ÿ”’ Access requires confirmation of special system permissions.
  • ๐Ÿ“ฑ File names are encrypted or replaced with digital codes.
  • ๐Ÿ”„ The folder structure may vary depending on the version MIUI.
๐Ÿ“Š What problems do you have when searching for files?
I can't see the Android/data folder.
Files are called numbers.
I can't copy the avatar.
It's working fine.

Differences between MIUI and pure Android

The MIUI shell makes its own adjustments to the standard Android file structure. While on pure Android (like Pixel) the paths to contact data are standardized, Xiaomi often creates additional copies or uses its own database formats, due to the deep integration of Mi Account services and cloud synchronization.

On Redmi and Poco devices with global firmware, the structure may be closer to Androidโ€™s stock, whereas on Chinese versions or regions with MIUI for Russia, the paths may differ. For example, avatars may be duplicated in /MIUI/backup/ if you have local backup enabled.

Also, itโ€™s worth considering that Google Contacts set separately can store data in their own isolated sandbox.If youโ€™ve moved from one app to another, old avatars can stay in the cache of the previous app, taking up space but not showing up in the new phone book.

Why do avatars disappear after the update?
Often when you update a system or contact application, the new version cannot read the old versionโ€™s cache due to a change in access rights or folder structure, so redraws them or shows stubs.

Search for avatars through Google Photos and the Cloud

Many users don't know that if you sync with your Google Account, your contact photos are automatically uploaded to the cloud, which is the most reliable way to store them, which is independent of the phone's file system, and can be found through the Google Contacts web interface or in the Google Photos app under Library -> Photos on your device.

Google Photos has a special album that can get images associated with contacts if the appropriate backup setting has been enabled, but most often they are stored in a hidden system album that does not appear in the main feed.

Using cloud storage has its advantages: even if you lose your phone or accidentally clear your memory, contact avatars will recover automatically when you log in, eliminating the need to manually search files deep in /data/ system directories.

Storage methodLocation.Access without RootRisk of loss
Local memory./Android/data/...Limited (Android 11+)High (on discharge)
Google AccountCloud servers.google.comFull (via browser)Minimum
Mi CloudCloud i.mi.comFull (via browser)Low.
Cash app./cache/...Difficult.Very tall.

Recovery and copying of images

If your goal is to save avatars, the easiest way to do this is by exporting contacts to VCF (vCard) format. When exporting to the settings, you can often select the option "Enable photos" in which case a file is created that contains all the data, including the images encoded inside, and this file can then be opened on a computer or other phone.

To extract individual images from system folders without superuser rights, you can use the Send feature in the Contacts app. Select a contact, click Share, and select messenger or email. The image will attach automatically, and you can save it to the gallery. This is a workaround that works on any version of MIUI.

There are also specialized apps from the Play Market, such as Contacts Backup or Super Backup, that can upload contacts with photos to a separate folder on a memory card or internal storage, which is the most convenient way to bulk up.

โš ๏ธ Note: When copying files from a folder Android/data on the memory card, make sure that the format of the card supports reading large files and has no write restrictions, otherwise the process may be interrupted.

โ˜‘๏ธ Pre-copying check

Done: 0 / 4

Display and cache problems

Sometimes users notice that photos of contacts have stopped showing even though the files are physically present in memory, often due to an overflow of the cache of the Android media scanner, the system simply stops indexing new images or can't update thumbnails in the call list.

To solve this problem, you can try to clear the cache of the Contacts and Contact Storage app. This is done through the Settings menu โ†’ Apps โ†’ All Apps โ†’ Contacts โ†’ Memory โ†’ Clear the cache. It is important not to confuse this with cleaning the data, since in the second case you will delete the phone numbers themselves if they are not synchronized.

Itโ€™s also worth checking if the phone is running a power saving mode that limits the background activity of apps, in which case MIUI can block avatars from downloading from the network or updating them from a local base to save battery life.

If the problem persists for a long time, the contact database file contacts2.db may be damaged. In this case, only a complete reset of the phone settings or deleting the Google account with subsequent re-synchronization helps, which will overwrite the local database with a fresh copy from the server.

๐Ÿ’ก

Clearing the cache of the Contacts app is a secure procedure that often resolves missing avatars without deleting the phone numbers themselves.

Frequently Asked Questions (FAQ)

Can I change the size of the contact avatar manually?
Directly resizing the file in the storage folder makes no sense, since the system will automatically create a thumbnail of the desired size the next time you update the cache, it is better to edit the original image before putting it into contact.
Where are the contact photos stored if I use them? SIM-map?
Nana SIM-The card can only be saved text data (name and number). SIM-It's a card because of its technical limitations, and it's always stored in your phone's memory or in your cloud account.
Why did all the pictures disappear after the reset?
When you reset your phoneโ€™s internal memory, itโ€™s completely cleared, and if your contacts and their photos arenโ€™t synced to Google or Mi Cloud, theyโ€™ll be lost forever.
How to find a remote contact photo?
If the photo was recently deleted, check the shopping cart in the Gallery or Google Photos app. If it was only stored in the contacts cache and the sync was turned off, it is almost impossible to restore it without specialized data recovery software.
Do photos of contacts take up a lot of memory?
One avatar takes a bit, but if you have thousands of contacts with high-resolution photos, the total cache and database can reach several gigabytes, which is worth considering on devices with low memory.