How to turn off the camera with a double press of the power button on Xiaomi

Double-pressing the power button to quickly start the camera is a convenient feature on Xiaomi smartphones, but not everyone likes it. Random positives, inconvenience when using the case or just wanting to free up the gesture for other actions are the reasons to disable this option many. In this article, we will discuss all possible ways to deactivate the function, including hidden MIUI settings, commands via ADB and even hardware nuances for different models.

It is important to understand that the switching algorithm may differ depending on the firmware version (MIUI 12, MIUI 13, MIUI 14), the smartphone model (Redmi Note 11, POCO X5, Xiaomi 13) and regional features of the software. We will look at universal methods, as well as point to the pitfalls that users face. If you have already tried to disable the function through standard settings and nothing has come out, do not be upset: the article has solutions for even the most stubborn cases.

Why does a double press of the power button interfere?

Xiaomi's double-click camera-start feature was introduced to speed up access to the footage, but in practice it often becomes a source of annoyance.

  • ๐Ÿ“ธ Accidental positives in a pocket or bag, which leads to the discharge of the battery and filling the gallery with unnecessary photos.
  • ๐Ÿ”‹ Conflict with cases: many protective accessories have thickened edges, which is why the power button works when you press the body.
  • ๐ŸŽฎ Discomfort in gaming: Double-pressing can interrupt gameplay, especially in dynamic shooters or races.
  • ๐Ÿ”„ Incompatible with custom firmware: after installing LineageOS or Pixel Experience, the function can work unpredictably.

In addition, on some models (Redmi K50, POCO F4), double-pressing conflicts with control gestures or third-party automation applications (for example, Tasker or MacroDroid).If you actively use such tools, disabling the feature becomes a mandatory step for the stable operation of the smartphone.

โš ๏ธ Note: On devices with infrared sensor (e.g. Xiaomi Mi) 10T) double pressing of the power button can accidentally activate the remote control.

Method 1: Disconnect via standard MIUI settings

The easiest method is to use the built-in system options, which is suitable for most models on MIUI 12 and later.

  1. Open the Settings app (the gear icon on the home screen).
  2. Go to Lock Screen (or Lock and Protect on some firmware).
  3. Select the Power button (may be called Power button functions).
  4. Find the option Double press the power button and switch the slider to the off position.

If your menu doesnโ€™t have a Power Button item, try an alternative path:

  1. Go to Settings. โ†’ Additional (or Special Opportunities).
  2. Select buttons and gestures โ†’ button functions.
  3. Turn off the camera's Quick Start option.

Make sure your smartphone is over 20% charged.

Close all background apps (especially the camera)

Check the version of MIUI in Settings โ†’ About the phone

- Make a backup copy of the settings (optional)-->

On some devices (POCO M4 Pro, Redmi Note 10 Pro) the option may be hidden under a different name, for example, in global firmware it is sometimes called Quick Launch Camera. If you do not find a paragraph in the specified sections, move to the next method.

Method 2: Use the ADB command (for power users)

If standard settings don't work, you can turn off the feature via Android Debug Bridge (ADB), which works on all versions of MIUI, but requires you to connect your smartphone to your computer.

  • ๐Ÿ–ฅ๏ธ A computer with installed Xiaomi drivers and ADB.
  • ๐Ÿ“ฑ Included debugging by USB on a smartphone (Settings) โ†’ The phone. โ†’ Version. MIUI โ†’ 7 times to press to unlock the developer mode, then additionally โ†’ For developers โ†’ Debugging by USB).
  • ๐Ÿ”Œ Cable USB (preferably original).

Instructions for unsetting:

  1. Connect your smartphone to your PC and confirm the debugging permission on the device screen.
  2. Open the command line (Windows) or terminal (macOS/Linux) and type:
adb shell settings put global camera_double_click_power 0
  1. Reboot your smartphone with the command:
adb reboot

After the reboot, the double-press function will be disabled. To return it back, use the same command, replacing 0 with 1.

โš ๏ธ Note: Some models (Xiaomi 12 Pro, Redmi) K40) post-refresh MIUI setting ADB If the function comes back after the update, repeat the procedure.

adb shell settings put secure camera_double_click_power 0

Sometimes the parameter is stored in a secure, not a global setting.-->

Method 3: Editing system files (for advanced)

If none of the previous methods worked, you can try editing system files manually, which is only suitable for users with an unlocked bootloader and installed TWRP or other custom Recovery.

Instructions:

  1. Create a backup of the /system partition via TWRP.
  2. Connect to your smartphone via ADB shell or use a root file manager (such as Root Explorer).
  3. Go to /system/usr/keylayout and find the Generic.kl or qwerty.kl file (depending on the model).
  4. Open the file in the text editor and find the line:
key 116   POWER           WAKE_DROPPED


key 116   POWER           CAMERA_LAUNCH

  1. Remove or comment (add # to the beginning) the line with CAMERA_LAUNCH.
  2. Save the file, set the correct rights (644) and restart the device.

This method is guaranteed to disable the function at the system level, but requires caution. If after the changes the smartphone stopped booting, restore the backup via TWRP.

What if after editing the file, the smartphone does not turn on?
If the device is stuck on the logo or left in the bootloop, follow the following steps: 1. Boot to TWRP (press Power + Volume Up). 2. Restore the backup of the /system. 3. If there is no backup, run the stock firmware through the Mi Flash Tool. 4. In the future, use less risky methods (for example, ADB).

Comparison of methods of disabling a function

To choose the best way, compare them by key parameters:

MethodDifficultyPC requiredRoot is required.Reset after updateSuitable for all models
Standard settingsโญโŒ No.โŒ No.โŒ No.โš ๏ธ Not always.
ADB Team Teamโญโญโœ… Yes.โŒ No.โš ๏ธ Sometimes.โœ… Yes.
Editing system filesโญโญโญโญโœ… Yes.โœ… Yes.โŒ No.โœ… Yes.
Third-party applications (such as Button Mapper)โญโญโŒ No.โš ๏ธ Sometimes.โš ๏ธ Oftenโœ… Yes.

For most users, the best solution is a combination of the first and second methods: first try the standard settings, and if it does not work โ€“ use ADB.

Standard settings of MIUI

ADB Team Team

Editing system files

Third-party annexes

I haven't decided yet.-->

Method 4: Third-party applications for button reassignment

If you donโ€™t want to completely disable the function, but want to reassign double-clicking to another action (for example, starting a flashlight or voice assistant), you can use specialized utilities.

  • ๐Ÿ”ง Button Mapper โ€“ allows you to reassign buttons without root, but requires ADB activate.
  • ๐Ÿค– Tasker is a powerful automation tool that can intercept button presses.
  • ๐Ÿ”„ MacroDroid โ€“ a simplified alternative to Tasker with a visual macro editor.
  • ๐Ÿ“ฑ SecondScreen โ€“ Suitable for devices with MIUI, but requires root rights.

Example of settings in Button Mapper:

  1. Install the app from Google Play.
  2. Connect to the PC and execute the command:
adb shell pm grant flar2.homebutton flar2.homebutton.permission.BIND_ACCESSIBILITY_SERVICE
  1. In the app, select the Double Press Power button and assign a new action (e.g. Toggle Flashlight).
  2. Save the settings and restart the smartphone.

Note that third-party applications may conflict with MIUI system processes. If after setting up the smartphone began to slow down or overheat, roll back the changes.

Frequent problems and their solutions

When you turn off the dual-press function, users encounter common errors, and consider the most common and ways to fix them:

  • ๐Ÿ”„ The function returns after the update MIUI โ†’ Use it. ADB or disable automatic updates in Settings โ†’ The phone. โ†’ Updating the system.
  • ๐Ÿ”ง Team team. ADB doesn't work โ†’ Check if the debugging is included USB If you have drivers installed, try reconnecting the device.
  • ๐Ÿ“ฑ No item in the settings on POCO/Xiaomi โ†’ In some models (POCO F3, Xiaomi 11T) The option is hidden. ADB file-editing.
  • ๐Ÿ”‹ The smartphone stopped booting after editing system files โ†’ Restore your backup copy through TWRP or sew the stock firmware.

If you use custom firmware (like LineageOS or ArrowOS), the dual-click function may be implemented differently, in which case, look for settings in the Buttons or Gesture settings section of the firmware menu.

โš ๏ธ Attention: On devices with Android 12+ and MIUI 13+ team ADB If you see a SecurityException error, try executing a command on behalf of the superuser).

Can I turn off the function without a computer?
Yes, if your version of MIUI has a corresponding setting, if it doesn't, you can't turn it off without ADB or root permissions, and the alternative is to use third-party apps like Button Mapper, but they require initial customization via a PC.
Why does the function reappear after being disabled through ADB?
This is due to resets after the MIUI update. To avoid a problem, disable automatic system updates or repeat the ADB command after each update. You can also use Tasker to automatically apply the command when booting.
Will the way to edit files on Xiaomi with a blocked bootloader work?
No, this method necessarily requires an unlocked bootloader and TWRP. On devices with a locked bootloader (bootloader), editing system files is impossible without the risk of "bricking".
Can you reassign double-click to another action without root?
Yes, using the Button Mapper or MacroDroid app. However, some features (such as button interception) may require a one-time ADB command to grant permissions to activate.
Why is my Redmi Note 9 not having a power-off option in the settings?
On some budget models (Redmi Note 9, Redmi 9A), the dual-press function is implemented at the hardware level and does not have a software switch, in which case only ADB or editing system files will help.

๐Ÿ’ก

If standard settings donโ€™t help, always start with the ADB command โ€“ itโ€™s the most secure and versatile method for Xiaomi devices.