Disable swipe-left back gesture on Android 11

Submitted by HighKing on Thu, 03/25/2021 - 20:48

This one I found really annoying when I bought a new phone with Android 11. Both swiping left AND right makes it jump back to the last thing you were doing. I found myself accidentally swiping left... a lot.

Unfortunately Google didn't give us an option to disable this annoying behaviour from the phone itself, but it can be disabled pretty easy with adb. You do not need to root your phone for this but you do need the developer tools with usb-debugging enabled (which you can disable directly after if you wish).

For those of you who have no idea what adb is and how to use it, there's a nice article on xda-developers.com on how to install it on your pc or laptop.

To use it, you need to enable developer tools on your phone. To do that, open settings => about this phone and tap the build number 7 times. A new menu will appear under settings -> system. There you can enable USB debugging.

Now, if you wish to disable the swipe-left back gesture, type this in a command prompt:

adb shell settings put secure back_gesture_inset_scale_right 0

If you wish to disable the swipe-right back gesture instead, do this:

adb shell settings put secure back_gesture_inset_scale_left 0

If everything worked out, you will not get any output. You can now unplug your phone. If you wish you can go back to the developer tools menu and disable USB debugging and even the developer tools completely. This will not change the setting back to it's original state.