[GUIDE][TWRP-zip] Remove all locksettings from lockscreen

Search This thread

raystef66

Recognized Developer / Recognized Contributor
Jul 2, 2013
2,810
13,207
Belgium
ZTE Axon 7
Xiaomi Mi 9
This is mostly common knowlegde by many users and already explained in another topic but in the last couple of days i needed to help some guys with a lockscreen problem like wrong PIN, pattern or password for whatever reason it started.
Instead of deleting some files I made a small flashable zip which can be held on your extSD in case something might go wrong in future ;)

Normally with deleting in twrp file manager : /data/system/locksettings.db you would be good to go.

In other cases you might need to delete :

/data/system/gatekeeper.password.key
/data/system/gatekeeper.patern.key
/data/system/locksettings.db
/data/system/locksettings.db-shm
/data/system/locksettings.db-wal

Anyway, just flash this zip : A2017X_remove _all_ locksettings NEW VERSION due to typo - thnx @dnlilas

......and password, pattern and pin will be removed :good:

Btw, if you have FP + pin, pattern or password and apply this zip, only the FP remain. Pin, pattern or password are gone.

Tested on G version. Should work on U/CN too although in some cases it had no effect. Just try and see ;)
 
Last edited:

rogeliomalpa

Senior Member
Mar 31, 2015
62
8
Thanks. It worked on a Note 3 SM-N900P i was unlocking for a customer. Lucky me i was able to install TWRP and it didn't force me to do a factory reset so i could avoid resetting it from recovery menu thus triggering on the Samsung lock status. I guess security on those days was none to zero. I feel confident that the route i took to remove the pattern is not available on newer phones/ android versions.
 

dnlilas

Senior Member
Dec 27, 2010
416
74
@raystef66

Just for information: there is a typo in updater-script:
delete("/data/system/gatekeeper.patern.key");
instead of:
delete("/data/system/gatekeeper.pattern.key");
 
  • Like
Reactions: raystef66

garminx

New member
Dec 24, 2020
3
0
hello community ,
Do I need Twrp in phone ?When I want use the script ?
How to use this script ? I must rebulid fota and paste script ?
best regards .
 

hammadhkr

New member
Jun 21, 2023
1
0
My phone is stuck in "phone is starting" screen, i can open settings app from the quick settings but i cant open any apps from the settings :(

Nokia 7.1
Havoc-OS Android 10
Removed PIN
 

Top Liked Posts

  • There are no posts matching your filters.
  • 21
    This is mostly common knowlegde by many users and already explained in another topic but in the last couple of days i needed to help some guys with a lockscreen problem like wrong PIN, pattern or password for whatever reason it started.
    Instead of deleting some files I made a small flashable zip which can be held on your extSD in case something might go wrong in future ;)

    Normally with deleting in twrp file manager : /data/system/locksettings.db you would be good to go.

    In other cases you might need to delete :

    /data/system/gatekeeper.password.key
    /data/system/gatekeeper.patern.key
    /data/system/locksettings.db
    /data/system/locksettings.db-shm
    /data/system/locksettings.db-wal

    Anyway, just flash this zip : A2017X_remove _all_ locksettings NEW VERSION due to typo - thnx @dnlilas

    ......and password, pattern and pin will be removed :good:

    Btw, if you have FP + pin, pattern or password and apply this zip, only the FP remain. Pin, pattern or password are gone.

    Tested on G version. Should work on U/CN too although in some cases it had no effect. Just try and see ;)
    1
    @raystef66

    Just for information: there is a typo in updater-script:
    delete("/data/system/gatekeeper.patern.key");
    instead of:
    delete("/data/system/gatekeeper.pattern.key");
    1
    @raystef66

    Just for information: there is a typo in updater-script:
    delete("/data/system/gatekeeper.patern.key");
    instead of:
    delete("/data/system/gatekeeper.pattern.key");
    Good find ! Indeed there is ;)

    A2017X_remove+_all_+locksettings