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

Rename folders on Xiaomi smartphones seems to be a simple task – until you encounter the features of the shell MIUI. Unlike pure Android, there are often limitations: some system folders are locked, and the standard Files by Google file manager may not show hidden directories, but the β€œfailed to rename” error appears even when working with user data on the Internet. SD-map.

In this article, we will discuss 5 working ways to rename a folder to Xiaomi (including Redmi, POCO and Black Shark models), taking into account the nuances of different versions of MIUI 12-14. From simple renaming through the built-in Explorer to using ADB and third-party utilities, you will find a solution even for blocked system directories. And if you need to massively rename hundreds of folders (for example, for organizing photo albums), we will show you how to automate the process.

Important: Some methods require root rights or developer mode enabled, and if you've never worked with ADB or you don't know what fastboot is, start with the first three. They're safe and don't require any deep technical knowledge.

1. Standard method: through the built-in MIUI file manager

The most obvious method is to use a pre-installed File Explorer (or Mi File Manager in older versions) that is suitable for renaming user folders to internal memory and SD-map, but has limitations:

  • πŸ”Ή Does not work with system folders (for example, /Android/data/ or /MIUI/).
  • πŸ”Ή Can block the change of folder names created by some applications (for example, WhatsApp or Telegram).
  • πŸ”Ή Nana MIUI 14 requires additional confirmation when working with protected directories.

To rename the folder:

  1. Open the Files app (the folder icon on the desktop).
  2. Go to the Device section or SD-card (if the folder is on an external drive).
  3. Find the folder and hold your finger on its name for 1-2 seconds.
  4. In the menu that appears, select Rename (or pencil icon).
  5. Enter a new name and press OK.

If the Rename button is inactive or absent:

  • πŸ”Έ Try copying the folder to another location (like desktop), renaming it there, and then returning it back.
  • πŸ”Έ Check if the Read Only mode is enabled SD-maps (in storage settings).
πŸ“Š What version? MIUI You're using it?
MIUI 12
MIUI 13
MIUI 14
I don't know.
other

2.Use of third-party file managers

Xiaomi’s built-in Explorer doesn’t always manage to rename, especially if the folder contains special characters or is in a protected partition, and alternative file managers can help:

  • πŸ“ Solid Explorer – supports root, dual-panel mode and cloud storage.
  • πŸ“ FX File Explorer – has a built-in ADB-Manager for accessing system files.
  • πŸ“ Total Commander – a classic manager with support for plugins (including Root).

Example of renaming through Solid Explorer:

  1. Install the app from Google Play and open it.
  2. Go to the Root Directory section (if you need to work with system folders, provide root access in advance).
  3. Find the folder, hold its name and select Rename.
  4. Type in a new name. If you have an error, try it.
Remove spaces or special characters (e.g., replace "!!" with " ").


Add the "nomedia" extension (if the folder is not displayed in the gallery).




Move the folder to another location before renaming.

Important: Some managers (e.g. FX) allow folders to be renamed through ADB without full root access.

  1. Connect your phone to your PC and enable USB Debugging.
  2. In FX File Explorer, go to ADB File Browser.
  3. Find the folder and rename it through the context menu.

πŸ’‘

If the folder is not renamed due to the File is being used error, reboot the phone in Safe Mode (hold the power button β†’ Reboot Safe Mode) and this will disable background processes that can block the file.

3. Renaming through PC (Windows/macOS/Linux)

If nothing works on your phone, connect Xiaomi to your computer and use Windows Explorer, Finder (macOS) or Nautilus (Linux), a method that is more reliable because it bypasses the limitations of MIUI at the file system level.

Instructions for Windows:

  1. Connect your phone to your PC through USB-cable (preferably original).
  2. On the phone, select the file transfer mode: File Manager (MTP).
  3. Open This Computer β†’ Find a Xiaomi device (usually displayed as Redmi X or MI 11).
  4. Go to the appropriate section (internal memory or SD-map).
  5. Right-click on the folder β†’ Rename β†’ enter a new name.

Frequent problems and solutions:

Problem.Reason.Decision
The folder is not displayed in the conductorHidden system catalogEnable the display of hidden files in the Explorer settings
"Access denied" errorFolder protected by MIUIUse ADB (Section 4) or root manager
The folder name is reset after disconnectingCash MIUIClear the application data Files in the settings

For macOS/Linux installation may be required MTP-driver:

  • 🍎 On Mac: Install Android File Transfer from the official website.
  • 🐧 On Linux: use gMTP or jmtpfs (installed via terminal).

Connect the original USB-cable|Select a regime MTP phone-on|Unlock the Xiaomi screen|Disable "Optimization" MIUI" In the developer settings (if any)|Check the visibility of the folder in the conductor-->

4. Rename through ADB (for system folders)

If the folder is in a protected partition (e.g. /data/data/ or /system/), standard methods will not work, and ADB, an Android debugging tool that allows you to execute commands directly on the file system, will help.

Warning: misuse of ADB can cause system failure.Do not rename folders to /system without backup - this can make the phone inoperable.

Instructions:

  1. Enable Developer Mode: Go to Settings β†’ About Phone. Click 7 times on MIUI Version. Go back to Settings β†’ Additional β†’ Developer. Activate USB Debugging.

ADB-driver

Platform Tools

cmd

Terminal

adb devices

If the device appears in the list, run the command to rename (example for /sdcard/Download/OldName):

adb shell mv /sdcard/Download/OldName /sdcard/Download/NewName

Examples of teams for different cases:

  • πŸ“‚ Rename the folder to SD-map: Adb shell mv /storage/1234-5678/OldFolder /storage/1234-5678/NewFolder
  • πŸ”§ Rename the system folder (requires root): adb shell su mount -o rw,remount /system mv /system/old /system/new mount -o ro,remount /system

⚠️ Note: After renaming system folders through ADB If the phone doesn't turn on, try resetting via Recovery Mode (hold Power). + Volume Up when switched on).

5. Mass renaming of folders (for photos, music, documents)

If you want to rename dozens of folders (like putting a photo or music collection in order), manual methods will take too much time.

  • πŸ–ΌοΈ Bulk Rename Utility (Windows) – supports regular expressions and batch processing.
  • πŸ“± Rename My Files (Android) – works directly on your phone, without a PC connection.
  • 🐧 mmv (Linux/macOS) β€” console utility for mass renaming.

Example of using Bulk Rename Utility:

  1. Connect Xiaomi to your PC in MTP mode.
  2. Open the program and select the folder with files.
  3. Set the rules for renaming (for example, replace all spaces with " ").
  4. Preview the changes and confirm them.

For Android (no PC):

  1. Install Rename My Files from Google Play.
  2. Select the folders to rename (regular expressions are supported).
  3. Apply the changes and wait for the process to be completed.

⚠️ Warning: When renaming mass, avoid using symbols \ /: *?" < > | β€” They can cause errors in the file system. F2FS, It is used by modern Xiaomi.

How to return the original folder names after an error?
If folders are unavailable or disappear after mass renaming, check: 1. Recycle Bin in file managers (some applications delete files there instead of completely erasing them). 2. Hidden folders - turn on the display of hidden items in the Explorer settings. 3. Backups - if you used Mi Cloud, check the history of changes in the web version. 4. Team log - if you renamed through ADB, repeat the command with the original names (example: mv /sdcard/NewName /sdcard/OldName).

6. Features of working with SD-maps on Xiaomi

Folders on. SD-The card often behaves differently than the internal memory. MIUI and features of the file system exFAT/FAT32. Here's what you need to know:

  • πŸ“± MIUI can block renaming of folders created by system applications (for example, DCIM/Camera or Android/obb).
  • πŸ”„ After extraction SD-Some folders can β€œreset” names – this is due to metadata caching.
  • πŸ”’ Access rights: If the card is formatted as internal memory (in the storage settings), renaming system folders will become impossible without root.

How to rename a folder to SD-card if the standard method does not work:

  1. Remove the card and connect it to the PC through the card reader.
  2. Use Windows/macOS Explorer to rename.
  3. If an error occurs, format the card in exFAT (pre-copy the data!).

Photographer’s advice: If you rename your photo folders frequently (for example, to sort by date), set up an automatic backup in Google Photos or Mi Cloud to restore folder structure even after a crash.

Frequent mistakes and their solutions

Even if you follow the instructions, you may encounter errors, and here are the most common ones and how to fix them:

Mistake.Probable causeDecision
"Failed to rename: Access is prohibited"folder protected by MIUI or used by the systemUse ADB or rename via PC
"Name too long."File system restriction (max. 255 characters)Rename or shorten the name via Terminal (Linux/macOS)
The folder disappeared after renamingCache failure or incorrect name (e.g., c"/")Check the cart or restore it through DiskDigger
"File or folder not found"SD-map disabled or damagedReconnect the card or check it for errors (chkdsk on Windows)

If none of these methods worked, the problem may be deeper:

  • πŸ› οΈ Faulty File System – Check with Adb Shell fsck.
  • πŸ”„ Conflict with MIUI Optimization – Turn off optimization in the developer settings.
  • πŸ“± Firmware error - update MIUI Up to the latest version or reset your settings.

πŸ’‘

If the folder is not renamed in any way, it is likely locked at the Android kernel level, in which case only obtaining root rights or contacting Xiaomi support will help.

Can I rename the /Android/data/ folder without root?
No, the /Android/data/ folder is protected by the system, and even with ADB, you can't rename it without root access, and the alternative is to copy the content to another folder and use it instead of the original folder.
After renaming the folder to SD-It's empty on the map?
The files are probably still there, but MIUI It doesn't update the cache. Try: Reboot the phone. Connect. SD-PC card and check it through Explorer. Use DiskDigger to find lost files.
How to rename a folder if its name contains Chinese characters?
MIUI sometimes mishandles characters in folder names. Solutions: Rename the folder via PC (Windows/macOS usually works correctly with Unicode). Use ADB with mv command, wrapping the name in quotation marks: adb shell mv"/sdcard/"/sdcard/NewFolder" If the characters don't show, copy the folder to another location and rename it there.
Why did some folders reset their names after the MIUI update?
This is because MIUI can reset the metadata cache when you update. To avoid a problem: Before upgrading, back up important folders on your PC. Use Google Drive, Mi Cloud for sync. After updating, check the folders through your PC β€” sometimes they stay in place but don't show up in MIUI Explorer.
Can I rename /MIUI/theme/ to install custom themes?
The /MIUI/theme/ folder is protected by the system. You can't rename it without root, but you can: Use root-access MiXplorer applications. Install custom firmware (e.g. Xiaomi.eu) where MIUI restrictions are relaxed. Copy the files to a different folder and apply them through TWRP Recovery. Attention: changing system themes can cause shell malfunctions.