AutoTools Can't change setting on this device - screen_auto_brightness_adj

Discussion in 'AutoApps' started by dbareis, Feb 4, 2018.

  1. dbareis

    dbareis New Member

    Joined:
    Mar 12, 2015
    Messages:
    7
    Likes Received:
    0
    Hi,

    I'm trying to set "screen_auto_brightness_adj" on my OnePlus 5T (Android 7.1.1), I can successfully do so from Windows with:

    Code (Text):
    ADB.EXE shell settings put system screen_auto_brightness_adj 255
    I have also preformed the first and now 2nd (after some reading) of these commands:

    Code (Text):
    adb shell pm grant com.joaomgcd.autotools android.permission.WRITE_SECURE_SETTINGS
    adb shell pm grant com.joaomgcd.autotools android.permission.CHANGE_CONFIGURATION
    In Tasker I get:
    Code (Text):

    Error: 166522839
    Can't change setting on this device: you cannot change private secure settings
     
    Any ideas?
     
  2. joaomgcd

    joaomgcd Administrator Staff Member

    Joined:
    Feb 3, 2015
    Messages:
    9,479
    Likes Received:
    806
    Unfortunately Android prevents some settings from being changed. the only way to change these specific settings is with root. Sorry!
     
  3. dbareis

    dbareis New Member

    Joined:
    Mar 12, 2015
    Messages:
    7
    Likes Received:
    0
    Thats OK except that I am rooted with Magisk and "AutoTools Root add-on" has been granted root permissions.
     
  4. joaomgcd

    joaomgcd Administrator Staff Member

    Joined:
    Feb 3, 2015
    Messages:
    9,479
    Likes Received:
    806
    If you're rooted you can use the Secure Settings action in the root-add on :) Did you try that?
     
  5. dbareis

    dbareis New Member

    Joined:
    Mar 12, 2015
    Messages:
    7
    Likes Received:
    0
    yes, thats what is failing...

    I have now also successfully done it without autotools by running the shell commands from tasker.
     

Share This Page