yashsingh1/xdaforums huggingface dataset:
[Android Apps and Games] osiedacz:
Samsung Settings

Hi intangibleDroid, Sorry for harrassing you on this one, but I was still wondering if you might be able to get some of the Samsung specific settings into your program. The one I want the most is the "Driving Mode" setting. There is a workaround with another app, but I would prefer to just use secure settings with tasker to get the job done.
[Android Apps and Games] intangibleDroid:
I don't have a Touchwiz device to poke around on so I spent some time decompiling and poking around a Samsung ROM but I couldn't find what I was looking for. Because of that, I ended up putting that feature set on the back burner. I will look into it again when I have the time.

That being said, if you can pinpoint what app handles all of this functionality and send me a copy of the APK, that might help speed things up.
[Android Apps and Games] osiedacz:
Ah yes, I can. NFC Task Launcher handles all three of the settings that I asked you about. Here is the link to the app, or if you want I can PM you the copy of the apk I have on my phone right now.

https://play.google.com/store/apps/details?id=com.jwsoft.nfcactionlauncher&hl=en
[Android Apps and Games] intangibleDroid:
I mean the Samsung app that manages these settings on your device. If you could export it off your device, that would help out more. It might be the Settings app, I'm not certain though.
[Android Apps and Games] osiedacz:
Thank you very much for trying. Here is the settings app from my phone.

https://dl.dropboxusercontent.com/u/13635193/SecSettings.apk
[Android Apps and Games] intangibleDroid:
I got what I needed from the app. I'll probably have an updated beta version with Driving Mode, Blocking Mode and Power Saver Mode out within a few days.

Thanks!
[Android Apps and Games] PeQuEsan:
Is there a way to simulate a "power" press to lock device with Secure Settings? I've got pattern lock configured, but I've got a 2 min timeout since phone definitely activates pattern lock once you've switched off the display... I want to simulate pressing the "power button" with software using a Tasker task, but "lock" option inside Secure Settings locks the phone inmediatelly and thus activates pattern lock with no timeout...

Thanks a lot.
[Android Apps and Games] sabret00the:
There is indeed. It's called "lock device" or something similar.
[Android Apps and Games] PeQuEsan:
That action locks the device immediately, and I want it to respect my 2 min delay android setting...

Desde el móvil, con Tapatalk...
[Android Apps and Games] sabret00the:
BTW [MENTION=2528886]intangibleDroid[/MENTION], any news on enabling/disabling "Google apps location access"? I'm hoping it's still on your radar?

---------- Post added at 11:32 AM ---------- Previous post was at 11:30 AM ----------

Create a 2 minute wait action in Tasker?
[Android Apps and Games] PeQuEsan:
That will keep screen on for 2 min, then switch it off and lock... I obviously don't want to do it...

Desde el móvil, con Tapatalk...
[Android Apps and Games] sabret00the:
What are you trying to do? Turn off the display but not lock the device?
[Android Apps and Games] PeQuEsan:
Android has a setting that let's you decide a timeout before activating pattern lock. That's useful if you lock the device but after 2 seconds remember something you forgot... You unlock device and you don't need to input pattern lock again. Pattern lock only gets activated after 2 min of display off... That's what I want to simulate in software key/task.

Thanks for you interest.
[Android Apps and Games] sabret00the:
So you want to modify that setting? I'm unable to grasp why. Once you activate the pattern lock, it returns to whatever you left it set at.
[Android Apps and Games] teh_lorax:
Disable pattern lock when the screen comes on. Then set a timer to enable pattern lock after the screen has been off for 2 minutes.
[Android Apps and Games] PeQuEsan:
No! I don't want to modify that setting. I want to create a way to trigger it in software (not pressing the power button), and I though in a Tasker task using Secure Settings.

I knew someone would suggest this... I don't wanna mess with pattern lock on/off because it's a bit tricky. In fact I've got a task to disable it when I get home or get into the car, but believe me it's not the way.

The way would be to simulate "power press" instead of "lock device" option... :)
[Android Apps and Games] sabret00the:
I disagree. You're attempting to over complicate things.
[Android Apps and Games] PeQuEsan:
I hope [MENTION=2528886]intangibleDroid[/MENTION] understand what I mean... it's quite easy IMHO.
[Android Apps and Games] teh_lorax:
No, I don't believe it is. If disabling the pattern unlock isn't working, I'd troubleshoot that first.
[Android Apps and Games] PeQuEsan:
If fact It IS working, but when SS disables pattern lock, it changes to "slide to unlock" the first time you turn on screen, while I would like to disable any lock screen completely. Subsequents unlocks work allright though.

I know I'm not explaining well myself, but I didn't want to lose myself explaining all this...

I just want just to know if it's possible to emulate power button inside SS (which it's not exactly what "lock device" do, as I've explained above).
[Android Apps and Games] teh_lorax:
It's not. But there other ways to do what you are suggesting. For example, the next step in your pattern unlock task should be to disable the slide lock as well. Try not to get so dead set on one way to do things - there are many.
[Android Apps and Games] intangibleDroid:
I've found a way to do it but it's quite messy. I'm hoping to find a better way :/
[Android Apps and Games] dimex:
Been searching around XDA for awhile and can't seem to find this issue. I'm wondering if anyone else has experienced it or knows a fix.

Everyday at 3:00PM, I have Tasker reboot my phone using Secure Settings plug in. I have it wait 45 seconds, so when it reboots at 3:00.45 it isn't still 3:00 and reboots again. Nonetheless, it never gets to that point because the phone freezes. Most of the time it's a black screen, with all buttons (power, volume, home) unresponsive, and the only way to get it to work again is to pull the battery. A very few times it's rebooted by itself, but by the time it finishes it's at least 3:15. No matter what, the reboot option in Tasker using Secure Settings plug in freezes my phone.

I'm using a T-Mobile Galaxy Note 2 rooted with Jedi Master 14 ROM.
[Android Apps and Games] intangibleDroid:
Have you tested out the feature by manually invoking this task? If so, have you noticed whether or not you see the "Shutting down" dialog on screen?
[Android Apps and Games] dimex:
Yes, I've tried manually evoking it multiple times. Sometimes it reboots right away, but it never shows any shutdown/reboot dialogues; the screen just goes black.
[Android Apps and Games] intangibleDroid:
Can you try adding a "Wake Device" action before the reboot action. Let me know if that helps at all. If it doesn't, the API call might not be entirely compatible with your device.
[Android Apps and Games] dimex:
It didn't change anything. Using the old Locale plug in for Tasker gave me a cleaner reboot with no freeze, but still without shutdown notification.

You haven't tested the GN2 before?
[Android Apps and Games] NCguy:
Apologies if this has been covered but is anyone else having trouble toggling airplane mode in 4.3? I have a galaxy nexus and it will toggle the icon but not the actual radio?
[Android Apps and Games] Ci-Fi:
Are you using the beta version? If not look a few pages back for the instructions to become a beta tester.
[Android Apps and Games] NCguy:
Not, actually I'm not. I'll check it out. Thanks
[Android Apps and Games] NCguy:
I believe I got successfully signed up for the beta but I never did get anything identified as beta thru the play store and helper v1.2.3 is still the latest that I can access. I did execute both links and both seemed to execute ok and I have access to the google beta forums. Just no beta version? BTW, should I be posting here or in the google group for beta issues?
[Android Apps and Games] intangibleDroid:
The beta should say "App v1.3.3b4" on the main Info tab when you open up Secure Settings. If you don't see that, then you have not have received the beta.
[Android Apps and Games] SilentSummer:
That works going from Maps to Navigation, but not back to Maps again. It kills GPS at that point.

I tried adding to the Navigation Exit Profile on the exit task the following:

Stop If $WIN ~ Navigation

Stop If $WIN ~ Maps

Secure Settings: GPS Disabled.

I also have that exit task for the profile GPS Apps for Maps/Gas Buddy, etc.

Edit: Actually if I remove Navigation from the GPS Apps profile it will turn GPS off when going from Maps to Navigation.
[Android Apps and Games] drsood:
I have an xperia x10 mini pro with a sliding keyboard...

the thing is that whenever i try to edit the "run command" and i slide open the keyboard, everything clears out from the screen including all the variables...same thing happens when i have the keyboard already open, i write some commands and then close the keyboard...everything clears out..

i also have another porblem when the keyboard is out...

i am unable to save anything entered in the run command when the keyboard is out..its keeps throwin the error "command cannot be empty" (even if i already fill that input box)???

plz help

p.s. i dont get this error if the keyboard is already open, when entering the secure settings "configuration" from tasker
[Android Apps and Games] intangibleDroid:
I'm aware of this issue and it is one of my top priorities. Thanks.
[Android Apps and Games] Davey101:
Thanks, this plugin is exactly what I needed for changing input method! :D
[Android Apps and Games] strictlyrude27:
I may have found a bug:

Tasker 1.1.1 now supports local variables by using all lower case in a variable name. I used Secure Settings plugin to run a ping command, and save STDOUT to variable %ping . I then do a wait-until %ping is set, then flash %ping.

This doesn't work. Looks like %ping never gets set. However, changing everything to global variables (%ping->%PING) works just fine.
[Android Apps and Games] strictlyrude27:
I wonder how possible it would be to set up no-password ssh commands via public/private keys? I'm writing a Tasker profile that detects if my laptop is on the same network as my phone. I eventually end up with the SSID and IP address of my laptop on my phone and can ping the IP address, but of course there is no guarantee that the IP is actually my laptop's.

So my plan was to run the following:

ssh user@host "ifconfig wlan0 | grep HWaddr | awk {'print $5'}"

this will return the MAC address of the computer (if it's not running Linux, I doubt anything would happen so it'll time out and shouldn't return anything), which I can hard-code into my phone to check against.

But ssh requires I input a password or have a public key. Knowing that Android operates by making every app its own user, how would I go about generating these keys..?

EDIT: Got it! See the following: http://android.stackexchange.com/qu...h-clients-available-for-rooted-android-phones

I didn't know you can specify which private key file to use for ssh; so I generated a new key pair using dropbearkey and whenever I ssh I just specify '-i /PATH/TO/KEY'.
[Android Apps and Games] intangibleDroid:
You are correct about this. I haven't tried using the new lower case "user" variables until now. I'm wondering if something changed in the Tasker API. I'll have to reach out to Pent and see if I can find out what happened.
[Android Apps and Games] intangibleDroid:
Here's the response from Pent:

So, it looks like I can define user variable values within the context of the task but I won't be able to send them back to Tasker to display. I'll enforce it in the next release. For the time being, just use uppercase characters.
[Android Apps and Games] strictlyrude27:
Eh, no worries. With the ability to return values from tasks, I'm just writing a SSP library to wrap around my scripts anyhow; just have to Variable Clear %STD_OUT every time, but that's why it's in a library, right? :)
[Android Apps and Games] awal1987:
Helper will not install

Hey. So i am trying to get the helper installed to disable pattern lock. I have tried installing it automatically from the app and manually with cwm with the zip that the app puts on the sd card. then i downloaded the helper update zip from your website and flash it via cwm. still nothing. i have root on my charge running the leaked gingerbread rom with locale. i can see the helper apk in system/app and the permissions seem correnct, rwrr. if i click on the helper apk, i get a parse error.

the main app works great with pin lock/unlock but i would like to have pattern lock disabled.

any thoughts are appreciated. thanks!
[Android Apps and Games] killian32:
Check Data

Is there a way (script/command ...) to check if (mobile) data are enabled or not ?
[Android Apps and Games] lucfig:
What a great plugin! Nice work!

Is nice having GPS toggle again!

Could you try to add 2g/3g toggle?
[Android Apps and Games] intangibleDroid:
I've been told that this feature existed in previous versions of Android but I have not had the time yet to figure out how to implement this. Needless to say, it's on the to-do list.
[Android Apps and Games] lucfig:
Thanks for replying. I found a solution for the 2g toggle.

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

I am just trying to make it work with the ROM I am using.
[Android Apps and Games] intangibleDroid:
Hi, sorry for the delay in getting back to you.

The Helper shouldn't have to be opened. If you have it installed in /system/app, the Secure Settings app should be able to use it.

If you would like more personal help, please send me an email from the app and I can help diagnose it further with you.
[Android Apps and Games] khaytsus:
I have Tasker automatically connect my OpenVPN using a shell script, and previously I did this with Locale Execute plugin, which worked and still works today. However, with Secure Settings it randomly does not work. If I switch back to Locale Execute, it works every time. Either case is running as root and running the exact same script.

Any suggestions on how to debug what's going on here? I might experiment some to see if perhaps the script isn't being called as root sometimes or what's going on, but otherwise I'm not sure what else to try. I don't have the Helper app, but I assume that doesn't matter for this... Secure Setting is set as an Admin program, it "always allow" in Superuser, etc..

Doing this on my Dell Streak 7 with stock Dell ROM, custom kernel (to add tun.ko for OpenVPN).
[Android Apps and Games] intangibleDroid:
You can turn on debugging inside of the Secure Settings app by opening it via the launcher, scrolling to the bottom and clicking "Toggle Debug". This will show you a lot more info in the logcat logs.

Additionally, is the command you're running meant to run in the background? If so, try running it without selecting any of the output options (ex: uncheck show output/notification + tasker variables). Background services/executables can tie up the internal shell processing mechanism I have built in. By not selecting any of the output options within the "Run Command" task, Secure Settings will not wait for the process to finish and is less likely to get hung up waiting for said process.

Hope this helps :) If not, please send me an email from inside the app.
[Android Apps and Games] lucfig:
Could you post the script? I would like to connect to a VPN automatically.
[Android Apps and Games] khaytsus:
Aha, will do! That'll give me some more info.

Hmm, I believe openvpn continues to run, but I'm not expecting any output from it back to Secure Settings or Tasker. I'll look into that, maybe I need to run it in the background..

Not sure it helps much, but here you go. I've installed the OpenVPN from the market, but you could get it from anywhere.. You of course need the tun.ko module for your kernel. And an openvpn configuration file. This really isn't doing anything magic, it's just running openvpn against the configuration file. Hope it helps :)

#!/bin/sh

action=$1

if [ "$action" == "start" ]; then

modprobe tun

echo starting.. >>/sdcard/sdcard2/bin/openvpn.log

/system/xbin/openvpn --cd /sdcard/sdcard2/openvpn --config client.conf

fi

if [ "$action" == "stop" ]; then

echo stopping.. >>/sdcard/sdcard2/bin/openvpn.log

killall openvpn

fi
[Android Apps and Games] awal1987:
so it work now. idk maybe with locale updating or su updating. or did you push out any updates?

oh well. i am so happy, thanks!!!!
[Android Apps and Games] pinkwoolsun:
I have a strange situation. I set up Tasker to activate my wifi unlock profile.

When connected to the home Wifi it instructs Secure settings to Disable the pattern lock.

And as exit Task to enable the Pattern lock.

This works perfect when testing or being away from the Wifi for a few hours. (locks and unlocks as expected)

but when i get home from work the pattern does not unlock. So lets say 8+ hours.

And when i look in SuperSU log file i don't see an attempt of secure settings to unlock the pattern lock.

The profile gets activated (i see a flash and it sets a variable)

And when i run the profile again from tasker it works.

It kinda looks like Secure Settings is in deep sleep mode after a few hours and don't wake up to unlock the phone :confused:

os is JB 4.1.2

On a Samsung S3

Hope someone can help me.
[Android Apps and Games] NCguy:
That actually is the version I have. I retested and everything is working great now.

Thanks.
[Android Apps and Games] android addicts:
I have a issue with the secure settings plugin. I use it only for tasker to enable GPS. Now this plugin prevent deep sleep. What is the reason? Are there anyway to fix it?

Sent from my GT-I9300
[Android Apps and Games] intangibleDroid:
Are you using the "Wake Device" or "Run Command" action in Secure Settings?
[Android Apps and Games] android addicts:
No, intangibleDroid. I use only GPS on and off.

Sent from my GT-I9300
[Android Apps and Games] intangibleDroid:
This isn't normal behavior. Secure Settings doesn't use wakelocks for any action besides those two actions I listed above. Have you tried removing and reinstalling Secure Settings?

Additionally, can you detail the Tasker profile that you have setup that uses Secure Settings? I'm wondering if Tasker is calling Secure Settings too frequently due to an improper configuration. Is the CPU usage high for Tasker as well?
[Android Apps and Games] Pkt_Lnt:
I have four apps that do this to enable / disable GPS when opened. I have at least 10 tasks using Secure Settings, but it never even shows up in Battery or in Better Battery Stats.

Do you have Better Battery Stats? It can help you find what is wrong on your phone.
[Android Apps and Games] walletless:
Hello,

I am coming to this thread based on some recommendation on my other thread (http://xdaforums.com/showthread.php?p=44359900#post44359900).

If the only thing I want to use Tasker for is enable/disable GPS based on some actions; do I need to maintain root on my phone after installing secure settings? My work place uses a MDM (MaaS360) which does not allow rooted devices to sync work email.. so I cannot keep my device rooted.

My Question: If I get a GS4 device with MDL firmware, root+recovery it, and install tasker & secure settings on it - then remove root permissions on the phone; will my GPS on/off task continue to function properly?
[Android Apps and Games] android addicts:
Currently I have uninstalled secure setting. I'll again install it and test it.

Yes I have. After I again install secure setting again, I'll post it report in here.

Sent from my GT-I9300
[Android Apps and Games] TheBrutalLicker:
First off; Sry, I'm a noob typing from my phone.

Normally I use a pattern to unlock my device. I installed secured settings and disabled pattern via tasker. Worked like a charm, now it's drag to unlock. I also noticed that if I changed my unlock method to "drag", in settings. I could get keyguard on/off to work (at pattern unlock, "keyguard off" didn't work) through secure settings. So the unlock screen got completely skipped. Now this is what I want, not only getting the pattern disabled, when I'm home, but also the whole lock screen disabled.

I tried to create a profile that activated the "keyguard off" task whenever my "pattern off"-profile is active. It didn't work, still drag to unlock. But when I manually activate the task "keyguard off", my lock screen dissappears.

Any help or input on this would be highly appreciated.
[Android Apps and Games] vazersecurity:
I bought the Pro version awhile ago and I did a clean install of CyanogenMod 10.1 and now it's saying I haven't bought it yet. And I never got a licence key so I don't know what's going on. Any help here?
[Android Apps and Games] scutworker:
You probably need to clear the apps settings. Go to device settings, apps, open the entry for secure as settings then press clear data. Open the app again.

There isn't any licence key for in app purchases, it is handled automatically by Google Play, but it can go wrong if you flash a new ROM.
[Android Apps and Games] android addicts:
There's no any different between free and pro. Pro version only a very small in app donation. You can see only thanks message at the bottom of the info tab.

Sent from my GT-I9300

---------- Post added at 11:38 PM ---------- Previous post was at 11:36 PM ----------

Well after reinstall the secure setting (including helper) still there's no issue. :) I can't even find secure setting on battery usage window.

Sent from my GT-I9300
[Android Apps and Games] Ci-Fi:
From the OP: Introducing Secure Settings Pro - an in-app upgrade that gives access to new unique advanced features.
[Android Apps and Games] intangibleDroid:
If you restored Secure Settings from a backup, your Pro features will not be recognized. Best solution is to make sure you have a data connection then click the "Refresh Purchases" item at the bottom of the "Info" tab. This will clear all previous licenses and download a fresh one from Google.

If it worked, your screen should look like this:
[Android Apps and Games] popy2006:
Please help me.

Using the free version, and if I'll do a special Swype gesture in any other app (ex nova launcher) a pop-up appears that says I'll need the pro version.

This is annoying and more than once a day.

How can I'll disable this pop-up?

Thnx
[Android Apps and Games] intangibleDroid:
You want to disable the "Google Now Shortcut" option. You can do this by launching the Secure Settings app and going to the "Options" tab, expanding "Conditions" and un-checking the "Google Now Shortcut" option.
[Android Apps and Games] android addicts:
I haven't noticed any new feature. Yes, thread have.
[Android Apps and Games] popy2006:
thx for the info.

It would be nice if the developer could add the function name to the popup so its easier to identify.

cu

pOpY
[Android Apps and Games] intangibleDroid:
v1.3.3b5 beta published. Should be available to all beta testers within a few hours.
[Android Apps and Games] bucklee:
Hi I know this was mention before, just wanted to state I am also having the same problem. I am trying to set up pattern lock disable and I get " An error occurred while executing Action: Pattern lock" was wondering if you can also look at that. I'm running HTC One running ARHD 12.2 Thanks!

Buck.
[Android Apps and Games] intangibleDroid:
Have you tried the beta (linked a few pages back)? There is a fix for this issue. All you have to do is open the app preferences, click "Pattern Unlock Method [4.1+]" and choose "Lock Settings (Experimental)".
[Android Apps and Games] intangibleDroid:
I have added the Samsung Mode options into the latest beta. Please give them a try and let me know if they work.
[Android Apps and Games] intangibleDroid:
If you install the Helper app to the system, you could unroot and Secure Settings should still be able to perform all of the Helper actions. Please note this is an untested scenario but should work in theory.