3

I am trying to edit the settings for back gesture scaling on my Oneplus 9 running Android 12 on OxygenOS. The stock settings don’t let me set limits for the back gesture on the left side of the screen, so I wanted to set it manually.

adb shell settings put secure back_gesture_inset_scale_left -1

This command successfully limited the gesture like I wanted on this same device in Android 10 and 11, but running it now gives me this error.

Exception occurred while executing 'put':
java.lang.SecurityException: Permission denial: writing to settings requires:android.permission.WRITE_SECURE_SETTINGS

Not sure how to address this, I have enabled USB Debugging, Disabled Permissions Monitoring, and still nothing. The device is recognized by adb.

Sergio Rossi
  • 31
  • 1
  • 2

2 Answers2

2

open the "Developer options -> Disable permission monitoring" toggle.

enter image description here

Gabriele Mariotti
  • 320,139
  • 94
  • 887
  • 841
Bright
  • 21
  • 4
0

I am using Xiaomi Redmi Note 11 and I needed to open "USB debugging (Security settings)" option. Here...

NJT145
  • 3
  • 2