Errors when using System Setting action

GiladB

Member
I've been getting errors similar to this when trying various system settings.
What does it mean?
Could not set peak_refresh_rate: java.lang.IllegalArgumentException: You cannot keep your settings in the secure settings.

Thank you.
 

MacroDroidDev

Administrator
Staff member
The helper app might work in some cases but in general this means the setting you are trying to set is not a valid parameter on your device so it thinks you are trying to store your own custom setting in there (which is not allowed). Many of these settings are vendor specific, so wont work across different devices.
 

Endercraft

Moderator (& bug finder :D)
I remember being able to store any setting in any table, but I think it was only tested on my old Android 7 device. I'll test it again.
 

GiladB

Member
Use the helper app.
Thank you. I also managed to store a setting that didn't exist and then deleted it.
How about this? Is it "hard-limited"?

java.lang.SecurityException: Settings key: is not readable. From S+, settings keys annotated with @hide are restricted to system_server and system apps only, unless they are annotated with @Readable.
 

Endercraft

Moderator (& bug finder :D)
Thank you. I also managed to store a setting that didn't exist and then deleted it.
How about this? Is it "hard-limited"?

java.lang.SecurityException: Settings key: is not readable. From S+, settings keys annotated with @hide are restricted to system_server and system apps only, unless they are annotated with @Readable.
Sometimes it appears with the system settings trigger but it seems to be a false positive and you can actually read the key.
 
Top