23
Sep

So I purchased Tasker last year, and honestly I installed it, had a quick peek at it and uninstalled it. It seemed like a little more than I wanted to learn at the time, but luckily a couple nights ago I decided to give it another shot. I have to say, so far I’m pleased with the results. I started my mission to make a quick Task to disable my PIN when i’m connected to my Home WiFi Network, and it’s working flawlessly so far! I looked around the internet and landed on this post over at Android Forums. Unfamiliar with how tasker works I started playing with it and eventually figured it out changing the settings on UncleMike’s profile a little bit. Here’s what I did…

To get started you will need two apps, the first

the second

Tasker is the app that will allow us to automate the lock/unlock feature, and Secure Settings is a nice little plugin that adds the feature to enable/disable PIN lock.

I’m using two profile’s here, and i’ll explain why in a bit..

Profile: Lock OFF
State: Wifi Connected [ SSID:ssid1/ssid2 MAC:* IP:* ]
A1: Secure Settings [ Configuration:Clear Password/Wait For Unlock ]

Profile: Lock ON
State: Not Wifi Connected [ SSID:ssid1/ssid2 MAC:* IP:* ]
A1: Secure Settings [ Configuration:Set Pin ]

First open up Tasker and click the green plus on the bottom middle of the app to create a new profile, and name it Lock OFF. Click the green checkmark.

Now choose State/Net/Wifi Connected, and enter the name of your network in the SSID Field, if you have more than one network use this format “Netowork1/Newtork2″. Click the green checkmart.

Select New Task, you don’t need to name it so just click the green check again. Click the blue plus in the lower left corner of the popup to add an Action. Choose Plugin/Secure Settings, click the Edit button next to Configuration. All the way down under DEV ADMIN ACTIONS chools Password/Pin. Check Device Admin Enabled, and Check Enter password once before unlocking. Click the Save icon in the lower left corner. Now click the green check. Click the green check again.

Your Lock OFF profile is complete. This will disable your PIN/Password when your connected to your Home WiFi Network. The enter password once option will require you to enter your PIN once when you connect to your WiFi before disabling the PIN, so if someone finds your phone, simply bringing it in range to your WiFi network won’t unlock it.

Now Lets Set up your Lock ON Profile

Open up Tasker and click the green plus on the bottom middle of the app to create a new profile, and name it Lock ON. Click the green checkmark.

Now choose State/Net/Wifi Connected, and enter the name of your network in the SSID Field, if you have more than one network use this format “Netowork1/Newtork2″. IMPORNTANT!! Check the checkbox next to Invert at the bottom. Click the green checkmart.

Select New Task, you don’t need to name it so just click the green check again. Click the blue plus in the lower left corner of the popup to add an Action. Choose Plugin/Secure Settings, click the Edit button next to Configuration. All the way down under DEV ADMIN ACTIONS chools Password/Pin. Press the button at the top so it says Enabled, make sure Device Admin Enabled is checked. Choose Password or PIN, enter your Password/PIN. Click the Save icon in the lower left corner. Now click the green check. Click the green check again.

Your Lock ON profile is complete. This will enable your PIN/Password when you disconnect from your Home WiFi Network. In the lower left corner click the green check and Tasker will save your profiles and close.

Congrats!, it was that easy, now go test it out!! Also note restarting your phone with WiFi on or off will still require a PIN for the first unlock!

Explanation for using two profiles from UncleMike at Android Forums

The reason I’m using two separate profiles, instead of a single profile with both an Enter and Exit task is that by using a single “Wifi Connected” profile, if the device is turned off while the PIN lock is disabled, and next turned on when out of Wifi range, the PIN would remain disabled (the profile would not exit during shutdown, or during startup). A single “Not Wifi Connected” profile with both an Enter and Exit task would possibly go the other way, meaning that if the device is turned off when out of range, then turned on when in range, the PIN might not be disabled (much safer than the other way, but still not ideal).

With that all said, to me $6.49 US for Tasker was definitely  worth the price for the convenience, not to mention all the other things you can do with it. I would also recommend purchasing the Pro version of Secure Settings, again well worth the money spent!

 

[Android Forums]

 

  • Rajendra Patil

    Not sure why it’s not working for me. Corp email forces only PIN or PASSWORD and I have PIN set. With these profiles phone still keeps asking PIN all the time (even when it was cleared via secure settings when I am on trusted WIFI). I am on ICS 4.0.4, rooted.

    • Erik Gaudin

      Same for me. Corp forces me also to enter PIN.
      I try to find a way to “enter” the pin with NFC tag, or something else…

      Something that enter the password for me. Can’t find any solution yet.

      • http://bliynd.com/ Mike

        Sorry but you can’t get around the Corporate required PIN…

  • Keenan Woods

    Thank you! I knew Tasker could do this, but I didn’t realize I needed a plugin to get it to work. Your guide was very helpful.

  • Govert Flink

    Hi, I’ve used your workaround but at the first time I enter the wifi area I have to enter a pincode, after this first time it works fine. If I leave home indeed it functions well but always I enter my home or connect/disconnect the wifi I have to use a pin code.
    Is there a work around to by pass the pin code.
    Sumsung I9100 Jelly Beans 4.1.2

    • http://bliynd.com/ Mike

      When setting it up, uncheck “enter password once before unlocking” and it will disable it without asking for a pin.

      • Govert Flink

        Hi Mike, I’ve just made this change and it works fine now. Thank you for your swift reply. Govert.

        • http://bliynd.com/ Mike

          No problem

  • Pingback: [Ufficiale] Thread S-Voice GS4 (dubbi e consigli) - Pagina 11 - Forum Android Italiano

  • Sweet Nutz

    Need some help- pin is still required to access device after initial confirmation pin is requested on home network, In other words Tasker recognizes that I am on my home network, but continually ask for my pin to unlock device. I am using the updated version of Tasker. Thanks in advance

    • http://bliynd.com/ Mike

      I haven’t used this in a while, but try disabling the initial confirmation pin. Also make sure your wifi isn’t disconnecting when your phone sleeps.

  • Vanessa Medina

    thank you so much for this! Even though this is not the same version as the one I have, I was able to finally understand how to work TASKER. This was the reason I BOUGHT it, and none of the tutorials I could find would help me learn how to unlock my pin! Thank you!

    • bliynd

      Your welcome