Locked phone with PIN losckreen password - Miui v4 - Android Q&A, Help & Troubleshooting

Hello. I just set PIN password on my Miui v4 to easy "0852" using Swype numerical keyboard. After locking in, i cant unlock it - the password is not working. I have no idea what to do. I don't want to factory reset my phone. Is there any chance to avoid lockscreen? I have no wifi / 3g enabled on phone, and I can't turn it on. The only way to change something is recovery.

Sent from my SGH-T989 using xda premium

Problem solved. Deleting (via ADB & CWM) /data/data/com.android.providers.settings/databases/settings.db is solution for missed password.

localh0st said:
Problem solved. Deleting (via ADB & CWM) /data/data/com.android.providers.settings/databases/settings.db is solution for missed password.
Click to expand...
Click to collapse
nevermind, removed sim card and got past lock but alas that file is nowhere to be seen, using China Mobile so that may be part of the issue - looks like I'll have to replace my sim card

You don't need USB Debugging if you're on Recovery (TWRM or Clockworkmod).

Related

[Q] password for turning the phone on

Is there any option (built in) to have the phone asks for password when turning it on?
My work email enforces /system and SD card encryption which unlike other android phones the GS2 supports. I need to input three encryption key before it boots.
Sent from my GT-I9100 using XDA App
drspikes said:
My work email enforces /system and SD card encryption which unlike other android phones the GS2 supports. I need to input three encryption key before it boots.
Sent from my GT-I9100 using XDA App
Click to expand...
Click to collapse
how do i do that?
In your Exchange 2010 ActiveSync policy properties, selecting the password tab you can choose these options.
I'm going to test them now!
Update:
Options I selected:
- Require Password
- Require Encryption on Device
- Require Encryption on Storage Card
- Allow Simple Password
AAAaaaand my phones stuck on the bootloader animation. It might be encrypting everything which would take a while, dunno... I'm just going to leave it alone
Update 2:
CF-Root does NOT allow for encrypted partitions, and as such, will boot-loop your device!
I needed to flash my stock kernel through Odin to get it to boot properly

Forget pattern.. how to unlock ??

Rom:cm10 builds
Kernel:stock cm10
Problem: i forget the pattern and repeatedly typing wrong pattern leads to recover password by putting email and password.
Tried that but still getting wrong password/email error
May be it needs wifi connection and it isn't enabled..
As wifi is not on i cannot reset password of my phone by even entering correct email and password registered in tab..
Data is important.
There is very important data(apps) i don't want to lose by wiping.
What to do ??
Sent from my GT-I9100 using xda app-developers app
Are you rooted?
If so try going into recovery and making a backup and then a factory reset
Sent from my SAMSUNG-SGH-I717 using xda app-developers app
Try reflashing ROM without wiping - you won't lose anything or extract the settings and settings storage .apk files and push them via adb. Hope I helped
Sent from my Xperia Arc S using xda app-developers app
trax7 said:
Try reflashing ROM without wiping - you won't lose anything or extract the settings and settings storage .apk files and push them via adb. Hope I helped
Sent from my Xperia Arc S using xda app-developers app
Click to expand...
Click to collapse
How to extract settings and settings storage.apk and how to send it ?
I have never used adb method
Sent from my GT-I9100 using xda app-developers app
You can start the WiFi via ADB, hope you have USB debugging enabled.
The commands are:
adb shell
sqlite3 /data/data/com.android.providers.settings/databases/settings.db
update secure set value=1 where name='wifi_on';
adb reboot
That should do the trick
Sent from my Paranoid i9100
hey when i type sqlite3 /data/data/com.android.providers.settings/databases/settings.db
it says "sqlite3 /data/data/com.android.providers.settings/databases/settings.db" not found
what to do ???
You can try the steps in the following link. It tells you how to delete the pattern lock info stored in sqlite database in your phone.
http://forum.xda-developers.com/showthread.php?t=1800799
In short, do
Code:
adb shell rm /data/system/gesture.key
Then reboot the phone. It may still ask you for a pattern. Any random pattern should let you unlock it.
thanks a lot bro
it works
tried both methods and select notification bar.. and go there settings
and the password is already resetted
Great! It's a serious security venerability in Android (you don't even need root to deactivate the pattern lock), but I guess it helped out many people.
haha.. may be
but mine one is rooted so can't say anything

[Q] Forgot pattern

I do have a Thunderbolt (PG05100) that is not in use for a year, I forgot the unlock pattern and don't remember the Google account use to register the phone. Is there a way to disable the unlock pattern by using adb or another existing tool? I know that I can hard reset the phone but I don't want to loose the information like contacts, msg's, etc.
Your contacts are backed up with your Google account but the messages will be erased. Unfortunately the only solution is to do a factory reset.
Sent from my ADR6400L using Tapatalk 2
disconnecktie said:
Your contacts are backed up with your Google account but the messages will be erased. Unfortunately the only solution is to do a factory reset.
Sent from my ADR6400L using Tapatalk 2
Click to expand...
Click to collapse
Or, you could crack the lock pattern, I wrote a simple one-click tool to do it, but lost it when my computer crashed :/. Learn how to crack it HERE @jeaponte
Interesting hack but it won't work if usb debugging isn't enabled on his device.
Sent from my ADR6400L using Tapatalk 2
http://www.techgeekandmore.com/2012...code-or-when-passcode-doesnt-work-it-happens/
Without usb debugging or knowing the Google account info.... use legally only please
**EDIT**
Hmm seems that Google removed it from the app store..... some good detective work could probably come up with the original APK I bet!
Milimbar said:
http://www.techgeekandmore.com/2012...code-or-when-passcode-doesnt-work-it-happens/
Without usb debugging or knowing the Google account info.... use legally only please
**EDIT**
Hmm seems that Google removed it from the app store..... some good detective work could probably come up with the original APK I bet!
Click to expand...
Click to collapse
What recovery do you have? You can usb debug thru most recoveries. If you can do so, and you know how to use adb, execute this command
Code:
adb shell rm /data/system/gesture.key
and you'll be golden. If you use TWRP recovery, go to advanced > terminal command > press select in the bottom right-hand corner > then type in this code
Code:
rm /data/system/gesture.key
, it's the same thing minus the adb shell. Let me know if either way works, if not, don't worry, I have a few more tricks up my sleeve, don't reset that phone!

Pattern Lock on boot changed to Password Entry without Reason (HTC One M8 | RR 5.8.5)

Hi Everyone!
I am running latest version of Resurrection Remix (7.1.2) on my HTC One M8 and somehow, the Pattern unlock Sequence i have set during Boot (using it since Months!) has changed to a Password entry Box without any reasons.
I have never set any Password or PIN for the Device, so i have been locked out.
Just to make sure, i have also tried any PIN and Password that i could remember.
Disc Encryption is active , but i can access System and SD Partitions in TWRP without entering a Pattern/PIN.
I have read some Guides wich describe how to delete pass and pattern key-files to bypass the Boot Security, but without success yet. Any Ideas, what might have changed the Pattern Protection and how to revert it?
Thanks in advance!
br
Qudo
qudo said:
Hi Everyone!
I am running latest version of Resurrection Remix (7.1.2) on my HTC One M8 and somehow, the Pattern unlock Sequence i have set during Boot (using it since Months!) has changed to a Password entry Box without any reasons.
I have never set any Password or PIN for the Device, so i have been locked out.
Just to make sure, i have also tried any PIN and Password that i could remember.
Disc Encryption is active , but i can access System and SD Partitions in TWRP without entering a Pattern/PIN.
I have read some Guides wich describe how to delete pass and pattern key-files to bypass the Boot Security, but without success yet. Any Ideas, what might have changed the Pattern Protection and how to revert it?
Thanks in advance!
br
Qudo
Click to expand...
Click to collapse
Deleting a Few Files In /Data Will Unlock Deactivate any Password.Try Finding the Locksettings.db in /Data/system or Somewhere.
Sent from my Nexus 6P using Tapatalk
Atifbaig786 said:
Deleting a Few Files In /Data Will Unlock Deactivate any Password.Try Finding the Locksettings.db in /Data/system or Somewhere.
Sent from my Nexus 6P using Tapatalk
Click to expand...
Click to collapse
Atifbaig786,
already did this.
files i have removed:
password.key
pattern.key
locksettings-db-shm
locksettings-db.wal
locksettings.db
no effect. still requests a password.
qudo said:
Atifbaig786,
already did this.
files i have removed:
password.key
pattern.key
locksettings-db-shm
locksettings-db.wal
locksettings.db
no effect. still requests a password.
Click to expand...
Click to collapse
I can't say For Sure But.There are more Files Than That In Version Above MarshMellow.Those Guides were for Android 4.4.4 and low.
Or Someone Just Took your Gmail Account and Locked It.
It's The Most Possible Reason For Auto-Locking Devices That Someone Accessed your Device and Did Some Bad S,H,I,T to you.
Sent from my Nexus 6P using Tapatalk
Atifbaig786 said:
I can't say For Sure But.There are more Files Than That In Version Above MarshMellow.Those Guides were for Android 4.4.4 and low.
Or Someone Just Took your Gmail Account and Locked It.
It's The Most Possible Reason For Auto-Locking Devices That Someone Accessed your Device and Did Some Bad S,H,I,T to you.
Sent from my Nexus 6P using Tapatalk
Click to expand...
Click to collapse
Google Account is safe and definitely not hacked.
Secured by 2-step-authentication and i still have access to it. there is also nothing wrong in phone management there. already checked this.
And to get this straight, the device is not auto locked as you may from device management in your google account.
Disc has been encrypted and a pattern has been set for decryption. this pattern has changed to Password entry.
same password entry that you have when encrypting with a password.
i had this behaviour before on some older cm versions on my samsung i9305...
i have started creating a current backup and will restart everything from scratch.
seems more like an error in android, than <<s,h,i,t>>
all hail to titanium backup!
thanks anyways.
Qudo
OK, this bug is reproducable.
i have tested it twice.
- clean install from scratch
- disc encryption
- creating a nandroid backup
- reboot afterwards
-> pattern set before is not available, but a password prompt asking for a password that i had never set.
System details:
Phone 1:
HTC One M8
resurrection remix ROM 5.8.5
TWRP Recovery Version 3.1.1-0
Phone 2:
Google Nexus 5
resurrection remix ROM 5.8.5
TWRP Recovery Version 3.1.1-0
Anyone else? :/
EDIT:
This does ot happen, if i don't create a nandroid backup. seems linked somehow ...

Re-enter your password/pin even before setting up a pin/password? Android (fix)

If your getting a promt to re-enter your pin even before setting up one? Try this method, it may fix the problem. I was having the same issue after flashing an new ROM or restoring a TWRP backup.
How to fix
Using a root explorer go to root\data\system folder( if it asks for password during setup then do the same using TWRP file manager)
Then find "locksettings.db" and rename it to "locksettings.db.old" .
This should stop confilcs of you old ROM password which confuses it in thinking that there is a pin setup.
Android will automatically creat a new file "locksettings.db" after reboot and you should be good to go
This worked for me, if it helps you please thank the post!
Nandan.R.D said:
If your getting a promt to re-enter your pin even before setting up one? Try this method, it may fix the problem. I was having the same issue after flashing an new ROM or restoring a TWRP backup.
How to fix
Using a root explorer go to root\data\system folder( if it asks for password during setup then do the same using TWRP file manager)
Then find "locksettings.db" and rename it to "locksettings.db.old" .
This should stop confilcs of you old ROM password which confuses it in thinking that there is a pin setup.
Android will automatically creat a new file "locksettings.db" after reboot and you should be good to go
This worked for me, if it helps you please thank the post!
Click to expand...
Click to collapse
You're a life saver! This has been plaguing me for weeks (and many wipes and restores)
I do have this 2nd weird problem though, after I set a new pin/pattern. If you leave the device locked too long, when you enter the pin/pattern it resets the screen and brings you back to lock screen. Not sure how to fix this one yet!

Categories

Resources