How to allow Xiaomi Gallery access to the SD-map: all ways to MIUI 14 and older

Did you insert a microSD card into a Xiaomi smartphone but the gallery stubbornly doesn't see the photo on it? Or does the app ask for permission to access, but even after it is provided, the files don't show up? This problem is familiar to many owners of Redmi, POCO and Mi devices - especially after upgrading to MIUI 14 or HyperOS. Not only are the restrictions on Android, but also the features of Xiaomi's firmware, which aggressively manages application rights.

In this article, we will discuss all working ways to give the gallery access to the gallery. SD-map – from basic permission settings to hidden functions MIUI, You'll learn why the standard method is through Settings. β†’ Apps often don’t work out how to get around the limitations of Android 11+ The first is to access external drives, and what to do if the memory card is defined as β€œdamaged” (although it works on other devices, POCO X5, Mi 11 and others.

Problem with access to SD-Xiaomi cards are usually associated with a combination of three factors:

  • πŸ”’ Limitations of Android 11+: Google tightens rules on external drives, apps can no longer freely scan SD-Cards – They need special permits.
  • πŸ› οΈ The function "Battery Optimization" in MIUI: It forcibly closes background processes, including scanning media files.
  • πŸ“ Incorrect map format: Xiaomi works best with exFAT or FAT32, NTFS malfunction.

Also, MIUI 14 has a Privacy Protection feature that blocks file access even for system applications, and if you've recently updated your firmware, that's probably the problem, and it's worth checking if Guest Session mode is activated, which restricts access to all external media.

πŸ“Š What is your Xiaomi model?
Redmi Note 10/11/12
POCO X3/X4/X5
Mi 11/12/13
Redmi 9/10
Another model

Method 1: Standard Permitting (for MIUI 12–14)

So let's start with the most obvious method, which works 60 percent of the time, and it's important that you do these things right after you insert them. SD-maps, otherwise the system may ignore the changes.

  1. Open Settings β†’ Applications β†’ Application Management.
  2. Find the Gallery (or Mi Gallery, Google Photos) in the list.
  3. Slip on "Permissions" β†’ "Memory."
  4. Select "Allow access to" SD-Map" (or "Allow management of all files" in new versions) MIUI).
  5. Reboot your phone – this is a must!

If files are not displayed after rebooting, check:

  • πŸ”„ Is Charge Savings on – it blocks background scans.
  • πŸ“± Is the second account not being used (MIUI It allows you to create multiple profiles with different rights).
  • πŸ—‘οΈ Are files hidden through settings? β†’ Additionally. β†’ Show hidden files.

Format the card in FAT32/exFAT via phone | Check the card for errors in PC| Disable "Battery Optimization" for Gallery | Make sure the card is not encrypted

-->

Method 2: Configure with "Additional Memory Settings" (hidden MIUI section)

MIUI 13/14 has a hidden settings section that controls applications' access to external drives, which is not in the main menu, but can be opened through the code of the engineering menu:

  1. Open the Phone app and type in ##4636##
  2. Select "Equipment Testing" β†’ "Memory settings".
  3. Tap it on "SD-map" and enable the option "Allow access for all applications".
  4. Return to the main settings and go along the way: Settings β†’ Memory. β†’ Additionally. β†’ Access to SD-map.
  5. Turn on the switch for the Gallery and other necessary applications.

Warning: After this manipulation, some applications (such as messengers) may lose access to the map, and you will have to reconfigure them.

What to do if the engineering menu is not opened?
If the ##4636### code doesn't work, try an alternative method: 1. Install the Activity Launcher app from Google Play. 2. Find the com.android.settings. 3 section there. Open MemorySettings or StorageSettings. 4. There'll be an "SD Card Permissions" item.

Method 3: Using a file manager to force a scan

If the gallery persists in not seeing files, you can push the system to detect them through standard Explorer (or Files by Google). 13/14, where restrictions on access to SD-cardboards as hard as possible.

  1. Open Explorer (or any other file manager).
  2. Go to the root catalogue SD-cards (usually these are /storage/XXXX-XXXX, where XXXX β€” unique identifier).
  3. Find the DCIM folder (where the photos are stored) or Pictures.
  4. Long click on the folder β†’ β€œProperties” β†’ β€œScan media files”.
  5. Wait 1-2 minutes – the system should update the media base.

If the option "Scan Media Files" is not available:

  • πŸ“² Install Rescan Media Root from Google Play – This App Forcedly Updates Android Media Base.
  • πŸ”§ Manually create the root SD-map file.nomedia (no extension), then delete it - this will reset the scan cache.

πŸ’‘

If the photos are displayed in Explorer but not in Gallery, try clearing the Media Store app cache (Settings β†’ Apps β†’ Show Everything β†’ Media Store β†’ Memory β†’ Clear Cache).

Method 4: Change the format SD-Cards (if nothing helps)

Sometimes the problem lies in the memory card file system. Xiaomi is optimized to work with FAT32 and exFAT, whereas NTFS or ext4 can cause conflicts.

FormatMax. File size.Compatibility with XiaomiWhen to use
FAT324GBβœ… Perfect.For cards up to 32GB
exFAT16 EBβœ… RecommendedFor 64GB cards and more
NTFS16 EB❌ ProblemsOnly for PCs

How to format the map correctly:

  1. Copy all the data from the card to the PC.
  2. Insert the card into your phone and go to Settings β†’ Memory. β†’ SD-map β†’ Format.
  3. Select exFAT (if card >32GB) or FAT32 (if <32GB).
  4. After formatting, do not remove the map – set up access for the gallery immediately (see Method 1).

⚠️ Note: Formatting via PC (e.g. Windows) can create partitions that are not readable for Xiaomi. Always format the card directly on your phone if you plan to use it as a memory extension.

Method 5: Using ADB to enforce rights (for advanced)

If all previous methods fail, the manual granting of rights through ADB is left, which requires connecting the phone to a PC, but is guaranteed to solve the problem by 99%.

What you need:

  • πŸ–₯️ Computer with installed ADB Tools.
  • πŸ“± Included Debugging by USB on the phone (Settings) β†’ The phone. β†’ Version. MIUI β†’ 7 times to tap according to the version β†’ return to β†’ For developers β†’ Debugging by USB).
  • πŸ”Œ Cable USB (preferably original).

Instructions:

  1. Connect the phone to the PC and confirm the debugging permission.
  2. Open the command prompt (Windows) or terminal (Mac/Linux) in the folder with ADB.
  3. Enter the command to check the connection: adb devices (should display the serial number of your device).
  4. Grant rights of access to SD-Gallery map: adb shell pm grant com.miui.gallery android.permission.WRITE_EXTERNAL_STORAGE adb shell pm grant com.miui.gallery android.permission.READ_EXTERNAL_STORAGE
  5. For Google Photos, use: adb shell pm grant com.google.android.apps.photos android.permission.WRITE_EXTERNAL_STORAGE
  6. Reboot the phone.

If after the restart, access still does not appear, follow the additional command:

adb shell am broadcast -a android.intent.action.MEDIA_MOUNTED -d file:///storage/XXXX-XXXX

(substitute XXXX-XXXX real ID yours SD-The map can be found through the command adb shell ls. /storage).

πŸ’‘

ADB-The commands are reset when you reset your phone to the factory settings. If you do a hard reset, you'll have to repeat the procedure.

Frequent Mistakes and How to Avoid Them

Even after successful access to SD-This is the top of the map.-5 The reasons why this happens and how to eliminate them:

  • πŸ”‹ Optimizing the battery: MIUI It aggressively closes the background. Solution: Settings. β†’ Battery β†’ Optimizing the battery β†’ All applications β†’ gallery β†’ No restrictions.
  • πŸ”„ Update MIUI: After updating the firmware, the rights are reset. Solution: Reconfigure from Method 1.
  • πŸ“΅ Flight mode/guest session: In these modes, access to SD-Solution: Turn them off in the notification curtain.
  • πŸ›‘οΈ Protection of confidentiality: B MIUI 14 new section: Settings β†’ Confidentiality β†’ Protection of confidentiality β†’ Access to files β†’ Turn on gallery access.
  • πŸ“± Reset rights after reboot: On some models (e.g. Redmi Note 11) rights are reset when rebooted.Solution: Use Method 5 (ADB) permanent access.

⚠️ Attention: If you are using SD-The card is an internal memory (the function "Format as internal drive"), then access to it will have only system applications. Third-party galleries (for example, Google Photos or Simple Gallery) will not see the files!).

FAQ: Answers to Frequent Questions

Can I give you access? SD-map only for specific folders?
Android does not support selective access to folders SD-The application either gets full access to the entire drive or it doesn't get anything. Except for root folders like this. DCIM Downloads that some apps (like Google Photos) scan automatically.
Why After Updating to Update MIUI 14 gallery stopped seeing SD-map?
MIUI 14 has changed its permissions policy, requiring not only the standard memory permission to access external drives, but also a separate confirmation in Settings β†’ Privacy β†’ Privacy Protection. The new version also includes File Protection, which blocks access to media files for third-party applications, by default.
How to transfer photos from internal memory to SD-map if the gallery does not see it?
Use the file manager: Open Explorer or Files by Google. Go to Internal Memory β†’ DCIM β†’ Camera, highlight the files. β†’ "Copy it. Go to the SD-file-card DCIM β†’ Click "Insert." After transfer, perform a forced scan (see Method 3).
Can I use it? SD-The card as an internal memory and at the same time give access to the gallery?
Technically yes, but with reservations: πŸ“Œ The system gallery (Mi Gallery) will see the files. ❌ Third-party galleries (Google Photos, Simple Gallery) will not see anything. ⚠️ When you remove the card, the phone may stop working (as some of the system files are stored on it). SD-A card as a portable storage device, not as an internal memory.
What to do if SD-The card is defined as β€œdamaged” although the PC is working normally?
This is a typical Xiaomi problem with maps formatted in the NTFS or ext4. Solutions: Format the card in exFAT via phone (Settings) β†’ Memory. β†’ SD-map β†’ Format. Check the map for errors in the PC using chkdsk /f X: (where X is the letter of the disk). 5 Xiaomi is sensitive to read/write speed.