Thanks again for your help.
I am not sure if the SQLite binaries are installed. I've installed titanium backup, per your suggestion and not had any luck. I also installed an app that is supposed to add the binaries. The app failed twice, but said sqlite was installed on the third try, after reboot. The task stilled failed though. I rebooted once more, and it still failed. I am on a Droid turbo, android 5.1 rooted, but with a locked bootloader. The app "SQLite Debugger" works, and find information, but I can't make much sense of it. It shows:
SELECT * FROM system WHERE name = 'ringtone'
_ID NAME VALUE
913 ringtone content://media/external/audio/media/3266
I'm presuming that this some how identifies the particular file reference.
Here is the task description:
Query2 (146)
A1: Run Shell [ Command:sqlite3 /data/data/com.android.providers.settings/databases/settings.db
"SELECT value FROM system WHERE name='ringtone'" Timeout (Seconds):0
Use Root:On Store Output In:%rturi Store Errors In:%rtqerror Store Result In: ]
A2: Flash [ Text:%rtqerror Long:Off ]
A3: Variable Split [ Name:%rturi Splitter:/ Delete Base:Off ]
A4: Run Shell [ Command:sqlite3
/data/data/com.android.providers.media/databases/internal.db "SELECT title
FROM files WHERE _id=%rturi(<)" Timeout (Seconds):0 Use Root:On Store
Output In:%rtname Store Errors In:%rtqerror Store Result In: ]
A5: Flash [ Text:%rtname
%rtqerror Long:Off ] Here is the log:
14.26.20/E Run Shell:
%rturi -> %rturi
14.26.20/E Run Shell: %rtqerror -> %rtqerror
14.26.20/E Run Shell: ->
14.26.20/Shell runBackground sqlite3
/data/data/com.android.providers.settings/databases/settings.db "SELECT
value FROM system WHERE name='ringtone'" root: true timeout: -1
14.26.20/Shell start process-thread ID 104
14.26.20/E add wait type Shell7 time 2147483647
14.26.20/E add wait type Shell7 doneWould the place where my ringtones are stored effect the outcome? I have a separate folder on my SD where rintones are stored. Each time my phone rings, tasker goes out and picks a new one at random. Occasionally, the task fails and no ringtone is assigned. I was looking for a way for Tasker to check to see if one was assigned or not, and if not, run the ringtone task changer again.