taskerm was not granted this permission: android.permission.WRITE_SETTINGS

579 views
Skip to first unread message

Parke

unread,
Aug 31, 2018, 6:06:27 PM8/31/18
to Tasker
Hello,

I just downloaded and installed the 7 day trial of Tasker.  My phone is running Android 8.0.0.

My goal is for Tasker to change the default ringtone twice per day, once in the evening and once in the morning.

I created a task as follows:

1.  Default Ringtone
Type Ringer Sound Silent

When I "play" the task, I get the following error:

14.32.18/Ringtones titleToUri: Silent
14.32.18/E code 3: java.lang.SecurityException: net.dinglisch.android.taskerm was not granted  this permission: android.permission.WRITE_SETTINGS..
14.32.18/E prefsException/Default Ringtone: net.dinglisch.android.taskerm was not granted  this permission: android.permission.WRITE_SETTINGS.
14.32.18/ android.os.Parcel.readException(Parcel.java:1943)
14.32.18/ android.database.DatabaseUtils.readExceptionFromParcel(DatabaseUtils.java:183)
14.32.18/ android.database.DatabaseUtils.readExceptionFromParcel(DatabaseUtils.java:135)
14.32.18/ android.content.ContentProviderProxy.call(ContentProviderNative.java:651)
14.32.18/ android.provider.Settings$NameValueCache.putStringForUser(Settings.java:1830)
14.32.18/ android.provider.Settings$System.putStringForUser(Settings.java:2236)
14.32.18/E Default Ringtone [ Type:Ringer Sound:Silent ]
14.32.18/E result: stop task (error)
14.32.18/E Error: 1
14.32.18/MacroEdit action finished exeID 1 action no 0 code 457 status: Err next 0

After encountering the above error, I also installed the "Tasker Settings" app.  The same error still occurs.

I also looked in Settings to see if I could grant Tasker permission to write settings.  While I found settings for other permissions, I could not find a "write to settings" permission.

So... my question is:  Can Tasker change the Default Ringtone?  If so, how?

(Aside: I do know about Android's "Do not disturb" feature.  However... this morning, I received a call from a priority contact while DND was in priority mode, yet my phone did not ring.  My default ringtone is None.  This leads me to suspect that DND does not use the per-contact ringtone, but instead DND uses the default ringtone.  Therefore, my goal is to automatically activate DND *and* change the default ringtone at the same time.)

Cheers,

Parke

Robert Ryan

unread,
Aug 31, 2018, 6:30:01 PM8/31/18
to tas...@googlegroups.com
In the Tasker app, open the options (3-dot) menu. 
Then select More -> Android Settings -> Write Settings 

--
You received this message because you are subscribed to the Google Groups "Tasker" group.
To unsubscribe from this group and stop receiving emails from it, send an email to tasker+un...@googlegroups.com.
Visit this group at https://groups.google.com/group/tasker.
For more options, visit https://groups.google.com/d/optout.

Parke

unread,
Aug 31, 2018, 6:57:20 PM8/31/18
to Tasker
On Friday, August 31, 2018 at 3:30:01 PM UTC-7, Robert Ryan wrote:
In the Tasker app, open the options (3-dot) menu. 
Then select More -> Android Settings -> Write Settings

Thanks, that works!

João Dias

unread,
Sep 10, 2018, 9:10:40 AM9/10/18
to tas...@googlegroups.com
This should be fixed in the beta, sorry about that.

--
Reply all
Reply to author
Forward
0 new messages