[Guide]How to remove security lock when using VPN

313 posts
Thanks Meter: 517
By Petros_tigra, Senior Member on 27th April 2013, 02:49 PM
Post Reply Subscribe to Thread Email Thread
Good Morning

I make this guide because i dint find any similar thread here..
When you set up a vpn connection Android system force you to create a pin or pattern security lock for lockscreen.This is for security reasons in case you lost your phone.But many users want to use VPN without security lock.
In this guide I will describe how to remove security lock when using VPN.

This guide will work on any GN2 Rom and also in all other android phones

What you will need:
1)Rooted Phone
2)Root explorer or any other file editor
3)Sqlite Editor or Sqlite Manager

Before you proceed make sure you make a nandroid backup.Im not responsible for any damage.


1)First of all configure your VPN Connection

2)Open your file Explorer and browse /data/system/locksettings.db

3)Open it with sqlite editor and choose locksettings

4)Choose lockscreen.password.type and press "Edit record" button.

5)Change 131072 value to 0 (131072 may differ from security type)
The result must be this:

6)Thats it
It must be applied without reboot

PS:If you want to restore it do the same steps and make "0" value to "131072"
The Following 17 Users Say Thank You to Petros_tigra For This Useful Post: [ View ]
3rd May 2013, 02:21 PM |#2  
Imranhakro's Avatar
Senior Member
Flag Karachi, Pakistan
Thanks Meter: 21
How about doing the same in non-rooted phones?
3rd May 2013, 05:19 PM |#3  
Pyr0x64's Avatar
Senior Member
Flag Merseyside
Thanks Meter: 68
Thanks for the guide
I was looking for a solution to the lockscreen security the other day while setting up a VPN to my home PC
Another alternative for rooted users not wanting to edit the sqlite db is to use something like the VPN Root app
Last edited by Pyr0x64; 3rd May 2013 at 05:22 PM.
The Following User Says Thank You to Pyr0x64 For This Useful Post: [ View ]
3rd May 2013, 05:45 PM |#4  
Junior Member
Thanks Meter: 0
Originally Posted by Imranhakro

How about doing the same in non-rooted phones?

As far as I know, you cannot modify these secure, locked down settings on a phone that isn't rooted.
10th February 2014, 06:49 AM |#5  
Flag Kochi
Thanks Meter: 20
Works like a charm! Good guide. Now I can set up my work/home VPN without any enforced screen lock
18th April 2014, 12:30 PM |#6  
Junior Member
Thanks Meter: 0
The same issue - how to remove forced lock screen on Galaxy S5?
It's extremely annoying and stupid I need to use PIN instead fingerprint sensor which is the Galaxy s5's main feature when I have my VPN set up. Please somebody tell us how to get rid of forced lock on GS5. Thank you!
27th April 2014, 07:17 PM |#7  
bhalbower's Avatar
Senior Member
Thanks Meter: 94
Can't get this to work in Kitkat. SQLite Database Editor can't open locksettings.db. Any ideas?

Edit: Disregard. I think I am using the wrong program. Have to download SQLite Editor not SQLite Database.

---------- Post added at 10:17 AM ---------- Previous post was at 09:56 AM ----------


Worked great.
Last edited by bhalbower; 27th April 2014 at 07:00 PM.
26th May 2014, 07:12 PM |#8  
Hirishiolo's Avatar
Senior Member
Thanks Meter: 45
the method works, but after I reboot, when I enter VPN screen is aks me for "password for credential storage"... how can I solve? thanks in advance
27th May 2014, 10:53 AM |#9  
Thanks Meter: 3
Thanks for the guide
27th May 2014, 09:58 PM |#10  
Thanks Meter: 7
Not work on kitkat, value is 0 but security lock is...

Tapnięte z mojego S Advance
17th August 2014, 04:04 PM |#11  
Flag Constanta
Thanks Meter: 5
In 4.4 there is no such file
.. any ideas?

Read More
Post Reply Subscribe to Thread

Guest Quick Reply (no urls or BBcode)
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes