AutoTools blue filter system setting changes are not respected on Samsung S9+

Discussion in 'AutoApps' started by jarkd, Feb 27, 2019.

  1. jarkd

    jarkd New Member

    Joined:
    Feb 27, 2019
    Messages:
    4
    Likes Received:
    0
    Hello,

    I'm on Samsung S9+.

    I have very simple task which should just toggle adb system setting:
    adb shell settings put system blue_light_filter 1
    this is working via shell on my phone.

    I configure simple task:
    upload_2019-2-27_21-2-40.png

    and i get the following error

    20.58.48/MyPM getReceiverInfo: android.content.pm.PackageManager$NameNotFoundException: ComponentInfo{com.joaomgcd.autotools/com.joaomgcd.autotools.broadcastreceiver.IntentServiceFire}
    20.58.48/ android.app.ApplicationPackageManager.getReceiverInfo(ApplicationPackageManager.java:531)
    20.58.48/ net.dinglisch.android.taskerm.co.a(Unknown Source:1)
    20.58.48/ net.dinglisch.android.taskerm.co.f(Unknown Source:0)
    20.58.48/ net.dinglisch.android.taskerm.df.a(Unknown Source:333)
    20.58.48/ net.dinglisch.android.taskerm.ExecuteService.a(Unknown Source:59)
    20.58.48/ net.dinglisch.android.taskerm.ExecuteService.a(Unknown Source:314)
    20.58.48/E FIRE PLUGIN: AutoTools Secure Settings / com.twofortyfouram.locale.intent.action.FIRE_SETTING: 6 bundle keys
    20.58.48/E AutoTools Secure Settings: plugin comp: com.joaomgcd.autotools/com.joaomgcd.autotools.broadcastreceiver.IntentServiceFire
    20.58.48/E add wait type Plugin1 time 60
    20.58.48/E add wait type Plugin1 done
    20.58.48/E handlePluginFinish: taskExeID: 1 result 3
    20.58.48/E pending result code
    20.58.48/E add wait task
    20.58.48/E Error: 1185377229
    20.58.48/E Can't change setting on this device: You cannot keep your settings in the secure settings.


    Custom setting is working. Maybe i configure something wrong :(


    Task definition

    <TaskerData sr="" dvi="1" tv="5.6">
    <Task sr="task4">
    <cdate>1551297209398</cdate>
    <edate>1551297293043</edate>
    <id>4</id>
    <nme>B2</nme>
    <pri>100</pri>
    <Action sr="act0" ve="7">
    <code>1646792910</code>
    <Bundle sr="arg0">
    <Vals sr="val">
    <com.twofortyfouram.locale.intent.extra.BLURB>Setting Type: System
    Name: blue_light_filter
    Input Type: Toggle
    Value: 3</com.twofortyfouram.locale.intent.extra.BLURB>
    <com.twofortyfouram.locale.intent.extra.BLURB-type>java.lang.String</com.twofortyfouram.locale.intent.extra.BLURB-type>
    <net.dinglisch.android.tasker.JSON_ENCODED_KEYS>parameters</net.dinglisch.android.tasker.JSON_ENCODED_KEYS>
    <net.dinglisch.android.tasker.JSON_ENCODED_KEYS-type>java.lang.String</net.dinglisch.android.tasker.JSON_ENCODED_KEYS-type>
    <net.dinglisch.android.tasker.RELEVANT_VARIABLES>&lt;StringArray sr=""&gt;&lt;_array_net.dinglisch.android.tasker.RELEVANT_VARIABLES0&gt;%err
    Error Code
    Only available if you select &amp;lt;b&amp;gt;Continue Task After Error&amp;lt;/b&amp;gt; and the action ends in error&lt;/_array_net.dinglisch.android.tasker.RELEVANT_VARIABLES0&gt;&lt;_array_net.dinglisch.android.tasker.RELEVANT_VARIABLES1&gt;%errmsg
    Error Message
    Only available if you select &amp;lt;b&amp;gt;Continue Task After Error&amp;lt;/b&amp;gt; and the action ends in error&lt;/_array_net.dinglisch.android.tasker.RELEVANT_VARIABLES1&gt;&lt;/StringArray&gt;</net.dinglisch.android.tasker.RELEVANT_VARIABLES>
    <net.dinglisch.android.tasker.RELEVANT_VARIABLES-type>[Ljava.lang.String;</net.dinglisch.android.tasker.RELEVANT_VARIABLES-type>
    <net.dinglisch.android.tasker.extras.VARIABLE_REPLACE_KEYS>parameters plugininstanceid plugintypeid </net.dinglisch.android.tasker.extras.VARIABLE_REPLACE_KEYS>
    <net.dinglisch.android.tasker.extras.VARIABLE_REPLACE_KEYS-type>java.lang.String</net.dinglisch.android.tasker.extras.VARIABLE_REPLACE_KEYS-type>
    <net.dinglisch.android.tasker.subbundled>true</net.dinglisch.android.tasker.subbundled>
    <net.dinglisch.android.tasker.subbundled-type>java.lang.Boolean</net.dinglisch.android.tasker.subbundled-type>
    <parameters>{"inputServices":{"settingsAccessibilityServices":"","settingsChangeAccessibility":false,"settingsChangeNotificationListeners":false,"settingsChangeQuickSettingsTiles":false,"settingsNotificationListeners":"","settingsQuickSettingsTiles":""},"settingsCustom":{"customSettingInputType":"4","customSettingName":"blue_light_filter","customSettingRead":false,"customSettingType":"2","customSettingValue":"3"},"settingsNotifications":{},"settingsRead":"","settingsScreen":{},"systemAnimations":{},"generatedValues":{}}</parameters>
    <parameters-type>java.lang.String</parameters-type>
    <plugininstanceid>b13f60c5-45f7-474d-b985-dd21fe8fc27e</plugininstanceid>
    <plugininstanceid-type>java.lang.String</plugininstanceid-type>
    <plugintypeid>com.joaomgcd.autotools.intent.Intentsettings</plugintypeid>
    <plugintypeid-type>java.lang.String</plugintypeid-type>
    </Vals>
    </Bundle>
    <Str sr="arg1" ve="3">com.joaomgcd.autotools</Str>
    <Str sr="arg2" ve="3">com.joaomgcd.autotools.activity.ActivityConfigsettings</Str>
    <Int sr="arg3" val="60"/>
    </Action>
    </Task>
    </TaskerData>
     
  2. joaomgcd

    joaomgcd Administrator Staff Member

    Joined:
    Feb 3, 2015
    Messages:
    9,479
    Likes Received:
    806
    That's a limitation that the Custom Setting action in Tasker doesn't have with the help of the Tasker Settings app. :) Use that instead!
     
  3. jarkd

    jarkd New Member

    Joined:
    Feb 27, 2019
    Messages:
    4
    Likes Received:
    0
    Thx Joa. Working now

    but... :)

    it seems i have issue to make phone to respect those settings. Sometimes it is working (i think just in the beginning when I setup this in Tasker and run few commnads) and sometimes not. The button and slider are changing in the phone menu but the settings are not respected :(. When i do this manually - all is fine immediately.
     
    Last edited: Mar 5, 2019
: autotools, system

Share This Page