Disable the android lock screen password with VPN enabled (stored credentials)
While I was out the other night and playing around on my phone. I started wondering if the Home Automation app I made over the last few months would work over VPN (The home automation back-end is only available through the local network… don’t want joe blow turning my speakers on at 3am!). So I jumped into the Settings of my android phone and then into the VPN section.
I was surprised to see that I needed a password protected lock screen to have a VPN account set up. I can understand if you were going to store the password on the phone, but I had planned to type it in when connecting (I really wouldn’t be using it much). So I set up a pattern password and connected to my VPN. The app worked fine!
I put my phone down and later came back to it, but GASP! I had forgotten my pattern. After a few wrong tries the unlock screen had a “Forgot Password” button on the bottom right.
Google’s forgot password function for android phones uses your Google ID and password set up on the phone. If you can produce these credentials your phone will load into the lock screen password setup section. I swiped in the new pattern the first time, then on the confirmation I screwed it up. Instinctively I hit cancel to go back and try it again… But the home screen came up.
I powered off my phone and turned it back on and sure enough I had my old unprotected lock screen back.
So to re-cap,
To Remove a password lock screen with VPN/Stored Credentials on Android
- Set up VPN
- Add pattern unlock screen
- lock phone and swipe the wrong password 3-5 times
- tap “forgot password”
- log in with your Google account
- Cancel on the confirm password
And with that you have stored credentials without a password protected lock screen.
Sure enough it works! Good trick. My VPN uses an RSA token that requires I enter a PIN for authentication so the pattern lock really does nothing to improve security. It’s not hard to defeat the pattern lock; just tilt the screen at an angle and look at the smudges on the glass…
Amazing how this actually works. Thanks so much
This worked but I could not use my VPN afterward, it ended up deleting the VPN accounts I setup on my Nexus7
I had the same result. Basically just cleared the VPN and the security policy and re-enabled Swipe-to-unlock. I’m on a Note 3 running 4.3.
I’ve been looking for an easy solution to this for a long time. I found a complicated method involving code that I didn’t really want to mess with, but this way is insanely simple. Thanks big time!
Great trick.
i was looking for this for a few weeks
tnx
That was clever! Thanks a lot!
Excellent trick, worked well to bypass the forced pattern if we use VPN.
try to restart your phone, and you’ll need to input pin again
That worked amazing. You’re a genius!!! Thank you so much!
Great, it’s working. Thanks!
FoxFi wants VPN access to use my hotspot but I don’t want to use a password everytime i open my phone, so this work around should work?
Doesn’t work on kitkat 😦
Yeah! Thank you!
Excellent! Thank you so much! Greetings from Shanghai 🙂
This does not work! It will end with deleting your VPN account. Nice try anyway
Doesn’t work anymore with Android V4.4
I am using galaxy s5
instead of that,we can directly go to Security–>Lock screen and set the lock screen to None..VPN password will be removed.
I have found if you setup the lock screen PRIOR to setting up the VPN, it will allow you to disable it afterward.
Otherwise it will the ability to do that is disabled by the application if the lock screen is setup within OpenVPN.
when I followed the steps to remove the password lock screen with VPN/Stored Credentials on Android I went to the set up and manage VPN it had only 1 option (add VPN)
press add VPN it says edit VPN. I don’t have any knowledge on the Smartphone’s just got it was trying to get set up with a bit of security, virus protection VPN safeguards. All I’ve accomplished is a phone that has a lock that is more than annoying. Any other help ?
Just go to settings, screen lock,lock screen, scroll right down to optionscreen lock and select none. This worked for my galaxy S2!
Cooool! Thanks, anigan. It was very annoying to enter pattern 1000 times at day when I just want store cert which will be used only a few times in month. Blame on Android developers – is what so hard asking password only once when supersecret credential is needed (at connection time eg)?
If none of the methods other posters have said work, this is what worked for me…
If you have gone into the vpn menu and set up a password and no longer want the password to lock your screen,
Go to “Settings-more-security” and tap “clear credentials”…after that you can go back into the “my device – lock screen” menu and change it to no password or swipe or whatever you want. Not sure what other credentials it clears besides the screen lock…Haven’t found anything else that it cleared in my case anyways…Hope this helps! This was done on a Samsung galaxy s4 running android 5.0.1
That is what I wrote back in 2014 Tyler, However, the newest version of OpenVPN no longer requires a password/lock.