Alternative to Secure Settings?

4,319 views
Skip to first unread message

My-kl

unread,
Apr 25, 2016, 11:02:30 AM4/25/16
to Tasker
It seems Secure Settings hasn't been updated in well over a year and no longer gets root access for Android 5.1.1. (I've just rooted my phone) I've spent hours googling and come up with no solutions. Are there alternative or plugins I can use?

The things I want to control through Tasker are:
- switch airplane mode on and off;
- switch mobile data on and off:
- switch GPS on and off;
- switch pattern lock screen on and off.


Pent

unread,
Apr 25, 2016, 12:27:13 PM4/25/16
to Tasker
Did you contact the developer about your problem ?

Pent

My-kl

unread,
Apr 25, 2016, 12:52:37 PM4/25/16
to Tasker
I haven't, I don't know how. Others have and got no response.

Pent

unread,
Apr 25, 2016, 1:22:24 PM4/25/16
to Tasker



I haven't, I don't know how.

There should be contact details on the Play Store page.


> Others have and got no response.

For this issue ?

Pent

My-kl

unread,
Apr 25, 2016, 1:59:35 PM4/25/16
to Tasker
Yes, for this exact problem. No one has posted in the SS forum for 11 months either. General consensus is that support for it is over. It's a tragedy. That was my only reason for rooting.

Pent

unread,
Apr 25, 2016, 2:54:03 PM4/25/16
to Tasker


Yes, for this exact problem. No one has posted in the SS forum for 11 months either. General consensus is that support for it is over. It's a tragedy. That was my only reason for rooting.

Well if that's the case I guess I have to start thinking about implementing some of that stuff myself, sigh.

Pent

My-kl

unread,
Apr 25, 2016, 3:12:52 PM4/25/16
to Tasker
Yes please! By the weekend would be great! ;-)

I can confirm that Secure Settings is defunct. I tried emailing the developer but the email address on Play no longer works.

Max Hodgson

unread,
Apr 25, 2016, 3:34:05 PM4/25/16
to tas...@googlegroups.com
Have you thought about posting to the Secure Settings thread on XDA?

http://forum.xda-developers.com/showthread.php?t=1217767&page=273


On 25 April 2016 at 20:12, My-kl <my...@hotmail.com> wrote:
Yes please! By the weekend would be great! ;-)

I can confirm that Secure Settings is defunct. I tried emailing the developer but the email address on Play no longer works.

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

My-kl

unread,
Apr 25, 2016, 4:39:05 PM4/25/16
to Tasker
Yes, but as there are posts there already lamenting the lack of SS support and people saying that the dev promised updates well over a year ago and then went silent there seems little point.

However, I've just discovered that running a shell command 'svc data enable' and 'svc data disable' with 'root' checked controls mobile data.

My-kl

unread,
Apr 25, 2016, 5:03:10 PM4/25/16
to Tasker
Toggle Airplane Mode:

Action: Code → Run Shell, and enter these details:

  • Command: settings put global airplane_mode_on 1; am broadcast -a android.intent.action.AIRPLANE_MODE --ez state true
  • Check Use Root

To automatically disable the said mode, create an another action in a different profile and copy the aforesaid action with exception of 0 instead of 1 and false instead of true.

My-kl

unread,
Apr 25, 2016, 5:54:26 PM4/25/16
to Tasker
This:
http://www.pocketables.com/2013/07/how-to-emulate-touch-input-using-tasker-and-root.html
has enabled me to toggle GPS!
I suppose I can use the same method for toggling the lock screen but it's a bit convoluted...

My-kl

unread,
Apr 26, 2016, 8:58:49 AM4/26/16
to Tasker
Hey Pent, maybe you don't need to do much work to implement these things. Just add a shortcut that contains these shell commands. Yeah, I'm sure my advice is really sound, I haven't got a clue what I'm talking about, I've never made a real app!

Cycneuramus

unread,
Apr 27, 2016, 4:57:33 PM4/27/16
to Tasker
Here's a relevant Reddit thread with some examples of replacing Secure Settings actions with Shell Commands:

https://www.reddit.com/r/tasker/comments/4goz99/how_to_replace_some_secure_settings_actions_with

EW

unread,
Apr 27, 2016, 8:28:51 PM4/27/16
to Tasker
Great stuff - thanks!

My-kl

unread,
Apr 29, 2016, 7:23:46 PM4/29/16
to Tasker
This Xposed module: http://repo.xposed.info/module/com.lr.keyguarddisabler works as a Tasker plugin and allows the lockscreen to be toggled without re-entering the pattern.

Pent

unread,
May 3, 2016, 2:25:56 AM5/3/16
to Tasker
The developer has told me he's started up development again recently and hopes to fix some problems, so it's definitely worth sending
details of your problem even if you don't get a response.

Pent

My-kl

unread,
May 3, 2016, 4:07:39 AM5/3/16
to Tasker


On Tuesday, May 3, 2016 at 7:25:56 AM UTC+1, Pent wrote:
The developer has told me he's started up development again recently and hopes to fix some problems, so it's definitely worth sending
details of your problem even if you don't get a response.

But the email got sent back by the postmaster!
 

Pent

unread,
May 4, 2016, 2:40:03 AM5/4/16
to Tasker
I wrote to the Play Store email link a few days ago without problem.

Pent

Rich Belthoff

unread,
May 9, 2016, 6:08:40 AM5/9/16
to Tasker
This may be a dumb question, but is the System+ Module enabled in Secure Settings? I noticed yesterday that Tasker wasn't able to change Location Modes using Secure Settings so I figured SS wasn't working any longer (I have a Nexus 6P with systemless root). I tried to find some way to do it with Shell commands (but wasn't successful). Then I starting poking around SS and realized that the System+ Module was disabled. When I enabled it again, SS worked again. Tasker reboots my phone in the middle of the night. When I checked SS this morning, the Module was disabled again. However, it shortly re-enabled itself. I was thinking that I might have to create a task that uses AutoInput to click the Enable button in SS each time I reboot, but maybe if I just run SS and display the System+ tab, it'll work. I'll have to try something. In any event, if you haven't checked the status of the System+ Module, you might want to check that. If you have, then you can ignore my post. ;-)

BTW, I was reading over on the XDA forums and some say that SS works with system root vs systemless root because the root location is hard code in SS. I'm not sure what all that means, but I'm using systemless root so I figured that's why it wasn't working. However, it works for me with systemless root as long as I make sure the System+ Module is enabled.

My-kl

unread,
May 9, 2016, 1:35:55 PM5/9/16
to Tasker
Those of us having trouble with SS are finding that the System+ module won't activate, and also that it doesn't request root access. Although I think one is causing the other.

Steve Rothkin

unread,
May 9, 2016, 5:46:37 PM5/9/16
to tas...@googlegroups.com
Not sure if this is relevant, but I've found with my rooted Nexus 6
(stock android) that after each time I upgrade android and then re-root
it, I have to disable and then re-enable System+ for secure settings to
get root access again.

Rich Belthoff

unread,
May 9, 2016, 7:36:09 PM5/9/16
to Tasker
Rerooting is probably why my secure settings keeps cutting off.
Message has been deleted
Message has been deleted

Rich Belthoff

unread,
May 11, 2016, 12:59:01 PM5/11/16
to Tasker
And I think mine isn't working reliably. I can look at the System+ Module and it'll say enabled, but GPS doesn't change in Tasker. Then I try again and it might work, although I have to disabled and then enable the System+ Module. I hope the developer of SS issues a newer version fixing this. I can do some other things by shell commands, like airplane mode, but I haven't seen the appropriate shell commands for changing the Location options (anybody have those commands?).

My-kl

unread,
May 11, 2016, 4:46:23 PM5/11/16
to Tasker
>>but I haven't seen the appropriate shell commands for changing the Location options (anybody have those commands?).

To activate GPS, the command is: settings put secure location_providers_allowed gps,wifi,network
To deactivate, the command is: settings put secure location_providers_allowed ' '

Cycneuramus

unread,
May 11, 2016, 5:21:00 PM5/11/16
to Tasker

>>but I haven't seen the appropriate shell commands for changing the Location options (anybody have those commands?).

To activate GPS, the command is: settings put secure location_providers_allowed gps,wifi,network
To deactivate, the command is: settings put secure location_providers_allowed ' '

Those commands are deprecated and don't work as of Marshmallow.

Rich Belthoff

unread,
May 12, 2016, 2:21:46 PM5/12/16
to Tasker
Yea, and I have Marshmallow, and haven't seen anything for Marshmallow. Thx.

My-kl

unread,
May 13, 2016, 3:19:02 PM5/13/16
to Tasker
I didn't realise you're on MM. You can do it with emulated touch. Use developer options > show pointer location to get the co-ordinates. You'll need 'input swipe' to pull the notification shade down, 'input tap' to emulate tapping the GPS icon, and 'input swipe' to close the notification shade. It looks like an invisible person is controlling your phone. If you need more help I can give more detail.

Ruwaine Dan

unread,
Jun 18, 2016, 5:44:39 AM6/18/16
to Tasker
Here's the solution for those having issues with system+ module for SS using android MM systemless root. It has something to do with secure settings not recognizing root in systemless root MM (SS is too outdated unfortunately). This works perfectly for me anyways.



On Monday, 25 April 2016 23:02:30 UTC+8, My-kl wrote:

Robert Ryan

unread,
Jun 19, 2016, 5:43:56 PM6/19/16
to Tasker
"The things I want to control through Tasker are:
- switch airplane mode on and off;
- switch mobile data on and off:
- switch GPS on and off;"

All these settings (and most others) can be manipulated using Autoinput.

"- switch pattern lock screen on and off."

Despite warnings to the contrary, I've had good luck with Tasker's built-in Keyguard action.

YMMV

Message has been deleted

Verena g

unread,
Sep 8, 2016, 7:24:08 PM9/8/16
to Tasker
@Ruwaine
I'm using MM and got also problems with SS on rooted device.
VPN doesn't work, because no configured VPN is found.
Does your solution eliminates this problem too?

Rich Belthoff

unread,
Sep 8, 2016, 10:43:06 PM9/8/16
to Tasker
Check out the AutoTools plugin. It now offers several features to set Android settings without root. Not as robust as Secure Settings (not yet, anyway), but it should work for most settings.

Konstantin Mozhukhov

unread,
Sep 9, 2016, 2:23:13 AM9/9/16
to tas...@googlegroups.com

2016-09-09 5:43 GMT+03:00 Rich Belthoff <rcb...@gmail.com>:
Check out the AutoTools plugin. It now offers several features to set Android settings without root. Not as robust as Secure Settings (not yet, anyway), but it should work for most settings.

--
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+unsubscribe@googlegroups.com.
Visit this group at https://groups.google.com/group/tasker.
For more options, visit https://groups.google.com/d/optout.



--
с наилучшими пожеланиями,
     Константин Можухов
--

Jay L

unread,
Sep 10, 2016, 8:00:41 AM9/10/16
to Tasker
Here's the original thread on Toggle Settings, you can do it yourself

zer0_cool

unread,
Sep 14, 2016, 2:35:39 PM9/14/16
to Tasker
can u tell me the command to expand/collapse status bar


On Tuesday, 26 April 2016 02:33:10 UTC+5:30, My-kl wrote:
Toggle Airplane Mode:

Action: Code → Run Shell, and enter these details:

  • Command: settings put global airplane_mode_on 1; am broadcast -a android.intent.action.AIRPLANE_MODE --ez state true
  • Check Use Root

To automatically disable the said mode, create an another action in a different profile and copy the aforesaid action with exception of 0 instead of 1 and false instead of true.

Robert Ryan

unread,
Sep 14, 2016, 2:57:13 PM9/14/16
to tas...@googlegroups.com

action -> Display -> Status Bar

My-kl

unread,
Nov 29, 2016, 10:27:58 AM11/29/16
to Tasker
I've got Secure Settings to work now, apart from the Pattern Lock. GRRR!! I've enabled it in Secure Settings but when I try to run a task it just says there's a problem doing it. I've uninstalled/reinstalled SS but that didn't work.

Chris Nacca

unread,
Dec 19, 2016, 12:23:41 PM12/19/16
to Tasker
Did you find a solution to this? 

My-kl

unread,
Dec 19, 2016, 2:52:46 PM12/19/16
to Tasker
No. I'm using emulated when I want to switch the pattern lock on or off. I still have to put the pattern in once or twice depending on whether I'm activating or deactivating it.

Someone suggested looking at the code for Cyanogenmod to see how they disable it but I don't know how to get the code.

Mike Jerry

unread,
Dec 19, 2016, 2:53:40 PM12/19/16
to Tasker
The most recent version of SS in the Play Store is still January of 15 so it looks like the promised resumption of development never happened. :(

My-kl

unread,
Dec 21, 2016, 11:12:03 AM12/21/16
to Tasker
Yes, it's been months since that was promised. Such a shame.

My-kl

unread,
Dec 30, 2016, 6:06:16 AM12/30/16
to Tasker
Perhaps it was simply too hard to get it working on new Android builds. I remember it took months for some LP phones to get root.

My-kl

unread,
Dec 30, 2016, 6:06:26 AM12/30/16
to Tasker

My-kl

unread,
Jan 5, 2017, 6:26:49 AM1/5/17
to Tasker
I've finally found a way to automate turning a secure lock screen on and off: AutoInput can navigate to the security selection screen, select PIN and paste a number in. It takes a while to program all the steps but it works reliably and it's WAY faster than Tasker's emulated touch.

- Use Variable Set to put whatever number you want in %PIN.
- Set Clipboard text = %PIN
- Then program AutoInput to navigate where you want and paste the code. (Note: 'Paste' was the only input method that worked for me. The field type needs to be set to 'Focus'.)

Presumably it would also work with a password. If you're on Android 7 presumably you can use pattern lock with Gestures.

Patrick Belts

unread,
Jan 5, 2017, 7:07:14 AM1/5/17
to Tasker
As alternative to Secure Settings I suggest SecureTask plugin, I replaced SS now.

@My-kl: I use fingerprint lock and to unlock I do swipe (android 7) using TouchTask plugin (better than AutoInput in my opinion, free and it requires less resources) and then I enter my pin using com.android.systemui:id/keyX to press the numbers. Replace X with your digits of course.

My-kl

unread,
Jan 7, 2017, 5:41:49 AM1/7/17
to Tasker
Dammit Patrick, why didn't you tell me about this before?! :-D

MrGee

unread,
Jan 7, 2017, 5:15:51 PM1/7/17
to Tasker
or AutoTools 

:-)

Op zaterdag 7 januari 2017 11:41:49 UTC+1 schreef My-kl:

My-kl

unread,
Jan 7, 2017, 6:23:23 PM1/7/17
to Tasker
AutoTools doesn't have anything for locking the screen does it? That's the only thing we've had trouble hacking.

JD

unread,
Jan 8, 2017, 1:32:07 PM1/8/17
to Tasker
You guys are too reliant on plugins and this is exactly what can happen when it's no longer supported.

Much of this can be changed via shell commands and checked via java functions.

Patrick Belts

unread,
Jan 8, 2017, 1:39:11 PM1/8/17
to Tasker
Sure, but **without** root you can't change anything. In addition, with java code you can do only limited tasks. I don't pay anything to use plugins since they are free, so I don't care.

JD

unread,
Jan 8, 2017, 3:55:58 PM1/8/17
to Tasker
Tasker without root... ew.

Amit Mathur

unread,
Jan 26, 2017, 6:07:20 AM1/26/17
to Tasker
Whats the shell command to enable/disable pattern/pin lock ,I am on Nougat Rooted ( systemless )

My-kl

unread,
Jan 26, 2017, 7:32:17 AM1/26/17
to Tasker


On Thursday, January 26, 2017 at 11:07:20 AM UTC, Amit Mathur wrote:
Whats the shell command to enable/disable pattern/pin lock ,I am on Nougat Rooted ( systemless )

There doesn't seem to be one. SecureTask plugin seems to be the only way to switch PIN on/off (not Pattern) without programming all sorts of emulated touch wizardry.

Amit Mathur

unread,
Jan 26, 2017, 11:11:49 AM1/26/17
to tas...@googlegroups.com
Not Working in Nougat !






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

Visit this group at https://groups.google.com/group/tasker.
For more options, visit https://groups.google.com/d/optout.

My-kl

unread,
Jan 26, 2017, 5:17:43 PM1/26/17
to Tasker


On Thursday, January 26, 2017 at 4:11:49 PM UTC, Amit Mathur wrote:
Not Working in Nougat !

It's ridiculous, this should be a standard function of Android. Your only other option, as far as I know, is to program AutoInput to navigate to the settings and enter the PIN for you. It will take a while to set up but the whole process will run in a couple of seconds. With Nougat you can use AI Gesture, which means you can probably use Pattern Lock.

John Doe

unread,
Jan 28, 2017, 8:53:16 AM1/28/17
to Tasker
It doesn't work because Google introduced a new security policy against ransom-ware virus. However I don't like it at all because it limits the usage for users and it doesn't solve anything because an app with admin rights can set a random password anyway. However as you can see here https://plus.google.com/u/0/102582215848134314158/posts/A1jKSN7vhHo there is an highly experimental version. It can bypass any control and it can add a lot of new features to any non-root user, like reboot or keyguard management. The setup is really tricky, so test it only if you really know what you are doing.
Reply all
Reply to author
Forward
0 new messages