Xiaomi Mi A2 β One of the few smartphones of the brand, running on pure Android One instead of the brand shell MIUI. This simplifies many processes, but also adds nuances when setting up the modes for developers. USB on this device is required to install custom firmware, unlock the bootloader, work with ADB-But it's not as easy to turn it on as it is on other Xiaomi models, because there's no "Developers" menu in the default settings.
In this article, you will find a step-by-step instruction with key steps, a breakdown of common errors (such as when the PC canβt see the device), and alternative ways to activate debugging if the standard method didnβt work. We have taken into account the features of the Mi A2, taking into account its firmware based on Android 9/10 Pie and later updates. If you plan to unlock the bootloader or flash your smartphone, you can not do without debugging on USB.
Why is there no developer menu on Xiaomi Mi A2?
Unlike smartphones with MIUI, where the developer menu is activated after 7 times clicking on the build number, the Mi A2 uses Android One, Google's "naked" Android. Here the algorithm is different:
- π There is no hidden menu β it must be created manually through settings.
- π± The build number is hidden deeper: Settings β System system β The phone. β Assembly number.
- π§ Additional settings may not be available if the device has not been updated for a long time.
Also, there is a bug on the Mi A2 that disappears after resetting the developer menu and has to be activated again, which is due to the peculiarities of how Android One works on Xiaomi devices. If you have previously used smartphones with MIUI, the process may seem counterintuitive - but it is quite predictable if you know the nuances.
Preparation of the smartphone: what to do before turning on debugging
Before activating the debugging mode, follow the mandatory preparatory steps:
- Check the Android version. On the Mi A2, debugging works steadily on Android 9 Pie and later. If you have an old firmware, update it through Settings β System β System Update.
- Make sure you charge the battery. The minimum level is 50%, otherwise the PC may not recognize the device.
- Use the original cable. Cheap. USB-cables often do not support data transfer, only charging.
- Turn off the screen lock (if possible). PIN-The code or pattern lock may interfere with ADB-team.
Pay special attention to drivers. On a Windows PC, you need to install Mi USB Driver or universal Google USB Driver drivers. Without them, the computer will see the Mi A2 as an "unidentified device." For macOS/Linux, no additional drivers are required, but you may need to configure the udev rules.
Install drivers for Xiaomi Mi A2|
Update the firmware to the latest version|
Charge your phone to at least 50% |
Connect the original USB-cable|
Disable screen locking (if possible)-->
Step-by-step: how to enable debugging by USB on Xiaomi Mi A2
Follow the algorithm in strict order:
- Activate the developer menu: Open Settings β System β About the phone. Find the build number and click on it 7 times in a row. Once the "You've become a developer" notification appears, go back to the main settings menu.
- Turn on USB debugging: Go to Settings β System β Developerβs Device (the menu will appear after step 1). Scroll down and activate the USB Debugging switch. In the confirmation window that appears, click Allow.
- Connect to PC: Connect Mi A2 to your computer via USB. On your phone screen, select File Transfer (MTP) mode. Open again for developers and check the connection status in the Debugging by USB section.
If, after connecting to a PC, a request appears on the smartphone screen to Allow debugging over USB? with an RSA key, be sure to tick "Always Allow from this computer" and click "Allow." This will eliminate repeated confirmations.
What if the Developer Menu does not appear?
Solution: PC does not see Xiaomi Mi A2 in debugging mode
If after enabling debugging, the computer does not recognize the device, check the following points:
| Problem. | Reason. | Decision |
|---|---|---|
| The device is not displayed in ADB | Drivers not installed | Download Mi USB Driver from Xiaomiβs official website or use Google USB Driver for Android One |
| There is an error "Unauthorized" | The RSA key on the phone is not confirmed | Disconnect/connect the cable again and allow debugging in the window that appears |
| ADB devices show offline | Conflict with an antivirus or firewall | Add adb.exe to the antivirus exceptions or temporarily disable the protection |
| The phone is charging but not transmitting data. | Faulty cable or USB port | Try another cable (preferably original) or USB 2.0 port on PC |
To diagnose the connection, use the commands in the terminal (Windows/Linux/macOS):
adb kill-server
adb start-server
adb devicesIf the device never appeared after restarting the ADB server, try changing the USB mode on your phone: File Transfer (MTP) β Photo Transfer (PTP) β Charging only and back.
π‘
If you are using Windows 10/11, Turn off the "Fast Charging" function in the Device Manager for USB-It can block data transmission.
Alternative ways to enable debugging if the standard method doesn't work
If the developer menu isnβt activated or debugging isnβt enabled, try these methods:
- π Resetting to factory settings (with data saved): Go to Settings β System system β Settings reset. Select Reset Wi-Fi, mobile network and Bluetooth. After the reset, reset, reset the developer menu.
QuickShortcutMaker
- Install the app from Google Play.
- Find the action com.android.settings.DevelopmentSettings.
- Create a shortcut on the home screen and open the hidden settings.
- π» ADB-Recovery commands (for advanced users): adb shell am start -n com.android.settings/.DevelopmentSettings
On the Xiaomi Mi A2 with Android 10 and later firmware, you may need additional permission for ADB in the Security and Privacy menu. If after all the manipulations, debugging does not turn on, check if access to the developer settings through device policies (relevant for corporate phones) is blocked.
Security: Risks of enabled USB debugging
USB debugging mode opens up potential vulnerabilities:
- π Unauthorized access to data when connecting to someone elseβs PC.
- π² Installation of malware through ADB-team.
- π Resetting settings or flashing without your knowledge.