CAN Pattern Unlock TWRP. CAN'T Pattern Unlock Phone

¿GotJazz?

Senior Member
Oct 9, 2006
787
167
0
I temporarily tried going back to a Factory Reset configuration with my OP3T.

When I was done, I restored my configuration with a TWRP backup that I made earlier this evening.

While it looks like the restore came back OK (I can see my normal lockscreen wallpaper), the phone says my unlock pattern is incorrect. However, I can still unlock TWRP fine.

Is there an easy fix? Are there files I might have backed up previously for the phone's lock pattern?

Thanks,

¿GJ?
 

Azaruddin

Senior Member
Apr 26, 2014
129
61
0
Chennai
I temporarily tried going back to a Factory Reset configuration with my OP3T.

When I was done, I restored my configuration with a TWRP backup that I made earlier this evening.

While it looks like the restore came back OK (I can see my normal lockscreen wallpaper), the phone says my unlock pattern is incorrect. However, I can still unlock TWRP fine.

Is there an easy fix? Are there files I might have backed up previously for the phone's lock pattern?

Thanks,

¿GJ?
Simply boot into TWRP and draw your pattern (if you've set one) to decrypt the storage.
Delete (or rename) the following files inside /data/system (note that probably not all of them exist for you, simply delete those you can find):
gatekeeper.password.key
gatekeeper.pattern.key
locksettings.db-wal
locksettings.db-shm
locksettings.db
Reboot the phone and draw your pattern to decrypt the storage one more time. After that you can simply unlock your phone with a swipe.
Go into Settings > Security and set your preferred unlock method again, Android will ask you if you want to set a boot-time code too.

Enojy yous 3T
 
Feb 18, 2019
49
4
0
failed to decrypt my own data

thanks for this, i have bookmarkted this. Found my 3x3 pattern should be very easy number combination of a simple letter as pattern unlock. I have tried:

PHP:
1	2	3
4	5	6
7	8	9
but failed. i guessed it to maybe in numlock style

PHP:
7	8	9
4	5	6
1	2	3
failed to decrypt data

im running recovery twrp 3.2.3.0, well maybe im in wrong thread, because no owner of o_OnePlus 3T

tried entering into both, twrp terminal and twrp password prompt. out of luck for now
 
Last edited:

BillGoss

Senior Member
Sep 2, 2010
4,427
3,740
253
Sydney
...

im running recovery twrp 3.2.3.0, well maybe im in wrong thread, because no owner of o_OnePlus 3T

tried entering into both, twrp terminal and twrp password prompt. out of luck for now
I've never used this method as I've always used passwords or pins.

By the way, TWRP is asking for the decryption password, not the lock screen password (which can be different). When you set your pattern did you also specify for it to be used for secure startup? Does your phone ask for the pattern when it boots up or only on the lock screen?

Sent from my OnePlus 3T using XDA Labs
 
Feb 18, 2019
49
4
0
It is boot up pattern locked only. when booted. it used to require pattern unlock always.
afterwards i can choose to unlock by both, pattern or fingerprint.
So, basically i have no knowledge about any "decryption password" that encrypts my whole data Partition. that TWRP is asking for. it was worth to give a try to guess it by the pattern password by number table.

i was used to use password for boot on a older phone too. while restarting phone more often , got lazy and only set pattern & fingerprint on this actually. now i feel bad about this decision.
 

BillGoss

Senior Member
Sep 2, 2010
4,427
3,740
253
Sydney
It is boot up pattern locked only. when booted. it used to require pattern unlock always.
afterwards i can choose to unlock by both, pattern or fingerprint.
So, basically i have no knowledge about any "decryption password" that encrypts my whole data Partition. that TWRP is asking for. it was worth to give a try to guess it by the pattern password by number table.

i was used to use password for boot on a older phone too. while restarting phone more often , got lazy and only set pattern & fingerprint on this actually. now i feel bad about this decision.
Well, if you can boot into the system, then you could change to a password and set it for secure boot and then use it as the password to get into TWRP.

Sent from my OnePlus 3T using XDA Labs
 
Last edited: