Xiaomi's MIUI-based smartphones hide a lot of system files from users, from backups to application logs, to protect data and prevent the accidental deletion of critical items. However, sometimes access to such files is necessary to restore deleted data, manually configure the system or diagnose problems. Where exactly does MIUI hide these files, and how do they be safely found?
Many users mistakenly believe that hidden files are only those marked at the beginning of a name (as in Linux).In fact, Xiaomi has a more complex hiding mechanism: some files are hidden in protected memory areas, others are masked through the Explorer settings, and some are not available at all without root rights. In this article, we will examine all possible locations โ from the obvious to the most disguised โ and how to display them without risk to the system.
It is important to understand that not all hidden files can (and should) be made visible. Some of them are protected at the Android kernel level and serve for the internal operation of MIUI. Their modification or deletion can lead to a device blink or firmware failures.
1. Standard Hidden Folders in MIUI: Where to Look for Them
Let's start with the most accessible locations, which you can see without additional tools. MIUI has some standard folders that are hidden by default, but accessible through the built-in Explorer (Files app).
To display them:
- Open the Files app (the folder icon on the desktop).
- Slip along three horizontal lines in the upper left corner.
- Select Settings โ Show hidden files.
Then, in the root directory of internal memory (/storage/emulated/0/), folders with a dot at the beginning of the name will appear.
- ๐.backup โ backups of applications and system data created through Settings โ My device. โ Backup.
- ๐.Data โ Temporary files of some applications (for example, Mi Fit or Mi Home).
- ๐.thumbnails โ thumbnails of images and videos cached by the system to speed up the display in the gallery.
- ๐.miui โ shell configuration files, including theme, font and animation settings.
Note that the.miui folder contains critical files for the interface to work, and deleting or modifying files inside it can cause the GUI to crash and reset.
2. System partitions: what is hidden behind /data and /system
Most of Xiaomiโs truly hidden files are in /data and /system partitions, which are not available by default even through Explorer.
- ๐ Logs of the system (/data/log/) โ error logs, memory dumps and crash reports.
- ๐ Application settings (/data/data/) โ This is where the data of each installed application is stored (for example, WhatsApp cache or Telegram databases).
- ๐ The core MIUI (/system/framework/) โ Files responsible for the operation of the shell.
- ๐ Magisk modules (/data/adb/modules/) โ If you have Magisk installed for root rights.
These sections can only be accessed by using ADB (Android Debug Bridge) or after obtaining root permissions, for example, to view /data/log/ content, you can use the command:
adb shell ls /data/log/Be careful, though: changes to these folders can disrupt the system, such as deleting files from /data/dalvik-cache/ will cause all applications to start optimizing again the next time they run, which will take a lot of time and resources.
๐ก
If you need to get system logs to diagnose a problem, use the built-in crash reports app (Settings โ Phone โ Failure Reports) that automatically collects the data you want without manual search.
3. MIUI backups: where are stored and how to recover
Xiaomi automatically backs up some of the data, but not all users know where it is.
| Type of backup | The path to files | How to repair |
|---|---|---|
| Local backup (via Settings โ My Device โ Backup) | /MIUI/backup/AllBackup/ | Through the same backup menu |
| Cloud Backup (Mi Cloud) | Stored on Xiaomi servers | Sign in to Mi โ Settings โ Xiaomi Account โ Mi Cloud โ Restoration |
| Backup copies of SMS and calls | /MIUI/backup/AllBackup/SmsBackup/ | Use the Messages app โ Settings โ Backup |
| Application data (via Titanum Backup or analogues) | /sdcard/TitaniumBackup/ or /storage/emulated/0/TitaniumBackup///// | Only with root rights. |
Local MIUI backups are stored encrypted, and to recover them, you need to use the same version of MIUI they were created on, for example, a backup with MIUI 14 may not be restored to MIUI 15 due to changes in the data structure.
If you use Mi Cloud, remember that a free account only provides 5GB of space. If you exceed the limit, old backups are automatically deleted. To avoid this, you can manually download copies to your PC through the Mi Cloud web version (https://i.mi.com/).
How to Download Backup from Mi Cloud on PC?
4. Hidden application files: where the data of messengers and games is stored
Many apps create their own hidden folders to store cache, settings, or downloaded files.
- ๐ฌ WhatsApp: /sdcard/WhatsApp/Databases/ โ This is where the encrypted message databases are stored (msgstore.db.crypt14). To restore you need a key file from /data/data/com.whatsapp/files/ (root-only).
- ๐ท Instagram: /sdcard/Android/data/com.instagram.android/cache/ โ cache of stories, photos and videos.
- ๐ฎ Genshin Impact and other MiHoYo games): /sdcard/Android/obb/com.miHoYo.GenshinImpact/ โ cache files and additional resources.
- ๐ต Spotify: /sdcard/Android/data/com.spotify.music/files/ โ Offline playlists (in encrypted form).
To access these folders, you sometimes need to not only enable the display of hidden files, but also allow access to the storage for a particular application, for example, to view the Instagram cache through Explorer:
- Open Settings โ Applications โ Application Management โ Instagram.
- Select Permissions โ Warehouse.
- Activate the option to Allow access to files.
Some apps (e.g. Telegram) allow you to export data directly from the interface. Go to Settings โ Additional โ Data Export on Telegram. The file will be saved to /sdcard/Telegram/Telegram Export/.
Create a backup of data through Mi Cloud
Check the free space on the device (at least 1 GB)
Make sure the battery is more than 50% charged
Disable automatic update of applications during operation-->
5. How to enable the display of hidden files through ADB
If the built-in Explorer settings donโt help, you can force the display of hidden files through ADB. This method works even on locked devices (without root).
Instructions:
- Install ADB and Fastboot Tools on PC.
- Turn on USB Debugging on your smartphone: Settings โ About Phone โ MIUI version (tap 7 times to activate Developer Mode), then go back to Settings โ Additional โ Developers โ Debugging on USB.
- Connect your phone to your PC and execute the command: adb shell settings put global hidden_api_policy 1
- Reset the device.
Then the hidden files will be visible in any Explorer. To get it back, do this:
adb shell settings put global hidden_api_policy 0This method does not allow access to system partitions (/data, /system), but allows you to see hidden folders in internal and external memory.
๐ก
Team team. hidden_api_policy temporarily unlocks access to hidden API Android, which can be used not only to display files, but also to diagnose the operation of applications.
6. Dangerous areas: which hidden files can not be touched
Not all hidden files are harmless, some of them are critical to the system, and changing them can cause the device to fail completely.
- โ ๏ธ /data/system/ โ contains user profile settings, Wi-Fi passwords, account data.
- โ ๏ธ /system/bin/ and /system/xbin/ โ Binary files responsible for the operation of the kernel.
- โ ๏ธ /efs/ โ section IMEI, The serial numbers and calibration data of the modules (Wi-Fi, Bluetooth, camera) are damaged, and this partition is lost. IMEI!
- โ ๏ธ /dev/ โ Virtual files of devices (not real files, but are used to interact with hardware).
โ ๏ธ Note: If you accidentally delete files from the /efs/, restore IMEI It can only be done through specialized service utilities (for example, QCN Rebuilder) or by contacting a service center. Self-fixing damage often results in total network loss.
It is also dangerous to edit files in:
- ๐ด /system/build.prop โ It contains the firmware assembly parameters. Wrong edits will lead to bootloop).
- ๐ด /data/property/ โ Temporary properties of the system affecting the operation of sensors and modules.
If you still need to change system files, use Magisk or TWRP to back up the /system partition before making changes.
7. Alternative ways to access hidden files
In addition to the standard methods, there are several alternative ways to work with hidden data on Xiaomi:
- ๐ Root Explorer - Root Explorer - allows you to view and edit system files. FX File Explorer โ Supports access /data and /system If you have root, MiXplorer has built-in FTP-remote-access server.
- ๐ฅ๏ธ Connection to FTP/SSH: Use the Termux app to launch FTP-servers: pkg install python pip install pyftpdlib python -m pyftpdlib -p 2221 -d /sdcard/ Then connect through any FTP-Customer (e.g. FileZilla) at the address ftp://IP_your phone:2221.
- ๐ ADB over Wi-Fi: Connect to the USB and do it: adb tcpip 5555 adb connect IP_device:5555 You can then work with files without cable.
For advanced users, it is possible to mount /data on a PC via ADB and SSHFS. This allows you to work with files as a local folder.
adb forward tcp:2222 tcp:22
sshfs -p 2222 localhost:/data ~/xiaomi_dataAfter that, folder. ~/xiaomi_data The PC will display the contents /data phone-on.
โ ๏ธ Note: When connecting via Wi-Fi or via FTP Ensure your network is secure: Transferring data on open networks (such as a cafe or airport) can lead to leakage of personal information, including passwords and authorization tokens.