Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,811,290 Members 46,470 Now Online
XDA Developers Android and Mobile Development Forum

[Guide]How to remove security lock when using VPN

Tip us?
Petros_tigra's Avatar
Senior Member - OP
Thanks Meter 507
Posts: 296
Join Date: Feb 2009

Default [Guide]How to remove security lock when using VPN

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 16 Users Say Thank You to Petros_tigra For This Useful Post: [ Click to Expand ]
Imranhakro's Avatar
Thanks Meter 15
Posts: 43
Join Date: Mar 2013
Location: Karachi, Pakistan
How about doing the same in non-rooted phones?
(Last edited by Pyr0x64; 3rd May 2013 at 04:22 PM.)
Pyr0x64's Avatar
Senior Member
Thanks Meter 68
Posts: 607
Join Date: Mar 2010
Location: Merseyside
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
Phone: HTC ONE (M8) S-OFF
Phone2: HTC Evo 3D - Stock
Tablet: Asus Transformer Prime TF201
Tablet2: Advent Vega running HoneyIce
Provider: O2 (4G) & T-Mobile UK (3G)
The Following User Says Thank You to Pyr0x64 For This Useful Post: [ Click to Expand ]
Junior Member
Thanks Meter 0
Posts: 6
Join Date: Apr 2009
Originally Posted by Imranhakro View Post
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.
Thanks Meter 20
Posts: 94
Join Date: Nov 2011
Location: Kochi
Works like a charm! Good guide. Now I can set up my work/home VPN without any enforced screen lock
My world of Android:

Samsung galaxy Note 2 N7100, Stock Unrooted 4.1.2
Samsung P3100, stock Unrooted 4.1.2
Motorola Defy, WIUI

Motorola Atrix 2, JB leak
Sony Xperia Neo, stock ICS
Junior Member
Thanks Meter 0
Posts: 3
Join Date: Apr 2014
Default 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!
(Last edited by bhalbower; 27th April 2014 at 06:00 PM.)
bhalbower's Avatar
Senior Member
Thanks Meter 57
Posts: 256
Join Date: 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.
Hirishiolo's Avatar
Senior Member
Thanks Meter 28
Posts: 227
Join Date: 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
ROM: CyanogenMod 11 [ADC Team] - Release 12
KERNEL: K^Kernel 3.4.103 v2.8
GOVERNOR CPU: SmartassV2 (245 - 1401 MHz)
Junior Member
Thanks Meter 0
Posts: 16
Join Date: Dec 2011
Thanks for the guide
Thanks Meter 7
Posts: 92
Join Date: Sep 2013
Not work on kitkat, value is 0 but security lock is...

Tapnięte z mojego S Advance

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Stream Your Media Files with the New Version of Droid Sync Manager

Android is a Linux-based operating system, but this fact doesn’t put … more

Old but Gold Internet Browser is a Blast from the Past

A Web browser is one of these applications that we can’t live without. We useit … more

Real-World Battery Saving Tips for Android – XDA Developer TV

You need Real-World Battery Saving Tips for your Android device. Our … more

Android L Will Have Data Encryption Turned On by Default

Android L, once it is eventually released, will featuredata encryption turned on by … more