The hidden files and folders on Xiaomi smartphones are not just a technical artifact, but an ecosystem of system data that the manufacturer hides from the user βfor his own benefit.β It stores application log files, a cache of MIUI updates, backups of settings and even traces of deleted photos. But what if you urgently need to find a lost document, restore a deleted video or just clean the system of garbage?
Unlike Android in its pure form, where it is enough to enable the display of hidden files in any file manager, Xiaomi adds additional layers of protection. This is due to the MIUI security policy, which restricts access to system partitions even for advanced users. In this article, we will discuss legal ways to access hidden data, from simple settings to advanced methods using ADB and third-party utilities, and also explain which files can be safely deleted and which cannot be touched so as not to turn the phone into a brick.
Why does Xiaomi hide files and can they be deleted?
The manufacturer masks system folders for three key reasons:
- π Security: Preventing the accidental deletion of critical files that could bring your device down.
- π± Stability MIUI: hidden folders with shell settings, themes and update cache, the change of which leads to failures.
- ποΈ Protection from the user: many remove the "garbage" without understanding, and then complain of lags and errors.
But not all hidden files are equally important, like the.thumbnails folder that stores thumbnails of images and can weigh several gigabytes β you can clean it up β but folders like /data/system or /efs contain unique device identifiers (IMEIs, serial numbers) that can be damaged and cause your network to be lost or your phone to be completely inoperable.
β οΈ Warning: Even if you see a folder called com.android.providers.media, donβt be in a hurry to delete it. Itβs responsible for media indexing, and cleaning it will cause all photos and music to disappear from the gallery (though the files will physically remain in place).
| Folder/file | Can I remove it? | Effects of removal |
|---|---|---|
| .thumbnails | β Yes. | The miniatures in the gallery will disappear (restore with time) |
| DCIM/.thumbs | β Yes. | Cached previews of photos will be deleted |
| /data/app | β No. | Breakdown of installed applications |
| MIUI/backup | β οΈ Partially. | Remove backups of settings (can be restored via Mi Cloud) |
| lost.dir | β Yes. | Fragments of corrupted files (usually garbage) |
Method 1: Enabling the display of hidden files in a standard conductor
The simplest method that works on all Xiaomi, Redmi and POCO smartphones with MIUI 12 and later is that you donβt need root rights or third-party apps, but access will be limited to custom folders (e.g. DCIM, Downloads).
Instructions:
- Open the Files app (standard MIUI conductor).
- Slip on three dots in the upper right corner and select Settings.
- Scroll down and activate the "Show Hidden Files" switch.
- Return to the root directory (/storage/emulated/0/) and the folders with a dot at the beginning of the name (e.g..config) will be visible.
Limitations of the method:
- π« Does not show system partitions (/data, /system).
- π« It doesnβt work for root-rights folders.
- π After updating MIUI tuning may reset.
π‘
If hidden files donβt show up even after you turn on the option, try restarting Explorer through your application settings (Settings β Applications β Application Management β Files β Stop).
Method 2: Using third-party file managers (without root)
The standard MIUI Explorer is severely stripped down, so it's better to use alternative applications to access hidden folders.
- π Solid Explorer - Supports FTP, Cloud storage and shows hidden files by default.
- π FX File Explorer β has a built-in root conductor (if rights are obtained).
- π οΈ Root Browser β specialized for working with system folders (requires root).
Step-by-step instructions for Solid Explorer:
- Install the app from Google Play.
- At the first start, give access to the storage.
- Go to Settings β Display and turn on Show Hidden Files.
- Go back to the root directory and open the Android folder, and youβll see hidden directories like data and obb.
β οΈ Note: Even with Solid Explorer, you wonβt be able to view the contents of folders. /data/data (Attempt to access them will result in a "Permission denied" error.
Method 3: Access via ADB (without root but with PC)
If you need to access hidden system files but no root rights, you can use Android Debug Bridge (ADB).This method requires connecting the phone to a computer, but allows you to view and copy files that are not available through Explorer.
What you need:
- π₯οΈ Computer with Windows/macOS/Linux.
- π Cable USB Type-C (original to avoid connection issues).
- π¦ Installed drivers ADB Fastboot (you can download from the official Android website).
Instructions:
1. Turn on the developer mode on the phone:
- Go to Settings β About Phone β MIUI version and tap 7 times on the build number.
- Return to Settings β Additional β For developers and enable "Debugging by USB".
2. Connect the phone to the PC and confirm the debugging permission.
3. Open the command prompt (cmd on Windows or Terminal on macOS/Linux) and type:
Adb devices β a line with the serial number of the device should appear.
4. Go to the root catalog:
adb shell
ls -la /storage/emulated/0/ β This command will show all files, including hidden ones.
5.To copy a hidden file to a PC:
adb pull /storage/emulated/0/.folder number/file C:\path on pcAdvantages of the method:
- β It works without root rights.
- β Allows you to copy files that are not visible in the Explorer.
- β Safer than getting root (no risk of losing warranty).
βοΈ Preparation for work with ADB
Method 4: Getting root rights (for power users)
If you want full access to all hidden folders, including system partitions (/data, /system), you have to get root rights, and this method is risky: you lose the warranty, you risk locking the bootloader and getting a brick, but it opens up unlimited options for configuring the device.
Step-by-step instructions for Xiaomi:
- Unlock the bootloader: - Go to the Mi Unlock site and download the utility. - Link the Mi Account to the device in Settings β Xiaomi Account β Mi Cloud. - Connect the phone in Fastboot mode (clutch Volume Down + Power) and follow the instructions of the program.
- Install custom recovery (e.g. TWRP): - Download the TWRP version for your model from twrp.me. - Fastboot flash recovery twrp.img.
- Download Magisk from GitHub. - Reboot to TWRP and install Magisk.zip.
After receiving root:
- Install Root Explorer or FX File Explorer.
- Give them root access when requested.
- You can now view and edit any files, including /data/data (app data) and /system (system files).
β οΈ Attention: on devices with MIUI 13+ and the Snapdragon processor 8 Gen 1/2 Unlocking the bootloader can lead to hardware locking of the module 5G (The problem is known to Xiaomi 12 Pro, 13 Before unlocking, check the information in the forums. 4PDA or XDA-Developers.
What to do if the root phone stops turning on?
Method 5: Recover deleted hidden files
If you accidentally delete a hidden folder (for example,.nomedia, which caused the photos to disappear in the gallery), it can be restored.
| Programme | Type of recovery | Need root? | Cost |
|---|---|---|---|
| DiskDigger | Photos, videos, documents | β No. | Free (paid version for deep scanning) |
| Recuva (via ADB) | Any files. | β οΈ Partially. | Free of charge. |
| EaseUS MobiSaver | Messages, contacts, media | β No. | From $39.95. |
| 7-Data Recovery | Deep scanning. | β Yes. | From $69.95. |
Instructions for DiskDigger:
- Install the app from Google Play.
- Select "Full Scan" (requires root for maximum results).
- Wait until the process is completed (may take a few hours).
- Mark the files found and click "Restore".
Importantly, the less you use your phone after deleting files, the better the chances of recovery, and when you write new data, old files are overwritten.
π‘
If you need to recover hidden system files (such as MIUI settings), the only reliable way is to back up via TWRP or Mi Cloud, and programs like DiskDigger canβt recover system data without root.
Frequent Mistakes and How to Avoid Them
When working with hidden files, Xiaomi users often face typical problems:
- π "The folder is empty, although it should be filled, which means you don't have permission to view. ADB Or you get rooted.
- π« "You can't delete the file: access is denied" - the file is protected by the system. Solution: change the rights via adb shell chmod 777 /path / to / file.
- π± "After removing the hidden folder, the phone started to lag, you deleted the cache of the system application. Solution: clear the data of this application in the settings or make a reset.
- π "ADB does not see the device" - check the drivers, cable and turn on "Debugging by USB (security parameters) in the developer settings.
If you delete a critical folder (e.g. /data/dalvik-cache), the phone may stop turning on.
- Boot in Fastboot (click Volume Down + Power).
- Sweep through the original firmware via the Mi Flash Tool (select the "Clean All" option).
- If the firmware doesnβt help, try flashing through EDL (requires an authorized Xiaomi account).