How to rename a folder on a Xiaomi smartphone: all the ways for MIUI 12-14

Why renaming folders to Xiaomi is different from other Android devices

Xiaomi’s MIUI-based smartphones have a unique file system that imposes restrictions on folders. Unlike pure Android, there are additional security rules related to Mi Account policy and integration with Mi Cloud storage. For example, system folders like MIUI or Android are locked for editing even with root rights, and some user directories are automatically synchronized with Xiaomi servers.

Another feature is the internal and external (if microSD is used), with folders on the memory card being renamed by different rules than in the internal storage, and since MIUI 12, the company has tightened control over the file system by adding digital signature verification for mission-critical directories, which means that even standard operations can end up with a Permission denied error, if nuance is not taken into account.

In this article, we will look at all the current ways to rename folders to Xiaomi in 2026, including bypassing the restrictions of MIUI, working through a PC and using alternative file managers.

Method 1: Rename through the standard MIUI file manager

The easiest method is to use the File Manager, which is pre-installed on all Xiaomi smartphones, which is suitable for renaming user folders in internal memory or on the user’s computer. SD-map, but does not work with system directories.

Instructions:

  • πŸ“ Open the Files app (icon with yellow folder).
  • πŸ” Go to the Device section or SD-map, depending on the location of the folder.
  • πŸ“‚ Find the right folder and make a long press on her name.
  • ✏️ In the menu that appears, select Rename.
  • πŸ”€ Enter a new name (without special characters) and click OK.

β˜‘οΈ What to check before renaming

Done: 0 / 5

If the Rename button is inactive or not, it means that the folder is protected by MIUI. In this case, try the alternative methods described below.

⚠️ Note: Do not rename the folder DCIM β€” This will cause the gallery and the camera to crash, and the system will automatically restore the original name, but temporarily the photos may become unavailable.

Method 2: Use of alternative file managers

Xiaomi’s standard File Manager has limited functionality. For advanced folder operations, we recommend installing third-party applications such as Solid Explorer, FX File Explorer or Total Commander. They allow you to bypass some of the limitations of MIUI, such as access to hidden directories.

Example from Solid Explorer:

  1. Install the app from Google Play.
  2. Open it and give access to the storage.
  3. Go to the internal memory section or SD-map.
  4. Find the folder, hold its name and select Rename.
  5. Enter a new name and confirm.
πŸ“Š What file manager do you use on Xiaomi?
Standard File Manager
Solid Explorer
FX File Explorer
Total Commander
Other

Third-party managers have the advantage of supporting root access (root) if your smartphone is unlocked, which allows you to rename even system folders, but you need to be careful.

What is Root Access (Root)?
Root is a superuser right in Android that gives you full control over system files. On Xiaomi, you can get root through unlocking the bootloader and installing custom recovery (such as TWRP), but this voids the warranty and can lead to unstable device operation if you act carelessly.

Method 3: Rename via PC (Windows/macOS/Linux)

If you can’t rename a folder on your phone, connect Xiaomi to your computer in file transfer (MTP) mode, which is especially useful for working with large directories or when you need to change several folders at the same time.

Step-by-step instructions for Windows:

  1. Connect your smartphone to your PC through USB-cable.
  2. On the phone, select File Transfer mode in the Connection Notification.
  3. On your computer, open this computer β†’ find a Xiaomi device.
  4. Go to the desired partition of memory (Internal storage or storage). SD-map).
  5. Right-click on the folder and select Rename.
  6. Enter a new name and press Enter.
Operating systemFeatures of renamingTypical errors
Windows 10/11Supports MTP without additional drivers. You can rename folders en masse (emphasis + F2).The device does not respond to a large number of files.
macOSRequires Android File Transfer installation. No mass renaming support.The application can β€œhang” when working with folders more than 1 GB.
LinuxConnect via gvfs-mtp or jmtpfs. Complete control via terminal.Hidden folders (starting from a dot) may not be displayed.

⚠️ Note: When connecting to macOS, avoid using Android File Transfer to rename folders with Chinese or Japanese characters in a name.This can lead to the encoding of names into an unreadable format.

Method 4: ADB commands to rename system folders

If you need to rename a system folder (like MIUI or Xiaomi), the standard methods won’t work, and Android Debug Bridge (ADB), a command-line debugging tool, will help. This method requires USB debugging and is only suitable for advanced users.

Instructions:

  1. Activate Developer Mode on Xiaomi: Go to Settings β†’ About Phone β†’ MIUI version and tap 7 times.
  2. Return to Settings β†’ Additional β†’ For developers and enable USB debugging.
  3. Connect the phone to the PC and confirm the trusted device.
  4. Open the command line (Windows) or terminal (macOS/Linux) and type:
adb shell


su




mv /sdcard/old name /sdcard/new name

Example: To rename the Download folder to Downloads, use:

mv /sdcard/Download/sdcard/Download/Download/Sdcard/Downloads

πŸ’‘

If the su command does not work, then your Xiaomi has no root rights, in which case, you can not rename the system folder without unlocking the bootloader.

Method 5: Bypassing MIUI restrictions via TWRP (for advanced)

For users with an unlocked bootloader and TWRP Recovery installed, the most powerful method available is renaming folders directly through the recovery menu, which allows you to edit even those directories that are locked in the standard system.

Step-by-step:

  • πŸ”§ Get in mode. TWRP (clamp down on power. + Volume up when switched on).
  • πŸ“ Go to the File Manager section.
  • πŸ” Find the right folder (for example, /data/media/0/MIUI).
  • ✏️ Select it and select Rename.
  • πŸ”€ Enter a new name and confirm (swipe for saving).

Warnings:

  • ⚠️ Don't rename folders to /system β€” This will lead to bootloop (a looped download).
  • ⚠️ Change of names in /data It can break the work of applications.
  • ⚠️ Always make a backup through TWRP before editing.

πŸ’‘

Use TWRP only if you understand the consequences. Wrong renaming of system folders can make your phone inoperable without flashing it.

Common Mistakes and How to Avoid Them

When renaming folders to Xiaomi, users often encounter errors, and consider the most common ways to solve them:

Mistake.Reason.Decision
Failed to renameThe folder is used by another application (for example, a gallery).Close all applications that work with files and try again.
Permission deniedNot enough rights (system or secure folder)Use ADB or TWRP (root required).
The folder name is reset after rebootingMIUI restores the standard names for mission-critical directories.Do not rename DCIM, Pictures, Downloads folders.
The symbols in the name are displayed as???Incorrect encoding when connecting to macOS.Use the Latin alphabet or rename it via Windows/Linux.

Another common problem is that the folder disappears after renaming, which happens if the new name uses forbidden characters (/\: *?" <> |) or if the folder has been moved to a partition that is not available to the user, in which case, check the basket in the file manager or connect the phone to the PC to search for a lost directory.

FAQ: Frequent questions about renaming folders to Xiaomi

Can I rename the DCIM folder so that the photos are saved to another directory?
No, the DCIM folder is hard-coded in the camera settings. If you rename it, the Camera app will create a new DCIM folder automatically, and the old photos will remain in the renamed directory, but will not be displayed in the gallery. To change the save path, use third-party cameras (for example, Open Camera).
Why is it not visible on the phone after renaming the folder via PC?
This is because of the file system caching in MIUI. Solutions: Reboot your phone. Clear the Files app cache (Settings β†’ Applications β†’ Files β†’ Storage β†’ Clear cache). Connect your phone to your PC again and check if the folder is displayed.
How to rename a folder to SD-card, if it is protected?
SD-Xiaomi cards can be formatted as an internal storage (Adoptable Storage) or as a portable one. ADB. In the second, use any file manager. If the folder is protected, try: Extract. SD-map and connect it to the PC via card reader format the card as portable (data loss!).
Can I get my old name back if I'm wrong?
Yes, if the folder hasn't been deleted. Just rename it back through the file manager. If the folder is gone, check: Recycle Bin in the Files app. Hidden folders (enable hidden files in the manager settings), Backups in Mi Cloud (if sync was enabled). System folders may need to reset or flash.
Why can’t some folders be renamed even with root rights?
MIUI has a list of secure directories that can't be edited even from root, including: /system and all subfolders; /vendor; /data/app; /data/data (app data). Any changes to those sections cause the system to crash. The only way to get around the limitation is to modify the kernel, which requires a deep knowledge of Android firmware.