Touch navigation buttons on Xiaomi smartphones are a convenient alternative to physical keys, but their standard location (from left to right: Back, Home, Recent) does not always suit users. Someone is used to the reverse order after other Android devices, someone is more convenient to control with one hand, and left-handed users face discomfort when navigating. Fortunately, MIUI allows you to reassign touch buttons without installing third-party applications - albeit with some limitations.
In this article, weโll look at all the current ways to swap buttons, from built-in MIUI 12-14 settings to ADB and root-right methods, and why some models (like the Poco F5 or Redmi Note 12 Pro+) donโt work, and what to do in such cases, so if you want to not just swap the back and recent buttons in places, but also completely redefined their functions, hereโs a solution.
1. Standard method: settings MIUI without additional programs
The easiest method is to use the built-in MIUI options. It is suitable for most Xiaomi, Redmi and Poco smartphones based on MIUI 10-14, but there are nuances: on some models (for example, with MIUI for POCO), this section may be missing or not work correctly.
To swap the buttons in place:
- Open the Settings โ Display.
- Select Full-screen Mode (or Navigation buttons in older versions).
- Slip on the location of the buttons (or the order of the buttons).
- Select the reverse order option (or manually drag and drop the icons if edit mode is available).
Some firmware (e.g. MIUI 13 Global) instead of drag and drop, you can choose from two predefined schemes: the standard (Back-Home-Recent) and the reverse (Recent-Home-Back).
โ ๏ธ Attention: On devices with MIUI for POCO (for example, Poco X3 Pro or Poco F4) The location of the buttons may not be available, this is due to customized firmware, where the navigation settings are placed in a separate menu Additional settings โ Buttons and gestures.
2. Reassign buttons via ADB (no root)
If your Xiaomi settings do not have the option of changing the order of the buttons, you can use the ADB-This method does not require root rights, but requires connecting the smartphone to the computer. 11T others.
Instructions:
- Enable USB debugging in the developer settings (Settings โ About Phone โ MIUI version โ tap 7 times, then go back to Additional settings โ For Developers).
- Connect your smartphone to your PC and confirm the debugging permission.
- Open the command prompt (or Terminal on Mac/Linux) and type:
adb shell settings put secure sysui_nav_bar "space,back;home;recent,space"For reverse order (Back button on the right):
adb shell settings put secure sysui_nav_bar "space,recent;home;back,space"Once you have completed the command, restart the device. If the buttons have not changed, check if the settings have reset after the reboot, in which case you will need to repeat the command or use the method with Tasker (see the next section).
๐ก
If ADB does not recognize the device, install Mi PC Suite drivers or use Google USB Driver universal drivers.
Automation via Tasker (for power users)
If ADB-commands are reset after rebooting, you can automate their execution using the Tasker app. This method is suitable for Xiaomi on Android 8.0+ and allows you to flexibly adjust the order of the buttons, including custom schemas (for example, only two buttons or adding a swipe up gestureยป).
Algorithm of action:
- Install Tasker from Google Play.
- Create a new task (Task โ + โ Code โ Run Shell).
- In the command field, type:
settings put secure sysui_nav_bar "space,recent;home;back,space"For use in loading:
- Create a profile (Profile โ Event โ System โ Device Boot)
- Put the task you created on it.
Tasker also allows you to assign hotkeys to quickly switch between button circuits, for example, you can set up a double press on the power button to change the order of navigation.
What to do if Tasker is not working?
4. Complete reassignment of root-rights buttons
If you need to change buttons, and completely redefined their functions (for example, assign to the button โbackโ open menu or launch the application), you need root rights. This method is suitable for advanced users and allows you to use applications like Button Mapper or Xposed Edge.
Steps to set up with Button Mapper:
- Get root access (for example, through Magisk).
- Install Button Mapper and give it root rights.
- In the main menu of the app, select the Navigation Bar.
- Click on the button you want to reassign (like โBackโ) and select a new action from the list (like Open App or Toggle Flashlight).
With root rights, you can also:
- ๐ Change any two buttons, including the home buttonยป.
- โ Add new features, such as holding the back button to open Google Assistant.
- ๐ฏ Set up gestures on swipes from buttons (for example, swipe left on the Home button for return).
- ๐ซ Disable unnecessary buttons (for example, leave only Home and Backยป).
โ ๏ธ Attention: On devices with MIUI 14 and Android 13+ Some Button Mapper features may not work properly due to SELinux limitations. XDA Developers.
| Method | Root is required. | Compatibility | Limitations |
|---|---|---|---|
| MIUI settings | โ No. | MIUI 10โ14 (not all models) | Only reverse order. |
| ADB-team | โ No. | Android 9โ13 | Resets after rebooting |
| Tasker | โ No. | Android 8.0+ | Tough setup |
| Button Mapper | โ Yes. | Any version | Risk of disrupting the stability of the system |
5. Features for specific Xiaomi models
Some Xiaomi smartphones have unique firmware or limitations that affect button reassignment.
Poco F3/F4/F5: These devices do not have the button location section in MIUI for POCO. The solution is to use ADB or Tasker. Alternatively, switch to custom firmware (e.g. Pixel Experience), where button settings are more flexible.
Redmi Note 11/12 Series: Some firmware versions only change the buttons via ADB, but after the MIUI update, the settings are reset, in which case Tasker will help with automatic application of the command when booting.
Black Shark 4/5: Black Shark gaming smartphones have their own JoyUI shell, where navigation settings are hidden in Settings โ Game features โ Navigation buttons. Additional schemas are available here, including a gamer mode (buttons on the sides of the screen).
Xiaomi 13/14 Series: On flagships with MIUI 14 and Android 13, the standard method works, but after resetting to factory settings, you may need to re-configure via ADB.
Check the version of MIUI (Settings โ About the phone)
Enable USB debugging (for ADB/Tasker)
- Make a backup of settings (Settings โ Additional โ Backup)
- Install drivers ADB on PC (if necessary)-->
6.Alternative solutions: gestures and third-party launchers
If you canโt reassign the buttons, consider alternative navigation options:
- ๐ Gestures MIUI: B Settings โ Display. โ Full-screen mode can enable gestures (swipe up for Home, swipe and hold for Recent) This completely removes the buttons, but requires getting used to.
- ๐ฑ Third-party launchers: Apps like Nova Launcher or Lawnchair allow you to customize your own gestures and even add virtual navigation buttons.
- โ๏ธ Xposed Framework: For root devices, the Xposed Edge module is available, which allows you to assign any actions to swipes from the edges of the screen, replacing the buttons.
- ๐ฎ Game modes: Game Turbo (available on most Xiaomi/Redmi) You can set up additional navigation buttons that only appear in games.
Gestures are the most reliable way to get rid of button problems, but they donโt work for everyone, such as on larger smartphones (such as the Xiaomi 13 Ultra), reaching the bottom of the screen with one hand can be difficult, so itโs better to combine gestures with virtual buttons through Nova Launcher.
๐ก
MIUI gestures consume less power than virtual buttons, as they do not require constant display of the navigation bar.
7. Frequent errors and their solutions
When reassigning buttons, users often face typical problems, and here's how to solve them:
The buttons don't change after ADB-team:
- Check if the command is properly entered (registration is important!).
- Reset the device.
- Try an alternative syntax: adb shell cmd overlay enable-exclusive com.android.internal.systemui.navbar.tworow.
Tasker does not follow the command:
- Make sure that the Tasker settings enable ADB access.
- Check if Mi Security blocks script execution (add Tasker to exceptions).
After the MIUI update, the buttons reset:
- Updates often reset settings sysui_nav_bar. Repeat the command. ADB Or set up automatic application via Tasker.
- If you are using Button Mapper, upgrade to the latest version.
On the lock screen, the buttons have not changed:
- This is normal behavior โ the lock screen always displays standard buttons.
- If you want to change them, you will need to edit system files (framework-res.apk), which requires root and knowledge in modifying the firmware.