Main Menu 3.0 on Xiaomi: How to exit the engineering menu without data loss

Main Menu 3.0 is a powerful tool for diagnosing and fine-tuning hardware, but even an experienced user can accidentally get into it, most often when service codes are entered unsuccessfully (for example, ##4636##), using unofficial firmware or after an incorrect update through the Mi Flash Tool. The main problem is the lack of an obvious exit button: the menu interface is designed for engineers, not for the average owner of Redmi, POCO or Mi.

In this article, we’ll look at all the working ways to exit Main Menu 3.0, from the simple (reboot) to the complex (manual file editing via ADB). We’ll focus on situations where a smartphone hangs on a logo screen after trying to exit, and explain why standard methods like holding the power button may not work. If you’re afraid of losing data, there’s a section at the end of the article about backing up right from the engineering menu.

What is Main Menu 3.0 and why you can’t just go back

Main Menu 3.0 is Qualcomm’s service software integrated into Xiaomi’s Snapdragon chipset-based firmware (the 4xx/6xx/7xx/8xx series) that is designed to test the device’s modules: cameras, sensors, modems, and even a battery. Unlike the MIUI user interface, there are no conventional controls, only test lists and numerical parameters.

The main reason why you can not get out in the standard way:

  • πŸ”„ No event handler: The menu ignores back button clicks (both physical and touch) as it runs at a low OS level.
  • πŸ› οΈ Lockdown UI: certain tests, for example, RF Test Mode - Completely captures screen control.
  • πŸ“΅ Disconnected Android services: in engineering mode suspended system processes responsible for navigation.

Fun fact: Mediatek chipset devices like the Redmi Note 12 4G use an Engineer Mode, but the way out is simpler, and Snapdragon models have to use workarounds.

⚠️ Note: If you are in Main Menu 3.0 after entering the code ##36446337# (accelometer test), do not try to change the settings in the Sensor Calibration section - this can lead to incorrect operation of the gyroscope in games.

Method 1: Software reboot (works 70% of the time)

The safest method is forced reboot without data loss, suitable for most Xiaomi models from 2019-2026 (including the Redmi Note 13 Pro+, POCO F5, Mi 11 Ultra).

Instructions:

  1. Hold the power button for 10-15 seconds (on some models – up to 20 seconds).
  2. If the screen is gone, but the smartphone does not reboot – wait 30 seconds and repeat the hold.
  3. When the MI logo appears, release the button. The system should boot as normal.

If the reboot didn’t help, try the combination:

Power button + Volume up (hold 10 seconds)

Try another button combination (power + volume down)

Connect the charger and reboot the charger

Wait for the battery to run out (if time permits)

Use a USB cable to force shutdown (see Method 3)

-->

On devices with MIUI 14+, a notification may appear after a forced reboot, "System recovered after failure." That's fine -- just press OK.

Method 2: Exit via hidden button (Main Menu 3.0 only)

Main Menu 3.0 (found at Xiaomi 2020-2023) has a hidden exit feature, but it’s hidden behind an unobvious sequence of actions.

Step-by-step:

  1. In the main menu, find the Back item (usually at the bottom of the screen). If it is not available, move to step 3.
  2. Press Back, then quickly press Menu (if any) and hold the Home button (or home gesture) for 3 seconds.
  3. If you don't have Back, press and hold the screen area on the top right (where the time is usually displayed) for 5 seconds.
  4. In the window that appears, select Exit to Android or Reboot System.

Some firmware (e.g. EU ROM) display icons instead of text:

  • πŸ”™ β€” return to the previous menu;
  • 🏠 β€” Android;
  • πŸ”„ β€” restart.

⚠️ Note: On devices with an unlocked bootloader after leaving Main Menu, you may need to re-authorize in Mi Account due to the activation of anti-Rollback protection.

Redmi (Note/Prime series)

POCO (F/X/M)

Mi (11/12/13 series)

Black Shark

Another brand

-->

Method 3: Forced USB Disconnection (for power users)

If the smartphone does not respond to buttons, but is defined by the computer as a Qualcomm HS-USB QDLoader 9008 device, you can try a hardware reset via a PC connection.This method requires Qualcomm drivers installed and QPST or Mi Flash Tool programs.

What you need:

  • πŸ–₯️ Windows computer 10/11;
  • πŸ”Œ The original cable. USB (preferably from a set);
  • πŸ“₯ Qualcomm drivers (you can download it) XDA Developers);
  • πŸ› οΈ Mi Flash Tool (official version of your model).

Instructions:

  1. Connect your smartphone to your PC off (hold power + volume down 10 seconds for a complete shutdown).
  2. Press the volume button up and, without letting it go, connect the cable. USB. The device must be defined as QHUSB_BULK.
  3. Open the Mi Flash Tool, select Clean All mode, and run the stock firmware for your model (download it from en.miui.com).
  4. After successful firmware, the smartphone will restart in normal mode.
Xiaomi modelSupported chipsetMain Menu versionDoes Method 3 Work?
Redmi Note 10 ProSnapdragon 732G3.0.5Yes.
POCO F3Snapdragon 8703.0.7Yes (Mi Account authorization required)
Mi 11 LiteSnapdragon 732G/780G3.0.4Yes.
Redmi 9AMediatek Helio G25Engineer Mode 2.1No (another type of menu)
Black Shark 5Snapdragon 8703.0.8Yes (with unlocked bootloader)

If after firmware, the smartphone loads into Fastboot Mode, follow the command:

fastboot reboot

πŸ’‘

Before you use the Mi Flash Tool, disable the antivirus, which can block Qualcomm drivers, which will lead to an error Sahara Communication Failed.

Method 4: Manual file editing via ADB (for advanced)

If you have debugging enabled USB (USB Debugging, you can try to log out of Main Menu by deleting temporary menu files via ADB. This method is suitable for users who have previously configured ADB on the Xiaomi.

Conditions required:

  • πŸ”§ Included debugging by USB developer-setting;
  • πŸ–₯️ Established ADB Tools on PC;
  • πŸ”Œ Working cable USB (preferably with data transmission support).

Commands to execute (enter in turn in the command line):

adb devices


adb shell




su




rm -rf /data/local/tmp/qualcomm_menu*




reboot

If you enter su with a Permission denied error, you don't have root permissions on your device. In this case, try an alternative method:

adb shell am force-stop com.qualcomm.qti.engineermode


adb shell input keyevent 3

After completing the commands, the smartphone should restart as normal. If this does not happen, check if ADB is blocked in the security settings (Settings β†’ Additional β†’ Privacy β†’ Special permissions).

What if the ADB can’t see the device?
1. Check if the debugging is included USB developer-setting (7 once you press "Version" MIUI" In "About the Phone," then turn on the debugging). 2. Install the drivers. ADB (download [SDK Platform Tools](https://developer.android.com/studio/releases/platform-tools)). 3. Try another one. USB-cable (some cables are only for charging purposes). 4. Reboot your PC and smartphone, then reconnect.

What to do if no one has helped: extreme measures

If all of these methods fail, radical solutions remain:

  1. Hard Reset - deletes all data, but returns performance, performed via Recovery Mode (power + volume up).
  2. EDL firmware requires special hardware (e.g. Deep Flash Cable) and Qualcomm Firehose knowledge.
  3. Contact the service center – if the device is warranty, do not try to repair it yourself.

Warning: on devices with MIUI 13+, you may need to enter a password from your previous Mi Account (Factory Reset Protection) after a hard reset. If you don't remember the password, it can take up to 72 hours to restore access.

MethodLoss of dataDifficultyImplementation time
Reboot with a buttonNo.Low.1-2 minutes
Hidden Exit buttonNo.Medium3-5 minutes
ADB-teamNo.Tall.10-15 minutes
Firmware through Mi FlashYes (without backup)Very high.30-60 minutes
Hard ResetYes.Low.5-10 minutes

πŸ’‘

If the smartphone after leaving Main Menu 3.0 began to warm up or discharge quickly – reset the network settings (Settings) β†’ SIM-maps and mobile networks β†’ Reset network settings. This will eliminate possible conflicts of modem profiles.

How to Avoid Main Menu 3.0 in the Future

To avoid accidentally activating the engineering menu, follow these rules:

  • πŸ“± Do not enter unfamiliar service codes (e.g. ##7780## or ##36446337##) unless you are sure of their purpose.
  • πŸ”„ Do not update your firmware through unofficial sources (especially Custom). ROM non-compatibility-check).
  • πŸ›‘οΈ Set a password for Developer Settings (Settings) β†’ System system β†’ Additionally. β†’ For developers β†’ Settings password).
  • πŸ“¦ Before experimenting with firmware, back up through Mi PC suite TWRP.

If you often have to work with an engineering menu (for example, for testing equipment), use safe alternatives:

  • MTK Engineering Mode (for Mediatek) – output is done by the back button.
  • The β€œDevice Info HW” app shows technical data without the risk of blocking.
  • ADB-commands – allow you to receive diagnostic information without logging into the menu.

For example, to check the battery status, instead of Main Menu, you can use the command:

adb shell dumpsys battery

FAQ: Frequent questions about Main Menu 3.0 on Xiaomi

Can I get out of Main Menu 3.0 without losing data?
Yes, 90% of the time, a forced reboot (holding the power button) or a hidden exit button (see Method 2) helps. Data loss occurs only when hard reset or firmware is hard.
Why is the camera or sensors not working after leaving the menu?
This is due to a malfunction in the calibration of the modules. Solution: Reboot your smartphone. If the problem persists, reset the camera settings (Settings β†’ Applications β†’ App Management β†’ Camera β†’ Storage β†’ Clear data). In extreme cases, reset to factory settings.
Can I roll back the firmware after leaving Main Menu?
On devices with a locked bootloader, firmware rollback is not possible due to Anti-Rollback protection. If you have stitched through a newer version of MIUI, you will only get back through EDL with official permission from Xiaomi.
What if the Main Menu 3.0 buttons don’t work?
Connect your smartphone to your PC and use it ADB Adb shell input tap x y # coordinates of adb shell input keyevent 4 # The coordinates of the buttons can be found through the screenshot (adb shell screencap). -p /sdcard/screen.png).
Why did IMEI disappear after leaving the menu?
This is a critical error that occurs when you change the settings in the RF Test Mode. Solution: Restore IMEI via Engineer Mode (enter ##3646633# β†’ CDS Information β†’ Radio Information). Or run the modem module through Fastboot: fastboot flash modem NON-HLOS.bin The NON-HLOS.bin file can be extracted from the stock firmware for your model.