OnePlus 2 Announced: Specs, Price and Details

The OnePlus 2 has just had its Virtual Reality Launch event, and at the XDA Office we all … more

A Helpful Guide to Music Streaming Services

With the launch of Apple Music, music streaming services have recently gained a lot of … more

An Inside Look at the Redesign of Business Calendar

The much-acclaimed calendar app, Business Calendar, underwent a major design … more

New Android One Device Dead On Arrival

Today, Google announced the second generation of Android One devices, with the new Lava Pixel … more

[Guide]How to remove security lock when using VPN

305 posts
Thanks Meter: 510
By Petros_tigra, Senior Member on 27th April 2013, 01: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, 01:21 PM |#2  
Imranhakro's Avatar
Flag Karachi, Pakistan
Thanks Meter: 20
How about doing the same in non-rooted phones?
3rd May 2013, 04: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 04:22 PM.
The Following User Says Thank You to Pyr0x64 For This Useful Post: [ View ]
3rd May 2013, 04: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, 05: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, 11:30 AM |#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, 06: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 06:00 PM.
26th May 2014, 06:12 PM |#8  
Hirishiolo's Avatar
Senior Member
Thanks Meter: 44
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, 09:53 AM |#9  
Thanks Meter: 1
Thanks for the guide
27th May 2014, 08: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, 03: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
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes