yashsingh1/xdaforums huggingface dataset:
[Android Apps and Games] intangibleDroid:
You are correct. By creating a widget that performs the "Force Lock" and "Enable Pattern Lock" option, your device's screen will immediately get shut off and the pattern lock will be enabled.

As for the warning, I only included that to warn users about the potential dangers for this function. During my testing, I associated the "Force Lock" function with a "Display On" event. So every time I turned on my phone, the event would fire and Secure Settings would turn off the screen. I had to jump through some hoops to get it to stop.

Long story short, don't do that :P
[Android Apps and Games] XdaJess:
Thanks for the very quick (and helpful) reply, it's much appreciated!

---------- Post added at 06:45 PM ---------- Previous post was at 06:40 PM ----------

While I'm here, I had a thought, do you know if it possible (either with tasker default options, or with secure settings) to make it have the screen go to sleep but not lock the phone? I'd like to be able save battery by turning the screen off, but unlock it by touch the screen/home key under certain circumstances (e.g. on a stand at my work station so that I can quickly access the phone without have to grab it to press the power button).

Thanks!

J:D
[Android Apps and Games] intangibleDroid:
I'm not aware of anything like that. However, I've seen custom roms implement functions like using the volume buttons to wake the device. I'm sure CM7+ has it but can't really speak for any others.

Hope this helps.
[Android Apps and Games] rendler:
Holy crap this is awesome! Thanks for the great work and in making this, really !!
[Android Apps and Games] intangibleDroid:
Always glad to hear people are appreciating my app. Makes it all worthwhile :)
[Android Apps and Games] fragargon:
well so should i do ,I tell you that beside tasker and MTW your apps is base into my phone whatever rom is running and got daily use as i am running automated task...

thanks doing so usefull and smart app (running command is quiet fine) :D
[Android Apps and Games] intangibleDroid:
Version 1.1.8 is now available in the market.

Updated OP with new features.
[Android Apps and Games] fragargon:
hi Intangibledroid,

i just grab the update from playstore. spoted that helper is also updated however downloading fine... it s failing remove previous version and so... package manager failed.. pm failed installed?

I have mounted system but this not helped.

I m using a a2sd script amarullz but i think that helper is installed into system.

Do you have some idee whatabout? I tried to find the helper pkg but did not.

help would be appreciated, thanks
[Android Apps and Games] intangibleDroid:
The best thing you can do in this case is to use the "Remove Helper" option in the app if it's still available. If that succeeds, just install it again.

If that doesn't work, try the following:

Using the command line or a Root File Explorer, see if the file "/system/app/SecureSettingsHelper.apk" exists. If it does, delete it.

After deleting it, try running the following command as a root user

"pm uninstall com.intangibleobject.securesettings.helper".

At this point, reboot your device. It should be able to be re-installed after all this.
[Android Apps and Games] fragargon:
hi,

thanks for quick answer,

i do as descibe here is of command line, it succeed

http://pastebin.com/xYGfFVsq

after rebooted, try reinstalling helper but failed at point... waiting helper responds...

try twice same result. now I just wipe dalvik and gonna try once again

thanks.. ATM dalvik rebuilding ;)

edit: ok now helper is working, no need to reinstall helper. wipe dalvik was enough.

many thanks for your help. I absolutly need securesettings working as I rely on it for several automated task... ouffffffffffffffffffff :o
[Android Apps and Games] intangibleDroid:
The "Waiting for Helper to respond" step might just mean that the system is busy doing other things. Usually uninstalling and re-installing again will solve that issue.

Thanks for your patience. Hopefully this doesn't happen to many other people :/

EDIT: If it keeps failing to respond, please turn on debug and send me the logs if you can. Also, try to see if it's a false positive by running a command that requires the Helper and seeing if it works.
[Android Apps and Games] fragargon:
hi, see post upon yours, i made an edit... everything is fine now

thanks so much Intangibledroid, you can not imagine how your app is a baseline on my rom set up.
[Android Apps and Games] swallowingled:
Yes, that's the one I'm using.
[Android Apps and Games] solquest3:
Hello.

Is it possible with Secure Settings to swap between 4G an 3G?

It's cause I'd like to set a profile with Llama for saying that when I'm on a call it should go to 3G (so I still have internet connection), while 4G when I'm not in a call.

I've had a look but couldn't find anything for doing that...

Thanks.
[Android Apps and Games] Pkt_Lnt:
No, Secure Settings can not

Yes, there is an app that can do it and it is Tasker / :Llama enabled. It is in this same Android apps and Games forum. Work on your Google Search fu. :D

http://xdaforums.com/android/apps-games/widget-toggle-network-type-5-0-xda-t2945406
[Android Apps and Games] bunklung:
2.62-3 makes my phone fail the security check (dm-verify?) since Chainfire put in a work around for older SU apps. If you remove this workaround, it breaks the old SU apps.

*update* found this for people who only need to toggle airplane mode:

http://android.stackexchange.com/qu...e-airplane-mode-using-tasker-on-android-4-2-2
[Android Apps and Games] solquest3:
Marvellous, thanks!

By the way, I was meaning that I couldn't find it in Secure Settings, not all over the web :)
[Android Apps and Games] ezio84:
That shell command works well on 6.0.1 with Tasker, thank you very much for the tip!
[Android Apps and Games] Arathon:
Any way to toggle gps with shell command? I only use secure setting for that.
[Android Apps and Games] Arstoien:
Here bud: https://android.stackexchange.com/q...ossible-to-enable-location-services-via-shell

Extensive answer to your question (and more) from google – first result.
[Android Apps and Games] Arathon:
Unfortunately I have marshmallow and seems it doesn't work because they deprecated location_providers_allowed.
[Android Apps and Games] mistermojorizin:
came here looking for the same thing. was used to doing this with secure settings paid version on jellybean and kitkat. now that i'm on marshmallow, it doesn't work. any workarounds?
[Android Apps and Games] Arstoien:
But it does work. Just use the latest supersu beta version
[Android Apps and Games] azsl1326:
On MM 6.0.1 Nexus 6P and getting the following error. I am running the latest SU systemless.

Thanks, in advance.
[Android Apps and Games] Nergal di Cuthah:
Secure settings doesn't work with systemless, the system root is hardcoded into SS code
[Android Apps and Games] mistermojorizin:
I am using 2.52 beta. Regular system root. 6.0.1 nexus 6p. Can't get tasker to turn gps on.
[Android Apps and Games] Pkt_Lnt:
Did you enable Tasker in Accessibility settings? It needs that for GPS.
[Android Apps and Games] Arstoien:
That's not the latest. I'm using 2.62 v3, and there's also 2.64 out now. See this thread: http://xdaforums.com/apps/supersu/wip-android-6-0-marshmellow-t3219344

But please read very carefully everything before breaking something, because the root method is different, and so is the flashing procedure, etc.
[Android Apps and Games] mistermojorizin:
that is the latest for system root, which tends to be more stable. i used to be on 2.62 v3 systemless, and went back to normal root.

anyway, i did get secure settings working by reintsalling the app.
[Android Apps and Games] PhilipTD:
System+ enabled no problem on N5 and N9 both on stock 6.0.1, su 2.6.4, elementalx.
[Android Apps and Games] donpippo:
Hi, I am on a nexus 5 5.1.1. I'm trying to clear cache of an app from tasker/secure settings.

I get this error: an error occured while executing action package options

suggestions?

thanks
[Android Apps and Games] brajesh.sharma87:
Please add an option to toggle to 2g/3g for android marshmallow
[Android Apps and Games] Pkt_Lnt:
Ain't gonna happen. Look at the thread title for the last update, over a year ago. OP has not posted in the thread for over a year.

There is an Xposed module that can do that with Tasker support.

http://xdaforums.com/android/apps-games/widget-toggle-network-type-5-0-xda-t2945406
[Android Apps and Games] dastinger:
I'm sorry if this is answered somewhere but I read the last pages and some users say yes, others say no.

So, since I've got my 6P that I'm trying to use secure settings with systemless root. I'm on 2.65 atm and I still couldn't get secure settings to work. I am able to turn on System+ and it asks for SU access but the tasks do not work.

So, one of them is to disable Ambient Display (Doze). It never worked.

Now I wanted to disable Mobile Data every time I got home and it also doesn't work.

What am I doing wrong? According to recent posts, it should work with newer systemless root versions. Is that the issue or am I missing something here?

On Tasker I create a Task - > Plug in - > Secure Settings - > Pencil - > Choose action and that's it, right?

Any idea of what might be wrong?
[Android Apps and Games] Nergal di Cuthah:
Securesettings has Root location hardcoded into it and thus can not be used with systemless root (actually has been answered a couple times here, so I'm not sure why it wasn't found in your search
[Android Apps and Games] dastinger:
Like I said, some users say it doesn't work, some say it does work. I am looking for a definitive answer. Please, read the quotes below. I'm not saying you're wrong but what you said could be true for 2.61 and not anymore for 2.65.
[Android Apps and Games] dastinger:
Took the plunge and moved on to system root. Still can't get Secure Settings to work.

So far I tried Doze enabled and disabled, disable Mobile Data and enable Airplane mode. None work. Could anyone confirm that these are working on 6.0.1? I really don't know what I'm doing wrong.
[Android Apps and Games] bigknowz:
Replacement

EDIT run commands as root in Tasker

Since Secure Settings no longer works with systemless root, i put together a list of shell commands that could be executed instead via Tasker

Wifi

svc wifi enable

svc wifi disable

Mobile Data

svc data enable

svc data disable

Airplane Mode - needs to be in a script file

ON

#!/bin/sh
settings put global airplane_mode_on 1
am broadcast -a android.intent.action.AIRPLANE_MODE --ez state true

OFF

#!/bin/sh
settings put global airplane_mode_on 0
am broadcast -a android.intent.action.AIRPLANE_MODE --ez state false

Can't figure out Location Toggle, in LP it used to be

settings put secure location_providers_allowed ' '

settings put secure location_providers_allowed gps,network

where

High accuracy: gps,wifi,network or gps,network (if you don't want Wi-Fi enabled)

Battery saving: wifi,network or network only

Device only: gps
[Android Apps and Games] dastinger:
Uninstall and reinstall did the trick. Sometimes it's the most obvious thing that fixes it.
[Android Apps and Games] Deeco7:
I guess there will be no Marshmallow and Systemless Root support any time soon, anyone know of an alternative that works with tasker? Thanks
[Android Apps and Games] PhilipTD:
X Pattern Lock is unavailable even though the module is installed, but everything else seems to be working fine on my N5, N6, and N9, all on 6.0.1 MMB29K, SuperSU 2.65 systemless, and ElementalX.
[Android Apps and Games] bigknowz:
Look up

Check post 2608 for DIY replacement commands.
[Android Apps and Games] guachine:
Deleted
[Android Apps and Games] spicediablo:
Hi, I am new to tasker and having a problem. What I want to do is to change location mode to high accuracy upon launching of Waze and change it back to battery saving once I exit Waze. I have secure settings plugin installed. However, when i test the action, nothing happened. Please help.

Profile below:

Profile: Waze/gps (6)

Application: Waze

Enter: GPS (7)

A1: Secure Settings [ Configuration:Location Mode/High Accuracy Package:com.intangibleobject.securesettings.plugin Name:Secure Settings Timeout (Seconds):0 ]
[Android Apps and Games] Pkt_Lnt:
Did you give Tasker permission in Settings. Accessibility, Services?
[Android Apps and Games] spicediablo:
Yes I did, if not I can't even select waze as app triggering profile. It will prompt me to enable accessibility.
[Android Apps and Games] PhilipTD:
How did you perform the test?
[Android Apps and Games] spicediablo:
By using the test function of tasker

Sent from Oneplus²
[Android Apps and Games] PhilipTD:
Ah, OK, so, you tap "Test Action", and a toast appears that says "Executing action"? Then what? How do you know if it's working or not?
[Android Apps and Games] spicediablo:
The status remains the same, there is no change...

Sent from Oneplus²
[Android Apps and Games] PhilipTD:
What status?
[Android Apps and Games] spicediablo:
Current state

Sent from Oneplus²
[Android Apps and Games] PhilipTD:
The profile switches to High Accuracy only when Waze is active (and in the foreground).
[Android Apps and Games] spicediablo:
The test button is there for a reason. It should change it when I test. I tested other profile successfully through this method. You don't have to manually launch waze just to test it....

Sent from Oneplus²
[Android Apps and Games] PhilipTD:
Oh, OK.
[Android Apps and Games] okazaki0:
:o:o:o:o:o:o:o:o:o:o:o:o:o
[Android Apps and Games] spicediablo:
Anybody can help with this?

Sent from Oneplus²
[Android Apps and Games] Nergal di Cuthah:
what android version? Is your OnePlus2 stock or custom ROM? Logcat showing the error?
[Android Apps and Games] spicediablo:
My oneplus 2 using root, xposed latest oxygen 2.2.0. How do I obtain the logcat?
[Android Apps and Games] Pkt_Lnt:
Search "How to Logcat" here on XDA for a tutorial, or use a logcat app. Google search will work as well.
[Android Apps and Games] PhilipTD:
Are you 100% sure about this? Would you bet your life on it? Or, more practically, perhaps you could find a certain gps app on the Play Store (the name doesn't come to mind at the moment) that has a convenient status bar icon which indicates when gps is active. Then, you could install it, and run the test again, not in Tasker, but by initiating Waze. Upon doing so, the icon in the status bar might change to reflect that gps is indeed being activated whenever Waze is in the foreground. Furthermore, if you think about it, you might be surprised to learn that High Accuracy was being toggled on and off from the beginning, but too quickly for you to see by running the test in Tasker.
[Android Apps and Games] spicediablo:
In that case, have you tested the test action button from yours? Does the state change? I've tried to test by launching waze and waze warned me that my gps is not turned on(in battery saving mode). Would appreciate if you can give concrete solution...

P. S MY gps toggle has been modified by gravitybox, not sure if this has something to do with my current tasker problem

Sent from Oneplus²
[Android Apps and Games] PhilipTD:
Well, if you are really interested, I'll tell you that all this comes from my experience with Google Maps, not Waze. So, I may be barking up the wrong tree here. But what tricked me, in my case, was that I was trying to make sure that the profile was working by starting Maps and then going to Settings to check if High Accuracy was on. It was always off, so I thought that the profile was failing to turn it on. What was really happening was that the profile was working fine, but when I went to Settings and Maps got pushed into the background, the profile exit task would toggle it back to battery saving mode. Kind of like quantum mechanics. Now, I guess I'm wrong in your case if Waze has an indicator that shows the gps status when Waze itself is in the foreground.
[Android Apps and Games] spicediablo:
In my case, waze is kept in background, and when I launch waze and go and check in tasker, the profile is active(indicated with green wording) , just the gps remained in battery saving mode....

Sent from Oneplus²
[Android Apps and Games] PhilipTD:
Yeah, I think waze has to be in the foreground.

Edit: In other words, High Accuracy (gps) comes on only when waze is in the foreground. And it instantly turns off when waze is no longer in the foreground. So, if you want to check if High Accuracy (gps) is on, you're going to have to do it with waze in the foreground.
[Android Apps and Games] Pkt_Lnt:
Try turning on Services instead of just App, in the context of app selection. This might not do it, and may cause undesired consequences of battery use, but that is the last thing I can think of.
[Android Apps and Games] spicediablo:
How do I do that?

Sent from Oneplus²
[Android Apps and Games] Pkt_Lnt:
In the context screen to select the app (Waze) look at the bottom left.
[Android Apps and Games] solquest3:
Hello.

Is it possible to close an app with Secure Settings? not killing it but just closing it as clicking the back button.

The point is, the app Unified remote has Quick actions (commands that you can use from notification panel) but if you reboot the phone they don't get there until you open the app.

So I wanted to have them on immediately after reboot and the easiest thing I thought was to usa Llama/Tasker for opening the app and immediately closing it.

I've tried Secure Settings Root Actions/Package option -> Forse Stop but that kills the app and so also the quick actions disappear.

I've checked Actions/Launch activity but all the options there seem to open the app, not to close it or to just start the quick actions.

Maybe I can use the Actions/Run command option, but I don't know what to write..

Any idea?

Thanks.
[Android Apps and Games] PhilipTD:
I think there might be an app for that. I seem to remember seeing something on the Play Store like "autostarter" or whatever that lets you select an app to start on boot. Maybe there's an option to start apps in the background so that your quick actions will be activated on boot without the main interface opening? Just an idea. I don't even know if the app is still available. It was a while ago.
[Android Apps and Games] spicediablo:
How does turning on this helps? Tasker has already successfully detected Waze, the only thing that is not right is the GPS is not turned on....
[Android Apps and Games] Pkt_Lnt:
It keeps the service running even when the app is not in the foreground. Try it, if it doesn't help disable it. I'm trying to help, not argue, I'll stop replying.
[Android Apps and Games] spicediablo:
No, it doesn't work. I suspect it's the problem with secure settings and not tasker...

Sent from Oneplus²
[Android Apps and Games] solquest3:
Thanks, that app still exists and works perfect for me!

I try with another question then :):

is it possibile with Secure Settings to prevent the expanding the status bar and reading the notification panel?

The point is: I don't use a lock screen but a fake one (F Lock Screen) and it doesn't block the opening of the notification panel, so I want that if I get a notification, when I'm at home I see the icon on the status bar and I can always expand it for reading it, while when I'm not at home I only see the icon in the status bar, but can't expand it if the fake lock screen is on.

I've tried writing F Lock Screen's dev for blocking it like a proper lock screen, but no replies so far.

I've also tried with the Root Actions/Package notifications, but if I disable it then I don't even get the icon in the status bar...

Any idea?

Thanks.
[Android Apps and Games] PhilipTD:
Well, I didn't know about F Lock Screen... interesting approach to security.

With respect to your desired configuration, I guess you already looked into Xposed? There are lots of status bar and noitification panel tweaks possible, including heads-up notifications and whatnot, although I'm not sure you'll be able to get exactly what you described. I use Gravitybox and Notifyclean along with a conventional lockscreen that Tasker and Secure Settings activate when I leave the house.
[Android Apps and Games] deechte:
I upgraded my device to 6.0 marshmallow. Very sad to see that secure settings cannot enable/disable pattern lock anymore like it could on lollipop. I used to turn pattern lock off at home. As I understand the chances of further development are none. Is there any alternative that can do the same from Tasker without root?
[Android Apps and Games] Blart:
You can use the Smart Lock feature under settings-lock screen-smart lock to do the same thing. It works for me on CM13
[Android Apps and Games] PhilipTD:
At first, I, too, was peeved to learn that Secure Settings' pattern-lock functionality has been compromised on 6.0 because, like you, I had been using it for quite a while and always found it quicker and more convenient than a pin or password. Now, however, I've come to feel that it is probably for the best because I have switched to using a pin, which, apparently, is more secure. While I have the pin-code lock turn off automatically at home, the inconvenience factor still exists when I'm out, so (along the same lines as what [MENTION=4203595]Blart[/MENTION] said) I've been thinking about getting a smartwatch to set as a "friendly device" or whatever under Smart Lock which would take care of that. The only watches that look good, though, are pretty expensive, and the technology still seems to be in its awkward beginning phase, so maybe I'll just bear with the pin until I upgrade to devices with fingerprint sensors.
[Android Apps and Games] deechte:
Thanks, and thanks to PhilipTD too for dropping in. I guess I'll step to Blart's alternative.
[Android Apps and Games] C0qRouge:
I'm on marshmallow Samsung S6: can't disable the fingerprint anymore :(﻿

Gesendet von meinem SM-G920F mit Tapatalk
[Android Apps and Games] naboleo:
Does anyone already seen this error while enabling/disabling data ?

-Root is OK

-Secure setting helper is OK

-Tasker got notifications and adminstrative access...
[Android Apps and Games] psychoxman:
i get the same issue too! could it be that it also doesnt work with marshmallow?
[Android Apps and Games] naboleo:
Mine is Flyme OS 5 (base on android 5.1)
[Android Apps and Games] Pkt_Lnt:
Known issue, posted in this thread many times.

Check this developers signature. I use his network toggle with Tasker, the other 5.0 toggles are Tasker plugins as well.

http://xdaforums.com/member.php?u=5253144
[Android Apps and Games] IroNick_nv:
Hello! When I create a shortcut to disconnect the network (Airplane mode Radios), it disables bluetooth more. At the same time I go to create a new shortcut, and then it correctly indicates that it disables the network only. Help me please!

And sorry for my google tranlate =)
[Android Apps and Games] Nergal di Cuthah:
afaik bluetooth radio is part of airplane. Even without securesettings (I'm on Marshmallow now so no secure settings for me :( ) the bluetooth turns off when I turn on airplane mode
[Android Apps and Games] psychoxman:
ahh! thanks but i also found a work around using "svc data disable" haha.

Leaving this here to help others as well! :D
[Android Apps and Games] IroNick_nv:
Not really that. Google "Secure Settings - Airplane Mode Radios problem reddit" and you see. Sorry, but I cant give you the direct link.
[Android Apps and Games] Pkt_Lnt:
Yes, I've posted that above quite a few times. No one searches, so your helpful post is now lost forever too/ :D