yashsingh1/xdaforums huggingface dataset:
[Android Apps and Games] iamfender:
sl4a python script

How can I get secure settings to execute a sl4a python script?

Brief explanation of what I'm trying to do:

On payday when near my bank, I want a notification & sound.

Right now I have a M - F date context, a 4 - 7 PM context and a near my bank context.

That's not sufficient, because payday is the 15th, unless the 15th is a Saturday, then payday the 14th, or unless the 15th is a Sunday, then payday is the 16th.

Similarly for the end of the month. Payday is the last day of the month, unless the last day of the month is a Saturday, then payday is Friday or if the the last day of the month is Sunday, then payday is Monday.

I have a python script with the above logic in it since there doesn't seem to be a way to build this logic in to tasker.

How can I have secure settings run this script? I've tried specifying /mnt/sdcard/sl4a/scripts/payday.py and "python /mnt/sdcard/sl4a/scripts/payday.py" but get a permission denied error.

payday.py is ----rwxr-x system sdcard_rw

Any help would be appreciated.

Thanks.

edit: here's my current profile config:

main: [1] http://imgur.com/YfUoV

Inbound task: [2] http://imgur.com/Y7XCX

Secure Settings config: [3] http://imgur.com/bjOyc

Notification task: [4] http://imgur.com/iaype
[Android Apps and Games] Ramis:
Hey,

I've been trying to run a simple ping command to check if my computer is on using tasker.

Here's are two screenshots of my setup

The PING variable never gets set.

Anything I am doing wrong?

Please help
[Android Apps and Games] Satch09:
I've never tried to ping a pc but I have tried to ping ping farm to check if my phone has got a net connection. I used http get and I found an issue with "wait until" especially when it's set really low. Try setting a higher time out, like 3 seconds and then an "if" %PING isn't set, then go back to your ping action. Maybe use a "variable add" at after each try so that after say 5 unsuccessful tries the task stops because then it will run indefinitely.

This is more the sec settings domain so maybe check out the tasker thread. PM me if you need more help. Like I said, I haven't tried it and my pc isn't on a network so I can't test it for you but I could maybe put the task together for you.

Good luck
[Android Apps and Games] 23545:
Request: Action to switch between [GSM] and [GSM/HDSPA] and [HDSPA]. This would be very useful in terms of battery consumption. Most of the time GSM is enough but sometimes when you use certain apps that need to transfer higher amounts of data it would be great to auto switch to higher transfer rates.
[Android Apps and Games] intangibleDroid:
I had success with your task by changing the wait from "2 ms" to "2 seconds."

Only the phone process has access to change this option. I have spent too much time trying to figure out how to do this and have come up short. Your best bet is another plugin that has this functionality.
[Android Apps and Games] andreas29:
I have a S3 running CM9 (CM10 is not yet stable for the S3), Tasker is running and the Secure Settings plugin in Device Admin mode as well.

Now I try to create a profile which is supposed to catch every failed login attempt. I created a profile with "State -> Plugin -> Secure Settings -> Edit -> Failed Login Attempts" and the maximum value is set to "1". For debugging reasons I disabled all other profiles and this profile, once executed is supposed to increase a variable and flash a text.

However the profile is never executed, no matter how often I use a wrong pattern.

Looking into "aLogcat" I can't see anything which makes me believe that Tasker get's anything from the plugin. "Secure Settings" says that the plugin is running. If I change the state and use another event, this specific profile works just fine. Tried disabling the "Device Admin" for "Secure Settings", then I get a notify that it is disabled - this seems to work. I also verified that "Failed Login Attempts" is actually enabled in the "Secure Settings" options.

Am I missing something here?

Thanks,

Andreas
[Android Apps and Games] intangibleDroid:
A failed attempt is only registered if there are at least 4 characters or 4 pattern points entered.
[Android Apps and Games] 23545:
Thx. Another request: How about checking the state of usb debugging with your app. I know it's possible to use the action to switch. But it would be great to check the status if it is enabled or disabled. I wondered if there's any reason why you didn't already implement it when you implemented the action. I think it would be very useful.
[Android Apps and Games] gonzlobo:
That's interesting. I have cm10 with a 4x4 pattern unlock. What's the math?
[Android Apps and Games] andreas29:
Oh, this indeed explains a lot!

Thanks for the info.

Andreas
[Android Apps and Games] PeQuEsan:
Hi intangibleDroid,

If you search across the thread, you'll find I was interested in finding a way to disable lockscreen&patter lock in a HTC Sense 4 ROM. We could disable/enable pattern lock, but no way to disable Sense lockscreen.

Now my HTC One S has been upgraded to JB + Sense 4+, and the good news is that we finally can choose to completely disable lockscreen, so if we configure a patter lock, we only need to enter it to unlock the phone, so no mor slide to unlock before doing this.

BUT: Secure Settings seems not being able to enable pattern lock now in JB... I had "Tasker" tasks to enable/disable running with no problem in ICS, which now return a "an Error ocurred while bla bla bla...".

I've activated debug log in SS options, but I don't remember how to save the log and send it back to you... Could you remind me please? :)

Thanks a lot.

BTW: I'm currently running stock "only rooted" ROM, so SS can't install persistently the Helper (in fact it can, but it's lost every time we reboot)... I've made your flashable zip compatible with TWRP recovery... I put it here, just in case you find it useful. TWRP is being quite used now.
[Android Apps and Games] intangibleDroid:
I had considered this in the past but the issue is that it would require a service to run constantly in the background which I didn't really want to do. My solution has been to create a variable that when toggled will enable or disable USB Debugging. Bear in mind, only the first time the value is changed will it actually get switched. Subsequent calls to change the value while the value is the same will be ignored.

I believe whenever a device administrator is active, the minimum password is 4 characters or 4 pin points. I'm not certain what kind of impact changing the number of possible pattern points will have.

Thanks for the update.zip. I'm not certain what issue you were having before, but I tested the zip I made on my device which is using TWRP.

This app can capture a log in JB.

As for the issue with toggling pattern lock, it seems that HTC decided they would cache the lock screen values in memory. The issue with this is that any changes that I make to the underlying database are ignored since the cached value is there. As of now, I'm still looking into a solution. However, I'm skeptical that I'll be able to bypass this :(
[Android Apps and Games] kalipedia:
Hi - this seems to work for using pin as security, but I've always preferred using Pattern unlock. Is there a way to get that to work? I'm still really impressed by all this functionality and look forward to learning it and doing some cool stuff - thanks!
[Android Apps and Games] naboleo:
Is someone have troubles with the taskmanager feature (click home button twice) ? I have an UI crash evertime. Uninstalling Secure settings solve the problem but then I won't be able to use it with tasker.

Here is the logcat

D/RestrictionPolicy( 2046): isHomeKeyEnabled :true
D/RestrictionPolicy( 2046): isHomeKeyEnabled :true
D/InputReader( 2046): Input event: value=0
D/RestrictionPolicy( 2046): isHomeKeyEnabled :true
D/VoIPInterfaceManager( 2046): isVoIPRinging()...
D/VoIPInterfaceManager( 2046): Not exist call session
D/STATUSBAR-NetworkController( 2168): refreshSignalCluster: data=0 bt=false
D/InputReader( 2046): Input event: value=1
D/RestrictionPolicy( 2046): isHomeKeyEnabled :true
D/AndroidRuntime( 2168): Shutting down VM
W/dalvikvm( 2168): threadid=1: thread exiting with uncaught exception (group=0x4121e2a0)
E/AndroidRuntime( 2168): FATAL EXCEPTION: main
E/AndroidRuntime( 2168): java.lang.ClassCastException: android.graphics.drawable.StateListDrawable cannot be cast to android.graphics.drawable.BitmapDrawable
E/AndroidRuntime( 2168): at com.android.systemui.recent.RecentsPanelView.replaceGoogleButtonTo3rdAppTextAndIcon(RecentsPanelView.java:1435)
E/AndroidRuntime( 2168): at com.android.systemui.recent.RecentsPanelView.replaceGoogleButtonTextAndIcon(RecentsPanelView.java:1383)
E/AndroidRuntime( 2168): at com.android.systemui.recent.RecentsPanelView.show(RecentsPanelView.java:460)
E/AndroidRuntime( 2168): at com.android.systemui.recent.RecentsPanelView.showIfReady(RecentsPanelView.java:391)
E/AndroidRuntime( 2168): at com.android.systemui.recent.RecentsPanelView.onTasksLoaded(RecentsPanelView.java:1011)
E/AndroidRuntime( 2168): at com.android.systemui.recent.RecentTasksLoader$1.onProgressUpdate(RecentTasksLoader.java:292)
E/AndroidRuntime( 2168): at com.android.systemui.recent.RecentTasksLoader$1.onProgressUpdate(RecentTasksLoader.java:285)
E/AndroidRuntime( 2168): at android.os.AsyncTask$InternalHandler.handleMessage(AsyncTask.java:647)
E/AndroidRuntime( 2168): at android.os.Handler.dispatchMessage(Handler.java:99)
E/AndroidRuntime( 2168): at android.os.Looper.loop(Looper.java:137)
E/AndroidRuntime( 2168): at android.app.ActivityThread.main(ActivityThread.java:4921)
E/AndroidRuntime( 2168): at java.lang.reflect.Method.invokeNative(Native Method)
E/AndroidRuntime( 2168): at java.lang.reflect.Method.invoke(Method.java:511)
E/AndroidRuntime( 2168): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1038)
E/AndroidRuntime( 2168): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:805)
E/AndroidRuntime( 2168): at dalvik.system.NativeStart.main(Native Method)
E/android.os.Debug( 2046): !@Dumpstate > dumpstate -k -t -z -d -o /data/log/dumpstate_app_error
I/dumpstate( 4134): begin
D/RestrictionPolicy( 2046): isHomeKeyEnabled :true
[Android Apps and Games] 23545:
I wouldn't mind the service. But I can understand you. However I think so many apps that are crap use services for somewhat, for your app it would make sense. The variable workaround is also an option. But when you you use another tool at the same. The variable is no reliable option.
[Android Apps and Games] PeQuEsan:
I was about to paste capture of what I can see in catlog whenever I try to enable/disable pattern lock, but I see you have found the problem...

Just a side comment: disable pattern lock triggers that error message... but somehow it finally disables pattern lock after a while... Enabling it back not, though.

Thanks for anything you can do to fix this... HTC is doing your work a little bit harder with every new Sense release, it seems...
[Android Apps and Games] sneaky55121:
disable pin or password

Hi, my device is under a google policy so i must use a pin or password, is it possible to override the pin/password using secure settings? how can I do that?
[Android Apps and Games] xda-todd:
Package State Problem

Hi IO,

I have 1.3.1 installed, without the Helper, running as root and device admin. I use it with Tasker (latest version).

I am having a problem with the Package State action where I can disable an app (in this case Air Droid) but I cannot re-enable the app. After I disable it, it disappears from my app drawer and My Apps list in system settings, as if it's been uninstalled, but strangely still appears in Titanium Backup as a frozen app. Strangely, too, I cannot defrost it with TB...seems to try but never finishes.

When attempting to reenable through SS, I get the following error: "An error occured while executing Action: Package State."

I'm running Blu Kuban on a Samsung Galaxy S2 (sprint's version). BK is a rooted, themed, customized version of the stock OS (Samsung's version of ICS 4.0.4). One thing I've noticed is that there is no Disable option in the App info page in settings, which there was when I was on CM10. I suspect that's the issue.

Please advise.

btw -- great app! Very well written.
[Android Apps and Games] gabster21:
Hi ID, any update on whether or not this is possible? (regarding the automatic VPN connection). Been searching for an app to do that since ICS but so far no luck, would be willing to get the premium version for this :D
[Android Apps and Games] intangibleDroid:
This should work with pattern if you are rooted (and the Helper installed if you are running ICS and below).

Thanks for the log. This seems to be specific to Samsung devices as of now. The best fix for now is to go into the Secure Settings "Options" tab and disabled "Google Now Shortcut" under the "Conditions" option. I'm looking into a fix.

I'm considering adding this. I still need to iron out the logic, so it might be a while before it gets implemented.

If you already have a Device Administrator enabled, then it will be unlikely that Secure Settings will be able to override the password. When multiple Device Administrators are enabled, the one with the most security takes precedent.

Can you try editing your action and checking the "Disable User" box. Please let me know if this works.

I haven't looked into it recently. The last time I did, it seemed like it would be a nightmare to implement. I will take a look again when I get some more time.
[Android Apps and Games] sneaky55121:
Hi,

Can I disable the google policy, configure the settings to don't request pin and then install again the oogle policy, it could works?

This is the app that i must install when I synchronize my email addres.

Thank you
[Android Apps and Games] coolfranz:
Hello,

I have Problems with the "Wake Device" option and Android 4.2.1. I made a Tasker Profile to wake the screen every time, I get a notification from (in this case) Gmail. The Problem is that the "Duration" option has no effect on how long the screen stays awake.

Having this problem with Nexus 7 and Galaxy Nexus, both with stock 4.2.1.

Has anybody a solution for this problem or is it a known issue?

Thanks
[Android Apps and Games] intangibleDroid:
Which setting are you using (Screen & Keyboard, Screen bright, etc)? I just tried this on my Galaxy Nexus with CM 10.1 by invoking a Tasker task that locked the device, waited 2 seconds, then invoked the Wake Device option (Screen & Keyboard lights on) for 30 seconds and it worked for me.
[Android Apps and Games] coolfranz:
Does not matter which option I use to wake, but the screen and keyboard wake would be ok to test...

For me it is the same as for you, my screen stays on for aprox 30s but I didn't want it to stay on that long, as I set duration to 5s. Could you test that, too?

By the way: already tried to switch off pattern unlock and use the stock circles, but that had no effect.

sent with Nexus7 and Tapatalk HD
[Android Apps and Games] 23545:
Thank you. Would appreciate.
[Android Apps and Games] kantjer:
What is your display time-out setting?

My guess it's 30 seconds.
[Android Apps and Games] coolfranz:
wrong. 5 min.
[Android Apps and Games] sneaky55121:
Hi,

Anyone know how to disable the google policy over email accounts?

Thanks
[Android Apps and Games] intangibleDroid:
I am currently unaware of a way. Sorry :/
[Android Apps and Games] dtr145r:
can you look into adding an ''inactivity' setting to your app?

kind of like how the screen off works.
[Android Apps and Games] intangibleDroid:
How would this differ from the screen off option available in Tasker?
[Android Apps and Games] dtr145r:
because sometimes when using the phone I don't want the screen off to trigger anything invaded I'm using the phone. let's say I'm in a call and I put the phone to my ear that could trigger a screen off action BUT I'm still actively using the phone.

---------- Post added at 07:58 PM ---------- Previous post was at 07:54 PM ----------

I have my phone set up to enable airplane mode when my screen turns off when I'm at work but sometimes that is annoying when I'm trying to read something and the screen turns off because then I have to re connect wifi and the cell network and currently there is no other options like that.

basically the screen off is OK but it's a pain when my phone shuts the screen off and it goes in airplane mode when I'm in the middle of something.
[Android Apps and Games] intangibleDroid:
I still don't see what would be used as an event to trigger the inactivity. Screen Off works well because there is an Android event that gets triggered when the screen turns off. I don't believe there is anything of the sort that triggers when the device is inactive. Without some sort of event to respond to, it would be difficult to implement something like this.
[Android Apps and Games] dtr145r:
there has to be something?

how else would the phone know to shut the screen off after "x" amount of time?
[Android Apps and Games] intangibleDroid:
I looked into this briefly. This is handled at a system level and does not appear to be accessible. The only time any event occurs (that I could use) is when the screen is turning off.
[Android Apps and Games] coolfranz:
Any news on my device wake problem?

sent with Nexus7 and Tapatalk HD
[Android Apps and Games] tboooe:
LTE and cm10?

I did a search but didn't see anything. Is there any plans to allow control of LTE on CM10? I know it works on CM9.
[Android Apps and Games] wngmv:
I have a question involving Secure Setting. I set one up with Secure Setting to clean cache of some cache heavy apps like chrome. Somehow everytime I tried to execute the task I got an error:

"An error occured while executing Action: Package options!"

Here's the profile:

Profile: Cache Cleaning (18)

Day: Sun

Enter: Cleaning (11)

A1: Secure Settings [ Configuration:Clear App Cache Chrome Package:com.intangibleobject.securesettings.plugin Name:Secure Settings ]

.... A bunch of other apps.

It has nothing to do with the profile. I tried to run the task from Tasker and still get the same error.
[Android Apps and Games] cramu:
I have the same problem.
[Android Apps and Games] intangibleDroid:
I haven't been able to replicate this issue.

LTE should work for CM10. If it doesn't work for you, please email my support email address (available from the main app's menu).

What version of Android are you running? Does the error always occur or only when the apps have a lot of cache?

Are you using a Nexus 7 as well?
[Android Apps and Games] coolfranz:
It doesn't work on my Galaxy Nexus neither...

Screen Timeout is set to 1 min.

Created a profile in tasker, that a new GMail mail should wake screen and keyboard with duration of 5s.

But when a new mail arrives, the screen stays on for aprox. 30s, without touching it.

sent with Galaxy Nexus and Tapatalk 2
[Android Apps and Games] cramu:
I'm running 4.2.1 on a N4.
[Android Apps and Games] xm1337:
I've been using this plugin with tasker created apps (using appFactory) and I'm now noticing I get "An error occured while executing Action: Locale" whenever I try to use this on an LGE phone. I use this to change the locale from english to spanish in my automated testing and it would be amazing if this worked on all devices. Every LGE device I've tried has been 4.0.4

Edit: I've also noticed that if it doesn't seem to change the actual locale setting in the props persist.sys.language. However if you manually go and change a language to something else, and THEN run the command, it will stick in persist.sys.language and will be that language even after a reboot. Without manually changing the language the device will revert to its old locale after a reboot.
[Android Apps and Games] m@f:
wrong thread....

Sendt fra min PadFone 2 med Tapatalk2
[Android Apps and Games] gchatten:
Plugin Error & Won't Kill Maps

Attempting to kill Google Maps (NAV) and it fails to do so. In about 20-30 seconds I get a notification: "An error occured while executing Action: Package options!". TASKER will not kill it either (but will kill other apps). The only thing I've found to kill it immedtialy is Titanium by freezing it but, of course, that's not going to work in real life.

Any clues?

Galaxy Note/ICS stock/Rooted
[Android Apps and Games] rciomper:
How do I access Location and Google Search?

Under location services menu on my phone I have 3 options with check boxes:

'Use wireless networks' - able to set or toggle using 'Location Services' with the secure settings plug-in

'Use GPS satellites' - able to set or toggle using 'GPS' with the secure settings plug-in

Location and Google search' - not able to access

Is there a way to get at this setting?
[Android Apps and Games] MovieGene:
Re: [App][Tasker plugin] Secure Settings - Updated 11/23/12

I'm getting this error as well. I've searched the thread but haven't seen anything new posted about it.

Was it resolved, do you still need logs to fix?

Edit..

I've been messing with it and it works fine, however the error message still appears.

I did notice that my power widget doesn't change if I have my wi-fi on, but that has nothing to do with this.

Thanks,

Gene

Sent from my SAMSUNG-SGH-T989 using Xparent Blue Tapatalk 2
[Android Apps and Games] wngmv:
Re: [App][Tasker plugin] Secure Settings - Updated 11/23/12

4.2.1 nexus 4 srock everything. always happens, no matter how large the cache is.
[Android Apps and Games] intangibleDroid:
I haven't encountered this before. Would you be able to collect a logcat of you performing this action? Make sure you enabled "Debug Logging" in the Secure Settings preferences first. This app will allow you to collect and email the log. Please send it to my support [at] intangibleobject dot com email address.

I have seen issues like this before but don't haven't been able to replicate it. Have you tried using the Secure Settings Package Enable/Disable option? This is equivalent to the Titanium "Freeze" option.

I don't have this option on my device. What ROM/device are you running?

Please download and install this beta and let me know if you are still having trouble.

Please download and install this beta and let me know if you are still having trouble.
[Android Apps and Games] MovieGene:
Re: [App][Tasker plugin] Secure Settings - Updated 11/23/12

That did the trick. Data on/off correctly and the error message is no longer appearing.

Thanks

Sent from my SAMSUNG-SGH-T989 using Xparent Blue Tapatalk 2
[Android Apps and Games] coolfranz:
How about the screen-wake issue? Were you finally able to reproduce it?
[Android Apps and Games] rciomper:
I don't have this option on my device. What ROM/device are you running?

AT&T Galaxy S3 with rooted stock TouchWiz.
[Android Apps and Games] gchatten:
Beta does not solve freezing of MAPS/NAV

Installed beta. Rebooted. Used Tasker to freeze MAPS.

Got the same error about 5 seconds after the task ended; NAV still running

-Galaxy Note, ICS stock, Rooted
[Android Apps and Games] Suntzupa:
Re: [App][Tasker plugin] Secure Settings - Updated 11/23/12

Hey Corey,

You've nailed it. I'm currently using 1.3.2b2 and 1.2.1 and the Reboot command and Mobile Data work like a charm. However, GPS is not available on my Helper options. Thank you!

public*void*reboot(String*Reason)*{**********PowerManager*pm*=*(PowerManager)BA.applicationContext.getSystemService(ba.applicationContext.POWER_SERVICE);**************pm.reboot(Reason);******}

Sent from my SAMSUNG-SGH-I717
[Android Apps and Games] quantaZ:
pattern lock toggle doesnt work.

needs update

-----

sense rom JellyBean 4.12
[Android Apps and Games] phanmo:
Re: [App][Tasker plugin] Secure Settings - Updated 11/23/12

Try to make USEFUL comments in the future, such as make, model, ROM, and how you implemented it. It works fine for me on jb 4.21 and for most others.

Your comment is just taking up space.
[Android Apps and Games] killian32:
You need "screen on" in order to made it work.

I've successfully toggled on/off pattern lock in this way.
[Android Apps and Games] Pimmr:
What do you mean exactly by this, I need to add a task that turns the screen on first ?