After moving gatekeeper.pattern.key to unlock, Settings>Security keeps crashing

by Nicolas Raoul   Last Updated July 27, 2018 04:11 AM

Context: I forgot my unlock pattern, so I used TWRP and ADB to move gatekeeper.password.key and gatekeeper.pattern.key to /sdcard, so now I am able to use my phone again :-)

Problem: I want to set a new pattern, but whenever I go to Settings>Security and press Screen lock, it crashes:

enter image description here

How to solve the problem?

I am afraid that if I move the files back the situation will get even worse, or at best it will ask me for the pattern that I still can't remember.

Android 7.1.2 LineageOS

Answers 1

  1. In a web browser (on any device), log into Gmail with the account you used when setting up your phone.
  2. Go to
  3. Press "Lock your phone"
  4. Enter "abcd"
  5. Your phone's screen is now locked. Unlock it with "abcd"
  6. You can now change your screen lock.

enter image description here

Nicolas Raoul
Nicolas Raoul
July 27, 2018 06:54 AM

Related Questions

remove the "LOCK pin" / app crashes

Updated January 28, 2018 07:11 AM

Locking the Android UI

Updated February 26, 2019 12:11 PM

Locked Nexus 7 - no forgotten password option

Updated April 19, 2015 21:04 PM

How can I make my lockout time stack?

Updated April 04, 2017 12:11 PM