You try to remove photos from the gallery on your Xiaomi smartphone, but instead see the message โAllow access to the cameraโ SD-And this problem is typical of devices with external drives, especially if the files were originally saved to a memory card. 90% of the time, it's because of permission settings, conflicts with the memory card. MIUI But there are less obvious nuances, from blocking files with antivirus to the features of the application Gallery.
In this article, we will discuss all possible causes and solutions - from basic (permission check) to advanced (manual mounting). SD-map ADB). You will learn how to get around the restrictions. MIUI, Why do some photos not get deleted even after unlocking access, and what to do if the memory card is damaged, and if standard methods do not work, we will suggest alternative ways to delete through a PC or third-party file managers.
Why Xiaomi is asking for access SD-map when deleting photo
Message โAllow access to SD-The map is displayed when:
- ๐ฑ Files are physically located on a memory card, but the Gallery app does not have rights to them modification/deletion. Itโs a standard Android restriction, reinforced by security policies MIUI.
- ๐ SD-The card is formatted as an โAdoptable Storageโ but the system has lost touch with it due to a crash or update.
- ๐ ๏ธ The file system of the card is damaged โ for example, after being extracted during recording or virus infection.
- ๐ Photos blocked by another application (antivirus, cloud backup, image editor).
V MIUI 12โ14 The problem is compounded by the fact that the default system restricts access to external drives for most applications.Even if you have given permission to the Gallery, it can reset after a reboot or update.In addition, some Xiaomi models (e.g., Redmi Note) 10 pro POCO X3 Pro) have a mounting bug SD-Maps after upgrading to Android 12/13.
Method 1: Allow access to SD-map MIUI
The first thing you need to do is manually grant permissions to the Gallery app. With newer versions of MIUI, the path to settings has changed, so keep an eye out for the current steps:
- Open Settings โ Applications โ Application Management.
- Find the Gallery (or Google Photos if you use it) and tap it.
- Go to Permits. โ Memory.
- Select Allow All Files to be Accessed (or Allow All Files to be Managed in MIUI 14).
- Go back to the gallery and try to delete the photo again.
If there's no Memory, then your version of MIUI is hiding it.
- Open Settings โ Special Options โ All applications.
- Find the Gallery, tap the three points at the top โ Permissions.
- Activate the memory switch.
Have given permission for "Memory" in the settings of the application
Reboot the phone after the changes
Try to delete the photo in 5-10 minutes (sometimes it takes time to apply permissions)
Checked that SD-The card is not extracted and is recognized by the system.-->
Important! On some firmware (e.g. MIUI Global for Redmi 9A), the resolution may reset after the update. If the problem comes back, repeat the steps or consider alternatives below.
Method 2: Delete photo through file manager
If the Gallery refuses to delete the photo, try using a standard Files (or a third-party manager like Solid Explorer):
- Open the Files app (the folder icon on the desktop).
- Go to section. SD-map (or external memory).
- Find the DCIM โ Camera folder (or another one where the photos are stored).
- Select the files you need, click Delete.
If the files are not deleted here, check:
- ๐ File attributes: They may be labeled "read-only." In Solid Explorer, you can change attributes with a long press. โ Properties.
- ๐ Rewire the map: Remove SD-card and insert back (after switching off the phone).
๐ก
If the DCIM folder doesnโt appear in the file manager, turn on the hidden files in the application settings (usually under the โMoreโ or โView Settingsโ menu).
Method 3: Formatting SD-cards (unless the photo is critical)
If the photos are worthless and the map is unstable, it's easier to format it. Attention: this will delete all the data without any possibility of recovery!
โ ๏ธ Attention: Do not format SD-The card is an "Adoptable Storage" card, unless you plan to use it with this phone alone, and in this mode, the card is encrypted and unreadable on other devices.
Instructions:
- Back up important files (if possible).
- Go to Settings. โ Memory. โ SD-map.
- Slip on the three points at the top โ Memory settings โ Format.
- Choose as an external drive (recommended) or as internal memory (power users only).
| Formatting mode | Pluses | Cons |
|---|---|---|
| External drive | The card can be retrieved and used on other devices. | Applications will not be able to save data to the map without permissions |
| Internal memory. | Applications can save data without additional permissions | The card is encrypted, not readable on other devices; when extracted, data will be lost. |
Method 4: Using a PC to delete photos
If the phone refuses to interact with SD-map, connect it to the computer:
- Extract. SD-card from the phone (pre-mounted in the memory settings).
- Insert it into a card reader or adapter for PC.
- Open this computer (Windows) or Finder (Mac) and find a removable disk.
- Go to DCIM โ Camera and delete the photos.
If the map is not readable:
- ๐ฅ๏ธ Try another card reader or USB-port.
- ๐ ๏ธ Run error check (in Windows: right-click on the disk) โ Properties โ Service โ Check it out).
- ๐ง Use utilities like this. SD Card Formatter (official utility) SD Association) for low-level formatting.
What to do if the PC asks to format the card?
Method 5: Advanced methods (ADB, root, alternative firmware)
If nothing has worked, and it is critical to remove the photo, radical measures remain, requiring technical skills and can lead to loss of warranty or unstable phone operation.
Option 1: Removal via ADB
- Turn on USB Debugging in Settings โ About Phone โ MIUI version (tap 7 times, then go back to Additional โ For Developers).
- Connect your phone to your PC, open the command line and type in: adb shell rm /storage/XXXX-XXXX/DCIM/Camera/photo.jpg (substitute XXXX-XXXX downhill SD-The map can be recognized by the LS team. /storage).
Option 2: Getting root rights
With root, you can delete any files, but it is risky.
- ๐ Use Magisk to unlock root (instructions depend on the model).
- ๐ฒ Install Root Explorer and manually delete files from the /storage/emulated/0/ or /mnt/media_rw/.
โ ๏ธ Attention: On devices with MIUI 13/14 Android 12+ Getting root can block access to banking applications and Google Pay services due to SafetyNet trigger.
What to do if the photo is not deleted, but the place is vacated
Sometimes files disappear from the gallery, but the space on the map does not decrease.
- ๐๏ธ ยซGarbage files (miniatures, gallery cache) Clear them through Settings โ Memory. โ Cleanup.
- ๐ Damaged sectors on SD-Check it with CrystalDiskInfo (Windows) or fsck (Linux/Mac).
- ๐ Hidden folders with backups (e.g..thumbnails or.nomedia).
Decision:
- Use SD Maid or Files by Google to find unnecessary files.
- Move all the important data from the card to the PC, then format it.
๐ก
If you don't free up after you delete the photo, it's not the files themselves, it's the file system of the map, and the only reliable solution is full formatting (with a pre-backup).