• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Disable lock multiple ways

jackal24

Lurker
I am new to tasker.

I am rooted and want to disable my pattern lock if any of the following are true and re-enable it only if all are false.

1. Connected to Home WiFi
2. Connected to work WiFi
3. Connected to car Bluetooth
4. Connected to watch Bluetooth.

Also, more than one may be true at once.

Any help would be appreciated

Thanks
 
Hi Jackal24, and welcome to Android Forums :)

I've actually got a pretty similar configuration, using two profiles (Pebble Unlock and Wifi Unlock):

Profile: Pebble Unlock
- Context: Bluetooth Connected, Pebble XXXX (serial number)
- Enter task: Secure Settings - Pattern Lock Disabled/Wait for Unlock; variable set: %PebbleUnlock=1
The "Wait for Unlock" bit means that the lockscreen won't be disabled until it is successfully unlocked once.
- Exit task: Secure Settings - Pattern Lock enabled If %WifiUnlock Isn't Set; Variable Clear: %PebbleUnlock

The Wifi Unlock profile is just the same, except it sets the %WifiUnlock variable and checks the %PebbleUnlock one. This way I don't have to worry about leaving my wifi network and Tasker locking the device even though it's already connected to my watch (tasks only trigger when a context is entered or exited ).

With both Wifi and Bluetooth, you can enter multiple SSIDs or BT IDs separated with a slash. :thumbup:

Hope this helps. :)
 
I am new to tasker.

I am rooted and want to disable my pattern lock if any of the following are true and re-enable it only if all are false.

1. Connected to Home WiFi
2. Connected to work WiFi
3. Connected to car Bluetooth
4. Connected to watch Bluetooth.

Also, more than one may be true at once.

Any help would be appreciated

Thanks

You need secure settings pro. You can set up a profile for each state and make disabled lockscreen the task. Secure settings will be under plug-in. Select secure settings and configure. You should be in the secure settings app now. Seach through the different categories and find disable lockscreen. Next make a profile with the opposite off all of the items you stated above. And for the task put enabled lockscreen instead of disable.
 
Back
Top Bottom