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