Recently when i restored my data using TWRP i faced a problem at lock screen.
I was not able to unlock my phone with the pin i set Earlier..So after so many attempts i was able to find a solution for that problem.(works with pattern,pin etc)
Requirements
-----------------
1. A phone That cant be unlocked witha your Pin/Pattern
2.Any custom recovery installed(TWRP i will say)..Get TWRP from https://twrp.me/Devices/
Steps
-------
1.Once You installed twrp boot into recovery mode.
2.Go to advanced>filemanager to acces the files in your phone.
3.Ggo to the /data/system folder. Scroll down and find the two files with the .key extension. Delete both of them (by tapping on the file and then tapping the �Delete� button). Then, delete all the files containing the word locksettings.
password.key
pattern.key
locksettings.db
locksettings.db-shm
locksettings.db-wal
Once you�ve deleted all the key and locksettings files, reboot your system. If it asks you to install SuperSU, choose �Do Not Install�.
Once Android starts, your lock screen should appear, with no PIN or password prompt. Unlock your phone (yay!) and head to Android�s Settings. Scroll down and go to Security > Screen Lock. From there, you can choose a new PIN or password to lock your phone.
Hope this helped you..Hot Thanks if this was helpful
I have created recovery flashable zip for this issue.
SG3 said:
I have created recovery flashable zip for this issue.
Click to expand...
Click to collapse
Well done bro ?
Thanks dude, you save my data with very simple trick....
no TRW installed
I am not sure whether TRW is installed in my phone. It's in locked state now. What else can be done ? I do not want to lose the data (photos). Some important photos are there. I have Redmi Y2 phone and it's pattern locked. I forgot the pattern. please help.
Well in my case, the file i deleted named "locksetting.db" in /data/system
thank you so so much its so helpful
I am also facing same issue. Did you get any solution ?
Thanks
LABM said:
I am not sure whether TRW is installed in my phone. It's in locked state now. What else can be done ? I do not want to lose the data (photos). Some important photos are there. I have Redmi Y2 phone and it's pattern locked. I forgot the pattern. please help.
Click to expand...
Click to collapse
Related
When restoring a backup it ask for a pin # which I don't have since I didn't use one in the first place. Can anyone help with restoring backups. Thanks in advance.
Edit: wiped dalvik,cahe,data and system in advanced wipe did the trick.
naimsiddiq said:
When restoring a backup it ask for a pin # which I don't have since I didn't use one in the first place. Can anyone help with restoring backups. Thanks in advance.
Edit: wiped dalvik,cahe,data and system in advanced wipe did the trick.
Click to expand...
Click to collapse
I restored mine to a old back up and I use fingerprint and pin and neither is working I can't even use ADB to reboot recovery do you know know how to get into recovery?
Sent from my Nexus 6P using Tapatalk
Go into twrp file manager and go to data/system and delete these files.
Locksettings.db
Locksettings.db-shm
Locksettings.db-wal
If you have fingerprints you'll need to delete these two as well
Go to data/system/users/0/fp data and delete
User.db
Then go to data/system/users and delete
settings_fingerprint.xml
Then reboot system.
Hi Guys,
a german Forum advised me to ask here because, here are the experts. So sorry for my Basic englisch, but have a big problem.
My problem:
I got a Huawei Nova Youth as a gift. This is explicitly offered in the Chinese market. After some fumbling I have been able to change the language to German. However, the keyboard still partially takes false inputs. In addition, the Play and App store does not work. Of course, many other apps will be blocked, not to mention the Bloodware.
It is the model WAS-AL00. I now know that it is sold here as P10 lite. I did not find out how to install a European OS or a custom OS (Lineage). The support say only blah blah does not work, blah blah license problems ... Can someone please give useful information about my problem?
If more information is needed, I'll give it to you. I have always been Windows Phone users so far. So please apologizes if I do not understand all Android technical Terms.
thx
Hi, you need
backup alldata
unlock bootloader
install twrp
service rom: b182(ds) or b183(ss),
oeminfo: c432ds or ss
adb drivers
sdcard 8gb or more
links:
adb: https://forum.xda-developers.com/showthread.php?t=2588979
oeminfo: https://www.youtube.com/watch?v=I2DeM1pCcwo
service rom: https://forum.xda-developers.com/p10-lite/help/original-service-rom-huawei-p10-lite-t3688097
twrp: https://forum.xda-developers.com/p10-lite/development/beta-t3619496
info:
imei: open settings, go to about phone and look if there one or two imei
oem unlock: press several times till enable in build number(developer settings), back to settings and open developer options scroll to see oem unlock and enable
twrp1: fastboot flash recovery recovery.img(open cmd c: )
sdcard1: create dload folder
insert sdcard:
servicerom: extract the download file, open folders untill you see update.app and folders, then copy all to dload folder in your sdcard
oeminfo: extract
twrp2: open twrp with vol+ + power, backup only oeminfo in sdcard(copy to safe place), then copy the downloaded oeminfo to the backup folder and replace oeminfo then press restore(dont reboot, poweroff only)
install: press vol+/- and power buttons untill update starts.
foliaje said:
Hi, you need
backup alldata
unlock bootloader
install twrp
service rom: b182(ds) or b183(ss),
oeminfo: c432ds or ss
adb drivers
sdcard 8gb or more
links:
adb: https://forum.xda-developers.com/showthread.php?t=2588979
oeminfo: https://www.youtube.com/watch?v=I2DeM1pCcwo
service rom: https://forum.xda-developers.com/p10-lite/help/original-service-rom-huawei-p10-lite-t3688097
twrp: https://forum.xda-developers.com/p10-lite/development/beta-t3619496
info:
imei: open settings, go to about phone and look if there one or two imei
oem unlock: press several times till enable in build number(developer settings), back to settings and open developer options scroll to see oem unlock and enable
twrp1: fastboot flash recovery recovery.img(open cmd c: )
sdcard1: create dload folder
insert sdcard:
servicerom: extract the download file, open folders untill you see update.app and folders, then copy all to dload folder in your sdcard
oeminfo: extract
twrp2: open twrp with vol+ + power, backup only oeminfo in sdcard(copy to safe place), then copy the downloaded oeminfo to the backup folder and replace oeminfo then press restore(dont reboot, poweroff only)
install: press vol+/- and power buttons untill update starts.
Click to expand...
Click to collapse
I tryed to do this.
I entered the developer steeings. 2 points are not present oem unlock and root access are both not seen. I tryed to install app store for twrp but it is blocked. If I try to enter the fastboot option with restart from smartphone, it is blocked. So I think the main problem is to get twrp to load new image. I tryed to install the with apk file directly and via huawei store. Both was not possible. Any Idea? Backup is not necessary. I never worked with the smartphone.
Update:
It was possible to download me.twrp.twrpapp-26.apk and copy on phone. Now he ask for device. Is the P9 plus the best choise?
ok you need first unlock bootloader:
register here with your phone(faster with it) or with email: https://emui.huawei.com/en/plugin/unlock/detail
then:
1º Download serviceRom(b182 or b183) on your pc and extract it, Same thing for oeminfo c432(ds or ss) and twrp.
2º Once you get unlock code open cmd(type cd c: /users/yourname/adb(more or less)), type fastboot oem unlock code , press on the screen and reboot wait to finish.
3º Move twrp image(extract) to c:/adb, type fastboot flash recovery recovery.img, type fastboot reboot and press vol+ till erecovery screen, poweroff and unplug then vol+ and power button(briefly stop pressing power button)
4º insert your sdcard on laptop and create dload folder in it, then copy update.app and folders from dload folder of downloaded service rom.
5º in twrp press backup button select sdcard storage and backup only oeminfo(copy to safe place), with downloaded oeminfo copy and replace oeminfo then restore.
6ºpoweroff and unplug, then press vol+- and power button untill update starts, if all goes ok should reboot.
at first big thanks foliaje. I am very happy for your fast answers. I tryed today the unblock page from hauwei. There was foolowing Problem.
1. I registered an account via Smartphone. Most of informations was chinese.
2. Change lange was not possible - same in PC browser. Seems like fix Region.
3. delete account and create new on PC. Change language to german was possible.
4. Try to login to unblock Website was not possible - Change Password Shows failure Email or account not present ....
Is it necessary to great account on Smartphone with fixed Region again and use this account for unblock?
Further *adb devices* shows an ID and unautorised device. Is that right?
Kerberos79 said:
at first big thanks foliaje. I am very happy for your fast answers. I tryed today the unblock page from hauwei. There was foolowing Problem.
1. I registered an account via Smartphone. Most of informations was chinese.
2. Change lange was not possible - same in PC browser. Seems like fix Region.
3. delete account and create new on PC. Change language to german was possible.
4. Try to login to unblock Website was not possible - Change Password Shows failure Email or account not present ....
Is it necessary to great account on Smartphone with fixed Region again and use this account for unblock?
Further *adb devices* shows an ID and unautorised device. Is that right?
Click to expand...
Click to collapse
try now on your pc, i change hwid5 to hwid7(link below), logged without problems :good:
for adb/fastboot devices Works correctly enable usb debugging and press authorize
https://hwid7.vmall.com/CAS/portal/userRegister/regbyemail.html?reqClientType=2023&loginChannel=22000000&countryCode=es&loginUrl=https%3A%2F%2Fhwid7.vmall.com%2FCAS%2Fportal%2Flogin.html&service=https%3A%2F%2Femui.huawei.com%2Fen%2Fplugin%2Fhwlogin%2Fvalidate%3Fru%3D%252F%252Femui.huawei.com%252Fen%252Fplugin%252Funlock%252Findex&lang=en-us&themeName=red
I think I have to wait 2 weeks
*The Huawei ID used to apply for the unlock code has not been used on the device for more than 14 days.*
Kerberos79 said:
I think I have to wait 2 weeks
*The Huawei ID used to apply for the unlock code has not been used on the device for more than 14 days.*
Click to expand...
Click to collapse
have you tried deleting account since huawei id and creating one on your pc with the link from above?
yes I greated a new account with your link with other email adress.
Any progress with your p10lite?
I tryed it now and still same issue. this time I tryed with meid other time with emei.
https://www.pic-upload.de/view-34293605/unlockfehler.jpg.html
same message with both emei
Hi, I have this problem months ago, (I have a Nova Youth as gift too) and I solve it installing this app: gmsinstaller.apk or can use Googleinstaller.apk (just google it) and you dont need the root, it install the play services from Google and then you can install any app from the play store, sorry cause I dont have the apps to share but there is easy to find.
greetings from México!
One of the biggest enemies for people who frequently switch ROMs is the encryption system, many times we end up wiping the entire device.
OnePlus 5 and 5T had a method to decrypt the device and not having to worry about accidental wipes ( NO-Verify.zip)
Has anyone tried the same method on our 6T?
Well i tried it on my 6T and it worked, but with one problem.
After decrypting permanently when i locked device with any password or pattern, it didn't accepted the password i set it up with.
So moved back to encryption
You should not have to do that. I recommend you read this thread all the way through; I think your answer is here, under the How to create a Nandroid Backup.
https://forum.xda-developers.com/oneplus-6t/how-to/guide-oneplus-6t-unlock-bootloader-t3851789
"Boot into TWRP
Use the TWRP File Manager and Navigate to /data/sytem/ and delete the following files:
locksettings.db
locksettings.db-shm
locksettings.db-wal.
gatekeeper.password.key
gatekeeper.pattern.key
You may or may not have all the above files so delete the ones you have.
Reboot the phone and (if you've set a PIN) enter it to decrypt the storage one more time. After that you can simply unlock your phone with a swipe."
hithekillswitch said:
You should not have to do that. I recommend you read this thread all the way through; I think your answer is here, under the How to create a Nandroid Backup.
https://forum.xda-developers.com/oneplus-6t/how-to/guide-oneplus-6t-unlock-bootloader-t3851789
"Boot into TWRP
Use the TWRP File Manager and Navigate to /data/sytem/ and delete the following files:
locksettings.db
locksettings.db-shm
locksettings.db-wal.
gatekeeper.password.key
gatekeeper.pattern.key
You may or may not have all the above files so delete the ones you have.
Reboot the phone and (if you've set a PIN) enter it to decrypt the storage one more time. After that you can simply unlock your phone with a swipe."
Click to expand...
Click to collapse
In case I delete these files do I need to set a pin or if I reboot to TWRP next time it will not ask me for it ? I am asking because I have lost my internal storage thrice before trying to only install OOS.
My understanding is this will only remove your password. I would read the whole thread above, and always make a backup with TWRP and titanium or the like, and save those backups to a PC as well as the phone storage. Encryption is tricky, but you know that already. Good luck!
hithekillswitch said:
You should not have to do that. I recommend you read this thread all the way through; I think your answer is here, under the How to create a Nandroid Backup.
https://forum.xda-developers.com/oneplus-6t/how-to/guide-oneplus-6t-unlock-bootloader-t3851789
"Boot into TWRP
Use the TWRP File Manager and Navigate to /data/sytem/ and delete the following files:
locksettings.db
locksettings.db-shm
locksettings.db-wal.
gatekeeper.password.key
gatekeeper.pattern.key
You may or may not have all the above files so delete the ones you have.
Reboot the phone and (if you've set a PIN) enter it to decrypt the storage one more time. After that you can simply unlock your phone with a swipe."
Click to expand...
Click to collapse
This doesn't work any longer starting with pie. At least both times I tried it. Last i got it to go was with Oreo on my shamu and essential. Also, no verity and anything disabling encryption, disables any phone security until u restore with msm.
Don't ask me how, but I somehow set pattern and forgot it in one hour. I use face rec. as well but after reboot I need to unlock with pattern.
For last 10h I tried all methods how to unlock phone, but no success.
I'm using original, ROM, my G6 model is H870, running Pie, unlocked bootloader, so I can use TWRP. I spent most of my time and knowledge to unlock phone with adb/twrp. Best option I found is to delete gesture.key file which is located under /data/system.
Problem is, that /data is encrypted ...
Is there anyone who managed to remove pattern/lock without loosing data?
Thank you for your time!
akulp said:
Don't ask me how, but I somehow set pattern and forgot it in one hour. I use face rec. as well but after reboot I need to unlock with pattern.
For last 10h I tried all methods how to unlock phone, but no success.
I'm using original, ROM, my G6 model is H870, running Pie, unlocked bootloader, so I can use TWRP. I spent most of my time and knowledge to unlock phone with adb/twrp. Best option I found is to delete gesture.key file which is located under /data/system.
Problem is, that /data is encrypted ...
Is there anyone who managed to remove pattern/lock without loosing data?
Thank you for your time!
Click to expand...
Click to collapse
Maybe this will work: https://************/delete-android-security-pin/
Edit: link gets truncated... Just search 'Remove pin twrp' on Google and click the first result.
krilok said:
Maybe this will work: https://************/delete-android-security-pin/
Edit: link gets truncated... Just search 'Remove pin twrp' on Google and click the first result.
Click to expand...
Click to collapse
Non of this solutions work.
This is pretty the same as I said. My problem is that /data is encrypted and I can't find/see any .key files.
Also I can't do "su" command inside adb shell because of "insuff. privileges" ...
I tried all this solutions:
https://forum.xda-developers.com/showthread.php?p=49666433#post49666433
For method 1 -5 there is a problem with .key files which are not seen to my TWRP/Aroma browser. I don't know If I'm doing anything wrong in method 7, but also after mount I can't access /data/system (/data is empty).
In method 6 I'm stucked on
"Run pull settings.db.cmd inside By-pass security Hacks folder to pull out the setting file out of your phone." step.
I get "insuff. privileges" error.
akulp said:
Non of this solutions work.
This is pretty the same as I said. My problem is that /data is encrypted and I can't find/see any .key files.
Also I can't do "su" command inside adb shell because of "insuff. privileges" ...
I tried all this solutions:
https://forum.xda-developers.com/showthread.php?p=49666433#post49666433
For method 1 -5 there is a problem with .key files which are not seen to my TWRP/Aroma browser. I don't know If I'm doing anything wrong in method 7, but also after mount I can't access /data/system (/data is empty).
In method 6 I'm stucked on
"Run pull settings.db.cmd inside By-pass security Hacks folder to pull out the setting file out of your phone." step.
I get "insuff. privileges" error.
Click to expand...
Click to collapse
Have you tried this?
https://forum.xda-developers.com/android/software-hacking/remove-lockscreen-recovery-t3530008
Basically, the files you have to delete in the /data/system folder in TWRP are:
password.key
pattern.key
locksettings.db
locksettings.db-shm
locksettings.db-wal
It happened to me a while ago and I didn't have any '.key' files either; I just deleted the rest and when I booted up, I had no lock screen security PIN nor registered fingerprints but could re-set them again through security settings. I didn't need to flash any files nor fiddle around with adb commands, and all my data remained untouched...
If you can't find all those five files or the '.key' files, just delete the ones you can find and it should work. Otherwise, you'll probably have to do a full reset and reinstall...
krilok said:
Have you tried this?
https://forum.xda-developers.com/android/software-hacking/remove-lockscreen-recovery-t3530008
Basically, the files you have to delete in the /data/system folder in TWRP are:
password.key
pattern.key
locksettings.db
locksettings.db-shm
locksettings.db-wal
It happened to me a while ago and I didn't have any '.key' files either; I just deleted the rest and when I booted up, I had no lock screen security PIN nor registered fingerprints but could re-set them again through security settings. I didn't need to flash any files nor fiddle around with adb commands, and all my data remained untouched...
If you can't find all those five files or the '.key' files, just delete the ones you can find and it should work. Otherwise, you'll probably have to do a full reset and reinstall...
Click to expand...
Click to collapse
Problem is, that I don't have any files/folders at all in my /data. I even don't see system folder inside data.
akulp said:
Problem is, that I don't have any files/folders at all in my /data. I even don't see system folder inside data.
Click to expand...
Click to collapse
Sounds like your data folder is not mounted when you boot to TWRP... Have you checked? Reboot to TWRP, select the Mount option; data should be ticked by default. It it isn't, select it, go back to TWRP file manager, and see if you can now browse folders and files...
krilok said:
Sounds like your data folder is not mounted when you boot to TWRP... Have you checked? Reboot to TWRP, select the Mount option; data should be ticked by default. It it isn't, select it, go back to TWRP file manager, and see if you can now browse folders and files...
Click to expand...
Click to collapse
Unfortunately it's checked ... It's seems from this post:
https://forum.xda-developers.com/android/software-hacking/remove-lockscreen-recovery-t3530008/page12
nobody managed to get to (encrypted) /data on Pie.
akulp said:
Unfortunately it's checked ... It's seems from this post:
https://forum.xda-developers.com/android/software-hacking/remove-lockscreen-recovery-t3530008/page12
nobody managed to get to (encrypted) /data on Pie.
Click to expand...
Click to collapse
Last comment on that thread says the solution also works on Havoc Os 2.9, which is based on Pie... Maybe that person wasn't encrypted to begin with, but, if it doesn't work for you, I guess then the only way to go is a full reset... Good luck!
krilok said:
Last comment on that thread says the solution also works on Havoc Os 2.9, which is based on Pie... Maybe that person wasn't encrypted to begin with, but, if it doesn't work for you, I guess then the only way to go is a full reset... Good luck!
Click to expand...
Click to collapse
Yep, I saw that post ... I relly don't have any more ideas. Should be inside "mount modul" in TWRP /data listed?
I only have System, Cache and SD ... and i can check System only if i check bottom "mount system partition read-only" option.
But that's nothing to do with /data.
akulp said:
Yep, I saw that post ... I relly don't have any more ideas. Should be inside "mount modul" in TWRP /data listed?
I only have System, Cache and SD ... and i can check System only if i check bottom "mount system partition read-only" option.
But that's nothing to do with /data.
Click to expand...
Click to collapse
Data option should show. At least it does on mine... You can maybe try updating Twrp version?
I'm on last TWRP.... Meantime I already made full reset ....
If you have encrypted data partition, you're pretty much banned from messing with it, unless you manage to exploit your way through the adb, which requires you to have it enabled and in trust relation with your PC to begin with.
The way I'd go around this is to place an "always yes su" binary and perform pattern removal process through init.d or similar solution. In case if su commands are restricted, kernel with permissive SELinux needs to be flashed.
On a side note, isn't this Q&A?
I also had a problem with data folder not being mounted when booting to TWRP. I tried a full reset and immediately i have access to the Data folder (but theres nothing left inside so this is kinda useless). Then later when i did a reboot into the TWRP it happened again, couldnt access to anything even when the "mount Data" option is ticked, only until i did the full reset again that it could finally work.
It turned out the problem is with the TWRP itself, i flashed another custom recovery (OrangeFox-R10-Stable-h870, which is btw a better recovery than TWRP in my opinion) and the problem never occurred again.
So either try out that new Recovery or a different version of TWRP and see if it solves the problem. And always, ALWAYS, make a full backup of all your data before messing with anything (i had to learn that the hard way so trust me).
Do this,
- you should know that I am using "orange fox recovery" not "twrp",and stock "pie"
- reboot to recovery and go to system/data
- delete this files:
gatekeeper.password.key
gatekeeper.pattern.key
locksettings.db
-reboot the phone and that's it.
Dear Dev's plz help me.
Patterns connects only 2 dots and remaining two dots connect separately one by one.
Then I've to delete data/system/lock screen file from twrp. Any solution without restoring modem ? Or any other solution you have? Please share here.
Thanksgiving
Simply boot into TWRP and enter your PIN (if you've set one) to decrypt the stroage. If you don't have TWRP (for whatever reason) you can do so via ADB too but ONLY if you've connected your phone to your PC beforehand and also accepted it's fingerprint on the phone itself.
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):
password.key
pattern.key
locksettings.db-wal
locksettings.db-shm
locksettings.db
Reboot the phone and (if you've set a PIN) enter it 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. Select whatever you want here, it's a nice security addition but can be annoying sometimes.
Enjoy your phone again!