Using Tasker to disable pin when connecting to home wifi

2,341 views
Skip to first unread message

Conan So

unread,
Aug 5, 2013, 8:33:59 PM8/5/13
to tas...@googlegroups.com

I'm running 4.1.2 on a S3. Here's what I did:

  1. Went to Security Settings > Device Admin> Enabled Tasker and Secure settings
  2. Followed this tutorial that uses 2 separate tasks (one is inverted wifi connection), with notifications added
  3. When it gets to the part about pin code/pattern lock, I used this guide to figure out how to use the pin code function

I'm not sure it's working at all, because when I do connect to the wifi, not only does it not disable the pin code, but it also doesn't pop up the notification that the security was enabled or disabled (a feature within the tutorial in step #2). If I run the task manually, then the notifications pop up.


---


After this failed, I deleted everything and started over. I enabled Tasker/Secure setting within Device Admin, and also enabled Tasker within Accessibility. Then, I followed the following set of instructions: 

To lock (attached to wifi !connected) Task Plugins Secure settings Password/pin Enabled (box is highlighted) (my pin) Device admin ticked in here as well. Manually run.

To unlock (attached to wifi connected) Task Plugins Secure settings Password /pin Disabled (box isn't highlighted) Both check boxes are set. One is to allow device admin. One is to make you enter your pin once when you get home. I've liked this extra bit of security and always had it. Never tried without.

Save save etc. Manually run that after the other one. Also make sure you don't have any profiles still active that could change the lock state. 


---


After all of this, it's still not working when I connect to my wifi. Could anyone explain what I'm missing or doing wrong? Is there something I have to turn on? 



Brandon Horwath

unread,
Aug 5, 2013, 8:56:42 PM8/5/13
to tas...@googlegroups.com
Export your profile as a description to clipboard and paste it here.
Message has been deleted

Conan So

unread,
Aug 5, 2013, 9:07:56 PM8/5/13
to tas...@googlegroups.com
Profile: Wifi Connected (4)
State: Wifi Connected [ SSID:myqwest7053 MAC:50:67:f0:f1:2c:8c IP:* ]
Enter: Unlock (3)
A1: Secure Settings [ Configuration:Clear Password/Wait For Unlock Package:com.intangibleobject.securesettings.plugin Name:Secure Settings ] 

Profile: !Wifi Connected (5)
State: Not Wifi Connected [ SSID:myqwest7053 MAC:50:67:f0:f1:2c:8c IP:* ]
Enter: Lock (2)
A1: Secure Settings [ Configuration:Set Pin Package:com.intangibleobject.securesettings.plugin Name:Secure Settings ] 

Rich D

unread,
Aug 5, 2013, 9:11:55 PM8/5/13
to tas...@googlegroups.com

>
> I'm not sure it's working at all, because when I do connect to the wifi, not only does it not disable the pin code, but it also doesn't pop up the notification that the security was enabled or disabled (a feature within the tutorial in step #2). If I run the task manually, then the notifications pop up.

Sounds like your profile might not be activating. This can be checked in the run log.  Menu / more. /run log

>
> After all of this, it's still not working when I connect to my wifi. Could anyone explain what I'm missing or doing wrong? Is there something I have to turn on? 
>

It certainly  sounds like you have done your home work,
The one important thing I did not  see you mention is you need to go into your android settings and set the lock screen to "none"

However I still suspect something is wrong with your wifi context..

I would do as Brandon recommended ...

To export....

Long press on the profile name / ( 3 dot menu with 4.0+ ) export / export description to clipboard (not XML)

The beginner mode needs to be off and the profile needs to have a name to be able to export.  

Rich..

Conan So

unread,
Aug 5, 2013, 9:35:14 PM8/5/13
to tas...@googlegroups.com
I ran the log. Description of profile posted above. Thanks!

Rich D

unread,
Aug 5, 2013, 10:06:22 PM8/5/13
to tas...@googlegroups.com

The run log seems incomplete,  it is missing the profiles becoming active / inactive..

We need to start by setting this up correctly.  This should be done with one profile with a enter task and a exit task.. The easy way to correct it would be in the profiles tab, tap on your 'Wifi Connected' profile then long press on on the 'Unlock' task / press 'add exit task / select 'Lock' task. Then delete the "!Wifi connected" profile. Now you should be left with..

> Profile: Wifi Connected (4)
> State: Wifi Connected [ SSID:myqwest7053 MAC:50:67:f0:f1:2c:8c IP:* ]
> Enter: Unlock (3)
> A1: Secure Settings [ Configuration:Clear Password/Wait For Unlock Package:com.intangibleobject.securesettings.plugin Name:Secure Settings

> Exit: Lock (2)


> A1: Secure Settings [ Configuration:Set Pin Package:com.intangibleobject.securesettings.plugin Name:Secure Settings ] 
>

For ease of testing you can add a flash to the beginning of the enter and exit tasks so you can see when you are connected and not connected, this can be viewed in the notifications as well, when you are connected you should see your profile name in the tasker notification, check the run log as well.... make sure your profile is active when you are connected to wifi and not active when not connected. 

Brandon Horwath

unread,
Aug 5, 2013, 10:46:40 PM8/5/13
to tas...@googlegroups.com
Try matching the WiFi connected context against any connection.

Does that resolve activation?

Conan So

unread,
Aug 6, 2013, 1:24:59 AM8/6/13
to tas...@googlegroups.com

Profile: Wifi Connected (4)
State: Wifi Connected [ SSID:myqwest7053 MAC:50:67:f0:f1:2c:8c IP:* ]
Enter: Unlock (3)

A1: Secure Settings [ Configuration:Clear Password/Wait For Unlock Package:com.intangibleobject.securesettings.plugin Name:Secure Settings ] 
A2: Flash [ Text:Unlocked Long:Off ]

Exit: Lock (2)
A1: Secure Settings [ Configuration:Set Pin Package:com.intangibleobject.securesettings.plugin Name:Secure Settings ] 

A2: Flash [ Text:Locked Long:Off ]

Here's the associated log after making the changes. Link. It still doesn't seem to work.

--

Brandon: I'm not sure how to test your suggestion, can you clarify how I would do that?

Brandon Horwath

unread,
Aug 6, 2013, 1:46:39 AM8/6/13
to tas...@googlegroups.com
Brandon: I'm not sure how to test your suggestion, can you clarify how I would do that?

A) Context, STATE: WiFi Connected: *,*,*

Entry: Action, ALERT: Flash [Connection Recognized]

If working, try...

B) add new Action, ALERT: Flash [WiFi Recognized] as A1 of task, 'Unlock'

This will narrow down context activation when troubleshooting.

RudeboyX

unread,
Aug 6, 2013, 5:30:18 AM8/6/13
to tas...@googlegroups.com
I would couple both tasks into one context. Your wifi "NOT" connected task should simply be the exit task for your wifi connected profile.

Rich D

unread,
Aug 6, 2013, 5:45:16 AM8/6/13
to tas...@googlegroups.com

> Here's the associated log after making the changes. Link. It still doesn't seem to work.
>

Your profile now looks correct.

The Run Log indicates that you are simply using the Test button to fire off the tasks. Please give a more detailed description of exactly how you are testing this, what is and is not working and when and if you are seeing the flash messages.

For example:

My wifi is off
1. Open tasker
2. I make sure the profile is enabled (green)
3. I save and close completely out of tasker
4. I turn my wifi on
5. Once my wifi is connected I see the flash message unlocked
6. I turn my wifi off
7. When my wifi disconnects I see the flash message locked

Rich..

Reply all
Reply to author
Forward
0 new messages