Tasker upgrade broke Run Shell (Error: 134)

128 views
Skip to first unread message

Sal Lusso

unread,
May 22, 2018, 11:00:46 PM5/22/18
to Tasker
Running Tasker 5.1m on Oreo 8.0.0.
A Run Shell action that used to work on previous Tasker/Android versions now gets an error:

04.55.44/Variables doreplresult: |%sqlite3 %dbfile "select sql from sqlite_master where type = 'table' and tbl_name = 'synclogs'"| -> |/data/data/com.keramidas.TitaniumBackup/files/sqlite3 /data/data/dk.tacit.android.foldersync.full/databases/foldersync.db "select sql from sqlite_master where type = 'table' and tbl_name = 'synclogs'"|
04.55.44/Variables doreplresult: |%sqlite3 %dbfile "select sql from sqlite_master where type = 'table' and tbl_name = 'synclogs'"| -> |/data/data/com.keramidas.TitaniumBackup/files/sqlite3 /data/data/dk.tacit.android.foldersync.full/databases/foldersync.db "select sql from sqlite_master where type = 'table' and tbl_name = 'synclogs'"|
04.55.44/E Run Shell: %dbreturn -> %dbreturn
04.55.44/E Run Shell: %dberr -> %dberr
04.55.44/E Run Shell:  ->
04.55.44/Shell runBackground /data/data/com.keramidas.TitaniumBackup/files/sqlite3 /data/data/dk.tacit.android.foldersync.full/databases/foldersync.db "select sql from sqlite_master where type = 'table' and tbl_name = 'synclogs'" root: true timeout: 10000
04.55.44/Shell start process-thread ID 2372
04.55.44/E add wait type Shell1 time 2147483647
04.55.44/E add wait type Shell1 done
04.55.44/E add wait task
04.55.44/Variables doreplresult: |%dbreturn| -> |%dbreturn|
04.55.44/Variables doreplresult: |%dberr| -> |%dberr|
04.55.44/E Error: 134

Running the same command in Terminal after "su" returns a valid result, no error. Command:
/data/data/com.keramidas.TitaniumBackup/files/sqlite3 /data/data/dk.tacit.android.foldersync.full/databases/foldersync.db "select sql from sqlite_master where type = 'table' and tbl_name = 'synclogs'"

Apparently error 134 means the program was aborted (received SIGABRT). But I have no idea how to look into this further since it works fine in Terminal.

João Dias

unread,
May 23, 2018, 4:54:00 AM5/23/18
to tas...@googlegroups.com
Hi there. Do you know on which version it worked?

--
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.

Sal Lusso

unread,
May 23, 2018, 7:58:34 AM5/23/18
to Tasker
It was at least working on my last device: Tasker 4.9u4 on Android 6.0.1.
But in fact, I just tested and Tasker 5.1m also works on Android 6.0.1!
The error comes on Tasker 5.1m on Android 8.0.

João Dias

unread,
May 23, 2018, 11:37:49 AM5/23/18
to tas...@googlegroups.com
Can you try with the beta

Sal Lusso

unread,
May 23, 2018, 12:05:36 PM5/23/18
to Tasker
It works with the beta!

Robert Ryan

unread,
May 23, 2018, 12:39:24 PM5/23/18
to tas...@googlegroups.com
Do I need to be rooted for this to work? This task generates a security
exception:

Test (13)

A1: Run Shell
Command: settings list system
Timeout (Seconds): 0
Use Root: Off
Store Output In: %list
Store Errors In: %error
Continue Task After Error: On

A2: Perform Task
Name: Share To QuickEdit
Priority: %priority
Parameter 1 (%par1): %list
Parameter 2 (%par2): %error
Stop: Off

Here is what is stored in the %error variable:

Security exception: You either need MANAGE_USERS or CREATE_USERS permission
to: query user

java.lang.SecurityException: You either need MANAGE_USERS or CREATE_USERS
permission to: query user
at
com.android.server.pm.UserManagerService.checkManageOrCreateUsersPermission(UserManagerService.java:1850)
at
com.android.server.pm.UserManagerService.getUserInfo(UserManagerService.java:1039)
at android.os.UserManager.getUserInfo(UserManager.java:1366)
at
com.android.providers.settings.SettingsService$MyShellCommand.onCommand(SettingsService.java:273)
at android.os.ShellCommand.exec(ShellCommand.java:96)
at
com.android.providers.settings.SettingsService.onShellCommand(SettingsService.java:51)
at android.os.Binder.shellCommand(Binder.java:581)
at android.os.Binder.onTransact(Binder.java:481)
at android.os.Binder.execTransact(Binder.java:682)


João Dias

unread,
May 23, 2018, 1:00:39 PM5/23/18
to tas...@googlegroups.com
Sorry, which of those actions shows that error? And yes, you need to be rooted to list settings.

Robert Ryan

unread,
May 23, 2018, 2:00:06 PM5/23/18
to tas...@googlegroups.com

On May 23, 2018 11:00:21 AM João Dias <joao...@gmail.com> wrote:

> Sorry, which of those actions shows that error?

A1

>

And yes, you need to be rooted to list settings.


Are there any Run Shell command that work without root? If so, is there a list somewhere of command that do work?

João Dias

unread,
May 25, 2018, 10:24:53 AM5/25/18
to tas...@googlegroups.com
Very weird how that action would give you an error about User permissions... About no-root commands, sorry, I really don't know which they are myself. :)

--

Sal Lusso

unread,
May 25, 2018, 11:49:23 PM5/25/18
to Tasker
On Thursday, May 24, 2018 at 3:00:06 AM UTC+9, Robert Ryan wrote:

Are there any Run Shell command that work without root? If so, is there a list somewhere of command that do work?


Sure there are, but that is ultimately dependent on Android, not Tasker. Anything you can run in Terminal without superuser rights, should also work in Tasker without root.
Reply all
Reply to author
Forward
0 new messages