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

can't get device lock to work

tommo123

Lurker
i have a smartwatch and have got my phone setup so that if they're connected then it disabled keyguard etc. what i can't get working is that when the connection is lost that it instantly locks the phone. i've set the exit task to enable the keyguard again, set "system lock" but nothing happens.

annoyingly it also occasionally goes to the lock screen (slide to unlock) instead of going straight to the homescreen

any ideas on how to get this working?
 
I think I've got exactly what you're after. Shamelessly ripped from my G+:

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).

Or for a more direct approach, there's also this guy: https://play.google.com/store/apps/details?id=com.lukekorth.pebblelocker
 
pretty much. i had it working for wifi perfectly but for the life of me couldn't get the same to work for my BT watch. i posted on the tasker forums and got a fix there. was just one stupid tickbox or something
 
Back
Top Bottom