[GUIDE][HOW-TO] Use VPN in Jellybean without security lock

shauder

Senior Member
Sep 27, 2010
166
29
0
I am not responsible for anything that may come of or from this information. Use at your own risk!

Step #1)
Create security lock through Settings (pattern, pin, password).

Step #2)
Add VPN connections

Step #3)
Plug the phone in and run these commands (requires adb to be setup properly and drivers). I am sure there is a way to do this directly on the phone but this is easier for me.

Commands to remove security:
Code:
adb shell
sqlite3 /data/system/locksettings.db
update locksettings set value=0 where name='lockscreen.password_type';
.exit
exit
Finished!
For me no reboot was required and you do not have to restore pattern in order to create more VPN connections.

Optional Step:
If you decide that you want to restore the security run the one that fits you.

Commands to restore pattern:
Code:
adb shell
sqlite3 /data/system/locksettings.db
update locksettings set value=65536 where name='lockscreen.password_type';
.exit
exit
Commands to restore pin:
Code:
adb shell
sqlite3 /data/system/locksettings.db
update locksettings set value=131072 where name='lockscreen.password_type';
.exit
exit
Commands to restore password:
Code:
adb shell
sqlite3 /data/system/locksettings.db
update locksettings set value=262144 where name='lockscreen.password_type';
.exit
exit
 
Last edited:

shauder

Senior Member
Sep 27, 2010
166
29
0
When I restart my phone, it needs a password to access VPN menu. what should I do? I don't want to run these commands every time I restart my phone. any solutions?
Hmm did notice that before I will see whats up with that,
does it work with exchange password policy as well?

Sent from my GT-I9300 using xda app-developers app
I am not sure but I would imagine so. I would try with pattern lock and not PIN or Password.
 
Last edited:

sorset

Senior Member
Jun 14, 2011
96
63
0
Says that "sqlite3: not found" ....
I justd used Forget password option and entered pin , then i didnt choose any options , and the pattern removed :)
 
Last edited:

Bingley

Senior Member
Jan 6, 2011
1,035
167
93
Netherfield
Just tried this. Added vpn, removed lock pattern. It went back to slide, worked fine.
Rebooted, not visiting VPN settings it's asking me to enter credential storage...any ideas how I can a) get past this without wiping my wifi/vpns, or b) remove this but keep my vpns and slide lock?
 
Last edited:

cc546

New member
Oct 12, 2020
0
24
0
Doesn't work. Apparently it's problem with sqlite.

soinfo_relocate(linker.cpp:1013): cannot locate symbol "sqlite3_enable_load_extension" referenced by "sqlite3"...CANNOT LINK EXECUTABLE

Any help please?
 

Sizzlechest

Senior Member
Dec 18, 2010
1,107
189
83
Use Script Manager to make this done on every boot.

1. Make this a batch file:

Code:
#!/system/bin/sh 

echo "update locksettings set value=0 where name='lockscreen.password_type';" | sqlite3 /data/system/locksettings.db
and save it to your sdcard

2. Use Script Manager to run it on boot and enable su (root).

3. Test it by running it from script manager and see if it runs correctly. You can try enabling PIN and it should be disabled after running this.

4. Final test: reboot your phone and see if PIN/password is disabled.

Keep in mind this gets executed after everything else, so if you try to wake your phone right away, you might still see the PIN prompt.

Another way without script manager:

1. Make this a batch file:

Code:
#!/system/bin/sh 

echo "update locksettings set value=0 where name='lockscreen.password_type';" | sqlite3 /data/system/locksettings.db
and save it to your sdcard as 99pinremove

2. Run the following using adb:

Code:
adb shell
su
mount -o remount rw /system
cp /sdcard/99pinremove /etc/init.d/99pinremove
chmod 755 /etc/init.d/99pinremove
chown root:shell /etc/init.d/99pinremove
exit
exit
 
Last edited: