shell input tap without root?

1,549 views
Skip to first unread message

Waldy Wiz

unread,
May 25, 2018, 7:42:22 AM5/25/18
to Tasker
Hi,  I'm running tasker with android Nougut 7.0.  I'm trying to set gps on by location settings.  Using run shell inptut tap x y,  I'm trying to avoid rooting my phone to achieve this.  the shell command works if I tasker is the active app,  but not in other apps or inddeed Location settings

I have tasker as device administrator.  I have tried dpad without root with similar results.  Does this mean I need to root my phone to acheive this?

João Dias

unread,
May 25, 2018, 9:56:57 AM5/25/18
to tas...@googlegroups.com
You don't need this with the beta :) Use the new "Custom Setting" action with the "location_mode" set to either 0, 1, 2 or 3 and type set to "Secure". 

Also, if you really want to tap without root look into AutoInput

Hope this helps!

On Fri, May 25, 2018 at 12:42 PM Waldy Wiz <wal...@gmail.com> wrote:
Hi,  I'm running tasker with android Nougut 7.0.  I'm trying to set gps on by location settings.  Using run shell inptut tap x y,  I'm trying to avoid rooting my phone to achieve this.  the shell command works if I tasker is the active app,  but not in other apps or inddeed Location settings

I have tasker as device administrator.  I have tried dpad without root with similar results.  Does this mean I need to root my phone to acheive this?

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

Waldy

unread,
May 26, 2018, 12:58:21 PM5/26/18
to tas...@googlegroups.com
hI João and thanks,

I found Custom settings from tasker beta.  It states I have to set permissions to do this via adb.  I get the following error when I try to do this:

PS C:\Program Files\adb> .\adb shell pm grant net.dinglish.android.taskerm android.permission.WRITE_SECURE_SETTINGS
Bad argument: java.lang.IllegalArgumentException: Unknown package: net.dinglish.android.taskerm

ps my phone is connected when I do .\adb devices




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/cqNWCjQv6XA/unsubscribe.
To unsubscribe from this group and all its topics, send an email to tasker+un...@googlegroups.com.

Christophe

unread,
May 26, 2018, 2:08:28 PM5/26/18
to Tasker
Hi,
I think that there is an error in package name, it should be:
net.dinglisch.android.taskerm

Waldy

unread,
May 27, 2018, 5:03:57 PM5/27/18
to tas...@googlegroups.com
Ah, thanks.  All works now. It's good to have location on only when it's needed. Cheers

--

João Dias

unread,
May 28, 2018, 5:23:15 AM5/28/18
to tas...@googlegroups.com
Glad it works for you now! :)

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.
Reply all
Reply to author
Forward
0 new messages