Android Enthusiasts Stack Exchange is a question and answer site for enthusiasts and power users of the Android operating system. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have VPN connection on my Android tablet (Asus Transformer Prime) and it required me to set up a password protection for my tablet. I don't want to use any dummy passwords to open my tablet, so how can I disable that without deleting the VPN connection?

share|improve this question
really desperate for a solution to this too. I have a feeling it might be something that needs patching so root would be necessary. Having to unlock my phone is a ball ache, I'd rather have it just ask for a password when I connect to the VPN, typical, non-configurable bad defaults – Rob Oct 18 '12 at 10:11
Those finding this a nuisance should vote for the bug at to request a fully supported fix. Especially since the current workarounds are arguably security holes and might be "fixed", leaving us stuck. – Jon Hanna Jun 16 '14 at 10:13
up vote 5 down vote accepted

Found this, it's a hack but it works for on my galaxy nexus 2.1.2 Here's the steps:

  1. Set your lock screen security to what you want, slide/none
  2. Go to create VPN profile
  3. Create a pattern lock
  4. Setup VPN profile
  5. Lock device
  6. Unlock but input the wrong pattern until device locks for 30.
  7. Tap "Forgotten Pattern"
  8. Enter your google account details.
  9. Cancel the "Screen Security" page
  10. Now device will unlock without pattern requirement

Source: Connecting to VPN forces having secure screen lock

share|improve this answer
Awesome! Thanks! It worked on HTC One S, but my tablet doesn't seem to have option to reset the pattern in the lock screen...? – MikkoP Oct 19 '12 at 8:19
Sorry, it required the slide protection instead of pin :) – MikkoP Oct 19 '12 at 8:29

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:

adb shell
sqlite3 /data/system/locksettings.db
update locksettings set value=0 where name='lockscreen.password_type';

share|improve this answer
I did it directly on my (rooted) phone, using the same commands, in a terminal window, using the sqlite3 executable in my environment. If you don't have sqlite3 on your phone, see… You might also try copying the locksettings.db file to your PC and running sqlite3 there. Of course, you need write access to /data/system. Sigh. Let's just say that if you're rooted and have sqlite3 installed, this is the way to go. – Brent Baccala Apr 24 '13 at 4:53
On some devices this settings is in settings.db:… – basin Mar 21 '14 at 12:58
After set value=0 and reboot my VPN page says: "type the password for credential storage" – basin Mar 21 '14 at 13:03

Variant 1 - answer by kiiwii with locksettings.db

Variant 2 - settings.db, SYSTEM, lock_pattern_autolock

Variant 3 (when there's no lock_pattern_autolock in SYSTEM):







share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.