Xiaomi users often experience a situation where a smartphone or TV suddenly goes into engineering testing mode or displays the Main Menu screen.This can happen after a failed firmware update, accidentally pressing a combination of buttons when the device is turned on, or as a result of a failure of the system files MIUI. At this point, the standard Android interface becomes unavailable, and the touch of the screen may not respond in the usual way.
You don't have to panic, because it's a special diagnostic tool that developers have built into to test hardware components. But for the average user, being on this menu is useless and can lead to accidental changes in critical settings. To get the gadget back to normal, you need to perform a series of sequential actions, depending on the type of device and the version of the operating system.
There are several proven ways to force yourself out of this state, and we'll look at things like just restarting it to using specialized commands through a computer, and it's important to understand that the engineering menu is not a virus, but a regular debugging function, so having it doesn't mean your smartphone is broken.
Reasons for getting into the engineering menu and diagnosis
Before you start leaving Main Menu, itβs worth understanding what caused it to appear, most often because physical volume buttons or power sticks when Android boots, and if the button is pinched, the system reads it as a command to enter Recovery or Factory Mode mode.
Another common cause is system files being damaged after failing to install custom firmware or obtain root rights. In some cases, viruses or malicious scripts can simulate entering diagnostic mode by blocking the normal operation of the interface, and a failure could occur in the touchscreen module, which mistakenly sends a signal to press a hidden combination.
For an accurate diagnosis, look at the text on the screen. If you see the MI logo and menu items in English or Chinese, this is the classic Factory Mode. If the screen is black with white commands, it may be Fastboot mode, which requires a different approach to unlocking.
Basic methods of exit through control buttons
The easiest and safest way to leave the engineering menu is to use the device's physical keyboard. On most Xiaomi and Redmi models, navigation in this mode is done by the sound buttons, and the choice of item is by the power button. You need to find the Back or Return option at the bottom of the screen.
If you have a Reboot or Restart on the screen, select it with a volume rocker and confirm the action with the on button. This will lead to a regular restart of the system. Some versions of MIUI require you to press and hold the power button for 10-15 seconds until the screen goes out and the device vibrates.
Sometimes standard buttons may not respond because the touchscreen drivers freeze, so try the combination: press the Volume Up and Power buttons for 10 seconds at the same time, which will force the device to shut down and allow it to start normally without logging into Main Menu.
βοΈ Physical checks
Access to the Recovery and Fastboot menu
If a normal restart doesnβt work and the phone loads back into the diagnostic menu, you should use Recovery Mode. To log in, you usually need to turn off the phone, and then press the Volume Up and Power button at the same time. In the menu that appears, select Wipe Data (with loss of data) or Reboot (without loss).
It is important to distinguish between Recovery and Fastboot. Fastboot mode often displays an image of a hare repairing an android, or FASTBOOT text in orange. exiting it is done by holding the power button for a long time (about 15 seconds) before vibration.
In the Recovery menu, you can also navigate with volume buttons. Be very careful: selecting Wipe All Data will cause your phone to reset completely to factory settings. If your goal is just to get out, look for Cancel or Back to Main Menu, and then Reboot to System.
What is a cyclical reset?
Using ADB for forced withdrawal
For advanced users who have USB debugging, the most effective method is to use the Android Debug Bridge (ADB) toolkit, which allows you to send a command to restart or exit the menu directly from your computer, ignoring the unresponsive interface of the phone.
To start, you'll need to install Xiaomi drivers and the SDK Platform-Tools platform on your PC. Connect the device with a cable and open the command line in the tool folder. If the connection is successful, enter a command to check the connection:
adb devicesIf a device appears in the list, enter the command to reboot to normal mode:
adb rebootThis command will force all the processes of the engineering mode to run a standard Android boot. If the reboot command does not work, you can try sending a special exit key:
adb shell am broadcast -a com.android.factorytest.EXITTable of codes and commands for different models
Different Xiaomi and Redmi models may have their own Main Menu behaviors. Below is a summary table of actions for the most popular series of devices. Note that Mi TVs may have different methods and require a remote control.
| Model of the device | Combination for exit | ADB mode | Features |
|---|---|---|---|
| Xiaomi Mi 9 / 10 / 11 | Volume Down + Power (15 seconds) | Supported | Sensitive touchscreen |
| Redmi Note 8 / 9 / 10 | Menu -> Reboot -> System | Requires permission | Frequent entry via ##64663## |
| Poco X3 / F3 | Recovery -> Reboot | Supported | Problems with the power button |
| Mi TV Stick / Box | Back press on the remote | Unavailable. | Requires power outages |
π‘
If you use a Xiaomi TV, just disconnect it from the outlet for 1 minute.The Factory Mode built-in menu is usually not there, it's either a Smart TV crash or a test panel mode that is reset by a shutdown.
Solving problems with touchscreen and sticking buttons
Often the reason for the Main Menu getting stuck is the hardware.If the phone screen is contaminated, wet, or cracked, the capacitive layer can register false presses.Make sure to wipe the screen thoroughly with a dry soft cloth and remove the protective glass if it is damaged.
Sticking the volume button is a classic problem after falling or getting moisture. Mechanical clamping of the button inside the case is perceived by the system as an entrance to Recovery or Factory Mode each time you turn on. Try gently pressing the button several times to release the mechanism, or slightly tapping on the edge of the device.
β οΈ Warning: If the buttons are physically damaged or pushed inside the case, the software methods for exiting the menu may not work, in which case it is necessary to disassemble the device and disconnect the button plume from the motherboard to check the device.
For a temporary solution, you can use software button locking if you can start the phone in safe mode. To do this, when you turn on when the MI logo appears, press the Volume Down button. This will download Safe Mode, where third-party button drivers can be disabled.
π‘
Hardware button sticking is the most common cause of cyclical logging into an engineering menu, and software resets won't help until the physical cause is eliminated.
Complete resetting of settings as an extreme measure
If none of the above methods helped to get out of Main Menu Xiaomi, the last option is a full reset (Hard Reset).This step is necessary if the MIUI system files are damaged so that normal downloading is impossible. Remember that all your photos, contacts and applications will be deleted.
To perform the reset, enter the Recovery menu (Volume Up). + Select the language (if available), then go to Wipe Data. Confirm the action by selecting Wipe All Data. After you complete the process, select Reboot -> Reboot to System.
Once rebooted, the phone will be like new, without logging into the engineering menu, and you will need to reconfigure your Wi-Fi, Google account, and restore data from a backup if it was created previously in the Mi Cloud or on your computer.
β οΈ Warning: Before performing Hard Reset, make sure that the battery level is at least 50%. Interrupting the reset process due to battery discharge may make it impossible to continue loading the device (brick).