Are you used to a certain location of navigation buttons on Android, but after buying a smartphone Xiaomi, Redmi or POCO found that they are confused? Or want to optimize one-handed control by swapping the buttons "Back" and "Recent"? In this article, we will analyze all possible ways to reassign buttons โ from standard MIUI settings to hidden functions for power users.
The problem of awkward buttons is a problem for many: someone is used to the classic Android scheme (on the left - "Back", on the right - "Recent"), and someone wants to adapt the interface to left-handedness. Fortunately, Xiaomi provides several solutions, from simple to advanced. We will look at methods for different versions of MIUI (including MIUI 14 and MIUI 15), as well as alternative methods for custom firmware and devices without root rights.
Itโs important to understand that not all methods are universal: some only work on certain models (such as the Xiaomi 13 Pro or Redmi Note 12), while others require additional manipulation. If youโre a beginner, start with the first section on standard settings. Experienced users will be interested in the section about ADB Modification of system files.
1. Standard button reassignment in MIUI settings
The easiest way to swap the buttons is to use the built-in MIUI options, which works on most modern Xiaomi, Redmi and POCO smartphones with MIUI 12 and higher firmware.
- Open the Settings app (the gear icon on the home screen).
- Go to the Display section.
- Select Full-screen Mode (on some models it may be called Navigation buttons or Gestures).
- Slip the navigation buttons option (if you use a classic bar, not gestures).
- Activate the switch to switch the "Back" and "Recent" buttons.
If you have MIUI 14/15, the interface may be slightly different: instead of Full-screen mode, look for System Navigation. On some devices (for example, POCO F5), the option is hidden deeper - you will have to go to Additional settings โ Gestures and buttons.
Limitations of the method:
- ๐ It works only for touch-sensitive navigation buttons (does not affect physical volume/power buttons).
- ๐ฑ Not available on gesture navigation devices (youโll need to switch to buttons first).
- โ๏ธ On some models (e.g. Xiaomi) 12T) The option may be blocked by the manufacturer.
โ ๏ธ Note: After changing the location of the buttons, it will take 2-3 days to get used to it, during which time random clicks are possible - for example, instead of returning to the menu, you can open a list of recent apps.
2. Reassign buttons through gesture navigation
If you use gestures instead of the classic buttons, the standard way in the first section won't work, but there's a hidden option in MIUI that allows you to emulate navigation buttons even in gesture mode.
- Activate Full-screen gestures in Settings โ Display โ System Navigation.
- Choose the MIUI gesture type (not Android!).
- Return to System Navigation and tap on Additional Settings (or Gesture Settings).
- Find the option to Show navigation buttons in gesture mode and turn it on.
- You can now swap the buttons, as in the first method.
This trick works on most devices with MIUI 13+, but may not be available on budget models (e.g. Redmi 10A).If you don't have an option, try updating your firmware or using alternative methods in the following sections.
โ๏ธ Preparation for button changes
Advantages of gesture navigation:
- ๐๏ธ Frees up space on the screen (no constant button panel).
- โก Faster than classic buttons after getting used to.
- ๐ Can be combined with reassignment (for example, swipe left) ="Back, swipe right. ="Recent").
3.Using ADB for Deep Reassignment
If standard settings donโt offer the flexibility you need (like swapping volume buttons or setting a new double-press action), youโll need an ADB (Android Debug Bridge) that works for power users and works on any Xiaomi device, including the POCO X5 Pro and Redmi K60.
Here's the step-by-step instruction:
- Turn on USB Debugging in Settings โ About Phone โ MIUI version (tap 7 times on version, then go back to Additional settings โ For developers).
- Connect the phone to the PC and confirm the debugging permission.
- Download ADB Tools and unpack the archive.
- Open the command line in the ADB folder and do:
adb shell settings put secure sysui_nav_bar"space,back;home;recent,space"This command will swap the back and recent buttons. Use:
adb shell settings put secure sysui_nav_bar"space,recent;home;back,space"Critical: Some ADB commands can cause the interface to crash. Before experimenting, back up through Settings โ System โ Backup.
What if the ADB canโt see the device?
Advanced ADB capabilities:
| Team team. | Action. | Example of model |
|---|---|---|
| adb shell settings put secure sysui_nav_bar_left"0,back" | Reassigns the left button to "Back" | Xiaomi 13 Lite |
| adb shell settings put global policy_control immersive.full=* | Hiding the navigation bar in full-screen applications | POCO F4 GT |
| adb shell am broadcast -a android.intent.action.CLOSE_SYSTEM_DIALOGS | Closes system dialogs (e.g. notifications) | Redmi Note 11 Pro+ |
4. Reassign physical buttons (volume, power)
If you're not interested in the navigation touchbar, but in physical buttons (such as volume and lock switching), the standard MIUI settings are powerless.
- Remapper applications (without root): ๐ฑ Button Mapper โ allows you to assign new actions to the volume buttons, locks and even touch zones. ๐ง Tasker + AutoInput plugin โ to create complex scenarios (for example, double-pushing down volume) = launch).
Editing the keylayout file (requires root):
- ๐ Find the file. /system/usr/keylayout/Generic.kl (or similar to your model).
- ๐ Change the lines from the key 114 VOLUME_DOWN key 115 VOLUME_UP.
- ๐พ Save the file and restart the device.
Button Mapper will need permission to use Special Features (includes in Android settings).The app supports most Xiaomi models, but some (such as Redmi K50 Gaming) may need additional customization due to custom firmware.
โ ๏ธ Note: Changing system files (keylayout) without backup may result in loss of button functionality. 12S Ultra) will also reset Widevine certificates L1, What will make Netflixโs streaming quality worse.
5. Reassign buttons on custom firmware (LineageOS, Pixel Experience)
If you use custom firmware (like LineageOS, Pixel Experience, or ArrowOS), standard MIUI methods won't work, but you have more freedom to customize. Here's what you can do:
- ๐ง In LineageOS: Go to Settings โ System system โ Buttons and select the desired layout.
- ๐ฑ Pixel Experience: Use Xposed or Magisk with Button Mapper.
- โ๏ธ In ArrowOS: activate Settings โ Arrow โ Navigation and adjust gestures/buttons.
Custom firmware also allows you to configure hardware buttons through file editing in /system/usr/keylayout/. For example, to swap volume buttons on POCO X3 Pro with LineageOS 20, do:
su
mount -o rw,remount /system
sed -i's/key 114 VOLUME_DOWN/key 114 VOLUME_UP/' /system/usr/keylayout/qrd_skuh.kl
sed -i's/key 115 VOLUME_UP/key 115 VOLUME_DOWN/' /system/usr/keylayout/qrd_skuh.kl
mount -o ro,remount /system
rebootOnce you reboot, the volume buttons will swap places, and this method works on most firmware, but requires super-user rights (root) and can disrupt the system. OTA-update.
๐ก
Before editing system files, back them up with the command cp /system/usr/keylayout/Generic.kl /sdcard/backup/. This will help restore the functionality of the buttons in case of an error.
6. Alternative methods: gestures, virtual buttons and accessories
If none of the above methods are suitable, consider alternative options:
- ๐ Gestures instead of buttons: B MIUI 14/15 You can swipe gestures from the bottom edge (similar to the back/home buttons) and you can configure them to Settings. โ Display. โ System navigation.
- ๐ฎ Virtual buttons: Apps like Floating Touch or Assistive Touch create floating panels with buttons that can be moved around the screen.
- ๐ Hardware solutions: Cases with additional buttons (for example, Xiaomi Gamepad for Black Shark) or Bluetooth remotes (for example, Xiaomi Mi Remote).
For gamers, an interesting solution will be Xiaomi Game Turbo - a mode that allows you to assign virtual buttons to the screen in games. Activated through Settings โ Special features โ Game Turbo.
๐ก
Gesture navigation is the most versatile way, as it works on all versions of MIUI and does not require root rights. However, for fine-tuning buttons (for example, sharing "Back" and "Recent"), it is better to use ADB or custom firmware.
7. Frequent problems and their solutions
When reassigning buttons, users often encounter errors. Here's how to fix them:
| Problem. | Reason. | Decision |
|---|---|---|
| Buttons don't change places in MIUI | Option blocked by manufacturer | Use ADB or install custom firmware |
| ADB does not see the device | There are no drivers or debugging is not included | Set up Mi. PC Suite and check it out USB-cable |
| After the change, the buttons stopped working. | Error in the keylayout file | Restore backup or re-flash the device |
| Gestures are not working smoothly. | Conflict with the MIUI shell | Turn off MIUI optimization in battery settings |
If after reassigning the buttons, the smartphone started to slow down or errors get out, reset the settings to the factory (Settings โ About the phone โ Resetting). This will return the standard button location and eliminate software conflicts.