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
Old
#1  
Petros_tigra's Avatar
Senior Member - OP
Thanks Meter 507
Posts: 296
Join Date: Feb 2009

 
DONATE TO ME
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.


Steps:

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
Old
#2  
Imranhakro's Avatar
Member
Thanks Meter 15
Posts: 43
Join Date: Mar 2013
Location: Karachi, Pakistan
How about doing the same in non-rooted phones?
 
Pyr0x64
Old
(Last edited by Pyr0x64; 3rd May 2013 at 04:22 PM.)
#3  
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
https://play.google.com/store/apps/d...om.did.vpnroot
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 ]
 
njellis
Old
#4  
Junior Member
Thanks Meter 0
Posts: 6
Join Date: Apr 2009
Quote:
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.
 
arunsankar
Old
#5  
Member
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:

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

Retired:
Motorola Atrix 2, JB leak
Sony Xperia Neo, stock ICS
 
s52id
Old
#6  
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!
 
bhalbower
Old
(Last edited by bhalbower; 27th April 2014 at 06:00 PM.)
#7  
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 ----------

Thanks!

Worked great.
 
Hirishiolo
Old
#8  
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
SAMSUNG GALAXY S PLUS (GT-i9001)
ROM: CyanogenMod 11 [ADC Team] - Release 12
KERNEL: K^Kernel 3.4.103 v2.8
GOVERNOR CPU: SmartassV2 (245 - 1401 MHz)
SCHEDULER I/O: Sio
BASEBAND: I9001BUKP7
 
XSLdesire
Old
#9  
Junior Member
Thanks Meter 0
Posts: 16
Join Date: Dec 2011
Thanks for the guide
 
hheelloo
Old
#10  
Member
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