How to swap keys on Xiaomi smartphone: 5 working ways

Reassigning hardware or software buttons to Xiaomi smartphones is a challenge faced by users who are switching from other brands or wanting to optimize management to their habits. For example, owners of Redmi Note 12 or POCO X5 often want to swap the back and recent keys to be located on Samsung or Google Pixel. In this article, we will examine all the current ways, from built-in MIUI functions to third-party utilities, including solutions for devices without root rights.

It’s important to understand that reassignment options depend on the firmware version (MIUI 14/15), the phone model, and even regional settings. For example, on the Xiaomi 13 Ultra with global firmware, the option may be hidden, whereas on the Chinese version it is available by default. We tested all methods on current devices (2023-2026) and indicated the limitations of each method.

1.Reassigning the navigation buttons to MIUI

The easiest way is to use the built-in MIUI settings to reorder the touch buttons (if enabled), a method that works on most Xiaomi, Redmi and POCO models with the MIUI 12 firmware version and later.

To change the "Back" and "Recent" keys:

  1. Open the Settings β†’ Display.
  2. Select Full Screen Mode (or Navigation Style in the newer versions).
  3. Activate the navigation button option (if you use gestures, switch to buttons).
  4. Click on the icon. βš™οΈ (Additionally) next to the button option.
  5. Select the Order of the buttons and set the desired sequence.

⚠️ Note: Some models (e.g. Xiaomi) 12T) The order of the buttons may not be available, in which case try updating the firmware or using alternative methods from the following sections.

Check the MIUI version in Settings β†’ About Phone | Make sure button (no gesture) mode is enabled |Reboot your phone if the option isn't displayed |Update your firmware to the latest version-->

2. Use gestures instead of buttons (alternative)

If your model doesn’t support button reassignment, consider switching to gesture control. MIUI 14/15 offers flexible gesture settings that can be customized to suit your needs:

  • πŸ”„ Swipe from bottom up – returns to the main screen (analogue of the Home buttonΒ»).
  • πŸ”™ Swipe from the edge of the screen – Back action (can be configured from the left or right edge).
  • πŸ“± Keeping Down – Calling the Recent Apps Menu.

To tune the gestures:

  1. Go to Settings β†’ Display β†’ Full-screen mode.
  2. Choose MIUI Gestures (or Full Screen Gestures).
  3. Set up the sensitivity and sides of swipes in the Additional settings section.

πŸ’‘ Useful tip: If you're used to buttons but want to try gestures, turn on the gesture hints option in the settings. It temporarily shows visual cues when swiping.

Classic buttons|Gestures MIUI|Gestures from Android (Google)|Third-party software-->

3. Reassignment of hardware buttons (Volume, Power)

On Xiaomi smartphones, you can change the function of physical buttons (volume, power) without root rights, for example, assign a volume button to start the camera or flashlight.

  1. Open Settings β†’ Special Opportunities β†’ Power button.
  2. Select an action for double pressing or long pressing (such as Starting the camera or Turning on the flashlight).

For more flexible reassignment (for example, swap the volume buttons), you will need a third-party application:

AnnexFunctionsNeed root?Reference
Button MapperReassignment of volume buttons, power, BixbyNo (but ADB rights are needed)Google Play
Volume Button ControllerChange the volume button functions (for example, rewind music)No.Google Play
TaskerComplex scenarios (e.g., triple-pressing application launch)No.Google Play

⚠️ Note: When using Button Mapper to reassign the power button (Power), the emergency call function may be disrupted (SOS). Before setting up, check if your model supports this option in the app.

How to Enable ADB Rights for Button Mapper
1. Enable Developer Mode (7 once you click on the version MIUI In Settings β†’ The phone). 2. B Settings β†’ Additionally. β†’ For developers, activate the debugging by USB. 3. Connect your phone to your PC and execute the command: adb shell pm grant flar2.homebutton android.permission.WRITE_SECURE_SETTINGS 4. Reset the device.

4. Reassign buttons with ADB (no root)

If the built-in settings do not allow you to change the buttons in places, you can use the ADB-This method works on all Xiaomi models with Android 10 and newer, but requires a connection to a computer.

Step-by-step:

  1. Install ADB Tools on your PC.
  2. Turn on USB debugging on your phone (see spoiler above).
  3. Connect your phone to your PC and execute a command to check the connection: adb devices (the name of your device should be displayed).
  4. To reassign the "Back" and "Recent" buttons, use: adb shell settings put secure sysui_nav_bar "space, back;home;recent,space" (replace back and recent places if necessary).
  5. Reboot your phone: adb reboot

Important: After the MIUI update, the ADB settings may reset. Save the command in your notebook to quickly apply it again.

adb shell settings delete secure sysui_nav_bar

Then repeat step 4.-->

5. Reassign buttons with root rights

For root users, there are advanced reassignment options available, such as swapping hardware buttons (volume, power) or assigning any application to run on them.

Popular applications for root users:

  • πŸ› οΈ Xposed Framework + Xposed Additions module allows you to configure any buttons flexibly.
  • πŸ”§ Button Remapper – supports reassignment of all physical and software buttons.
  • πŸ“± GravityBox – Advanced interface settings, including navigation buttons.

⚠️ Note: Installing root rights will void Xiaomi’s warranty and may lead to security issues (e.g. Google Pay or banking apps won’t work). β†’ Additionally. β†’ Backup and reset.

πŸ’‘

Root rights offer maximum flexibility, but the risks (loss of warranty, security issues) often outweigh the benefits.

6. Reassign buttons to POCO Launcher and third-party shells

If you use POCO Launcher or other alternative shells (like Nova Launcher), the button reassignment options may vary, such as POCO Launcher, which allows you to configure:

  • πŸ”„ Double-click on the screen – to lock or launch the application.
  • πŸ“² Swipe gestures – for example, swipe down to call the notification panel.

To set up gestures in POCO Launcher:

  1. Open the launcher settings (hold your finger on the home screen β†’ Settings).
  2. Go to Gestures and Functions.
  3. Set up the necessary actions for swipes or double taps.

Nova Launcher will require you to install the Nova Launcher TeslaUnread or Tasker plugin for advanced button management.

7. Problem Solving: buttons don't change or reset

If after reassigning the buttons return to the standard settings, check the following points:

Problem.Possible causeDecision
The buttons are reset after rebootingADB-command not saved in the systemRe-run the command or use Button Mapper with auto-run permission
The option β€œOrder of buttons” is not availableObsolete version of MIUI or regional restrictionsUpdate your firmware or switch to the global/European version
Volume buttons are not reassignedManufacturer's restrictionsUse Tasker or get root rights

πŸ’‘ Useful advice: If you update after the update MIUI The buttons are reset, check the firmware change log.Sometimes Xiaomi blocks reassignment in newer versions.In this case, rolling back on the previous firmware may help (but not recommended due to security risks).

FAQ: Frequent questions about reassigning buttons to Xiaomi

Can you swap the Back and Recent buttons on Xiaomi without root?
Yes, on most models with MIUI 12-15 This can be done through the settings β†’ Display. β†’ Full screen mode β†’ Order of buttons. If you don't have an option, use it. ADB-commands or Button Mapper application (requires rights) ADB).
Why do buttons reassign through ADB reset?
This is due to system resets when you update or reboot. To record changes, follow the command: adb shell settings put global settings policy_control immersive.full=* Use Button Mapper with Auto-Start option.
Can I reassign the Bixby button to Xiaomi?
Most Xiaomi models don’t have a Bixby button (only available on Samsung), but if you’re referring to the Google Assistant button (on some models), you can reassign it via the Button Mapper or Tasker.
How to return standard buttons if they stop working after reassignment?
Reset navigation settings through ADB: adb shell settings delete secure sysui_nav_bar Or reset the settings in Settings. β†’ System system β†’ Resetting settings β†’ Resetting interface settings.
Does the reassignment of buttons on POCO F5 and Xiaomi 14 work?
Yes, but with reservations: On the POCO F5 (MIUI 14), the "Order of the Buttons" option is available by default. On Xiaomi 14 (MIUI 15), you may need to use ADB or Button Mapper, as the built-in settings are limited.