Cannot read custom setting

20 views
Skip to first unread message

slarti76

unread,
Jan 13, 2022, 6:13:03 AM (5 days ago) Jan 13
to Tasker
I have a problem with reading a custom setting on Android 11 (Galaxy S21 SM-G991B, Tasker 5.15.8-Beta):
I cannot read out the value of Custom Settings of type Secure. The values are shown correctly when I use the "Find" function, and also in the list shown by "Select Setting". But if I try to read setting to a variable, that variable will be empty afterwards. Works for Global and System settings.
The Custom Setting profile is affected, too: It is run when the value changes, but the array with the event parameters contains no value.
This does work on my XCover Pro which is still running A11.

João Dias

unread,
Jan 13, 2022, 6:26:01 AM (5 days ago) Jan 13
to Tasker
Can you please export your task's description (not xml) so I can take a look? Long-click the task in Tasker->export description Thanks in advance

Thank you for your contact.

   Join: connect multiple devices (send pushes, remote SMS, notifications) on Android, Windows, Mac, Linux
   Tasker: customize/automate anything on your phone!
   AutoApps: add advanced functionality to Tasker via plugins

     

João Dias


slarti76

unread,
Jan 13, 2022, 1:48:03 PM (4 days ago) Jan 13
to Tasker
Here you are. For me, first two value are 0 or 1, third is just "%extradim".
Note: I did find out that it doesn't affect all Secure Settings - this one seems to be Samsung-specific. But nevertheless, the list for "Select Setting" shows the name and value correctly (I checked that it's actually changin), and I can change the value with no problems.

    Task: Test Custom Setting
    
    A1: Custom Setting [
         Type: Global
         Name: adb_enabled
         Read Setting To: %adb ]
    
    A2: Custom Setting [
         Type: System
         Name: blue_light_filter
         Read Setting To: %bluelight ]
    
    A3: Custom Setting [
         Type: Secure
         Name: reduce_bright_colors_activated
         Read Setting To: %extradim ]
    
    A4: Flash [
         Text: ADB (G): %adb
         Blue Light (Sys): %bluelight
         Extra Dim (Sec): %extradim
         Tasker Layout: On
         Continue Task Immediately: On
         Dismiss On Click: On ]
Reply all
Reply to author
Forward
0 new messages