MWC 2015: What Are Your Predictions?


Best Apps To View RAW Images On Android


Note 4 Apps for Note 3 and How to Get More


CyanogenMod 12 for HTC Desire 601

Post Reply

[Guide]How to remove security lock when using VPN

OP Petros_tigra

27th April 2013, 02:49 PM   |  #1  
Petros_tigra's Avatar
OP Senior Member
Thanks Meter: 509
304 posts
Join Date:Joined: Feb 2009
Donate to Me
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
Flag Karachi, Pakistan
Thanks Meter: 18
73 posts
Join Date:Joined: Mar 2013
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
607 posts
Join Date:Joined: Mar 2010
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
6 posts
Join Date:Joined: Apr 2009
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
94 posts
Join Date:Joined: Nov 2011
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
3 posts
Join Date:Joined: Apr 2014
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: 84
324 posts
Join Date:Joined: Oct 2010
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: 41
262 posts
Join Date:Joined: Jun 2012
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  
Junior Member
Thanks Meter: 0
22 posts
Join Date:Joined: Dec 2011
Thanks for the guide
27th May 2014, 09:58 PM   |  #10  
Thanks Meter: 7
92 posts
Join Date:Joined: Sep 2013
Not work on kitkat, value is 0 but security lock is...

Tapnięte z mojego S Advance

Post Reply Subscribe to Thread
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes