yashsingh1/xdaforums huggingface dataset:
[Android Apps and Games] beepsilver:
Verizon Nexus 6 rooted, stock ROM Lollipop 5.1. Hopefully this question hasn't been asked already; I've looked.

Imagine yourself taking the following steps (in any order) to put your phone to sleep for the night.

Turn off Wifi

Turn off mobile data

Restrict Background Data

On your phone you'll see the wifi icon disappear; you'll see the LTE triangle with an exclamation and finally, you'll see the restricted background data triangle icon.

If you turn everything back on, the restricted background data triangle icon disappears; and the wifi icon comes back while the LTE exclamation goes away.

Now, if one attempted to automate these tasks, it would seem to be rather simple if one were using the right tools such as apps like Tasker, Secure Settings Pro, Autoinput, etc.

For example, I created a profile in Tasker called 'Sleep.'

It's set to run from midnight to 6AM.

I have a task and an exit task that turns all three function off and then back on.

As you know, turning off mobile data and restricting background data are Lollipop functions that cannot be directly manipulated in Tasker. So I used Secure Settings to turn these two functions off at midnight and then on again at 6AM. You can see in the screenshot, I get two background data off icons which is not an expected condition. And, as you can imagine, only one of those icons disappears when the task sets background data, data and wifi back on.

When this happens, background data is not restricted anymore as evidenced by the menu settings within data usage settings (it says restrict background data rather than allow background data). Trying to eliminate the remaining icon proves difficult. The only action that removes the icon is a reboot or soft reboot.

In the notification window, the message says to press to remove restriction. This does nothing nor does swiping the notification away...it won't swipe away. Reordering the steps within Tasker does not resolve the problem. Also, using Secure Settings Pro to turn off and on all three functions (still within Tasker) does not resolve the problem.

In this situation Wifi is the culprit. I can automate the actions to turn off data and background date without problems, but as soon as wifi enters the picture, either by manually turning off wifi or automating it in Secure Settings Pro or Tasker, a second icon appears. I've even tried inserting the wifi off function as a separate task and even tried creating a separate profile within Tasker...nothing works. Can anyone recreate this or figure out a solution? Thanks for your help.
[Android Apps and Games] Nergal di Cuthah:
I'm only spitballing but if you place a one second wait between each action or move the offender (wifi) to be the last action while the double icon (I think you said it was background data) being the 1st (still with a delay between each).
[Android Apps and Games] beepsilver:
Thanks, but I've tried both methods with no resolution.
[Android Apps and Games] beepsilver:
I was able to use AutoInput in Tasker to make this work...but for those of you who've used AutoInput know, it's not the best option when you have as many 'inputs' as this operation requires.

I used AutoInput and several 'wait' tasks to get wifi off, data off and background data restricted. In the exit task I was able to use the Tasker wifi on command and Secure Settings' mobile data on (run command: svc data enable (root)) and background data enabled.

Any ideas why Tasker and Secure Settings are not playing nicely together when restricting background data in concert with data and wifi?
[Android Apps and Games] beepsilver:
I almost had a solution. I used AutoInput to simulate keypresses...which works, but isn't nearly as efficient. Also, it won't work unless the screen is on. So I tried to get Secure Settings to turn on the display, but no matter how I tried it, Secure Settings would not turn on the display....so, bottom-line is I'm still looking for a solution.
[Android Apps and Games] Pkt_Lnt:
Screen has to be on since touches are not registered when off, you don't want pocket dialing or anything else. You probably have to wait until Secure Settings is updated. Many features stopped with Lollipop and SE Linux - they really locked the features down not allowing third party apps to access them. You could hit a few more forums and see. So far I have seen this three times. :D
[Android Apps and Games] beepsilver:
You've seen the restricted background data multiple icons before in other threads?
[Android Apps and Games] Pkt_Lnt:
Your copy and paste posts in three places.
[Android Apps and Games] beepsilver:
Ah, yes. I posted in 4 actually. Two google groups (tasker and SS) and the two XDA threads relevant to each. Also sent SS developer an email...think I covered the bases? :)
[Android Apps and Games] gbossley:
Secure Settings - Display On?

What command are you trying to use? I've had success with Screen & Keyboard Lights On.

But I also need a Keyguard Task - set to off - these two combined turn the screen on (NOTE Keyguard has a stability warning).
[Android Apps and Games] beepsilver:
I was trying an alternate method of using AutoInput to do what I needed, but it wouldn't work without the screen on. Doesn't matter, that method is just not efficient and I just resolved to turn off wifi, data and autosync.
[Android Apps and Games] Nergal di Cuthah:
I assume airplane mode is out of question
[Android Apps and Games] beepsilver:
It's not out of the question, but I was just focused on the background data.

As I understand it, airplane mode will not allow me to receive phone calls, which I still want during sleep hours (for emergencies).
[Android Apps and Games] :
Hi!

I am on Blisspop v2.0 (Samsung Galaxy Grand). The app (version 1.3.6) force closes as soon as I open, with a notification "Secure Settings has crashed... Please click here to help fix the issue". Upon clicking the notification, the notification gets cleared and keeps reappearing every second.
[Android Apps and Games] psychomaniac189:
https://groups.google.com/d/msg/tasker/y6phG_cc10A/O5oRZF4tXPgJ
[Android Apps and Games] robertusIT:
GPS turn OFF doesn't Work anymore in 5.1.0 LMY47I

Have you this issue?

Isn't possible fix it at the moment?
[Android Apps and Games] Clancy_s:
Alternatively, without installing anything new:

works for me too, using code > run shell

and ticking the excute with root box

from http://xdaforums.com/showpost.php?p=59498486&postcount=17405
[Android Apps and Games] rlorange:
OK guys I have the ultimate solution to making apps with consistent command response across platforms.

You need to make a directory in data/local I call mine rlbbox

Next you tar the contents after installing a proper extensive busybox with simlinks and and other useful binaries.

Now the tricky part.

You extract your kid factory made apk copy the tar to /drawable/res folder rezip and then rename to apk then sign with apktool.

Now you need to use tasker to locate the apk unzip to a temp directory on /sdcard and untar to the path you have made.

After that is simple every command starts with:

su;

PATH=$(echo /data/local/rlbbox);

After that only your binaries are executed meaning consistent results to play with. I'll send an task soon to give you an idea
[Android Apps and Games] Apollo_1:
It would be nice to confirm ultra energiemodus in samsung modes of secure settings. Thx
[Android Apps and Games] kts18:
secure settings not working

hello I have a rooted one plus running tasker v4.2.6 and secure settings with sytem+ enabled but I cannot get tasker to run any of my secure settings tasks can someone please help
[Android Apps and Games] Nergal di Cuthah:
What android version/build?

Example non-working task (triggers and actions)

are non-secure-settings steps of the task working?
[Android Apps and Games] kts18:
thank you for the question I was able to figure it out. looks like the version of tasker I had downloaded had a bug updated to the newer version and it works now.
[Android Apps and Games] sliphacker:
Secure Settings has crashed...

It crashes every time I try to run it... I have a Galaxy S4 GT-I9505 Intl (jfltexx) with Cyanogenmod 12 Optimized Build (by AntaresOne & Alucard24).
[Android Apps and Games] Registrierer:
Hey guys.

I'm sorry, if my problem already has been posted. I've tried to find a solution here and in the net, but i didn't make helpful finds.

I want to create a Tasker profile, which can achieve the following:

Wi-Fi should turn on every 30 minutes for recalling possible new WhatsApp messages. Without Secure Settings it worked not even once. Since i'm using this app, it works sometimes - but very unstable. The biggest problem is the random success. I've tried so many options and it's not easy to see, what the single option effected.

GT-I9100, CyanogenMod Snapshot M12 (4.4.4), with Root

My best set-up so far:

Condition: every 30 minutes

Tasks: Secure Settings (Screen & Lights on 30 seconds) ; Wi-Fi on (both: %SCREEN ~ off)

Condition: every 30 minutes (one minute after the first profile)

Tasks: Wi-Fi off (%SCREEN ~ off)

Noticeable: In my battery stats there are some bars. I comprehend, that my Wi-Fi turns on and off solid. But the bar, which shows the device is active or not, has maximum a little line. It isn't possible, this line are 30 seconds. So i guess there's a problem for Secure Settings to wake up the device from the deep sleep. But Tasker and Secure Settings got the rights to wake the device, so this can't be the issue.

Can anybody list the basically correct steps for me in Tasker and Secure Settings? :( If more informations needed, please let me know.

Greetings,

Andy
[Android Apps and Games] sliphacker:
I don't have Xposed

I don't use Xposed on CM12...

I had to reflash my ROM two times (the same one) to make it work again...
[Android Apps and Games] w0rinal:
[MENTION=6024080]Registrierer[/MENTION]

When I want to know whether a task has been active I add an action "file -> write to file -> %TIME"

The file can be anything you want, I like to call it "test.log"

Will look into it tomorrow since I'm tired as heck right now :screwy:

[size=-4]Sent from my Boeffla powered Slim (4.4.4, AOSP based) GT-I9300[/size]
[Android Apps and Games] francwalter:
How can you use secure settings then? This app needs the Xposed module, I think.
[Android Apps and Games] triathlete66:
secure settings only needs root and works fine without Xposed
[Android Apps and Games] francwalter:
Thank! I deactivated the module now, still working :)
[Android Apps and Games] morxs:
My setup is quite simple

1. Profile

Left hand side

From x (time) every y minute Till z (time) -> From x time to z time, and trigger every y minute
+
Mobile Network, tick all the options include Invert
+
Wifi Connected, just tick Invert

Right hand part

trigger Wifi Trigger task

2. Task "Wifi Trigger"

2.a. Secure setting WiFi, Set On
2.b. Wait x seconds, y minutes, z hours (just replace x, y, z according to your purpose, ie I use 5 minutes)
2.c. Secure setting Wifi, Set Off
2.d. (additional, add if u like it) Wait x seconds, y minutes, z hours (just replace x, y, z according to your purpose, ie here I use 5 seconds)

For me, I've using this profile and task for years and serve me well
[Android Apps and Games] w0rinal:
[MENTION=6024080]Registrierer[/MENTION]

I would have done it similar to [MENTION=4541278]morxs[/MENTION].

If you still need to find out why it's only working sometimes and not all the time you can use Tasker's built-in logging function (main menu -> more -> run log).

It's more detailed than the "write to file -> %TIME" method but you need to find the right information in the log which I find rather complicating if you don't deal with logs everyday

[size=-4]Sent from my Boeffla powered Slim (4.4.4, AOSP based) GT-I9300[/size]
[Android Apps and Games] blax123:
Is there a way to toggle between GPS modes (high accuracy, etc) on Android Lollipop with Tasker and Secure Settings? For me its not working..

Regards

Sent from my OnePlus One
[Android Apps and Games] Simba501:
Works for me. When you select an action, click 'plugin' to get to secure settings. To the right of 'configuration' you'll see an icon that resembles a pencil or something - click it. Location mode is under System+ actions.

If you already knew all of that, it seems like System+ could be the problem for you. Open Secure Settings in your app drawer and enable System+. It should ask for root access, if I remember correctly.
[Android Apps and Games] Pkt_Lnt:
It works fine for me. As stated in the Toggle Network thread, your phone / ROM seems to be the problem, as things work for others except you.
[Android Apps and Games] azsl1326:
Upgraded ROM to CM12.1 Temasek 5.1 and now turning Data On or Off via Secure Settings is broken. It worked in previous ROM version CM12 / 5.0.2.

Anyone else experiencing this issue?
[Android Apps and Games] AA1973:
http://xdaforums.com/showthread.php?p=59498486
[Android Apps and Games] azsl1326:
Thanks ! I ended up using this plugin which has been updated to work with 5.1

https://play.google.com/store/apps/details?id=com.cygery.toggledata
[Android Apps and Games] Follow_and_Feel:
Error occured when executing action: Mobile Data/Phone Options

Hey there,

i don't know whether this thread is still active or not, but i get the "Error occured when executing action: Mobile Data" "Phone Options". I just read in earlier posts that users of older versions had the same issues. Is there any way to fix this?

I just updateted Firmware via odin, rooted again, recovered everything (everything appears to be working), but these options don't. But before they did :rolleyes:

If you tell me how i do that, I can provide you with a logcat so you can fix this in future updates :)

Kind regards
[Android Apps and Games] blax123:
System+ was already enabled, still not working.. Thank you

Toggle Network is working fine now, it was a Tasker Problem. I'm just searching for solutions from helpful users or devs. I'm not saying, that the app is the fault.. Chill

Sent from my OnePlus One
[Android Apps and Games] Pkt_Lnt:
So I have to chill since I'm not a "helpful user"? I'm very proud of my Thanks to Posts ratio. I tried to help you earlier, and now it is "chill". WTF?
[Android Apps and Games] blax123:
Lol, when I said that you are not helpful? I just said chill/come down. Thank you

Sent from my OnePlus One
[Android Apps and Games] n0j0e:
Hi,

can we get an update with QuickBoot support?

http://xdaforums.com/showthread.php?t=3082041

Send with much love & Android.
[Android Apps and Games] :
Is there any solution yet for the VPN issue mentioned here?

I experience the same problem on both of my Nexus devices. I own a Nexus 5 and a Nexus 7 LTE (2013). They both run on KitKat 4.4.4 (stock / root) without any other changes to the OS. When I try to configure a VPN in Secure Settings I get a message that no VPN was configured even though I have a VPN profile which is working perfectly fine when triggered manually.
[Android Apps and Games] pal.sch:
I am also interessted in a fix for this feature. Thanks

My System: Samsung Galaxy SM-G900F - Android 5.0 (G900FXXU1BOB7)
[Android Apps and Games] bombadier:
Just reporting mobile data on/off is not working cm12.1 however keyguard is
[Android Apps and Games] marknoll:
I've tried secure settings and the widget on play store for toggling data
[Android Apps and Games] bombadier:
Thanks for the suggestion but I need tasker to work and don't want some toggle widget,tbh having a hard time enjoying lollipop full stop so have reverted to kitkat, again, the whole data toggle thing is a complete mess on l

tapatyping fae the bacon
[Android Apps and Games] marknoll:
Um dude. U need another third party. Android version 5.0 ruined data toggling. U have no choice

---------- Post added at 12:37 AM ---------- Previous post was at 12:36 AM ----------

http://www.theandroidsoul.com/toggle-data-onoff-android-5-0-lollipop-68194/

Read man. Read

---------- Post added at 12:39 AM ---------- Previous post was at 12:37 AM ----------

https://productforums.google.com/forum/m/#!topic/nexus/4ZLBDpsZfPs and this
[Android Apps and Games] bombadier:
Already reverted to kitkat,if some app can do it then why not secure settings ? hope something can be done, really not impressed with lollipop so will stick to kk for the foreseeable
[Android Apps and Games] marknoll:
Secure settings was a hit and miss for me. Sometimes it would stick,others it wouldn't. Idk why LP is such a mess. If you would like a taste of LP (per se)..you could always revert to art in lieu of dalvik. Option in dev options
[Android Apps and Games] bombadier:
Stick a star on this issue, never know google might actually listen

https://code.google.com/p/android/issues/detail?id=81891
[Android Apps and Games] eurochild:
this is working great and has a tasker plugin, using it on lollipop from day 1

http://xdaforums.com/android/apps-games/app-toggle-data-5-0-widget-to-toggle-t2937936
[Android Apps and Games] bombadier:
Thanks for the suggestion but to me the disadvantages of lollipop outweigh the advantages, and the upgrade just is not worth it,the other thing missing is 2g/3g and that is pretty much a deal breaker given the terrible reception I get outside of cities, good job with your mini theme :good:, I am using it on my old nexus 4 running Euphoria which is one of the better lollipop roms I have tried, its only connected to wifi with no sim card data is disabled.

One pleasant surprise was although it is in "legacy features" toggling keyguard/pin seems to work well,

now to put pressure on google lol

I also found this

You can toggle mobile data on / off in Tasker with Secure Settings:

Secure Settings > Actions > Run Command > Tick "Use Root" and type the command

svc data enable

or

svc data disable

These commands actually enable / disable Mobile Data in just one action on Lollipop.

Source
[Android Apps and Games] Pkt_Lnt:
I misunderstood.N'ermind
[Android Apps and Games] bombadier:
You misunderstand him he was suggesting if you wanted a taste of lollipop on kitkat then to switch to ART
[Android Apps and Games] Pkt_Lnt:
Ah, gotcha, thanks.
[Android Apps and Games] TheMatrix2000:
May i ask where you find this command/info?
[Android Apps and Games] bombadier:
Found it when I was looking into why google has disabled this

https://productforums.google.com/forum/#!topic/nexus/4ZLBDpsZfPs

The comment by Giacomo Montepoli
[Android Apps and Games] Pkt_Lnt:
http://www.phonesdevelopers.com/1696820/
[Android Apps and Games] TheMatrix2000:
Ah. Thanks. Didn't read anything about svc. Will try it later. I use data on/off a lot in tasker ?

Edit: Works. Great. Again thanks.
[Android Apps and Games] Jayrod76:
So..as someone who originally had profiles for screen ~ off ,data~off with a time limit and one in reverse with a separate profile for syncing up until LP Hahahaha,how would I go about adding the above to those profiles? I don't see an easy way or even if it's possible.
[Android Apps and Games] bombadier:
Look back a few posts as there are a couple of solutions to toggle data
[Android Apps and Games] Pkt_Lnt:
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] MOTOdetektor:
really great app!
[Android Apps and Games] earlyberd:
I can't get GPS to enable or disable on my Galaxy Nexus. Running AOKP build 25. Any suggestions?
[Android Apps and Games] intangibleDroid:
First off, I'm assuming you are rooted with the Helper installed, right?

Also, are you using Tasker? If so, can you make sure that you are accessing the Secure Settings' option and not the built-in Tasker one. Go to the "Apps" tab of Secure Settings for instructions on how to access the setting.

If you aren't using Tasker, please let me know and I can help further.
[Android Apps and Games] earlyberd:
Yep, rooted and with Helper, and using Tasker. I added the GPS disable by creating a Task, adding an action, and selecting Plugin, then Secure Settings, etc. This method works for enabling/disabling the keyguard, but it won't handle the GPS.
[Android Apps and Games] intangibleDroid:
Can you please enable debug logging in the app's settings. Then use aLogcat (or another method if you are familiar with collecting logs) to capture a log after triggering the task that sets GPS.

Please email me the log using the "Bugs/Suggestions" option inside the app.
[Android Apps and Games] phantomblu:
I've been trying again to set up auto pattern lock based on location with mixed success. Here's are my results:

Works

System settings -> slide lock

Enter:

Keyguard Off

Exit:

Keyguard On

Doesn't Work

System settings -> pattern lock

Enter:

Keyguard Off

Secure Settings [ Configuration:Lock Device ]

Exit:

Keyguard On

Secure Settings [ Configuration:Lock Device/Enable Pattern Lock ]

I have no idea what's the difference between the Lock Device and Pattern Lock options listed.
[Android Apps and Games] intangibleDroid:
If you want to enable and disable the Pattern lock screen, use the "Pattern Lock" option, and not the "Lock Device" option.

The "Lock Device" option is used to immediately turn the device's screen off. If you check "Enable Pattern Lock" it will also enable the Pattern lock if there is one set.

To enable the lock screen, set the Pattern Lock option to "On" and to "Off" when you wish to disable the lock screen.
[Android Apps and Games] phantomblu:
I tried it with Pattern Lock also; doesn't work.
[Android Apps and Games] intangibleDroid:
I notice you have a reference to "Keyguard On" and "Keyguard Off". The Keyguard options can conflict with the Pattern Lock options. Please try this profile again without the Keyguard options selected.
[Android Apps and Games] phantomblu:
Still doesn't work. Oh well, guess it wasn't meant to be.
[Android Apps and Games] intangibleDroid:
What device and Android version are you running?
[Android Apps and Games] phantomblu:
HTC Sensation with Android 4.0.3

Edit: It suddenly started working for some reason. However, the slide unlock is still there. Is it not possible to just have the pattern lock on exit task?
[Android Apps and Games] yzaker:
Toggle GPS

Now that's a handy little nugget to know! :D
[Android Apps and Games] ty1993:
Why was the package manager disabled? I can no longer freeze and unfreeze programs in ICS using this plugin. I can still use Titanium Backup, but this plugin is the only one in existence that could freeze and unfreeze apps from Tasker.
[Android Apps and Games] intangibleDroid:
This was disabled because the superuser binary is broken for ICS package manager calls. I've been testing a new beta version of the su binary and it is working. I've added support for the new su version in the next Secure Settings release.
[Android Apps and Games] ty1993:
I look forward to the next release! Thanks for the reply

By the way, is there an ETA for the release?
[Android Apps and Games] intangibleDroid:
I'm aiming for a week or two. I added some new features and made a bunch of under-the-hood changes so I have to test it thoroughly.
[Android Apps and Games] POMF2K:
Is there no way to disable both the slide lock and the pattern lock?

For instance my Droid X is setup to use widgetlocker (hides the default slide lock). Then once widgetlocker is unlocked the pattern lock pops up.

However when my car is connected via bluetooth I have set up a tasker profile to disable wl, keyguard, and pattern lock. But all of the sudden the slide lock (keyguard?) will not disable. I never want to see that silly lock. Very frustrating.
[Android Apps and Games] intangibleDroid:
I'm not aware of a reliable way to do it that works on pre-ICS devices. Sorry :/