How to Open a Container on Xiaomi Smartphones: From Mi Secure Folder to Hidden System Folders

What is a β€œcontainer” on Xiaomi and why do you need it?

Xiaomi smartphone users often come across the term β€œcontainer,” but not everyone understands what it is. In the context of MIUI (the Xiaomi brand shell), β€œcontainers” usually mean secure data stores – from the standard Mi Secure Folder to hidden system folders, where the operating system puts backups, app cache or personal files with increased protection.

The main types of containers on Xiaomi:

  • πŸ”’ Mi Secure Folder - the official application for encrypting files (photos, videos, documents) with a password or fingerprint.
  • πŸ“ Hidden folders are system directories such as.miui,.thumbdata, or MIUI/Backup, which are not displayed in the standard file manager.
  • πŸ” Encrypted backups – files with the.mbk extension (created through Settings) β†’ The phone. β†’ Backup).
  • πŸ“± Application cloning containers – isolated spaces for duplicate messengers (for example, a second WhatsApp or Telegram).

The problems with accessing these containers are caused by a number of reasons: a forgotten password, a reset, a file system corruption, or even a firmware bug, and then we'll look at how to open each type of storage, from the simplest to the most secure.

πŸ“Š What type of container you need to open?
Mi Secure Folder
Hidden folder with a photo
Encrypted backup (.mbk)
Another option

Method 1: Opening the Mi Secure Folder (official method)

Mi Secure Folder is an analogue of Samsung Secure Folder or Private Mode on other brands.

  1. Open the Safe folder app (an icon with a lock on your desktop or in the app menu).
  2. Enter a password, a pattern lock, or use a fingerprint (if configured).
  3. If you forgot your password, click Forgot your password and confirm your identity through your Mi Account.

⚠️ Note: When you reset your phone to factory settings, all data in Mi Secure Folder is deleted without recovery, unless a backup to the Mi Cloud has been created.

Check your internet connection (to reset your password through Mi Account)

Make sure you remember the username/password from your Mi Account.

Have a backup on hand SIM-Card (may be required for two-factor authentication)

Take a screenshot of the error (if access is blocked for unknown reasons)

-->

Method 2: Access to hidden folders through file manager

Many users are unaware that Xiaomi has hidden folders with backups, thumbnails of photos (.thumbdata) or app cache to see:

  1. Install a file manager that supports hidden files, such as Solid Explorer or FX File Explorer.
  2. In the manager settings, enable the option to Show hidden files (usually in the Settings β†’ View section).
  3. Go to the root directory of internal memory (/storage/emulated/0/) and find folders with a dot at the beginning of the name:
The name of the folderContentsCan I remove it?
.miuiMIUI system settings, themes, wallpaper❌ No (will cause disruptions)
.thumbdataPhoto and video miniatures (galleries cache)βœ… Yeah (frees up space)
MIUI/BackupLocal backups of the systemβœ… Yes, if you don't)
Android/dataApplication data (save games, settings)⚠️ Partially (for remote applications only)

⚠️ Note: Delete files from the folder Android/obb It can lead to the crash of games (eg, Genshin Impact or Call of Duty Mobile.

πŸ’‘

If you can’t see the DCIM/.thumbnails folder, but the gallery is running slowly, clear the Gallery app cache in the settings (Settings β†’ Apps β†’ Gallery β†’ Storage β†’ Clear Cache).

Method 3: Decrypt backups (.mbk files)

Files with the.mbk extension are created through standard MIUI backup (Settings β†’ Phone β†’ Backup). They are encrypted and require special tools to open. Here's how to decrypt them:

  1. Download Mi Backup Extractor (available on XDA Developers)
  2. Connect your phone to your PC in File Transfer (MTP) mode and copy the.mbk file to your computer.
  3. Run the utility and specify the path to the file. You will need to enter a password (if it was installed when you created the copy).

If you forgot your password:

  • πŸ”„ Try the standard combinations: date of birth, last 4 digits IMEI 123456.
  • πŸ“§ Check emails from Mi Cloud – when creating a copy, the password could be sent to the mail.
  • πŸ”§ Use Brute-force tools (such as MiBrute) but it will take hours or days.
What to do if the backup is damaged?
You can try to recover damaged.mbk files using the Mi Backup Repair Tool (available on GitHub).The algorithm is: 1. Download the tool and unpack it to the folder with the.mbk file. 2. Run the command line (cmd) and run: java -jar MiBackupRepair.jar.mb outputk input.mbk 3. If the process ends with a CRC error, the file is not recoverable.

Method 4: Unlocking Containers for Clone Applications

The dual apps (or App Cloning) feature in MIUI creates isolated containers for duplicate messengers, if you forget the password from a cloned WhatsApp or Telegram:

  1. Go to Settings β†’ Applications β†’ Double Apps.
  2. Find the desired app in the list and click Delete Data (this will reset the password but delete the chat history!).
  3. Alternative: Remove the cloned app and recreate it.

⚠️ Note: When you remove the cloned Telegram container, the secret chats and media files from them will be irretrievably lost, even if the main account is saved.

πŸ’‘

The containers of cloned applications are not synchronized with the cloud; all data (chats, media) are stored only locally and deleted when the container is reset.

Method 5: Restoring access via ADB (for power users)

If standard methods don’t work, try accessing containers via Android Debug Bridge (ADB).

  • πŸ”“ Resetting the Mi Secure Folder Password (requires root rights).
  • πŸ“‚ Extracting files from hidden system folders.
  • πŸ”§ Correction of errors with section mounting /data.

Instructions for extracting files from Mi Secure Folder:

  1. Enable USB Debugging in Settings β†’ About Phone β†’ MIUI version (click 7 times, then go back to Additional Settings β†’ For Developers).
  2. Connect your phone to your PC and run it in ADB: adb shell su cd /data/data/com.miui.securefolder/ ls.
  3. Copy the files you want on your PC: adb pull /data/data/com.miui.securefolder/files/C:\SecureFolderBackup\

⚠️ Attention: Use ADB No root rights, limited access to full access to /data Requires unlocking the bootloader and installing Magisk, which voids the warranty and can lead to a device blink.

Frequent mistakes and their solutions

When working with containers on Xiaomi, users often face typical problems, and here are the most common ways to fix them:

Mistake.Reason.Decision
I can't open the folder: access is forbiddenNo rights to read the system folderUse Root Explorer or get root rights
Password incorrect (Mi Secure Folder)Forgotten password or sync failure with Mi AccountReset the password through Forgot the password? or delete the folder (data will be lost)
File corrupted (.mbk)Incorrect completion of backupTry to restore it with Mi Backup Extractor or create a new copy
The container is not mounted (ADB)Damage to the file system or lack of rightsRun fsck or re-flash the device

πŸ’‘

If you open.mbk with an Unsupported version error, upgrade to the latest version of Mi Backup Extractor or use an alternative utility MiPCSuite (Windows only).

Can I open Mi Secure Folder without a password?
Officially, no. The only legal way is to reset your password through Mi Account. Unofficial methods (cracking through ADB or brute force) require technical skills and do not guarantee success. If you do not remember the data from your Xiaomi account, you cannot restore access to the folder.
Where are the photos from the hidden album in the Xiaomi Gallery?
Photos from the hidden album (Gallery β†’ Albums β†’ Hidden) are physically in the DCIM/.hidden folder. To see them, turn on the hidden files in any file manager. Note: when you reset your phone, these files are not deleted, but lose the "hidden" mark.
How to transfer data from Mi Secure Folder to another phone?
Official way: Open Mi Secure Folder and export files to your phone's regular memory. Copy them to your new phone via Mi Cloud, Google Drive or cable USB-OTG. On the new device, import files back to Mi Secure Folder. ⚠️ When you transfer to a phone of another brand (not Xiaomi), files will lose encryption and become common.
What happens if you delete the.miui folder?
The.miui folder contains system settings for the theme, wallpaper and MIUI configurations, and deleting it will result in: Resetting wallpaper to standard ones, losing user themes (you'll have to download again), and Lawnchair crashes (if you use it instead of a standard launcher), and the system will restore the folder automatically the next time you start, but you'll have to reset the settings.
Can I recover deleted files from the container?
If files have been deleted from Mi Secure Folder or hidden folder, the chances of recovery are minimal.Try: Use data recovery software (DiskDigger, Recuva) - but they do not work with encrypted partitions.Check the Recycle Bin in Mi Cloud (if sync was enabled). Contact Xiaomi Support with proof of purchase – in rare cases, they can help with backups. ⚠️ Warning: Do not write new files to your phone after deleting it – this reduces the chances of recovery.