How to change the buttons β€œBack” and β€œRecent” places on Xiaomi Redmi: 5 working ways

Navigation buttons at the bottom of the Xiaomi Redmi screen are one of the most talked-about topics among smartphone owners of the brand. β†’ Home. β†’ Recent" isn't always convenient, especially for left-handed people or users accustomed to alternative staging on other Android devices, MIUI Offers several ways to reassign buttons, including hidden settings and developer tools.

In this article, we will analyze all current methods - from built-in functions to use. ADB-You'll learn how to swap buttons on Redmi Note. 10/11/12, Redmi 9/10 and other models that work on MIUI 12, 13 or 14. Particular attention will be paid to the nuances for devices with gesture control and without root access (root).

Before you start, check your firmware version in Settings β†’ About Phone β†’ MIUI version. Some methods may not work on custom firmware or beta versions of the software. Also note that on models with hardware buttons (for example, Redmi 4X), reassignment is software impossible – you will need physical modification.

1. Method: Built-in MIUI settings (for gesture control)

If your Xiaomi Redmi runs on MIUI 12 and later with gestures enabled, the easiest way to change buttons is to use the built-in system options.This method does not require superuser rights and is suitable for most modern models, including the Redmi Note 11 Pro+ and Redmi K50.

Instructions:

  • πŸ“± Open the Settings. β†’ Display.
  • πŸ‘† Scroll down and select a full-screen display.
  • πŸ”„ In the Navigation Type section, click Navigation buttons (if you use gestures, switch to buttons first).
  • πŸ”€ Slap the icon. βš™οΈ (Additionally) next to the button option.
  • πŸ”„ Select the reverse order of the buttons (Back) β†’ Home. β†’ Recent changes to Recent β†’ Home. β†’ Back up).

If you don't have the option Backorder, your model doesn't support this function through the standard menu, so move on to the following.

πŸ“Š What navigation you use on Xiaomi?
Classic buttons
Gesture management
Hardware buttons
Other

2. Method: ADB-teams (without root)

For devices where the built-in option is not available, you can use Android Debug Bridge (ADB). This method works on all versions of MIUI and does not require root rights, but requires connecting the smartphone to the computer. Importantly, after completing the commands, the buttons will reset to standard order when resetting settings or updating the firmware.

Step-by-step:

  1. Download and install ADB Tools on PC.
  2. Turn on the smartphone Developer Mode (7 times tap the version of MIUI in Settings β†’ About phone).
  3. Activate Debugging by USB in Settings β†’ Additional β†’ For developers.
  4. Connect Redmi to your computer and confirm the debugging permission.
  5. Open the command prompt (Windows) or terminal (macOS/Linux) in the folder with adb.exe.

Enter a command to check the connection:

adb devices

If the device is displayed, do:

adb shell settings put secure sysui_nav_bar "space,recent,home,back,space"

To return to standard order:

adb shell settings put secure sysui_nav_bar "space,back,home,recent,space"

Download ADB Tools on PC

Enable the developer mode on Xiaomi

Activate debugging over USB

Connect the phone to the computer

Check the connection of the adb device team-->

If the buttons have not changed after the commands are executed, restart the device. Some firmware may require an additional command:

adb shell am broadcast -a android.intent.action.CLOSE_SYSTEM_DIALOGS

Method 3: Applications for button reassignment

If previous methods didn't work, you can use third-party utilities, and we tested several apps and selected the most reliable ones for Xiaomi Redmi:

AnnexNeed root?Support for MIUIReference
Button Mapper❌ No.βœ… Yes (limitedly)Google Play
NavBar Apps❌ No.βœ… Yes (MIUI 12+)Google Play
Xposed Edgeβœ… Yes.βœ… All versions.Xposed Repo

For the use of Button Mapper:

  1. Install the app from Google Play.
  2. Grant permission for Special Features (in your phone settings).
  3. Select the Navigation Bar in the app menu.
  4. Slip the button you want to reassign and select a new action.

πŸ’‘

If the app doesn’t see the navigation bar, try temporarily disabling gesture control in the MIUI settings.

Limitations:

  • 🚫 Nana MIUI 14 Some applications may not work due to changes in security policies.
  • πŸ”„ After the system update, reconfiguration may be required.
  • ⚠️ Applications without root cannot completely replace system buttons, but only emulate them.

Method: Editing system files (root only)

If your Xiaomi Redmi has superuser rights, you can manually edit the system files that are responsible for the location of the buttons. This method provides maximum flexibility, but requires caution - incorrect changes can lead to a bootloop.

Instructions:

  1. Install a file manager with root support (such as Root Explorer or Solid Explorer).
  2. Go to /system/usr/keylayout.
  3. Find the Generic.kl file (or qwerty.kl for some models).
  4. Copy the file to internal memory for backup.
  5. Open the original file in the text editor.

Find the lines:

key 139   MENU       WAKE_DROPPED


key 158   BACK       WAKE




key 172   HOME       WAKE_DROPPED




key 219   APP_SWITCH WAKE_DROPPED

Change seats. BACK (158) and APP_SWITCH (219), key-number:

key 139   MENU       WAKE_DROPPED


key 158   APP_SWITCH WAKE




key 172   HOME       WAKE_DROPPED




key 219   BACK       WAKE_DROPPED

Save the file, set resolutions 644 (rw-r--r---) and restart the device.

What if the phone doesn’t turn on after editing?
If the device does not boot after the changes to Generic.kl, boot to Recovery Mode (press Power + Volume up), connect to your PC and replace the file with a backup via ADB: adb push /path/to/backup/Generic.kl /system/usr/keylayout/ adb shell chmod 644 /system/usr/keylayout/Generic.kl

5. Method: Castom firmware (for advanced users)

If standard methods don't work, you can install custom firmware with flexible navigation settings.

  • πŸ“± LineageOS – supports button reassignment through Settings β†’ System system β†’ Gestures.
  • πŸ”§ Pixel Experience – offers a navigation bar setup as on Google Pixel.
  • ⚑ Havoc-OS – includes advanced options for buttons and gestures.

Installation process:

  1. Unlock the bootloader through the Mi Unlock Tool.
  2. Install custom recovery (such as TWRP).
  3. Download the firmware from the official website (for example, LineageOS).
  4. Sweat through recovery, having previously made a backup.

πŸ’‘

Custom firmware gives you maximum customization freedom, but it is not warranty and can contain bugs. Check compatibility with your Redmi model before installing.

After installation, go to Settings β†’ System β†’ Buttons and select the desired order. In some firmware, you can even set up a double tap or long press buttons.

6. Frequent problems and solutions

When reassigning buttons to Xiaomi Redmi, users experience common errors, and here’s how to avoid or fix them:

⚠️ Note: If after use ADB-The buttons are gone, reset the navigation bar: adb shell settings delete secure sysui_nav_bar Then restart the device.

Problem.Reason.Decision
The buttons don't change after ADB-teamSystem cache not updatedAdb shell am broadcast -a android.intent.action.CLOSE_SYSTEM_DIALOGS or reboot the phone.
Button Mapper app is not working.MIUI limitations for special featuresTurn off gesture control in the settings and re-set the settings
After editing Generic.kl, the phone does not turn onSyntactic error in the fileRestore the file via TWRP or ADB (see spoiler above)
Buttons are reset after the updateSystem settings are overwrittenRepeat the setting or use Tasker to automatically apply commands after the update

If none of the methods worked, check:

  • πŸ” Compatibility of your Redmi model with the selected method (e.g. Redmi) 7A does not support reassignment through ADB).
  • πŸ“‹ The relevance of firmware (in beta versions) MIUI It could be bugs).
  • πŸ› οΈ Conflicting applications (e.g. launchers like Nova Launcher sometimes block system buttons).
Can I change the buttons to Xiaomi Redmi without a computer?
Yes, if your model supports built-in Settings β†’ Display β†’ Full-screen display. For the rest, you can’t do without a PC – you will need either ADB or root rights.
Why did the buttons drop after the MIUI update?
Firmware updates often reset the user's navigation bar settings. To avoid this, before updating: Back up current settings via Button Mapper (if you use). ADB-commands in a text file for quick re-enter. Use Tasker to automatically apply commands after rebooting.
Does the reassignment of buttons to Redmi with hardware keys work?
No. On physical button models (e.g. Redmi 4X, Redmi 5A), software reassignment is not possible, and the only option is to sell the contacts on the board, which requires soldering skills and risks cancelling the warranty.
How to return the standard button order?
Methods of return: Through ADB: adb shell settings put secure sysui_nav_bar "Space, Back, Home, Recent, Space In Settings MIUI: Settings β†’ Display. β†’ Full-screen display β†’ Reverse button order (disable). Reset: Settings β†’ System system β†’ Resetting settings β†’ Reset the interface settings.
Can I reassign the buttons to Redmi with gesture control?
Yes, but indirectly, you can't swap your gestures, but you can: πŸ”„ Return to the buttons through Settings β†’ Display. β†’ Full-screen display β†’ Navigation buttons and then reassign them. πŸ“± Use applications like Fluid Navigation Gestures to emulate alternative gestures. MIUI 14 has an experimental option for customizing gestures, but it is not available on all devices.