How to rename a folder on a Xiaomi smartphone: all ways + problem solving

Renaming folders on Xiaomi smartphones seems like a simple task โ€“ until you face the limitations of the shell MIUI Unlike Android in its pure form, there may be errors when working with system directories, hidden files or folders on the system. SD-This article covers all current ways to rename, including bypassing typical problems on Redmi, Poco and Black Shark devices.

We will analyze not only standard methods through the built-in file manager, but also alternative options: using Google Files, connecting to a PC on the Internet. MTP, and work with ADB We will focus on the nuances of folders created by system applications (for example, MIUI/Gallery or DCIM/Thumbnails) โ€” Their renaming is often blocked even with root rights.

1. Standard method: via the MIUI file manager

The most obvious method is to use preinstalled Files (or File Manager in global firmware), which works on all Xiaomi devices with MIUI 12 and later, but has limitations for system folders.

To rename the folder:

  • ๐Ÿ“ Open the Files app (Icon with blue folder).
  • ๐Ÿ” Find the folder you need in the Device section or SD-map.
  • ๐Ÿ“ Long press the folder. โ†’ Select Rename in the context menu.
  • โœ๏ธ Enter a new name (without symbols / \: *? " < > |) And press OK.

If the Rename item is inactive, the cause may be one of the following:

  • ๐Ÿ”’ The folder is protected by the system (for example, Android/data or MIUI).
  • ๐Ÿ“› The name contains inadmissible characters (even a space at the beginning/end).
  • ๐Ÿ“ฑ The device is connected to the PC in the file transfer mode (MTP) โ€” disconnect the cable.
  • ๐Ÿ›ก๏ธ The function of Protection of personal data in security settings is enabled.

Turn off your smartphone from your PC or charging |

Close all applications that use files in the folder (gallery, player) |

Check that the name does not exceed 255 characters |

Make sure the folder is not root (for example, donโ€™t try to rename the folder itself). SD-map)-->

โš ๏ธ Note: On some Poco models F5 Redmi Note 12 s MIUI 14 after renaming the photo folder (DCIM/Camera) To restore the thumbnails, restart the device or use the command: adb shell am broadcast -a android.intent.action.MEDIA_SCANNER_SCAN_FILE -d file:///storage/emulated/0/DCIM/Camera/

2. Alternative file managers: Google Files and Solid Explorer

Built-in manager MIUI It is not always easy to do, especially if the folder is located on the SD-In such cases, Google Files (formerly Files by Google) or Solid Explorer will help.

Advantages of third-party managers:

  • ๐Ÿ”“ More rights to change system folders (if root is available).
  • ๐Ÿ“ Support for mass renaming (for example, for folders) Download/Telegram).
  • ๐Ÿ” Built-in search for folder content.
  • ๐Ÿ“ฑ Working with cloud storage (Google Drive, Mi Cloud).

Instructions for Google Files:

  1. Install the app from Google Play.
  2. Open the Memory section of the device or SD-map.
  3. Find the file. โ†’ slip on โ‹ฎ (three-point) โ†’ Rename.
  4. Type a new name and save it. If you get a "failed to rename" error, try:
  • ๐Ÿ”„ Reset the device.
  • ๐Ÿ“ต Disable Developer Mode (if enabled).
  • ๐Ÿ“ Move the folder to the root of the memory, then rename.

Standard MIUI Files|

Google Files|

Solid Explorer|

FX File Explorer|

Another (I'll post in the comments)|

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

Connecting a smartphone to a computer USB Often solves problems with renaming, especially for folders on the SD-But there are some nuances to this: MIUI It can restrict access to some folders even in mode MTP.

Step-by-step instructions for Windows 10/11:

  1. Connect Xiaomi to your PC via USB-C cable (preferably original).
  2. On your phone, select File Transfer (MTP) mode in the connection notification.
  3. Open this computer. โ†’ Find the device (usually a Redmi Note) XX Xiaomi XX).
  4. Go to the desired folder, right-click โ†’ Rename.

Typical errors and decisions:

Problem.Reason.Decision
The folder is not displayed on the PCHidden system filesEnable the display of hidden files in the Explorer settings
"You don't have permission."MIUI Limitations for System FoldersUse ADB or root access
Name resets after disconnectionCash media filesReboot your phone or run adb shell media scan
You can't rename the folder to SD-mapFormatting in FAT32Transformat the card to exFAT or NTFS

๐Ÿ’ก

If your PC doesnโ€™t see the Android/data folder, but itโ€™s on your phone, try connecting via Total Commander with the MTP plugin โ€“ it often bypasses Windows limitations.

4. Advanced method: ADB-name-team

For folders that canโ€™t be renamed in standard ways (such as MIUI/Extra or Android/obb), Android Debug Bridge (ADB) will help. This method requires the inclusion of Developer Mode and is suitable for users with experience with the command line.

Steps to rename through ADB:

  1. Enable USB debugging in the developer settings (Settings โ†’ About Phone โ†’ MIUI version โ†’ 7 times tap).
  2. Connect the phone to the PC and confirm the debugging permission.
  3. Open the Command Prompt (Windows) or Terminal (macOS/Linux) and type:
adb shell


ls /storage/emulated/0/

Find the desired folder in the command output, then use:

mv /storage/emulated/0/old name /storage/emulated/0/new name

Examples of commands for typical cases:

  • ๐Ÿ“ท Rename the folder with the photo: mv /storage/emulated/0/DCIM/OldFolder /storage/emulated/0/DCIM/NewFolder
  • ๐ŸŽฎ Rename the game folder (Android/obb): mv /storage/emulated/0/Android/obb/com.game.old /storage/emulated/0/Android/obb/com.game.new
  • ๐Ÿ“ Rename the folder to SD-map: mv /storage/XXXX-XXXX/OldName /storage/XXXX-XXXX/NewName (XXXX-XXXX โ€” identifier SD-maps, check in ls /storage/)

โš ๏ธ Attention: MV commands in ADB If the folder is large (for example, if the folder is large, DCIM 10GB photo), wait until the process is complete (may take a few minutes).+C) will result in data loss!

What if ADB canโ€™t see the folder?
If the team ls /storage/emulated/0/ It does not show the correct folder, check it: 1. Access rights: some folders (for example, Android/data) They require root rights even to view. 2. Mounting: Perform adb shell sm list-volumes โ€“ if the folder is on another volume (e.g., folder on another volume, external_sd), use the species path /mnt/media_rw/XXXX-XXXX/. 3. MIUI-Restrictions: on some firmware paths /storage/emulated/0/ substituted /sdcard/ โ€” try it out.

5. Features for different Xiaomi models

The renaming process may vary depending on the model and version of MIUI. Below are the key nuances for popular lines:

Model/SeriesFeaturesRecommendations
Redmi Note 10/11/12Limitations on MIUI/Extra and MIUI/Gallery foldersUse ADB or Solid Explorer with root
Poco F3/F4/F5In global firmware there are no restrictions on SD-cardRename directly through Google Files
Black Shark 4/5System folders are blocked for changeRequires unlocking the bootloader and Magisk
Xiaomi 13/14MIUI 14/15 blocks renaming of folders with app cacheUse adb shell pm clear to reset the cache before renaming

For devices with MIUI 15 (2026), a new feature has been introduced, System Folder Protection, and if you see a notice that says "Prohibited by Security Policy" when renaming it, do:

  1. Go to Settings โ†’ Privacy โ†’ Special Permissions โ†’ Access to Files.
  2. Find an app that tries to rename a folder (like Google Files) and give it access to all the files.
  3. Reset the device.

6. Solving typical errors when renaming

Even following the instructions, Xiaomi users often encounter errors, and letโ€™s look at the most common ways to fix them:

Mistake 1: "Failure to rename. Try again."

  • ๐Ÿ”„ Reason: The folder is used by another application (e.g., the gallery scans a photo).
  • ๐Ÿ›  Solution: Close all apps through Recent or restart your phone. For folders with media files, turn off Media Storage in the app settings.

Error 2: The folder name is reset after rebooting

  • ๐Ÿ”„ Reason: MediaProvider's Cash Not Updated.
  • ๐Ÿ›  Decision: Follow up in ADB: adb shell am broadcast -a android.intent.action.MEDIA_SCANNER_SCAN_FILE -d file:///storage/emulated/0/paddy-daddy/

Error 3: "You don't have permission to access this folder"

  • ๐Ÿ”„ Reason: The folder belongs to the system application (e.g, Android/data/com.xiaomi.gallery).
  • ๐Ÿ›  Solution: Use ADB with root rights or rename the folder through TWRP.

๐Ÿ’ก

If the folder belongs to a system application (e.g. com.android.providers.media), renaming it may disrupt MIUI, and in such cases it is safer to create a new folder and transfer files there.

7.Security: What cannot be renamed

Not all folders on Xiaomi can be renamed without consequences. Changing the name of the system directories can lead to:

  • ๐Ÿšจ Application failure (for example, the gallery will stop seeing photos).
  • ๐Ÿ”„ Cyclical reboot (if folders are affected) /system or /vendor).
  • ๐Ÿ“ต Data loss (when interrupting the operation on the SD-map).

List of folders that are not recommended to be renamed:

  • ๐Ÿ“ Android โ€“ contains application data and cache.
  • ๐Ÿ“ MIUI โ€” shell-file.
  • ๐Ÿ“ DCIM/.thumbnails โ€” gallery-piece.
  • ๐Ÿ“ Alarms, Notifications, Ringtones โ€“ Standard System Sounds.
  • ๐Ÿ“ Any folder with the com prefix. (e.g. com.xiaomi.micloud).

If you need to change the contents of these folders (for example, replace ringtones), it is better to copy the files to a new folder and indicate the path to it in the sound settings, rather than rename the original directory.

FAQ: Frequent questions about renaming folders to Xiaomi

Can I rename the Download folder on the home screen?
The Download folder in MIUI is a shortcut to /storage/emulated/0/Download. The folder itself can be renamed (via the file manager), but the shortcut on the home screen will remain with the same name. To change the shortcut: Long click on the Download shortcut. Select Rename (if the option is active). If there are no options, delete the shortcut and create a new one manually through the folder widget.
Why do they disappear from the gallery after they rename the photo folder?
Annex Gallery in MIUI Indexes media files by path. When you rename the folder, the link is lost. To recover the photo: Open the Gallery โ†’ Albums. โ†’ press โ‹ฎ โ†’ If it doesn't work, do it in ADB: adb shell am broadcast -a android.intent.action.MEDIA_SCANNER_SCAN_FILE -d file:///storage/emulated/0/DCIM/ If the photos are still not displayed, check if they are hidden: in the Gallery, go to Settings โ†’ Show hidden files.
How to rename a folder to SD-If the phone says "Read only"?
The "Reading Only" error on SD-The map is created by: Formatting the map in FAT32 (File name limit. Physical lock switch on microSD adapter. File system damage. Solutions: Reformat the card to exFAT or NTFS (Check the card for errors through the PC (in Windows: Properties) โ†’ Service โ†’ If the card is secure, connect it to the PC through the card reader and rename the folder there.
Can I rename the Android/obb folder for games?
folder Android/obb It contains additional game data (graphics, levels) and renaming it will lead to a: ๐ŸŽฎ Game download errors ("Files are corrupted"). ๐Ÿ”„ Loss of progress in some games (if they store data in this folder) If you want to change the folder name (for example, for a backup), copy its contents to a new place, and then specify a new path in the game settings (if the game supports this feature). For most games, it is better to use cloud-based saves or Titanium Backup (requires root).
How to return the old name of the folder if the new one is wrong?
If you rename a folder and want to get it back: Use the change log in file managers like Solid Explorer (History section). If the folder is empty, just rename it back. If the folder contains files and you don't remember the old name: Check.nomedia files in the root of memory โ€” they may contain paths. Use ADB to view logs: adb logcat | grep "rename" If the folder was a system one (like DCIM) and you rename it manually, create a new folder with the original name and move the files there.