Smart Lock unlocking at Home and Work - Nexus 5X Q&A, Help & Troubleshooting

I have Trusted places enabled for Smart Lock and have "Home" enabled. This is working fine, however it is also unlocking while I'm at work. I do not have my Work added to my Trusted Places, but I do have it added it Google Maps.
If I disable Home it won't auto unlock at work anymore. Is this a bug or working as intended (seeing how I don't have Work explicitly listed)?

Related

[FIX] Tasker and the pattern lock

One of the things that I wanted to use Tasker for was enable the pattern lock when I was away from home and then disable it at home. Unfortunately due to recent changes in the Android SDK that is no longer possible with Tasker directly.
With a bit of searching I discovered the Secure Settings plugin which can be installed to /system/app and thereby provide Tasker with the functionality. However, it seems that Secure Settings does not work on the Galaxy S2 because Samsung have their own pattern lock and method of controlling it.
I started doing a bit of digging (mainly using logcat to see what the system was doing when the pattern lock was enabled/disabled via the Location and security settings menu). I discovered that the Samsung lock system is controlled by some files in /efs and with a bit of experimentation I was able to enable/disable the pattern lock via a root shell. I contacted the author of Secure Settings who suggested I use the Locale Execute plugin to run shell commands via Tasker.
So I present here the commands I am now using on my phone and hopefully they will be of some use to others. The commands include a check that should ensure that it does not attempt to enable the pattern lock when no pattern has been set, but this has not been fully tested!
WARNING: These commands require root access and you use them at your own risk!
Make sure to install the Locale Execute plugin first and then to enable the pattern lock with a task simply add a new "Plugin/Execute" action and set the contents to:
Code:
@! if [ "`cat /efs/cryptprop_lockscreen.patterneverchosen`" = "true" ]; then echo -n true > /efs/cryptprop_lock_pattern_autolock; fi
To disable the pattern lock create an Execute action with the following contents:
Code:
@! if [ "`cat /efs/cryptprop_lockscreen.patterneverchosen`" = "true" ]; then echo -n false > /efs/cryptprop_lock_pattern_autolock; fi
These have been tested on rooted stock KE7 firmware.
Enjoy,
Dan
Sorry for sounding stupid (I probably will)
But could you make a tasker-noob-proof-tutorial?
I couldn't find where to change, if it should be active inside or outside the given area (home or not home)..
Thanks in advance
mljjlm said:
Sorry for sounding stupid (I probably will)
But could you make a tasker-noob-proof-tutorial?
I couldn't find where to change, if it should be active inside or outside the given area (home or not home)..
Thanks in advance
Click to expand...
Click to collapse
He described the command action so you can apply your own rule... Google for tasker and you'll find a lot of howto
Sent from my Galaxy SII
If you find this post usefull please press the "Thanks" button
Great!
Is there a way to toggle 2G/3G and GPS via tasker on the galaxy s2?
great thread, thank you!
could you please export your tasker profile and upload it somewhere? i'm a tasker noob
@mljjlm
I'm sorry but this is not a tutorial for Tasker, it simply provides the information necessary to configure your own profiles for toggling the pattern lock. Although the information at the end of this post may prove useful.
@bgx
No idea I'm afraid, I've not had a chance to look into those although I'm pretty sure it's not possible to switch 2G/3G or GPS in the same way that the pattern lock is toggled here.
@js931
My profile is based on location (using the "Cell Near" state) and so will not be much use for anyone else. However I basically configured the following:
Create profile called "Home".
Add a "Cell Near" state and configure for my local towers.
Add a task called "Home" and include the "Execute" action described above for disabling the pattern lock (I also turn off mobile data and turn on wifi here).
Add an exit task called "Away" which includes the "Execute" action to enable the pattern lock (I also turn on mobile data here).
In your code for disabling the pattern, should the code read 'patternneverchosen' rather than 'patterneverchosen' as you have written? I haven't tested, but the spelling seemed odd.
If it's correct, ignore me
Major_Sarcasm said:
In your code for disabling the pattern, should the code read 'patternneverchosen' rather than 'patterneverchosen' as you have written? I haven't tested, but the spelling seemed odd.
If it's correct, ignore me
Click to expand...
Click to collapse
It is actually correct (I double checked the first time I tested it out since it was an ambiguous name), it is supposed to be:
pattern-ever-chosen
which is why I check for it being true in my command since we want a pattern to have been set.
Edit:
It has actually been properly tested today, I was away from home and the pattern lock was enabled, when I got back home the pattern lock was disabled.
One thing to be aware of, when setting up the Tasker profile, is that each "Execute" command requires its own root permission, so you have to make sure that these have been allowed before it will work quietly in the background (you should be able to trigger them by testing the task).
It works . Thanks !!!
It works great, however when the Lock Pattern is disabled, I still get the "slide to unlock" type of screen when waking the phone up. Any command for that?
I am running the stock SGS2 ROM (rooted obviously)
Thanks !
I am new to tasker and would like some help/advice
I want to save power a bit so want my gps to only turn on in certain cell tower locations (in order to aid more specific tasks when in those cell locations). my issue is not setting this up, it is in the fact that taskers default gps toggle settings do not work on the sgs2. Can anyone help with this, rather than me having to keep it checking gps all the time (which I have currently delayed to 10 minute checking slots).
Edit: Also not sure if it is me just being dumb, but I cannot see that plugin on that link in the OP..?
Excellent work, do you know if this will work with the original Galaxy S as well?
@julien.me
The slide to unlock keyguard is handled differently to the pattern lock, but you should be able to enable/disable it using Tasker without any hacking. I use Tasker to disable the keyguard when it is plugged in.
@Lennyuk
I mentioned in an earlier post that I have no idea how the 3G or GPS is enabled disabled, but I am fairly sure it cannot be achieved using a method like this.
@m.shafik
The original Galaxy S handles the pattern lock differently so this solution will not work, but the Secure Settings plugin may be of use.
Regards,
Dan
m.shafik said:
Excellent work, do you know if this will work with the original Galaxy S as well?
Click to expand...
Click to collapse
I used Tasker to do the same thing on my Galaxy S last night coincidentally - only in a somewhat more simplistic way as I am not as technically strong as most people here.
I have a simple Tasker profile that checks my location and if I am at home it executes an action to turn "Keyguard Off". Keyguard is under "Display" in the Action categories. Setting Keyguard to Off disables both the pattern lock and the slide lock.
My case is actually a little more complex because I want to disable the keyguard in two situations, when I am at home or when I am driving in the car. I did this by creating two profiles, the first of which checks to see if the GS is connected to my home wifi, and the second of which checks whether I am connected to my car Bluetooth. If either case is found to be true the relevant profile sets a variable. When the case become untrue (ie. I leave the house or turn the car off) the profile will clear the variable (via an exit action). I then have a third profile that simply turns off the keyguard when the variable is set.
I appreciate that there are probably cleverer and better ways to achieve the objective but I only installed Tasker last night so I am only just lifting the lid.
Hi terranim, I was using your script several days and it worked like a charm, but now I updated to 2.3.4 and it does not work anymore. Any advice ?
Sent from my GT-I9100 using Tapatalk
@hotsync100
I have not gotten around to updating my phone to 2.3.4 yet. As soon as I have I will try to figure out what is going on with my pattern lock hack.
Regards,
Dan
I'm now running Lite'ning v2.2 and the tasker fix still seems to work.
Which ROM for 2.3.4 have you upgraded to?
Dan
terranim said:
I'm now running Lite'ning v2.2 and the tasker fix still seems to work.
Which ROM for 2.3.4 have you upgraded to?
Dan
Click to expand...
Click to collapse
Stock kg1
Sent from my GT-P1000N using Tapatalk
Tried again and worked. I do not know what did I changed, may be the kernel . Thanks anyway .
Sent from my GT-I9100 using Tapatalk
I can't get it to work well on my SGS2 2.3.3 stock unrooted. I enabled admin and set Tasker to disable the keylock in a profile (when I'm at home and the wifi ssid is visible). The profile activates but I always get the lock.
And I mean the stock lock screen with the pin (not the pattern one which I read that requires rooting and the method explained in this thread)
Missing something?

[Q] Using Pattern Lock with VPN/Credentials

I have FoxFi and FoxFi must use a VPN/Credentials storage. This disables the pattern lock. I can re enable pattern lock by clearing credentials however than I have to go through the process of disabling it every time I use FoxFi. Is there a way to have both?
JeffATL said:
I have FoxFi and FoxFi must use a VPN/Credentials storage. This disables the pattern lock. I can re enable pattern lock by clearing credentials however than I have to go through the process of disabling it every time I use FoxFi. Is there a way to have both?
Click to expand...
Click to collapse
I'm sorry that I don't have an answer for you, but can I ask how you clear the credentials so that you can change the screen lock method? I'm using fingerprint and it works fine with Foxfi, but sometimes I like to just use swipe and I can't choose it (its greyed out). I have gone into "Trusted Credentials" and manually removed the FoxFi credential under the User setting (so that user setting is now blank), but when I try to change screen lock to swipe, its greyed out. What am I supposed to do so I can choose any of the screen unlock methods, not just the ones FoxFi allows?
I apologize for hijacking your post and you don't have to answer me if that upsets you. Thanks anyway.
FlattFoxJohnson said:
I'm sorry that I don't have an answer for you, but can I ask how you clear the credentials so that you can change the screen lock method? I'm using fingerprint and it works fine with Foxfi, but sometimes I like to just use swipe and I can't choose it (its greyed out). I have gone into "Trusted Credentials" and manually removed the FoxFi credential under the User setting (so that user setting is now blank), but when I try to change screen lock to swipe, its greyed out. What am I supposed to do so I can choose any of the screen unlock methods, not just the ones FoxFi allows?
I apologize for hijacking your post and you don't have to answer me if that upsets you. Thanks anyway.
Click to expand...
Click to collapse
Security - Clear Credentials (Removes all) works. But I have to add back credentials to use FoxFi
I was trying to work this out this morning myself. I came across a thread with "fixes" but none worked for me. Feel free to give them a try and let me know if anything works for you.
http://forum.xda-developers.com/showthread.php?t=2739469
vwpiper said:
I was trying to work this out this morning myself. I came across a thread with "fixes" but none worked for me. Feel free to give them a try and let me know if anything works for you.
http://forum.xda-developers.com/showthread.php?t=2739469
Click to expand...
Click to collapse
Thanks. This one worked for me.
e4c said:
found a fix for getting all lock screen options back.
log into google device manager: google.com/android/devicemanager
click on the lock button for your device.
enter a new pass and save.
now go to your phone and use the new pass to unlock the phone.
you should now be able to go to your lock screen settings and pick whichever lock option you need.
Click to expand...
Click to collapse
just to clarify. login to google device mgr from pc, not phone - I guess I now have to plop down $8 for the key, I thought I did already.
"log into google device manager: google.com/android/devicemanager
click on the lock button for your device.
enter a new pass and save.
now go to your phone and use the new pass to unlock the phone.
you should now be able to go to your lock screen settings and pick whichever lock option you need."
You can do this from chrome on your phone.
This worked for me!
Thanks for the help!
Running an sgs3 i747 and tried ththis to no avail. All other lock methods are still locked out.

Smart lock and trusted places

It seems that for some people if you enable smart lock and set up a trusted location, it doesn't work (still needs pin etc. to unlock). If you disable the camera app, and install a third party one (I use open camera), the trusted place feature works. I don't think this is moto g4 plus related, more marshmallow, but it took me a while to work out the solution.

Smart Lock on Pixel XL Oreo not showing Work as option

Hey guys,
correct me, if I am wrong, but wasn't there an option in past Android versions (maybe) that you could select your workplace as Trusted Location? I tried doing that with my Pixel XL (Oreo) and it only let me select my Home (Zuhause). Thanks for your input!
You don't see an option for add trusted place below your home address?
Here is what it looks like to me
I see the option to add another place but wasn't there an option in previous versions of android that you can add your workplace as well if it is in Google Maps?
https://i.imgur.com/FOkvXg0.png
Nevetsca said:
I see the option to add another place but wasn't there an option in previous versions of android that you can add your workplace as well if it is in Google Maps?
Click to expand...
Click to collapse
I'm not sure, haven't used trusted location in a while, I've owned smart watchs that keeps my phone unlocked for the last few years
I was able to fix my smart Lock for location. I'm not sure exactly which step fixed it but here's what I did.
Deleted data from Google play services
Deleted Google location history
Turned off smart Lock and turned back on
Re set finger prints
Opened Google maps, noticed my location and my home weren't exactly the same although usually they are. I added smart Lock locations all around my house.
Re booted phone.
After locking and unlocking I got a screen saying my phone's smart Lock is leaving the phone unlocked.
If someone can pinpoint what works for them so there aren't so many steps, please share.

Need help with locking apps

With Covid, we've been forced to hand this device to my 8y/o brother during classes, which is not a good thing since he plays games and watches videos in the background during his classes.
We've tried the app-lock available in the phone but he bypasses any and all locks using Focus Mode (which I haven't found a way to permanently disable yet). Any other app-lock apps seem to not work at all on this device (while they work fine on other devices, even after giving device admin and allowing drawing over other apps).
The few apps that worked, he uninstalls them easily. I WISH I could remove YouTube and the other apps from this device, but we don't have my laptop with me for that. Additionally, the App Vault and other homescreen-related options being easily accessible in the settings panel on Home (and not locked by the default AppLock even when Settings is locked) does NOT help at all.
Any ideas? Please, I'm desperate at this point.
PS. The device is Redmi Note 8
Myst Fende said:
With Covid, we've been forced to hand this device to my 8y/o brother during classes, which is not a good thing since he plays games and watches videos in the background during his classes.
We've tried the app-lock available in the phone but he bypasses any and all locks using Focus Mode (which I haven't found a way to permanently disable yet). Any other app-lock apps seem to not work at all on this device (while they work fine on other devices, even after giving device admin and allowing drawing over other apps).
The few apps that worked, he uninstalls them easily. I WISH I could remove YouTube and the other apps from this device, but we don't have my laptop with me for that. Additionally, the App Vault and other homescreen-related options being easily accessible in the settings panel on Home (and not locked by the default AppLock even when Settings is locked) does NOT help at all.
Any ideas? Please, I'm desperate at this point.
PS. The device is Redmi Note 8
Click to expand...
Click to collapse
i just tested the default AppLocker on RRos
settings/security/applocker
and it work fine
no way to baypass it unless you flash the remove password zip

Categories

Resources