yashsingh1/xdaforums huggingface dataset:
[Android General] wawagod:
I followed the instructions and i still cant decrypt when i delete the the locksettings.db.locksettings.db-shm.locksettings.db-wal.( i dont have any .key files under data/system) and reboot the previous unlock code is gone and i can swipe up to get in but the phone gets stuck at "phone is starting" and wont progress i can enter the setting menu,pull down notifications etc but even if i do that i still get no where please help id hate to think i spent money on a phone that cant fully use lineageos due to twrp errors. im running pie on mi mix 2s latest lineageos.

Would re flashing a diffrent recovery fix things?
[Android General] jhedfors:
This was my same experience. Are you on Android 9.0? I think this method last worked for me when I was on 8.1.

Have you tried reflashing the system partition? Not sure if that will get you going or not....

I don't think it has anything so do with recovery, but....
[Android General] wawagod:
Not too sure on how to do that i am quite a novice you see lol.

It seems like this is an ongoing issue. has anyone notified the devs on github about these issues? i know we cant be the only ones dealing with this. h
[Android General] jhedfors:
This is a hack, so there is nothing to fix. ?

Are you on Android 9.0? If so, I assume this hack does not work anymore (at least no one has confirmed it in this thread).

You will want to inquire in your device forum for assistance getting your device working.
[Android General] ReMadza:
in pie wont work!

after wiping system and re installing the rom still the pin/password/pattern exist!
[Android General] christoophat:
Thanks, needed this after trying out Outlook on my V30 (Oreo) to get work emails, deciding naaaahhh, uninstalling it thinking I could go back to having no PIN number hassles.

This worked a teat.
[Android General] Wolfillete:
I tried on a G920F (S6) and got a bootloop once I flashed TWRP... It's on android 7.0
[Android General] Rishabh.verma18:
This method is working in Havoc Os 2.9 . Just delete the file locksetting.db and and reboot . Your password or pin will reset
[Android General] Nowbie:
Thank you! working on SuperiorOS 9.0 too.
[Android General] Northgical:
HOLY **** IT TOOK ME 2 HOURS AND FIND NO METHOD (at that point Rooting and TWRP doesn't come in my mind) BUT THEN I FOUND THIS METHOD. THANK YOU!!
[Android General] Neelakanta tech:
[Q] Lockscreen Pattern ,PIN and Password not working!

My device is Realme 3 pro, Today I have rooted my phone by installing TWRP, and Flashed Magisk,then I came to know that,when I kept a pattern and I tried to unlock it's showing incorrect everytime.....

I bypassed pattern lock by using one flashable twrp zip,then again I kept lock,again showing incorrect.....

Please somebody help me....
[Android General] TioCareca:
Read 1st post and try manual way...
[Android General] Neelakanta tech:
I didnt wiped any system to bypass pattern,I just flashed a file which removes screen lock just by deleting locksettings.db and related files.....

My problem is when I kept lock,it shows incorrect everytime,even I entered correctone.

Is there anyway to read a pattern by ADB commands or any method?
[Android General] TioCareca:
So after you boot without a lock if put a lock again it doesn't work?
[Android General] Neelakanta tech:
Yes Tio, when I kept pattern or pin or any,it reads perfectly,but when I tried to unlock,it won't unlocks,always shows incorrect even with correct one also. I don't know why this happened......

BTW anyway to read a lock of my rooted android to see that if it unlocks? As of now,I removed all lock by deleting locksettings.db,and I didn't kept any lock still.....

Should I want to replace any files from stock firmware?

---------- Post added at 01:09 PM ---------- Previous post was at 12:42 PM ----------

In simple words,my android is not accepting even the correct lock.

Is there any way to read what else the lock ? Or is there any way to set a lock by using ADB shell?
[Android General] TioCareca:
If you using custom rom maybe rom problem, if using stock I don't know what could have happened, maybe trying to start clean (flash stock rom clean)
[Android General] zahra_95:
thank you so much... you are the best :)
[Android General] ischninet:
additionally:

I have to do this whole **** every time I want to restore an encrypted nandroid backup from my FIRST moto z to my SECOND moto z manually (after entering the correct decryption password in TWRP). It works on Android 9! Additionally I have to remove the fingerprint, when doing the above szenario

So I fave to delete the following as well:

/data/fpc/

/data/system/users/0/fpdata/ (0 stands for the user, 0 is standard)

/data/system/users/0/settings_fingerprint.xml (0 stands for the user, 0 is standard)

Works....

Rainer
[Android General] mdtareqabdullah:
How

where i find this options in orangefox recovery?
[Android General] Mohanvengat:
Will it work even if we forget pin ?( original rom,not restored rom)
[Android General] Xenon223:
Can't add new passoword (pin/password/pattern)

it's work at first , and password already removed , but i cannot add new password its says "password already changed please try again" i dint understand at all so what should i do now???

i'm using nexus 6p, with android 10
[Android General] archz2:
Hi five man. I lost my data. Got encrypted with unknown password (oneplus 5t running oxygen os 9.0.10 on pie 9.0) after deleting the mentioned files in the first post.
[Android General] Solace50:
This method is dependent on a few factors,

If the device is encrypted you will not be able to read the data without it being decrypted. If you are using a newer device such as a pixel 3 that has a security chip the lockscreen/boot sequence has been offloaded to the chip as well. I have not verified if the OEM unlock also negates the fact the module that handles your lock screen would be accessible as it is its own entity.
[Android General] nespresiii9999:
Answer

Yes
[Android General] mojo_ojoj:
It didn't work for me and on data/system folder, there are only 3 folders. 2 for the key folders and 1 locksetting folder. Deleted all three folders and still getting the password at lockscreen. I guess I need to do a clean format..
[Android General] Borceb:
Hi. Noob here.

I'm locked out of my pixel 5. Can anyone assist with how to:

- Install TWRP and;

- Does the OEM unlock need to be on for this method to work?

Thank you
[Android General] Evengard:
Thank you, this works in 2020, except that I didn't had any gatekeeper files. Removing the lockscreen one helped.
[Android General] Borceb:
Hi. Any chance you could give me a hand. I'm learning how to do this but a little stuck.
[Android General] infomedia0:
Thank you worked on as aa charm.

PS : All files are often not present, just delete whatever you see in the list.
[Android General] hillg001:
YOU ARE the man.

.
[Android General] Black Brain:
Thank you soo much this worked flawlessly

Although I could only find a single file name and nothing else , I still deleted it in good faith and it worked like a charm. Thank you soo much. You saved soo much time and brainstorming!!

We need people like you on this forum.
[Android General] Terrybrown:
It works amazing

Bypass removed without any problem.Thanks for this tutorial.
[Android General] wiggypier:
back up loop error after trying these steps

Hi, i tried to go twrp and remove the files with key extention and others with lock and restarted phone and it got stuck on phone is getting ready loop so i tried to factory reset the phone and i was able to start the process of setting up the phone but not it is stuck on this part, after i set up the language and just before setting up google account so i would appreciate any advice.
[Android General] cocoon500:
Great

great solution just made my life easy
[Android General] Cruzer-:
You save my ass dude.. big thanks
[Android General] demenicis:
worked perfectly, on axon 7 mini with android 7.1. MASSIVE THANKS

Problem is, any idiot can get into our phones if twrp is installed!!!!!!!

and if it isn't, but usb debug is on, then again, totally unprotected........

i've been playing with android for years and never realised such obvious danger........

but since google REMOVED the ability to unlock phones from "find my device" or even from your google account on a PC, if I didn't have twrp installed I'd be screwed now.

BIG THANKS GOOGLE!!!
[Android General] Newby75:
Great! Thank you! You just saved me from another sleepless night!

I was being careful and just renamed them to *.archive instead of deleting them. Works just fine.

Cheers!
[Android General] Js Dh:
Look here

NOTE :

If you don't have these :

password.key

pattern.key

locksettings.db-shm

locksettings.db-wal

And only have

locksettings.db

Just delete locksettings.db then and reboot, it will work without any problems!
[Android General] SYS113:
Repetitive but interesting

It's a pity that it doesn't work on high Android version phones ...

thanks
[Android General] TioCareca:
For me had worked even in Android 10
[Android General] SYS113:
It was very interesting!

What is your device model?
[Android General] TioCareca:
Pocophone f1
[Android General] panetesan2k6:
Hi, I'm very insterested in this as my father locked himself out of his phone by forgetting the pin of his Huawei P20 Lite...

Is it posible to install TWRP in a phone that is completely stock? I mean, Emui bootloader, and no USB debugging enabled at all? He would hard reset the phone but doesn't want to lose all the stuff in it.

Thanks in advance.
[Android General] BZ0RG:
No you can't because you need to unlock the bootloader, which also means that a reset will be performed.

I would have advised to use ADB but you can't as you don't have debugging enable.

I don't know much Huawei but maybe there is a way to dirty flash the system? Otherwise full reset will be the only way unless you have another way to log in than the pin...
[Android General] monicaONxda:
I agree, it highly depends on your stock rom and device - you can check the files of your rom via adb , e.g. in Android 10 on a Galaxy Note 10 device, there is no "gatekeeper.password.key, gatekeeper.pattern.key, only locksettings.db, locksettings.db-shm, locksettings.db-wal. I doubt if I remove all *.keys and the locksettings databases that it works without issues, and if so, then you might still be stuck with an encrypted userdata (data/data ) partition...

B.t.w. I just found out, that the userdata (data/data ) partition is UNENCRYPTED and fully readable when viewed with an ADB viewer from my PC , although the device is in lockscreen mode / locked! How is that possible? Someone experienced that? It happens not immediately after reboot before the first unlock! After the device has been unlocked, accessed via ADB and re-locked (but not rebooted) it is (still) unencrypted, even on another PC!!!

Is that a security leak already known? Can it be fixed?
[Android General] mr_tanvir:
thank you bro.. it worked on all rom

thank you bro.. it worked on all rom:o
[Android General] domi994:
Hahahaha yes it works just did it today

This will work only if you have rooted your phone previously

Amazing it save me a wipe of all

to get to the TWRP for me in this case was an LG aristo

have to press vol - and power when you see the logo quick release and press power again

you get to the wipe data menu click yes.. it won't wipe anything will take u to the TWRP menu

thanks a lot [MENTION=6782742]adithyan25[/MENTION]
[Android General] blackxmafia:
Tested on xiaomi mi max 3 running gsi android 10.

Working ? thank you for this
[Android General] luckysoul777:
Deleting locksettings.db certainly bailed me out when I wasn't able to unlock my phone even with a correct pin. However, I must also ask myself then how we can secure our phones. In the wrong hand, a thief can delete this file too to unlock!

Others have mentioned the key is to get into TWRP and therefore, one can simply put a password on TWRP. Sorry, I went through the settings of TWRP, but I couldn't find a place where I can set a password for it! If this is about Secure Startup, that is device/ ROM dependent. I have a Samsung S4 on stock ROM and can't figure out how to do it. If anyone knows, please share.

Now my last problem is I simply can't set a PIN anymore! It always complains incorrect and that takes me back to square one to delete the locksettings.db. I know it is likely related to a dirty flash (After dropping in a circuit board for GT-I9505 to replace the dead one for SGH-I337M, I wiped clean my phone and Odin'ed stock ROM for GT-I9505. Then I restored my old DATA partition from my TWRP backup, created when the phone was still an SGH-I337M, because reinstalling everything is imply too painful with 100+ apps. GT-I9505 and SGH-I337M are different variants of S4. The main circuit boards are supposed to be interchangeable, but I am sure Samsung has burned some codes to them to differentiate the 2. For example, when I tried to Odin I337M ROM to an I9505 board, it would be rejected even though both boards have unlocked bootloaders). Is there any way to set a PIN after a dirty flash?

[Update Oct 25th, 2020: I am able to set a PIN and my phone doesn't reject it as incorrect anymore! Go to settings -> Security -> Clear credentials to wipe out whatever the old junks are! I assume you only need to do this if you dirty flashed as I did.]
[Android General] latouffe:
How can you protect against it? LEt's assume I lost my rooted phone. Anyone can delete this file then?

Anyway to protect my phone?

Thank you
[Android General] lulli1:
Yes! Flash official OOS and close bootloader. Disable usb debugging and you should be safe. Back in 2018 but safe :cowboy:
[Android General] yoyo-went:
Hi, I am using Orange fox recovery, then do this manipulation also, or go? Thank you
[Android General] TioCareca:
had you try that? last time i locked bootloader with custom rom, phone get bricked...
[Android General] lulli1:
That's why I wrote "official OOS"
[Android General] TioCareca:
sorry misread it... you right ?
[Android General] hackermarinos:
thanks worked well with sgh t999 .

i used twrp 2.6.3.1-d2tmo.tar and found 3 files.key
[Android General] Daessa:
I wonder if someone could help me. Xiaomi Mi Mix2, android 9. I got a bug with fingerprint installing a gsi port. I failed to log in and decided to delete files locksettings.db, locksettings.db-wal, locksettings.db-shm. I've did it once already and it worked OK, so I deleted them in recovery mode. The system booted, but it's impossible to create neither new pattern key nor pin or password - it shows up "system do not respond" after a while and the screen turns black, and only reboot helps. Clean flash (wiped everything, even the internal storage) didn't help. Restoring from backup didn't help. Tried TWRP and Orange Fox. Pls if any ideas, I appreciate any help.
[Android General] DenisCerri:
Hi. This method worked flawlessly but now the option of hiding the pattern doesnt work anymore. The pattern stays visible no matter what i have switched to

Android 7.1.1
[Android General] Micha_Btz:
Are there some tips for android 11, there are no files like pattern or password under /data/system.

Only the file locksettings.db is there and remove this only doesn't work. :-(
[Android General] 2_i:
I had to go back to an old phone with Android 7.1.1 and already got into the third day of trying different lock patterns to open. I only remembered that the pattern was completely trivial :rolleyes:. This method saved my sanity. Thank you, thank you!
[Android General] ipernexus:
Hi.

I have a huawei p10 lite with a pin when start the phone, we dont remember this, but remember all the account Google and huawei password, If we put the sim, mobile data are enabled.

What I can try to do for remove this PIN without lost any file?

Is possible to put recovery without unlock the phone? Like using Linux o something similar? The debug mode is not enabled.
[Android General] Uluru25:
Worked even on Android 10!

Redmi Note 8T, Custom ROM "MSM Xtended XQ13"

Faced the described issue after an unsuccessful restore from TWRP. :(

Found not all of the mentioned files from OP but then renamed the three files to xxx.old, rebooted and could access again my data. I redefined my password, deleted and redefined the fingerprint and everything seems fine even after a reboot. The system re-created the db-file (see enclosed).

God bless you for that thread!
[Android General] ChevoC:
Thank you, you save my phone!
[Android General] #Rooty_Mikes#:
Here is a flash file that you can flash with TWRP that removes lock screen easy
[Android General] Borceb:
Hi. How can I use this? I'd there a guide on how to apply this flash. I haven't done this before and bit of a amateur. If you can offer help I'm happy to pay you. I need access to my old device that I've locked myself out of
[Android General] #Rooty_Mikes#:
Its just a simple universal lock bypass flash that can be applied in TWRP with no special instructions. When you reboot the lock screen will be gone. As long as you know the button combo to boot recovery your good
[Android General] Borceb:
I don't have TWRP installed and I never rooted my phone. Is there any hope?
[Android General] #Rooty_Mikes#:
Maybe, did you by any chance have the development menu unlocked and USB Debugging enabled before it was rebooted?

I have a program for microsoft windows that im pretty sure will unlock it if you feel like trying it. Just trying everything i can think of so you dont have data loss. Send me your email and ill send you a google drive link with a .exe tool
[Android General] Borceb:
I'll have to check re the dev menu and usb debugging mode. Will let you know but I doubt it. It was a stock phone that I never modified.

I'll send you a PM with my email. Thank you so much. If you help me access my phone without losing data I will pay you handsomely my friend
[Android General] #Rooty_Mikes#:
Just glad to help when i can on XDA, good group of men on here with unlimited knowledge...besides I didnt learn this stuff to keep it all to my self lol
[Android General] Magneto888:
Thanks your brother!!! I will try it
[Android General] BekaDee:
I am in the same boat as this person. May I have that .exe tool as well? been trying everything with no such luck sofar but really need some of the data off my phone. It would be greatly appreciated! Thanks.
[Android General] bubbablacksmith:
Thanks OP!

Found my old Samsung Galaxy Tab 4 in my closer after years of not using it. Decided to charge it up to play with it only to find it was locked to a pattern!

Came across this thread via Google and it was EXACTLY what I needed.

I already had TWRP installed from back then, so it was perfect. Just booted into recovery, deleted those files and voila, no more pass code and I am in!

I really didn't want to factory reset everything as I was curious what I had on this thing. So glad I didn't have to in the end.

Thanks again
[Android General] PatsyDarling:
Could this work on Samsung Z Flip 2 - screenlock with pattern?
[Nextbit Robin] Deleted member 4258086:
CHANGELOG

.
[Nextbit Robin] modernbummer:
Running well here. Thank you very much!
[Nextbit Robin] dpryor88:
Is it smoother than the unofficial los build going around from the other day? That build is a bit sluggish. I'm going to try crdroid right now. Hopefully it beats omnirom for me.

Thanks for the post!

Edit: this ROM is great!
[Nextbit Robin] Kaleshwar:
It's performing smoothly and has all the essential features a user could want! Thank you for supporting our device! firebird11!
[Nextbit Robin] dpryor88:
Live display comes on hours after sunset here for night mode. Is GPS buggy? It's like my phone thinks I'm in a different time zone..
[Nextbit Robin] dnp77:
It's pretty smooth so far on things I noticed was slow camera, fingerprint is buggy
[Nextbit Robin] Kaleshwar:
Uh huh. But it's manageable considering how well this ROM performs.
[Nextbit Robin] GigahurtzUK:
Awesome thx
[Nextbit Robin] GigahurtzUK:
Bad battery drain overnight. Data, WI-Fi, GPS etc off and no apps running. No Facebook or Facebook messenger installed.

96% to 63% in 7.5 hours.

Thank you for supporting the Robin.
[Nextbit Robin] yanowman:
firebird11

Wait you do a full wipe AFTER flashing the ROM and gapps... HUH?

gonna give it a try
[Nextbit Robin] shaggy5991:
Roms running great here, fingerprint reader is buggy but other than that can't find anything wrong.
[Nextbit Robin] ohad129:
I got problems links are not opens from twitter,mails,pushbullet they are not respond or force close the app please help to solve it
[Nextbit Robin] Rimmer1966:
Running great. My favorite of the custom ROMS I've tried. Looking forward to 1.9 , according to the forums there are some significant performance gains. Keep up the good work.
[Nextbit Robin] Kaleshwar:
Been looking out for that 1.9 build as well. The only gripe I have is that the fingerprint sensor has delay fires.
[Nextbit Robin] cell2011:
How can one fix the fingerprint delay?
[Nextbit Robin] Kaleshwar:
Currently I have no idea. Until a commit comes up to fix it I guess.
[Nextbit Robin] cell2011:
How is battery life on this ROM?
[Nextbit Robin] Kaleshwar:
It's pretty much like the values you get on stock. Must I've gotten was 3 and a half of SOT, but currently Lineage OS is bringing up the devices and their infrastructures so in time it'll improve.
[Nextbit Robin] cell2011:
Reason asking I'm coming for an N 5x and figured same processor and I wanted something different and I'm sure within time fingerprint will get better
[Nextbit Robin] Kaleshwar:
That's okay. Just keep on the patient and positive side.
[Nextbit Robin] cell2011:
Yes for 100.00 you can't go wrong. Or end up with a Moto g4 plus
[Nextbit Robin] Kaleshwar:
Nahh I already have a Nexus 5 and a Moto G 2014. They're there just to test ROMS.
[Nextbit Robin] dpryor88:
Will this be continued and updated to crdroid 2.0 at some point? Or is this project dead?
[Nextbit Robin] valhallen.282:
odd you should say this there is a build on the server marked > crDroidAndroid-7.1.1-20170115-ether-v2.0.zip

though i would wait for the OP to announce; that is - it's up to the OP's decision if it is stable. Simply flashing an unannounced build could break your device.
[Nextbit Robin] wecameasjesse:
Wow, this is the best ROM for this phone currently but the op seems to have gone dark. I wanna flash it but i'm kinda spooked since this is my daily phone, would like at least a little confirmation on it.
[Nextbit Robin] valhallen.282:
well lucky for you - I'm already on it. Trying it out right now. It's a daily driver for me as well but i enjoy testing it's a new experience every day! :D
[Nextbit Robin] rockyang:
Tried crDroidAndroid-7.1.1-20170115-ether-v2.0.zip.

Feature of "touch to focus" of Snap Camera does not work in picture mode, and sometimes flashlight in Quick Settings is grayed out.

But it is still an awesome rom. :)
[Nextbit Robin] wecameasjesse:
So I'm taking this as a green light, will try it out soon

edit: did you clean flash or dirty
[Nextbit Robin] rockyang:
I did clean flash.
[Nextbit Robin] pintasmapila:
It's a pretty decent version, but AOKP's latest nightly (16/01) seems snappier and a bit more stable. I'll try 17/01 when i get home.
[Nextbit Robin] cell2011:
I get H+ for data? Anyone else no LTE? UPDATE !!! i got it
[Nextbit Robin] DuelistRaj:
I only have one question.

After flashing this ROM, will I still be able to use the Smart Storage (cloud) feature??

Plz reply.
[Nextbit Robin] sabresfan:
No that's a stock Robin feature.
[Nextbit Robin] :
new build up !

What's new?

* Complete revamp of crDroid Settings! (You'll fall in love again)

* Added Pixel animation settings for smartbar (navbar).

* New QS header images.

* Improvements for One-hand UI mode

* Smartbar special button for One-hand UI mode.

* Customizable Suspend Actions.

* Ability to turn off activity arrows from WiFi / Data signal.

* Fix developer settings hiding without option to restore. (tap build no. to restore)

* Fix rendering issue for few browsers like firefox and chrome.

* Fix data network issue for few users.

* Few more small fixes and optimizations.
[Nextbit Robin] Rimmer1966:
Thanks for the update, have been using it for a couple of hours without an issue. Love all the features. Thanks again