Cannot read custom setting

259 views
Skip to first unread message

slarti76

unread,
Jan 13, 2022, 6:13:03 AM1/13/22
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 AM1/13/22
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 PM1/13/22
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 ]

João Dias

unread,
Jan 21, 2022, 11:08:44 AM1/21/22
to Tasker
Hi there, thanks for the report! Can you please try this version? https://drive.google.com/file/d/19w0kkEle9oinGusDHMe-1f1u6_xuuifD/view?usp=sharing

If you want you can also check any previous releases here: https://drive.google.com/drive/folders/1GW55YKFiuOZhJVswnt_BQUCJoGm36ugF?usp=sharing

slarti76

unread,
Jan 21, 2022, 1:48:47 PM1/21/22
to Tasker
Thx, but made no difference. Also tried a few other 5.15.8-beta versions, but not below, as my Android won't let me downgrade, it seems.
Reply all
Reply to author
Forward
0 new messages