Tasker and root access

2,253 views
Skip to first unread message

Anthony J

unread,
Sep 27, 2013, 7:31:39 AM9/27/13
to tas...@googlegroups.com
Hi,

I'm using I9505, rooted, baseband I9505XXUDMH8, Android 4.2.2 official rom.

I just switched from AutomateIt Pro to Tasker, because I believe Tasker offers more functions then AutomateIt.

However, one hour after purchasing the app, I'm still struggling to get the tasker's root function activated, because the app doesn't ask for a root access. I've searched the internet, nothing useful; I've tried installing and reinstalling SuperSU and SuperUser, neither works; I've tried the secure setting plugin, but it asked me to pay for half of the features which I believe I could create on my own.

More specifically, I need at least the option to task the airplane mode, which is desperately wanted!

Please suggest anything?

Anthony

Jay M

unread,
Sep 27, 2013, 8:08:23 AM9/27/13
to tas...@googlegroups.com

First make sure you don't have anything blocking Tasker eg.XPrivacy. Then try doing something that requires root access like this

Task.

Action = delete file

File to delete = Anything you don't really care about

Tick the use root checkbox

Add a Wait 5 seconds action

Open file = The file you just deleted

Run the task and you should get an error message saying the file wasn't found or something like that, This confirms you have root.

Or just do something like run shell enter a command you no you need root for and check the use root box.

Secure settings is great and your probably going to need it soon.

Jay M

--
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 http://groups.google.com/group/tasker.
For more options, visit https://groups.google.com/groups/opt_out.

Anthony J

unread,
Sep 27, 2013, 8:21:40 AM9/27/13
to tas...@googlegroups.com, jaymen...@googlemail.com
Hi Jay,

Thanks for your help. 

By creating a such action does grant tasker root access and tasker shows up in supersu, but I still can't use the airplane mode in Net Action, still in red with a cross underneath...

Anthony

Jay M

unread,
Sep 27, 2013, 8:49:53 AM9/27/13
to Anthony J, tas...@googlegroups.com

I'm not 100% sure but I think Google stopped other apps toggling Aeroplane mode and GPS, secure settings might be able to to do it, il check for ya. I no for sure Aeroplane modes red on my device aswell.

Jay M

Jay M

unread,
Sep 27, 2013, 8:56:20 AM9/27/13
to Anthony J, tas...@googlegroups.com

Im on 4.2 CM10 and I can toggle aeroplane mode with the Secure settings helper. I tried toggling GPS and it says it toggled on/off but I didn't see the icon in statusbar so don't no if it actually worked or not :/

Jay M

Jay M

unread,
Sep 27, 2013, 9:02:57 AM9/27/13
to Anthony J, tas...@googlegroups.com

Anthony J

unread,
Sep 27, 2013, 10:44:01 AM9/27/13
to tas...@googlegroups.com, Anthony J, jaymen...@googlemail.com
Thanks for your help again Jay M. This is true, I understand this and this is the only reason I rooted my phone. As I said I used automateit before I switched to tasker, automateit was able to do all these, airplane mode toggle, gps toggle etc, but the drawback was it provided less functions such as java scripts, shell commands etc, and the UI is not so friendly as tasker...

I think I will swtich back to automateit before I could find any solution to this. Currently I don't want to pay anything on tasker plugins since I have paid for automateit and then tasker.

Thanks,
Anthony

Cptnodegard

unread,
Sep 27, 2013, 11:19:35 AM9/27/13
to tas...@googlegroups.com, Anthony J, jaymen...@googlemail.com
Giving Tasker root access enables Tasker to use root actions. It doesn't necessarily enable it to use non-root actions even though it would in theory be possible to get those abilities with root. Secure Settings has made a business out of providing ways of getting you those options by using root, and does it so well that there's really no point in spending time on that for the Tasker dev. If you cannot be bothered paying the ridiculously small amount of money it will cost you to get Secure Settings then frankly you can go toggle stuff manually...

Anthony J

unread,
Sep 27, 2013, 1:00:25 PM9/27/13
to tas...@googlegroups.com, Anthony J, jaymen...@googlemail.com
Cheap to buy doesn't mean worthy to buy, not for everyone. I can use automateit for some functions that aren't available in tasker and use tasker to do more advanced stuff that automateit can't. I paid for both already why should I pay another amount to secure settings, although it cost less than a potato...

Pent

unread,
Sep 28, 2013, 3:51:00 AM9/28/13
to tas...@googlegroups.com, Anthony J, jaymen...@googlemail.com
Side note: Tasker doesn't ask for root unless it needs it (i.e when an action
that needs it runs).

Pent

Pent

unread,
Sep 28, 2013, 3:52:02 AM9/28/13
to tas...@googlegroups.com, Anthony J, jaymen...@googlemail.com
>more advanced stuff that automateit can't. I paid for both already why should I pay another amount to secure settings, although it cost less than a potato...

Secure Settings is free.

Pent

Jenny Hawkins

unread,
Sep 28, 2013, 12:39:40 PM9/28/13
to tas...@googlegroups.com
Airplane mode on:
Run shell

settings put global airplane_mode_on 1
am broadcast -a android.intent.action.AIRPLANE_MODE --ez state true

Use root


And off:

settings put global airplane_mode_on 0
am broadcast -a android.intent.action.AIRPLANE_MODE --ez state false

Anthony J

unread,
Sep 28, 2013, 2:55:25 PM9/28/13
to tas...@googlegroups.com
Thanks Pent and Jenny.

The shell is the next thing I want to learn :> Thanks for your solution.

BTW, I just realised how stupid I was. The airplane mode in secure settings is free of charge, just need a tool called helper. Problem solved. Thanks for all!





--
You received this message because you are subscribed to a topic in the Google Groups "Tasker" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/tasker/wjdvHn8G-F8/unsubscribe.
To unsubscribe from this group and all its topics, send an email to tasker+un...@googlegroups.com.

Will Pena

unread,
Jan 30, 2014, 7:03:30 PM1/30/14
to tas...@googlegroups.com
I had the same problem with my new phone and reading saw I thought this "doing a task that needs root" and I use to had a task in my old cell that when I connect the headphones it opened slacker and I took off the turn off and to do that you have to use root when I did it play turn off part to test and there asked for root and case solved.

Rob Fisk

unread,
Jan 15, 2015, 3:42:10 PM1/15/15
to tas...@googlegroups.com
The simplest one to force a root access check is system/reboot

Matt R

unread,
Jan 17, 2015, 12:33:46 AM1/17/15
to tas...@googlegroups.com
... or easier just a run shell action with use root checked.

Matt

Rob Fisk

unread,
Jan 20, 2015, 9:40:26 PM1/20/15
to tas...@googlegroups.com
OK, so I had a blind spot for the Code option on actions.

Nice innocuous one:

New Action->Code->Run Shell
Name: Check Root (or your preference)
Command: ls
Use Root: Yes

New Profile->Event->Tasker->Monitor Start
Add Check Root action.

This should ensure that every time your tasker monitor starts it checks it has root access. I've not had an update since but will assume the monitor stops and starts at upgrade.

Abhirup Banerjee

unread,
Jul 16, 2015, 9:35:37 AM7/16/15
to tas...@googlegroups.com, jaymen...@googlemail.com, anthony...@gmail.com

Tasker refuses to ask root even though it has a superuser in /system and a su in the system/xbin.

Pent

unread,
Jul 16, 2015, 10:41:10 AM7/16/15
to tas...@googlegroups.com, abhirupb...@gmail.com, anthony...@gmail.com, jaymen...@googlemail.com


Tasker refuses to ask root even though it has a superuser in /system and a su in the system/xbin.

Tasker doesn't ever 'ask' anything for root. If you try to do something that needs root
you will be asked (not by Tasker) whether to allow/deny.

See also:

http://tasker.dinglisch.net/userguide/en/faqs/faq-problem.html#root

Pent

Abhirup Banerjee

unread,
Jul 19, 2015, 12:33:44 AM7/19/15
to tas...@googlegroups.com, crafty...@gmail.com
HI Pent,
Thank you for quick reply.
I have a question though that even if i am rooted and have added the modversion line to my build.prop and i am trying to run shell or change gps status it still doesn't ask for root. after i try to tick mark the use root option it says devicde does not have root access.
PS:- Run shell is the thing that i really want to do as well as kill apps using root as kill apps without root doesn't seem to work for me.

--
You received this message because you are subscribed to a topic in the Google Groups "Tasker" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/tasker/wjdvHn8G-F8/unsubscribe.
To unsubscribe from this group and all its topics, send an email to tasker+un...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages