Remove the second space on Xiaomi, if you forgot your password and account: all working ways

The second space on Xiaomi smartphones is a useful feature for separating personal and work data, but it often becomes a headache if you forget your password or Mi Account data. Things get complicated when the device is locked and access to the main space is limited. Unlike a standard Recovery reset, deleting the second space requires specific actions, otherwise you risk losing data in the main profile.

This article covers all the current methods of removing second space on Redmi, POCO and Mi (including models on MIUI 12-14), when you do not have access to either a password or a linked account. We will analyze both software solutions (via ADB, Fastboot) and hardware (using test points), and explain why some β€œpeople’s” methods can harm your device.

What is the second space on Xiaomi and why is it difficult to remove it?

Second Space is an isolated environment in MIUI that operates as a separate user profile with its own:

  • πŸ” Password (may differ from the main one)
  • πŸ“± Applications (installed independently)
  • πŸ“ Files (storage is isolated)
  • πŸ”„ Settings (themes, sounds, wallpapers)

The problem is that Xiaomi links the second space to Mi-account and File-Based Encryption (FBE) encryption. If you forget your password or account details, the system blocks access to space management through standard settings. Even resetting through Recovery doesn't always help - often it results in data loss in the main space if it's also encrypted.

Key causes of complexity:

  • πŸ”’ Encryption: MIUI use FBE, space-bound.
  • 🚫 Mi Account Blocking: Without a Linked Account, Deletion Cannot Be Confirmed.
  • πŸ› οΈ Lack of universal solution: Methods differ for models with Snapdragon and Mediatek.

⚠️ Warning: Do not try to delete the second space via a factory reset (Wipe Data in Recovery) - this will delete all data, including the main space, if it is encrypted. MIUI 13+ This type of reset could lead to a blockage FRP (Factory Reset Protection).

Preparing for removal: what to do before the start

Before you start removing the second space, follow the mandatory preparatory steps:

Backup your main space data (if available)

Charge your smartphone at least 70%

Install Xiaomi drivers on your PC (official website)

Download Mi Flash Tool and firmware for your model

Prepare. USB-cable (preferably original)

-->

If you have access to the main space, copy the important data to your PC or cloud.

  • πŸ“² Mi PC Suite (official backup software)
  • ☁️ Google Drive or Mi Cloud (if sync is enabled)
  • πŸ”Œ ADB Pull (for experienced users)

For models with Qualcomm Snapdragon processors (e.g. Redmi Note 10 Pro, POCO F3), you will need an EDL (Emergency Download Mode) mode to activate it:

  1. Turn off the phone.
  2. Press Volume up + Volume down and connect to the PC.
  3. Hold the buttons for 10-15 seconds until the Qualcomm HS-USB QDLoader 9008 port appears in the Device Manager.

⚠️ Note: On some models (Redmi 9, POCO M3) enter EDL You need an authorized Mi Account. If you don't have one, use the test point method (described below).

πŸ“Š What is the processor in your Xiaomi?
Qualcomm Snapdragon
Mediatek Helio
Mediatek Dimensity
Other
I don't know.

Method 1: Removal via ADB (if you have access to the main space)

If you can log into the main space but are locked in the second, try removing it via ADB (Android Debug Bridge).This method works on MIUI 12-14 and doesn't require a data reset.

Instructions:

  1. Turn on USB Debugging: Go to Settings β†’ About Phone. Tap 7 times on MIUI to activate Developer Mode. Go back to Settings β†’ Additional β†’ Developer. Enable USB Debugging and confirm permission.

Command line.

Terminal

adb devices

The name of your device should appear.

adb shell pm uninstall -k --user 0 com.miui.secondspace
adb reboot

After the reboot, the second space will be removed and all the main profile data stored. If the command does not work, try an alternative option:

adb shell am start -n com.miui.secondspace/.SecondSpaceDeleteActivity

⚠️ Attention: On some firmware (MIUI 14 Global) this method may cause the error java.lang.SecurityException.

πŸ’‘

If the adb device command doesn’t show your device, try reinstalling drivers or using another one. USB-Often the problem is with the unoriginal cables with damaged contacts for data transmission.

Method 2: Fastboot reset (without loss of core space data)

If you have access to the main space, but ADB didn't help, use Fastboot. This method saves the main profile data, but deletes the second space along with all of its data.

Step-by-step:

  1. Turn off the phone.
  2. Press Volume Down + Power to enter Fastboot.
  3. Connect the device to your PC and open the Command Prompt in the folder with the platform-tools.
  4. Check the connection: fastboot devices
  5. Run the command to delete the second space: fastboot erase second_space
  6. Reboot the phone: fastboot reboot

If the fastboot erase team second_space Not supported by your model, try an alternative:

fastboot erase userdata_second

Some devices (POCO X3, Redmi Note 8 Pro) may require OEM Unlock to unlock the bootloader.

  1. Enable OEM Unlock in Settings β†’ For Developers.
  2. Fastboot: Fastboot Flashing unlock
  3. Confirm unlocking on your phone (if available).
Xiaomi modelSupports fastboot erase second_space?Do you need to unlock the bootloader?
Redmi Note 10/10 ProYes.No.
POCO F3/F4Yes.Yes (unless previously unlocked)
Mi 11/11 LiteNo (use) user_data_second)Yes.
Redmi 9/9AYes.No.

πŸ’‘

The Fastboot method is the safest way to save the main space data, but requires an unlocked bootloader on new models (MIUI 13+).

Method 3: Removal via EDL (for locked devices)

If the phone is completely locked (no access to either the main or the second space), the only way out is through EDL (Emergency Download Mode), a method that is suitable for devices with Qualcomm processors and requires special software.

What you need:

  • πŸ–₯️ Windows PC (for Mi Flash Tool)
  • πŸ”Œ Original. USB-cable
  • πŸ“¦ Firmware for your model (download from Xiaomi Firmware Updater)
  • πŸ”§ Mi Flash Tool (official utility)
  • πŸ”‘ Authorized Mi Account (for new models)

Instructions:

  1. Enter EDL mode: Turn off the phone. Press Volume up + Volume down and plug in to the PC. Hold on for 10-15 seconds until the Qualcomm HS-USB QDLoader 9008 port comes on.

Qualcomm

Mi Flash Tool

Refresh

Clean All

Flash

Once the firmware is in place, the phone will reboot to the clean system without a second space, and all data will be deleted, including the main space.

What to do if the Mi Flash Tool requires authorization?
On new models (MIUI 13+) for firmware through EDL requires an authorized Mi-account. If it is not, you can use: 1. Bypass script (for example, EDL Bypass Tool - risky, can lock the device). 2. Contact the service center (official unlock costs ~ 1000-2000 rubles). 3. Test point (for experienced users, requires soldering).

⚠️ Attention: Firmware through EDL model MIUI 14 and later may result in a blockage FRP, If the device was linked to a Mi Account, it will require official unlocking.

Method 4: Use of Test Point (for advanced users)

If the EDL is not available because of authorization blocking, the last method is test point, which is a hardware way of entering the EDL by closing contacts on the board, only suitable for users with experience in soldering or electronics repair.

What you need:

  • πŸ”§ soldering iron or tweezers
  • πŸ” Lupa (contacts are very small)
  • πŸ“ Test point diagram for your model (see on the 4PDA)
  • πŸ”Œ USB-cable

Step-by-step:

  1. Turn off the phone and remove the back cover (on most models it is glued – use a mediator).
  2. Disconnect the battery (required!).
  3. Find a test point on the motherboard (usually signed as EDL or TEST).
  4. Close the contacts with tweezers or rations.
  5. Connect. USB-cable to PC – Qualcomm port must be determined HS-USB QDLoader 9008.
  6. Swipe the device through the Mi Flash Tool (as in Method 3).

Examples of the location of test points:

ModelLocation of the test pointNotes
Redmi Note 8 ProNext to the battery connector, two contacts with the EDL labelRationing is required.
POCO X3 NFCUnder a metal screen, next to the processorYou can lock it with tweezers.
Mi 9TRight of the camera, two little contacts.I need a magnifying glass.

⚠️ Warning: Incorrectly closing the test point can disable the motherboard. If you've never soldered microelectronics, you'd better go to a service center.

What to do if no method has helped

If all of these methods do not work, there are several options:

  • πŸ”§ Official service center: Xiaomi can unlock the device on documents (passport, check). The cost is from 1500 rubles.
  • πŸ’» Specialized services: Some workshops offer the removal of the second space without data loss (price) ~3000-5000 Risk: You can run into scammers.
  • πŸ“± Replacement of motherboard: Last resort if the device is critical.cost β€” 50-70% phone price.

Before contacting the service:

  • Check if the data will retain the main space.
  • Ask about the work guarantee (must be at least 3 months).
  • Check the reviews about the workshop (especially on 2GIS or Yandex.Maps).

If the phone doesn't contain critical data, it's easier to reset it completely and configure it again. Newer models (MIUI 14+) may require you to enter data from a Mi Account that was previously linked after the reset, and if you don't remember it, restore access through the official website or contact support.

FAQ: Frequent questions about removing second space

Can I delete the second space without losing the main profile data?
Yes, if you have access to the main space, use the methods through ADB or Fastboot (described above). If the phone is completely locked, data retention is unlikely, you will need firmware through EDL that deletes everything.
Why is there a second space left after the reset via Recovery?
Recovery (Wipe Data) only removes the current space data, and to completely remove the second space, you need to use Fastboot or EDL, or special ADB commands.
What if the Mi Flash Tool gives the error "Flash is not allowed"?
This error means that: The device is locked by Mi Account (authentication required); the wrong firmware mode is selected (try Clean All and Lock instead of Clean All); the firmware is not suitable for your model (download the correct version from Xiaomi Firmware Updater); Solution: use an authorized account or contact the service.
Can I recover data from the second space after deletion?
Technically possible, but extremely difficult. The second space data is stored in encrypted form (FBE), and it requires an original password to decrypt it. If you don't remember it, recovery is almost impossible. Specialized services (for example, Cellebrite) can help, but the cost starts from 10,000 rubles.
How can I avoid problems with the second space in the future?
To avoid being blocked: Use one password for both spaces. Link Mi Account and enable password backup. Backup your data regularly through Mi PC Suite. Don't install custom firmware - they can break the space mechanism.