How to exit Main Menu on Xiaomi smartphones: a step-by-step guide

The Main Menu (or Engineer Mode) service menu on Xiaomi, Redmi and POCO smartphones is a powerful tool for diagnosing and fine-tuning the device. However, many users face a problem: after accidentally entering this menu through engineering codes (for example, ##4636# or #36446337##), they can not leave it. The system does not respond to the back button, and attempts to reboot sometimes lead to crashes.

In this article, we will analyze 5 proven ways to exit Main Menu on Xiaomi devices of different generations - from old models on MIUI 9 to the latest flagships with HyperOS. Particular attention will be paid to models with hardware buttons (until 2019) and touch gestures (2020-2026), since the exit algorithms for them are fundamentally different.

If you're here after a failed attempt to unlock a bootloader or firmware through Fastboot, it's important to understand that leaving Main Menu doesn't always solve the "brick" problem. In some cases, you'll need a full reset or firmware reflash, but in 90% of situations, a fairly correct sequence of actions is enough, and we'll describe them below.

1. Standard output: return button and soft rebate

On most Xiaomi devices (especially those released after 2020), Main Menu exits through a combination of software and hardware commands. Try this method first, it is the safest and does not require resetting.

Sequence of action:

  1. Press the physical power button (or touch button if you have a Redmi Note 11 or later) with one short press. Don't hold it, it will turn off.
  2. If the screen is gone and the off menu appears, select β€œRestart”.
  3. After the reboot, check if the service menu has disappeared. If not, move on to the next method.

For models with touch-sensitive navigation buttons (e.g. Xiaomi Mi 9 or POCO F3):

  • πŸ“± Swipe your finger from the bottom up and hold it ("Home" gesture) for 2-3 seconds.
  • πŸ”„ If you have a multitasking menu, swipe the Main Menu app up, as if you were closing.
  • πŸ”‹ If the gestures don’t work, try triple pressing the β€œNutrition” button (on some firmware, this causes a forced exit).

⚠️ Attention: On devices with MIUI 12.5+ HyperOS long-term power button holding can activate voice assistant Xiao AI. If this happens, say β€œExit” or β€œBack” (works on Chinese firmware).

πŸ“Š What kind of Xiaomi model do you have?
Redmi Note 10/11/12
POCO X3/X4/X5
Mi 11/12/13
Another model
I don't know.

2. Forced exit via button combination

If the standard method didn't work, try hardware reboot, which is suitable for all models, including the Redmi 4X, Mi A2 and other devices with physical buttons. The main rule is: don't confuse it with a full shutdown - we need to restart the smartphone, not turn off the power.

Instructions for different types of devices:

Type of deviceButton combinationDuration of retention
With physical buttons (until 2019)Food + Volume up10-12 seconds
With Touch buttons (2019–2021)Food + Volume Down8-10 seconds
New models (2022–2026)Power + both volume buttons5-7 seconds
POCO F1, Mi 8 (special cases)Food + Volume up + Volume down15 seconds.

Once the buttons are held, the device should vibrate and reboot. If the screen is out but there is no vibration, hold the buttons for another 5 seconds. AMOLED-screens (for example, Xiaomi 12 Pro) after the reboot can appear the Fastboot logo – this is normal, wait for the full system load.

⚠️ Note: On some firmware (especially custom ones like LineageOS), a forced reboot may cause system integrity checks. UI Stopped – reset the cache via Recovery.

β˜‘οΈ What to do if your smartphone does not respond to the buttons

Done: 0 / 4

3. Exit through the engineering menu (for advanced)

If you're logged into Main Menu through engineering codes (e.g. #36446337## for the camera test), you can try logging back out via service commands. This requires accuracy - a bug in the code can cause a crash.

Step-by-step:

  1. Enter the exit code: ##0000## This is a universal command to reset the engineering menu to MIUI.
  2. If it doesn't work, try the alternative code: ##4636## β†’ Back up. β†’ Exit
  3. For POCO models (based on MIUI for POCO) use: ##7626## β†’ Menu β†’ Back

If you enter the code and you see a message that says "Connection problem or invalid MMI code," your firmware is blocking the engineering commands, and only hardware reboot will help (see Section 2).

What if a black screen appears after #0000##?
This means that the engineering menu is closed, but the system restarts in the background. Wait 1-2 minutes - the device must return to the standard interface. If the screen remains black for more than 5 minutes, hold the power button for 15 seconds to force shutdown.

4. Reset settings via Recovery (extreme case)

If none of the above methods worked, and your smartphone is stuck in Main Menu with the error "Unfortunately, System UI has stopped" - you will have to use Recovery Mode. This method erases user data, so use it only as a last resort.

How to log in to Recovery and perform a reset:

  1. Turn off the device (hold Power + Volume up 10 seconds).
  2. Click the combination to enter Recovery: πŸ“± For most models: Nutrition + Loudness up. πŸ”§ For POCO X3, Redmi Note 9: Nutrition + Loudness down. βš™οΈ For Mi. 10/11: Nutrition + volume-button.

Recovery

"Wipe Data"

"Yes"

"Reboot System"

⚠️ Note: On some firmware (e.g. HyperOS 1.0), the "Wipe Data" option may be called "Factory Reset" or "Erase All Data.

Once reset, the device will boot up in a β€œout of the box” state, you will need to reconfigure the Mi Account, connect to Wi-Fi, and recover data from the backup (if it was created).

πŸ’‘

Resetting via Recovery is the only way to exit Main Menu if the smartphone is getting stuck during the boot phase with a β€œNo Command” error.

5. Features for specific models

Some Xiaomi devices have unique features when working with Main Menu. Below is a list of models with unusual behavior and solutions for them.

ModelProblem.Decision
Redmi Note 8/8TAfter leaving Main Menu, the sensor disappearsReboot to Fastboot (Food + Volume Down) and select "Normal Boot"
POCO F1Hanging on the logo after the engineering menuHold Power + Volume Up for 20 Seconds for Forced Shutdown
Mi A1/A2 (Android One)## codes are not workingUse ##4636## (no stars) or the MTK Engineering Mode app
Xiaomi 12/13 ProMain Menu opens accidentally when blockedTurn off the β€œDouble Touch to Wake Up” gesture in the screen settings

For MediaTek processor devices (e.g. Redmi 9A, POCO C31), exiting the engineering menu may require installing a special APK. Download MTK Engineer Mode from official stores and use it to securely close service sections.

πŸ’‘

If your mobile data stopped working after leaving Main Menu, go to Settings β†’ SIM-maps and mobile networks β†’ Resetting network settings.

6 How to Avoid Accidental Entry into Main Menu

To avoid the problem of leaving the engineering menu in the future, follow these recommendations:

  • πŸ” Block Engineering Codes: In Settings β†’ System system β†’ For developers, turn off the option "Enable the Engineering Menu" (if any).
  • πŸ“± Use screen-protected covers: Many random entries occur due to the pressing of buttons in your pocket.
  • πŸ”§ Update the firmware: B MIUI 14 and HyperOS added protection against accidental opening of service menus.
  • πŸ›‘οΈ Set a password for engineering settings: In some firmware (for example, Xiaomi.EU) you can set PIN to access ##-commands.

If you frequently work with engineering menus (such as network or camera testing), create a desktop shortcut with a secure exit code:

am start -a android.intent.action.VIEW -d "##0000##"

This command can be run via Terminal Emulator or ADB.

Frequently Asked Questions (FAQ)

My Xiaomi got stuck in Main Menu after running a firmware through Fastboot.
This is a typical problem with interrupted firmware. You need: Download the full firmware package for your model from the Xiaomi Firmware site. Log in Fastboot (Power) + Volume down. Connect your device to your PC and start the command: fastboot flash all [name file firmware.zip] If it doesn't work, contact the service center: it may be damaged. EMMC-memory.
After leaving Main Menu, the sound was gone.
This is because the audio settings in the engineering menu are reset. Solution: Go to Settings β†’ Sound β†’ Additional settings. Select "Reset Sound settings." Reboot the device. If the sound doesn't come back, check if it's turned off at the hardware level (for example, after a fall).
Can I leave Main Menu without rebooting?
On most devices, no. The engineering menu works at the System UI level, and it requires a restart of the interface. Exception: On Xiaomi with MIUI 13+, sometimes the long hold of the Home button (if any) helps. On POCO with HyperOS, you can try the voice command "Exit engineer mode" (only working on English firmware).
Why is the camera not working after Main Menu?
Most likely, the ISP (image processing processor) settings were changed in the engineering menu. Solution: Enter the code: ##6484### Select "Restart MSM" (for Qualcomm) or "Reset ISP" (for MediaTek). Reboot the device. If the camera still doesn't work, you need to flash the camera module through Fastboot.
How to turn off Main Menu access forever?
You can't block the engineering menus completely (they're needed for diagnostics), but you can make it harder to access: Turn off Developer Mode in your settings. Set a password for Settings β†’ System β†’ Additional β†’ Special features β†’ Access codes (not available on all firmware). Use blocking apps like AppLock to restrict access to Phone (where codes are entered). On enterprise firmware (such as MIUI for business), the engineering menus are disabled by default.