Have you ever encountered a situation where Xiaomi suddenly runs out of space when you haven't downloaded anything? Or searched for an important file but it disappeared from the folder? Most likely, the problem lies in hidden files and folders that the system or applications create in the background. In this article, we'll look at exactly where such files are stored on Redmi, POCO and Black Shark devices, how to safely open them and why some of them are better not to touch.
Hidden files on Xiaomi fall into two categories: system (created by MIUI or Android) and user (hidden by apps or you manually). The former often take up gigabytes of memory, but deleting them without understanding the consequences is dangerous - it can lead to malfunctions in the smartphone. The latter, on the contrary, is sometimes useful to find: for example, backups of.nomedia or messenger cache. Next, you will learn how to access such files through standard and advanced methods, including ADB and TWRP.
1.Why files are hidden on Xiaomi
Xiaomiβs Android shell, MIUI, is actively using hidden files to optimize the systemβs performance, and these are the main reasons for their appearance:
- π Protecting system data: Files with.sys,.prop or folder extension /data/dalvik-cache hidden so that the user does not accidentally remove critical components.
- π App cache: Messengers (Telegram, WhatsApp) and social networks (TikTok, Instagram) hide media files in folders such as.thumbnails or.cache.
- π Backup copies: MIUI Creates automatic backups in /MIUI/backup/AllBackup, But they're not visible without the inclusion of hidden files.
- π«.nomedia files: These empty files signal Android that the folder does not need to be scanned on media (photo/video) and are often added to folders with documents or downloads.
Interestingly, on the POCO F5 and Redmi Note 12 with MIUI 14+, hidden files can take up to 10-15 GB of storage if you donβt clean the cache for years, while the standard Explorer does not show them β you need to use special settings or third-party applications.
β οΈ Attention: Delete files from folders /data/app or /system without root rights will lead to a complete loss of functionality of the smartphone. Even with root access, it is recommended to create a backup through the TWRP.
2. Method 1: Enabling the display of hidden files in a standard MIUI Explorer
The easiest method is to use the File Manager built-in, but in the latest versions of MIUI (13-14), this option is hidden deeper than before.
- Open the Explorer app (the folder icon on the desktop).
- Slip on three dots in the upper right corner β select βSettingsβ.
- Scroll down to the "Advanced" section and activate the "Show Hidden Files" switch.
- Return to the root directory (/storage/emulated/0/) and update the file list with the swipe down.
You will now see folders and files whose names start with a dot (e.g.,.config or.config.android_secure). Please note: some system folders (/data, /system) It will not be available without root rights.
Check the MIUI version (in Settings β About the phone)
Update "Conductor" via Google Play
Reboot your smartphone after turning on the option
Try an alternative conductor (e.g. Solid Explorer)
-->
On Black Shark 5 and other Xiaomi gaming smartphones, an additional step may be required: switching to Developer Mode (7 taps by build number in About Phone) and enabling the βDebug by USBβ option for full access.
Method 2: Using ADB to access hidden folders
If you need to access system hidden files (like /data/data) but no root permission, ADB (Android Debug Bridge) will help.This method works on all Xiaomi devices, including Redmi 10 and POCO X4 Pro, but requires a PC connection.
Be prepared first:
- π» Install. ADB Tools on the computer.
- π± Turn on "Debugging by" USB" on a smartphone (Settings) β The phone. β Assembly number (7 taps) β For developers β Debugging by USB).
- π Connect your phone to your PC via the original cable.
Now run commands in the terminal (or cmd):
adb devices(Your device should show up. If not, check the drivers.)
adb shell
ls -la /storage/emulated/0/(This command will show all files, including hidden ones, in the main memory.)
To copy the hidden file to the PC:
adb pull /storage/emulated/0/.hidden_file C:\Downloads\π‘
If ADB canβt see the device, try disabling and enabling USB debugging on your phone again, and using a USB 2.0 port (not 3.0) on your PC.
β οΈ Note: Rm or delete commands via ADB Irreversibly delete files, even if they are critical to the MIUI. Always use ls first to view the contents of the folder.
Method 3: Root access and Total Commander
Root access is required for full control of hidden files, and can be obtained on Xiaomi devices through unlocking the bootloader and installing Magisk, and then you can use Total Commander or Root Explorer to view /data, /system and other protected partitions.
Instructions:
- Unlock the bootloader through the Mi Unlock Tool (requires an account binding Mi).
- Install custom TWRP receivers for your model (for example, this version will suit the Redmi Note 11).
- Sweep Magisk through TWRP to obtain root rights.
- Install Total Commander with the Root Access plugin.
Now in Total Commander:
- Go to / (root directory).
- Slip on three points β βSettingsβ β βShow hidden filesβ.
- Select a folder (e.g. /data/data/com.android.providers.media) and copy the files you want.
| folder | Contents | Can I remove it? |
|---|---|---|
| /data/dalvik-cache | Cache of optimized applications | β No (will cause app crashes) |
| /data/media/0/.thumbnails | Photo and video miniatures | β Yeah (frees up space) |
| /data/data/com.xiaomi.market | Cash and Mi App Store settings | β οΈ Partially (can be cleared of cache) |
| /system/priv-app | MIUI System Applications | β No (risk of brik") |
What happens if you delete /data/dalvik-cache?
5. Method 4: MIUI Hidden Settings (hidden menu)
Few people know, but MIUI has a secret settings menu where you can turn on hidden files even without root, which works on the POCO X3 Pro, Redmi K50 and other models with MIUI 12-14.
How to open it:
- Open the phone application (call).
- Enter the code: ##4636###.
- In the menu that appears, select "Settings" MIUI" (MIUI Settings).
- Scroll to the Explorer section and activate Show Hidden Files and Folders.
This method also allows you to display protected system folders (for example, /miad is an advertising module MIUI), but be careful: changing files here can disrupt the work of Xiaomiβs branded services.
Standard MIUI conductor
ADB via PC
Root + Total Commander
MIUI Hidden Settings (Secret Code)
Another option
-->
Method 5: Recover deleted hidden files
If you accidentally delete an important hidden file (such as.nomedia from a photo folder), you can try to restore it, and applications like DiskDigger or Recuva (via PC) will do this, but the odds depend on how long it has been since you deleted it and whether the smartphone memory was used.
Algorithm of action:
- Stop using your phone immediately (do not install new apps, do not take photos).
- Connect your smartphone to your PC and start Recuva in deep scan mode.
- Select /storage/emulated/0/ and specify file types (e.g..* for hidden files).
- Save the recovered files to your PC, not back to your phone.
For Xiaomi with root access, you can use TWRP:
- Load into the Recovery (Off. β Hold. Power + Volume +).
- Select "Mount" β tick /data.
- Connect your phone to your PC and use ADB or Total Commander to search for deleted files.
β οΈ Note: Recovery of files from /data Root is almost impossible β MIUI It encrypts this partition by default. TWRP, odds of zero.
7. which hidden files can be safely deleted
Not all hidden files are equally useful, but here is a list of things that can be deleted without risk to the system (but with reservations):
- ποΈ.thumbnails folder: Photo/video miniatures, which will free up to 1-2 GB, but when the gallery opens next, they will be recreated.
- π.cache folders in apps: Instagram cache, Facebook or TikTok. Cleanup won't hurt, but the data will be re-downloaded.
- π.nomedia files: If they interfere with the display of media in the gallery, they can be deleted. They do not contain data, only instructions for Android.
- π folder /MIUI/backup/AllBackup/old: Old backups, only delete if you're sure they're not needed.
What can't be touched:
- π« /data/dalvik-cache, /data/system β cause to malfunction MIUI.
- π« /system β Any changes here require root and can "brick" the phone.
- π« Files without extension in /data/data/ β It's an application database.
π‘
Before removing any hidden file, back up via TWRP or ADB. Even the seemingly harmless.nomedia can be part of the applicationβs work.
8. Frequent mistakes and how to avoid them
Working with hidden files on Xiaomi is fraught with errors, and here are the most common ways to prevent them:
- π Interruption ADB-session: If you copy files via adb pull, don't turn off the cable until the process is complete.Use the adb wait-for-device command to automatically reconnect.
- π Loss of root access: After update MIUI through OTA root often flies. Before the update, create a backup in the TWRP And save it on PC.
- π± Deletion of files from /sdcard via PC: When connected to USB Windows may not show hidden files. Always use adb shell ls. -la check out.
- π Ignoring backups: Before any manipulations /data Do backup with an adb backup or TWRP.
On Xiaomi 13 and other flagships with HyperOS (replacement of MIUI), access to hidden files may be different. For example, HyperOS does not have a classic Explorer - instead it uses Google Files, where the hidden file settings are hidden in Settings β File Settings.