I just did a complete wipe and installed the factory image of Android 6.0 Marshmallow on my Nexus 5. I used Chainfire's modified boot image and SuperSU 2.50 beta to root it, then installed tasker and restored my configuration through titanium backup.
Most of the tasks I've tried, after granting it whatever permissions it asked for, seem to work. However, whenever I run a task where it tried to run a shell command it fails.
As an example, I have a task that will kill the Google Store app. When I run this from the task list I get a red circle showing up next to the task after I try to run it. Here is the copied results from the run:
06.46.49/E Run Shell: ->
06.46.49/E Run Shell: %Shellerror -> %Shellerror
06.46.49/E Run Shell: ->
06.46.49/WakeLockManager setClearAlarm: not setting, last set 14 ago
06.46.49/Shell runBackground am force-stop com.android.vending root: true timeout: -1
06.46.49/Shell start process-thread ID 136
06.46.49/E add wait type Shell2 time 2147483647
06.46.49/E add wait type Shell2 done
I modified the task so it would save the exit code to a variable, %Shellerror. Here's the variable's cotents:
Error type 2
android.util.AndroidException: Can't connect to activity manager; is the system running?
at com.android.commands.am.Am.onRun(Am.java:353)
at com.android.internal.os.BaseCommand.run(BaseCommand.java:47)
at com.android.commands.am.Am.main(Am.java:100)
at com.android.internal.os.RuntimeInit.nativeFinishInit(Native Method)
at com.android.internal.os.RuntimeInit.main(RuntimeInit.java:251)
I do get a SuperSU notification saying tasker was granted root access to an interactive shell, so that doesn't seem to be the problem.
Prior to this latest OS update, including on M preview 3, tasker was working fine for shell commands.
Don't know if it's related, but titanium backup also fails to restore apps. Regardless of app processing method, it just hangs indefinitely when trying to restore an app. If I install the app from the play store I can restore the data with titanium backup without any problem.
Does anyone know what's wrong? Is this a Marshmallow issue or maybe something wrong with my permissions somewhere?
Thanks!