Where Xiaomi Smartphones Store Memory: A Complete Map of Folders and Hidden Files

Why itโ€™s important to know the structure of Xiaomiโ€™s storage

The internal memory of Xiaomi, Redmi and POCO smartphones is organized according to unique rules that differ from โ€œpureโ€ Android. The manufacturer modifies the standard file system through the MIUI shell, adding hidden folders for system needs, backups and app cache. Without understanding this structure, you risk removing critical data when cleaning up memory or not finding saved files when you need them.

For example, photos from messengers by default are not saved in the DCIM/Camera, Android/data/com.whatsapp/media โ€” This article will take a look at all the key folders in Xiaomi's storage, including hidden directories that are not displayed in the standard file manager. MIUI 14 and MIUI 15, and hybrid storage models (e.g. Redmi Note) 12 Pro+ memory-expandable).

Basic Structure of Storage: What the User Sees

When you connect a Xiaomi smartphone to a computer or open the built-in file manager (Files), you will see a standard set of folders, but many of them are just the tip of the iceberg.

  • ๐Ÿ“ DCIM โ€” Photos and video from the camera (including Camera folders, Screenshots, MIUI for screenshots with system elements).
  • ๐ŸŽต Music โ€“ audio files recognized by the player by default (including ringtones in Ringtones).
  • ๐Ÿ“„ Documents โ€“ files downloaded through a browser or saved from office applications.
  • ๐Ÿ“ฅ Download โ€“ everything you downloaded from the Internet (including: APK-files if installation from unknown sources is permitted).
  • ๐Ÿค– Android โ€“ system folder with application data (most subfolders are hidden without root).

Important: folder MIUI The root of the storage contains the logs of the system (debug_log), Update files (ota) and backups. Deleting these files may cause crashes on the next update MIUI.

๐Ÿ“Š What Xiaomi model do you use?
Redmi Note 12/13
POCO X5/X6
Xiaomi 13/14
Redmi 10/11
Another model

Hidden folders and system data: what can not be deleted

About 30-40% of Xiaomiโ€™s internal memory is occupied by hidden files that are not displayed in standard Explorer, which can only be seen through ADB, root Explorer (such as Root Explorer), or special applications like FX File Explorer with superuser mode enabled.

folderWayAppointmentRisk of removal
cust/custFiles customization firmware (wallpaper, sounds, fonts)Resetting themes to the factory
MIUI/MIUI/extraAdditional system modules (e.g. GameTurbo)Failure to play mode or gestures
lost+found/lost+foundRecovered files after file system failuresData loss in the next crash
metadata/metadataEncryption Metadata (if enabled)Inability to decrypt user data

It is especially dangerous to interfere with the /data folder, where:

  • ๐Ÿ”‘ Encryption keys (/data/misc/keystore) โ€” When removing the smartphone will require reset to factory.
  • ๐Ÿ“ฑ Application data (/data/data) โ€” here lie the save of games, the cache of messengers and program settings.
  • ๐Ÿ”„ Update files (/data/ota_package) โ€” Removal will interrupt the installation process.
What happens if you delete /data/local/tmp?
This folder is used by the system for temporary files when installing APK via ADB or recovering from a backup, and will result in errors such as "Can't install app" when trying to install applications manually, and can only be restored by restarting or resetting access rights through adb shell chmod 777 /data/local/tmp.

Where are the files of specific applications stored

Each annex in MIUI creates his folder in /Android/data/[package_name] or /Android/obb/[package_name]. Here are examples of popular programs:

  • ๐Ÿ“ธ Instagram: /Android/data/com.instagram.android/cache (cache), /Android/media/com.instagram.android (photo-saved).
  • ๐Ÿ’ฌ WhatsApp: /Android/media/com.whatsapp/WhatsApp/Media (media), /Android/data/com.whatsapp/files (backup).
  • ๐ŸŽฎ Genshin Impact: /Android/obb/com.mihoyo.GenshinImpact (gamefiles, ~15 GB).
  • ๐Ÿ“บ YouTube: /Android/data/com.google.android.youtube/cache (offline video).

For instant messengers (Telegram, Viber), the path to media files can be changed in the application settings. For example, in Telegram go to Settings โ†’ Data and memory โ†’ Download folder and select Internal Memory/Telegram or SD-map.

adb shell pm path com.package.name

Replace com.package.name with a program ID (e.g. com.whatsapp for WhatsApp).-->

How to find and clean the cache without harming the system

Cash in MIUI is divided into three types:

1. Dalvik cache (/data/dalvik-cache) โ€“ optimized files to speed up the launch of applications.

2. Application cache (/Android/data/*/cache) โ€“ temporary program files.

3. System cache (/cache) - data for updates and recovery.

Only the app cache can be cleaned safely.

  1. Open Settings โ†’ Applications โ†’ Application Management.
  2. Select a program (such as Chrome).
  3. Press Warehouse. โ†’ Clear the cache.

Select the application in "Settings"

Press "Storage" โ†’ "Clear the cache"

Do not use the โ€œClear Dataโ€ option (delete accounts)

Reboot the smartphone after cleaning 5+ applications-->

For deep cleaning (for example, before selling your phone), use the recovery mode:

  1. Turn off your smartphone.
  2. Press Power + Volume up until the Mi logo appears.
  3. Select Wipe & Reset โ†’ Wipe Cache (not to be confused with Wipe Data!).

๐Ÿ’ก

Cleaning the cache through Recovery only removes system debris and does not affect user data.

Work with SD-map and hybrid storage

Xiaomi models with memory card support (for example, Redmi Note 12 5G or POCO X5 Pro) allow you to expand storage, but with limitations:

The card is formatted as a portable (FAT32/exFAT) or internal (Adoptable Storage) storage.

When you choose Internal Storage, the card is encrypted and tied to the device - it will not be read on another smartphone.

To move applications to SD-map:

  1. Insert the card and select Settings โ†’ Storage โ†’ SD card.
  2. Press Three Dots โ†’ Storage Settings โ†’ Format as Internal.
  3. After formatting, go to Settings โ†’ Applications, select the program and click Storage โ†’ Change โ†’ SD Card.

โš ๏ธ Note: Not all applications support portability SD. System Programs (Google Play Services, MIUI Launcher) and anti-cheat games (PUBG Mobile, Call of Duty remain in internal memory.

How to Recover Deleted Files in Xiaomi

If you accidentally delete photos or documents, use the Built-in Recycle Bin Utility (Files โ†’ Recycle Bin), which stores files for 30 days before being permanently deleted.

  1. Open the Files โ†’ Recycle Bin.
  2. Select the files you need and click Restore.
  3. Specify a folder to save (for example, DCIM/Camera).

If the basket is empty, try third-party tools:

DiskDigger (Scans internal memory at a low level)

Recuva (requires root or PC connection)

MIUI Hidden Settings (allows you to enable the display of hidden files)

โš ๏ธ Note: When recovering files, DO NOT save them to the same partition of memory from which they were deleted! SD-Map or cloud to avoid overwriting data.

For models with encrypted storage (starting with Xiaomi 12 on MIUI 13+), recovery is possible only if you have a backup in the Mi Cloud or through TWRP with decryption.

FAQ: Frequent questions about Xiaomi storage

Why does the internal memory fill up on its own?
Main causes: ๐Ÿ—‘๏ธ App cache (especially Facebook, TikTok, Google Play Services). ๐Ÿ“ Logs of system in /MIUI/debug_log (can occupy up 5 GB). ๐Ÿ”„ Update files in /data/ota_package (Solution: Clear the cache through Settings โ†’ Warehouse โ†’ Clean or delete logs via Security App โ†’ Cleanup).
Can I transfer WhatsApp to WhatsApp? SD-map?
Officially, no. WhatsApp blocks porting to external media due to database encryption. A workaround: Backup chats to Settings โ†’ Chat โ†’ Backup. Connect your smartphone to your PC and manually copy the /Android/media/com.whatsapp folder to SD. Install WhatsApp again and restore chats from the backup (files must remain in internal memory!). Media files (photo, video) can be transferred manually, but they will no longer appear in the WhatsApp gallery.
Where are screenshots and screen recordings stored?
By default: ๐Ÿ“ธ Screenshots: /Pictures/Screenshots or /DCIM/Screenshots (depending on the version MIUI). ๐ŸŽฅ Screen recordings: /Movies/Recordings or /DCIM/Recordings. V MIUI 15 The path can be changed: Settings โ†’ Additionally. โ†’ Screen recording โ†’ Conservation folder.
How do I know which files take up the most space?
Use the built-in analyzer: Open Settings โ†’ Storage. Click on a diagram (like Apps or Media Files). The system will show you a list of the heaviest files and folders. For detailed analysis, install Files by Google or Storage Analyzer from Play Market.
What to do if your smartphone doesnโ€™t see SD-map?
Check it out: ๐Ÿ”Œ Physical connection (transfer the map). ๐Ÿ› ๏ธ Map format: Xiaomi supports FAT32, exFAT and NTFS (read-only). ๐Ÿ”ง Settings: Settings โ†’ Warehouse โ†’ Map. SD โ†’ Configure (select Portable Storage or Internal) If the card is damaged, format it on your PC (save the data pre!).