2

Question is simple, is there an easy way to enable developer options on startup from a command line script or 3rd party app? I want to set the flag for 'Disable HW overlays' on startup because it gets turned off every-time I restart the system.

For reference I am on Android 10, with bootloader unlocked, custom recovery, and rooted.

Firelord
  • 25,084
  • 20
  • 124
  • 286
Bennett Yeo
  • 123
  • 1
  • 4

1 Answers1

3

Source-reddit, which references Android documentation

to DISABLE the h/w composer: adb shell service call SurfaceFlinger 1008 i32 1

to ENABLE the h/w composer: adb shell service call SurfaceFlinger 1008 i32 0

These need to be run as root and can be in a script or using the Termux Boot app as described in wiki

For some reason, this works the opposite way for OP (command for enable disables and vice-versa ; maybe a case for a separate question)

beeshyams
  • 40,739
  • 30
  • 119
  • 269