Buttons on Xiaomi devices are not just physical controls, but a flexible tool that can be adapted to your needs. Whether you want to reassign the power button function, add a double press to start the camera or completely replace the faulty key with a software analogue - the capabilities of modern smartphones and smart gadgets of the brand allow this. However, not all users know that the button settings are hidden in different sections of the menu, and some functions require activation through developer mode or third-party applications.
In this article, we will analyze all the ways to change the buttons on Xiaomi โ from the basic settings to the basics of the buttons. MIUI Advanced methods with the use of ADB We will pay special attention to devices with hardware buttons (Redmi Note 8 Pro, POCO X3) and sensory analogues (Mi 11, Redmi) K50), Because the approaches to setting them are fundamentally different, you will also learn how to diagnose button malfunctions and what to do if they stop working after a system update.
Button types on Xiaomi devices and their capabilities
Before you start changing the buttons, itโs important to understand what type of button youโre dealing with. Xiaomi devices come with three main types of keys:
- ๐ Physical buttons are mechanical keys (power, volume) on the body. 9A, POCO M3) and flagships older than 2020 (Mi 10).
- ๐ Touch buttons โ virtual areas on the screen that simulate clicks (for example, a navigation bar in the screen) MIUI 12+).
- ๐ฎ Program buttons โ gestures or key combinations activated through the software (for example, double tapping the screen to wake up).
Each type supports a different level of customization, for example, physical buttons can only be reassigned through developer mode or ADB, While touch is configured in the Settings menu โ Display: Program gestures are the most flexible, and can be configured via the Button Mapper app or built-in options. MIUI.
| Type of button | Xiaomi models | Level of customization | Tools required |
|---|---|---|---|
| Physically | Redmi Note 10 Pro, POCO F3, Mi 11 Lite | Medium (reassignment, disconnection) | ADB, developer-style |
| Sensory | Mi 12, Redmi K40, POCO X4 Pro | High (change of location, addition of gestures) | Settings MIUI, Button Mapper |
| Programmatic | All models on the MIUI 11+ | Maximum (creating custom combinations) | Button Mapper, Tasker, Macrodroid |
๐น Important: On devices with MIUI for POCO (for example, POCO X3 NFC) Some button settings may not be available due to the lightweight firmware, which requires the installation of the full version. MIUI via Fastboot.
How to Reassign Physical Buttons Without Root Rights
If you need to change the power button or volume control function, but you do not want root access, use the built-in developer mode or utility. ADB. This method works for most Xiaomi devices with MIUI 12 and newer.
๐ Step 1: Activate the Developer Mode:
- Go to Settings. โ The phone.
- Tap 7 times on the MIUI version.
- Enter the password from your Mi Account if required.
๐ Step 2. Set the buttons through ADB:
- Connect your smartphone to your PC and allow debugging over USB.
- Open the command line and type: adb shell settings put global button_extra_key_single_tap 27 (where 27 โ Action code, such as camera launch).
- Reset the device.
Developer mode activated |
ADB drivers installed on PC|
Smartphone connected in file transfer mode|
Backup of important data is made-->
โ ๏ธ Attention: Misuse of the right ADB Before experimenting, check the teamโs compatibility with your Xiaomi model on the forums. 4PDA or XDA Developers.
๐ง Popular action codes for buttons:
- ๐ธ 27 - Camera launch
- ๐ฆ 26 - lighting up the flashlight
- ๐ 5 - switching to silent mode
- ๐ 19 โ Quick application switching
Setting up touch buttons and gestures in MIUI
Touch navigation buttons and gestures in MIUI They're much easier to customize than physical ones. You don't need any additional tools to do that, but you need the standard options in the Settings menu. โ Display.
๐ฑ Changing the location of the touch buttons:
- Go to Settings โ Display โ Full-screen mode.
- Select the navigation buttons.
- Press the button location and select the desired option (left-right or right-left).
โ Customization of gestures:
- ๐ Swipe up - return to the main screen.
- ๐ Swipe down โ Opening the notification bar (on some models).
- ๐ Swipe diagonally โ fast switching between applications.
Swipe up to return to the main screen|
Double tap to wake up|
Diagonally gesture for multitasking|
I turned off all gestures, I use buttons.-->
๐ก Hidden Opportunity: On Devices with MIUI 13+ You can activate hidden gestures through the function lab:
- Go to Settings. โ The phone.
- Tap 5 times on the version MIUI (If the developer mode is already activated).
- In the menu that opens, select Functions Laboratory โ Additional gestures.
How to return standard navigation buttons if gestures are uncomfortable?
Reassign buttons with third-party applications
If built-in capabilities MIUI Not enough, you can use third-party utilities:
- ๐ง Button Mapper โ allows you to reassign physical and virtual buttons, create user actions (for example, launching Google Volume Cutting Assistant).
- ๐ค Tasker is an advanced automation tool that supports the creation of complex scripts using buttons.
- โก Macrodroid โ a simplified analogue of Tasker with ready-made templates for reassigning keys.
๐ฒ Instructions for setting up Button Mapper:
- Download the app from Google Play.
- Grant permission to use Special Features (in Android settings).
- Select a button to reassign (such as Volume Down).
- Assign action: launch the application, simulate the press, execute the command ADB.
โ ๏ธ Note: Apps like Button Mapper may conflict with system processes MIUI, Especially on devices with HyperOS (new firmware for Xiaomi 14 and later).If after setting up the buttons stopped working, clear the app cache or roll back to factory settings.
๐ก
If Button Mapper doesnโt see a button on your Xiaomi, try enabling the โShow System Appsโ option in the special features settings. Also check if the antivirus or optimizer is blocking access. MIUI.
Diagnostics and repair of broken buttons
If the buttons on your Xiaomi stop responding to clicks, first determine the cause:
- ๐ Software glitch โ buttons donโt work after updating or resetting settings.
- ๐ง Physical damage โ buttons stuck or not pressed after falling/getting moisture.
- ๐ Problems with the plume - characteristic of devices with a removable back cover (Redmi) 4X, Mi A1).
๐ Diagnostics of software malfunctions:
- Restart the device in Safe Mode (hold the power button) โ long-tail โ Safe regime).
- Check the buttons โ if they work in safe mode, the problem is in third-party software.
- Perform a reset settings through Settings โ About Phone โ Reset settings.
๐ ๏ธ Repair of physical damage:
- ๐งน Cleaning the buttons โ if the button is stuck, gently rinse it with alcohol (at least 90%) with a cotton swab.
- ๐ง Trail replacement - Removable battery models (Redmi Note 5) often leave the contact of the button plume.
- ๐ฑ Replace the button on new devices (Mi 11, POCO F5) The buttons are integrated into the body, so you will need to replace the entire module.
๐ก
If the buttons stop working after the update MIUI, Try to roll back to the previous firmware version via Fastboot, and most often the problem is solved by installing a stable global build instead of a beta version.
Reassign buttons on smart watches and fitness bracelets Xiaomi
Xiaomiโs smart devices โ Mi Band, Mi Watch, Redmi Watch โ also support button settings, but with limitations, such as the Mi Band 7, which allows you to reassign a long press on a physical button, and the Mi Watch Lite, which allows you to change the swipe action on the screen.
โ๏ธ Setup of Mi Band 6/7:
- Open the Mi Fitness app (or Zepp Life for new models).
- Go to the Device Profile โ Settings โ Button.
- Select an action for short/long pressing (e.g., Starting a workout or turning off the alarm clock sound).
โ Setting up the Mi Watch:
- ๐ฑ Through the Xiaomi Wear app, you can change the action of the side button (for example, launching the Voice Assistant or measuring heart rate).
- ๐ On some firmware, reassignment of swipes on the dial is available (for example, swipe left for the Weather).
โ ๏ธ Note: On devices with WatchOS firmware (e.g. Xiaomi Watch) S1) part of the button functions is blocked by the manufacturer.Attempt changes them through ADB It can cause synchronization with the phone to fail.
Creating custom button combinations
For advanced users, Xiaomi offers the ability to create custom button combinations โ for example, running an application by triple pressing volume or activating the โDo Not Disturbโ mode when holding the power button.
- ๐ค Tasker โ Creating complex scenarios.
- ๐ฑ Macrodroid for simple automation.
- ๐ง ADB โ for the purpose of systemic actions.
๐ Example: start a flashlight by double pressing volume
- Install Macrodroid and provide all the necessary permissions.
- Create a new macro with a Volume button trigger โ Double-push.
- Add the action Turn on the flashlight.
- Save and activate the macro.
๐ก Helpful tip: To keep the button combinations running consistently, turn off battery optimization for Macrodroid or Tasker in Settings โ Annexes โ Permits โ Optimizing the battery.