How to swap buttons on Xiaomi Mi A2 Lite: 4 working ways

Why change the buttons to the Mi A2 Lite?

The Xiaomi Mi A2 Lite (codenamed daisy) is a popular model with pure Android One, but its standard location of the Back, Home and Recent buttons is not always convenient. Left-handed people often experience discomfort when pressing the Back button with their right hand, and thumb users with random touches. Fortunately, you can swap the buttons in places without root rights using hidden settings or third-party tools.

In this article, we will look at all the current ways: from built-in Android features to editing system files through the Internet. ADB. Important: Some methods require unlocking the bootloader or installing additional software. If you are a beginner, start with the simplest options (sections 2–3), and experienced users can jump straight to the top of the box. ADB-The method or editing build.prop.

⚠️ Warning: Changing system files can cause smartphone malfunctions. Before starting, back up important data via Settings β†’ System system β†’ Backup or Mi Cloud. If after manipulation the phone stopped responding to touch, try resetting to factory settings (section 6).

Method 1: Using Android settings (without root)

The Mi A2 Lite with Android 9-10 has a hidden feature to change the location of the navigation buttons. It does not require superuser rights, but it is not available in all firmware.

  1. Open the settings β†’ System β†’ Gestures.
  2. Select System Navigation β†’ 3-button navigation.
  3. Slap the icon. βš™οΈ (Cogs) next to the inscription Order of buttons.
  4. Choose one of the options: β€œHome in the middle” or β€œBack to the right”.

If there is no Order of the Buttons, your firmware does not support this option, in which case move on to the next method.

πŸ“Š What button order is more convenient for you?
Back up. β†’ Home. β†’ Recent
Home. β†’ Back up. β†’ Recent
Recent β†’ Home. β†’ Back up.
I don't care.

⚠️ Note: On some custom firmware (e.g. LineageOS or Pixel Experience), this item may be located elsewhere: β†’ Buttons β†’ Navigation bar. If the buttons are too small after changing, try to increase their size in the same menu.

Advantages and disadvantages of the method

PlusesCons
Does not require root or ADBIt doesn't work on all firmware.
Complies with Material Design StandardsLimited number of options
Not reset after the updateCould be in conflict with gestures

Method 2: Applications for button customization

If the built-in settings don't work, use third-party utilities. We tested 3 apps that run on Mi A2 Lite without root:

  • πŸ”„ Button Mapper – allows you to reassign navigation buttons, physical keys and even gestures. Supports the creation of custom combinations (for example, double-clicking β€œHome” to launch the camera.
  • πŸŽ›οΈ NavBar Apps β€” adds additional buttons (like turning off the screen or quickly accessing Google Assistant) and changes their order. Works through special features, so does not require root.
  • πŸ–₯️ Custom Navigation Bar is the most flexible solution for changing the appearance and location of buttons, allowing you to adjust transparency, size and even add your own icons.

πŸ”Ή Instructions for setting up Button Mapper:

  1. Install the application and give it permission for Special Features (in your phone settings).
  2. Choose the Navigation Bar β†’ Virtual Keys.
  3. Slip the button you want to reassign (for example, β€œBack”).
  4. In the action list, select Keycode. β†’ KEYCODE_HOME (If you want to change the "back" and "home" places).
  5. Save the changes and restart the phone.

Download the app from the official store |Enable the permission "Special features" | Disable battery optimization for Button Mapper|Reboot the phone after settings-->

⚠️ Note: Apps like Button Mapper may conflict with some banking programs (e.g. Sberbank Online or Tinkoff).If payment services stop working after setting the buttons, disable reassignment or add applications to exceptions.

Important: On Android 11+ Some features of Button Mapper may not work due to Google restrictions. ADB-method (section 4).

Method 3: Change buttons through ADB (without root)

If previous methods didn’t work, try editing system settings via Android Debug Bridge (ADB). This method does not require superuser rights, but requires a computer and a computer. USB-cable.

Step 1: Preparation

  • πŸ–₯️ Install. ADB and Fastboot Tools on PC.
  • πŸ“± Turn on Debugging. USB on the phone: Settings β†’ The phone. β†’ Build Number (tap 7 times to unlock Developer Settings), then go back to Settings β†’ System system β†’ For developers β†’ Debugging by USB.
  • πŸ”Œ Connect Mi. A2 Lite to the computer and confirm the debugging permission.

Step 2: Execution of commands

Open the command prompt (Windows) or terminal (macOS/Linux) in the folder with ADB and type:

adb shell


settings put secure sysui_nav_bar "space,back;home;recent"

This command will swap the buttons so that "Back" is on the right and "Recent" is on the left.

  • settings put secure sysui_nav_bar "Back, Home, Recent – Standard Order.
  • settings put secure sysui_nav_bar "Recent, Home, Back" - "Recent" on the left, "Back" on the right.

πŸ”Ή How to get it back?

Enter:

settings delete secure sysui_nav_bar

πŸ’‘

If the buttons have not changed after the command, restart the phone or check if your shell is override (for example, MIUI Launcher).

Mistakes and solutions

Problem.Decision
The command is not executed (not found)Check if USB debugging is enabled and if ADB drivers are installed correctly.
The buttons dropped after the rebootRepeat the command or use settings put global instead of secure.
ADB does not see the deviceTry another one. USB-cable or port. On Windows, install Xiaomi drivers USB Drivers.

πŸ’‘

ADB-It's the most reliable method without root, but it requires care. Errors in commands can cause the system interface to fail.

Method 4: Edit build.prop (for experienced)

If you are ready for experimentation, you can change the order of the buttons through the system file build.prop. This method requires an unlocked bootloader and access to recovery (for example, TWRP).

Step 1: Create a backup copy

Before editing build.prop, be sure to make a backup:

  1. Boot in TWRP Recovery (hold Power + Volume up when turned on).
  2. Choose Backup β†’ System and save a copy to SD-map.

Step 2: File editing

TWRP:

  1. Go to Advanced β†’ File Manager.
  2. Open the file /system/build.prop.
  3. Add at the end of the line: qemu.hw.mainkeys=0 ro.product.locale.language=ru ro.product.locale.region=RU Then find ro.build.version.sdk and paste it: persist.sys.fflag.override.settings_provider_model=false
  4. Save the changes and reboot.

πŸ”Ή What do these lines do?

  • qemu.hw.mainkeys=0 – Forced to include the navigation buttons.
  • persist.sys.fflag... – disables restrictions on changing system settings.
What happens if you make a mistake in build.prop?
If you edit build.prop incorrectly, the phone may get stuck on bootloop.In this case: 1. Boot to TWRP. 2. Restore the system backup or manually fix the file through File Manager. 3. If nothing helps, reset to factory settings (section 6).

⚠️ Note: Some of the Mi's firmware A2 Lite editing build.prop can lead to loss OTA-If you're interested in official updates, use other ways.

Method 5: Installation of custom firmware

If neither method worked, consider installing an alternative firmware where the order of the buttons is configured flexibly. A2 Lite will do:

  • πŸ“± LineageOS – Supports button changes through Settings β†’ Buttons β†’ Navigation panel. Official page.
  • πŸ€– Pixel Experience - firmware with clean Android and advanced gesture settings.
  • ⚑ Havoc-OS is a custom firmware with many customization options, including button reassignment.

πŸ”Ή How to install custom firmware?

  1. Unlock the bootloader through the Mi Unlock Tool (instructions on the official Xiaomi website).
  2. Install TWRP Recovery (e.g., via fastboot flash recovery twrp.img).
  3. Download firmware and GApps (if you need Google services).
  4. In TWRP, run Wipe β†’ Advanced Wipe (select Dalvik, Cache, System, Data).
  5. Install firmware and GApps, then restart.

⚠️ Attention: Installing custom firmware voids the warranty and may result in data loss. A2 Lite with unlocked bootloader does not work Google Pay and some banking applications (due to the lack of SafetyNet).

Method 6: Resetting settings (if something went wrong)

If the buttons stop working or the phone starts to glitch after the changes, reset to factory settings. On the Mi A2 Lite, there are two ways to do this:

Method 1: Through the settings menu

  1. Go to Settings β†’ System β†’ Resetting settings.
  2. Select Delete all data (reset to factory).
  3. Confirm the action and wait for the completion (it will take 5-10 minutes).

Method 2: Through Recovery

If the phone is not switched on:

  1. Press Power + Volume Up to Enter Recovery.
  2. Select Wipe Data β†’ Factory Reset (Manage Volume and Power buttons).
  3. Confirm the reset and reset.

πŸ”Ή What to do after a reset?

  • πŸ”„ Restore data from a backup (Mi Cloud or Google Account).
  • πŸ”’ Reconfigure the debugging on USB, if you plan to use ADB.
  • πŸ“± Install applications to reassign buttons again.

πŸ’‘

Resetting is the last chance to make the phone work again, and if there is a problem, the system partition may be damaged (reflashing via Fastboot is required).

FAQ: Frequent questions

Can I change the buttons to Mi A2 Lite without a computer?
Yes, if your firmware supports Settings β†’ System β†’ Gestures (Section 2). If not, use apps like Button Mapper or Custom Navigation Bar (Section 3). ADB and build.prop editing require a PC.
Why don’t the gestures work after the button changes?
On the Mi A2 Lite, gestures and program buttons conflict. To return gestures, turn off button reassignment or select System Navigation β†’ Gesture Navigation. Note: on Android 9, gesture navigation works differently than on Android 10+.
Will these methods work on the Mi A3 or Redmi Note 8?
Methods with ADB and build.prop are universal for most Xiaomi smartphones on Android 9–11. However, the paths to the settings menu and supported apps may differ. For example, on Mi A3, navigation buttons are configured via Settings β†’ Screen β†’ Navigation Panel.
How to return standard buttons after experimentation?
The method of retraction depends on the method: ADB: Execute settings delete secure sysui_nav_bar. For build.prop: delete added lines or restore backup. For applications: disable reassignment in their settings. If nothing helps, reset settings (section) 6).
Can I reassign physical buttons (volume, power)?
Yes, but it requires root rights or apps like Button Mapper (Section 3). For example, you can configure: Double pressing Volume down to start the camera. Long press power to turn on the flashlight. ⚠️ Without root, reassigning physical buttons may not work on newer versions of Android (11)+).