In combination with the fantastic Secure Settings plugin (
http://goo.gl/6VdKEp), my phone is now automatically unlocked if it's connected to either my Pebble (and thus pretty much within my reach) or my work/home Wifi networks. If it finds itself stranded at a bar, for instance, it enables a lockscreen of my choice (PIN, Password, or Pattern). By the way, root is not needed for this to work except in the case of the Pattern unlock.
The profiles are pretty straight-forward:
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 ).
If you don't quite feel up to all the Taskery goodness, you can accomplish a similar auto-unlocking trick with the Unlock With Wifi app (
http://goo.gl/acsO0R).