WRITE_SECURE_SETTINGS permission ignored

465 views
Skip to first unread message

martin...@yahoo.ca

unread,
Jul 9, 2022, 1:48:56 PM7/9/22
to Tasker
Samsung A32 5G, Android 12, One UI 4.1.

Wanting to use Tasker to enable/disable Mobile Data.

Have used adb to grant WRITE_SECURE_SETTINGS permission:
"adb shell pm grant net.dinglisch.android.taskerm android.permission.WRITE_SECURE_SETTINGS"

Double-checked that WRITE_SECURE_SETTINGS is marked as "granted=true" in the list of installed permissions for Tasker.

In spite of that, if I try to define a task to modify Mobile Data state, I am prompted by Tasker to grant the permission.

As a further test, I tried running that task and it has no effect, except on the setting UI.

MV

João Dias

unread,
Jul 11, 2022, 5:51:14 AM7/11/22
to Tasker
Yeah, unfortunately Mobile Data will not work with Secure Settings on most devices. You really have to enable ADB Wifi for it to work for sure,  sorry!

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


aa6vh

unread,
Jul 11, 2022, 11:06:20 AM7/11/22
to Tasker
A less ideal solution, since the screen must be on and the phone unlocked, but I use AutoInput to turn on/off mobile data.
Reply all
Reply to author
Forward
0 new messages