Hi Guys,
I'm pretty sure most of you have ran into the problem when you have flashed a rom with TWRP and you have set it up etc.. and you boot into
recovery it will ask you to decry your data with a password and if you look on the internet on how to fix this, they will tell you that you have
FORMAT DATA.
Well if you have set up a screen lock pattern when you set your phone up, you're in luck!
The trick is to convert your lock pattern into numbers.
For example if you have 3x3 then it should be something like this:
1 2 3
4 5 6
7 8 9
If you see the image attached, starting with green dot is the start of my screen lock pattern and end on red. If you see the numbers it converts to 7598 which is the same code you use to decrypt TWRP and you can access your data!
I hope I was clear enough, this is my first time making a guide but i have seen many people suffer from the issue and having to wipe data including myself!
Please leave a thanks if this worked for you!
Sometimes this happens while downgrading Android to a lower version, because the lower version doesn't recognize the pattern and TWRP can't decrypt it
The solutions can be to reflash the latest version so that it can decrypt data successfully
what if my password has x2 a digit, for ex. 3387?
about twrp password
I try same pattern like on my phone and working so just do it
Pin password user here
Format data then problem solved.
Related
Hi All,
I've been having a nightmare with my phone, my PIN lockscreen wont accept my pin number on my S2. Now before you think i've nicked it check my posting history on the S2 forums, you'll see i've been posting there for a while.
I've CAN access the phone by removing settings.db, from
/data/data/com.android.providers.settings/databases/settings.db
the lockscreen request dissapears then, but it wont let me create a new pin as it still thinks a pin is set.
I've followed this thread:-
http://forum.xda-developers.com/showthread.php?t=1409304
regarding removing a pin, but when i try to reset my pin it wont take it, or more to the point it does take the values (i checked them using an SQL browsing tool) but it still asks me for a pin.
Reformatting System, Cache and Data via clockwork mod recovery and flashing 2different roms didnt help either as the pin screen keeps coming back for some reason.
Would anyone know if flashing back to stock via Odin would help, does that Wipe the phone completely? Or even better, anyone know why this is happening and prevailing between wipes?
The only thing i havent tried yet is wiping /emmc/ (internal memory card) and trying again.
I've been at this for 2 days now, can anyone shed some light on this?
Ok as per above a follow up:-
I have fixed this by removing cryptlockscreen* files in EFS. I can also now enter new pins or patterns etc as before.
The is a problem however when i try to create a new pin, it takes it and everything looks ok, but when i try to enter my pin on the lockscreen again it still wont take it and i have to do the same process again. (Wipe out the relevant files in EFS)
I've been able to secure my device simply by using a pattern lock instead but its not an ideal solution.
Does anyone know why, after deleting the files above i should STILL have an issue?
Remember, this went from working perfectly to not, possibly due to wavesecure and it would be good to get to the bottom of this.
TheBlueRaja said:
Ok as per above a follow up:-
I have fixed this by removing cryptlockscreen* files in EFS. I can also now enter new pins or patterns etc as before.
The is a problem however when i try to create a new pin, it takes it and everything looks ok, but when i try to enter my pin on the lockscreen again it still wont take it and i have to do the same process again. (Wipe out the relevant files in EFS)
I've been able to secure my device simply by using a pattern lock instead but its not an ideal solution.
Does anyone know why, after deleting the files above i should STILL have an issue?
Remember, this went from working perfectly to not, possibly due to wavesecure and it would be good to get to the bottom of this.
Click to expand...
Click to collapse
You cannot do this. You need to extract the password salt to quickly brute force such a thing. Use adb to extract data for sqlite. If rooted attempt a factory reset in recovery. Seriously this is some forensics stuff.
Good luck.
earlier today I found out my little sister knew my pattern so I changed it. But when I changing the pattern I didn't pay attention a lot and know I forgot the pattern.My data and WiFi are disabled.I can't sign in to my google account with the phone now.
My question: I can't sign in because data/wifi is off? If yes is there a way to turn on wifi or data without unlocking phone?
I'll be thankful if someone help me because I can't loose my apps and setting
I'm using Galaxy mini CM 7.2 official
Hi, you can go into recovery mode and make a data wipe, but you will loose all apps and configurations.
On CM10.2 is it possible to activate wifi or data from lock screen but i don't kow cm 7, sorry
ayadgalaxymini said:
earlier today I found out my little sister knew my pattern so I changed it. But when I changing the pattern I didn't pay attention a lot and know I forgot the pattern.My data and WiFi are disabled.I can't sign in to my google account with the phone now.
My question: I can't sign in because data/wifi is off? If yes is there a way to turn on wifi or data without unlocking phone?
I'll be thankful if someone help me because I can't loose my apps and setting
I'm using Galaxy mini CM 7.2 official
Click to expand...
Click to collapse
Right go into recovery mode and do a factory data reset like they said above might delete your internal memory but hey you get your phone back!
☆☆DeMeNtEd_ChAmP☆☆
I know I can do factroty reset but I'm looking for a way to unlock phone without loosing my data
ayadgalaxymini said:
I know I can do factroty reset but I'm looking for a way to unlock phone without loosing my data
Click to expand...
Click to collapse
if you have usb debugging enabled you can break it with adb by using adb shell commands
follow this guide in my blog http://www.blog-android.com/general/break-pattern-lock/ for more details and dont use that aroma method it is only for mediatek devices
you can try the other methods given there
ayadgalaxymini said:
earlier today I found out my little sister knew my pattern so I changed it. But when I changing the pattern I didn't pay attention a lot and know I forgot the pattern.My data and WiFi are disabled.I can't sign in to my google account with the phone now.
My question: I can't sign in because data/wifi is off? If yes is there a way to turn on wifi or data without unlocking phone?
I'll be thankful if someone help me because I can't loose my apps and setting
I'm using Galaxy mini CM 7.2 official
Click to expand...
Click to collapse
I don't know why you facing this! if I forget my password/pin my phone gives me a option to enter my gmail id and password and then directs me to change the password/pin! this occurs even If I remove my SIM card also!
anyway a probable solution for you - http://forum.xda-developers.com/showthread.php?t=2225695
I am just sharing my experience
I had locked gionee m2 without root and without debugging enabled I was able to disable lock with out wiping data
What I did was
1)flashed carliv touch recovery using special flash tool
Use PC to Flash*recovery.img*using sp-flash tools. (Please be aware of how to install required drivers etc..)
Select original scatter file of your version of ROM. If You are using stock ROM, Make sure that you have not altered the phone partitioning earlier.*
Be careful and Remember to select/tick only 'recovery' in the list. You can also check preloader if you like. and select ONly 'download' button. (NOT firmware upgrade!). Connect your switched off phone to your PC. Wait till your task is complete. Shows you a green circle.
2)backup of data was made using carliv touch recovery (ofcourse with locked phone data)just in case anything goes wrong.
At this moment carliv touch recovery was working but boot and power options were not functioning
3)now flashed rooting file this time by carliv touch recovery
4)carliv touch recovery has aroma file manager too. But I was not able to open lock by this method as
Aroma File Manager, Click on menu option and go to settings*
Select Mount All Partitions*
Now, exit from Aroma File Manager and reflash it.*
Now, you will see each partition is mounted
5. Now, go to /data/system
Note : If you have sd-ext mod to increase internal storage, go to /sd-ext/system/
6. Now, If you have to remove pattern lock, long press and delete gesture.key
If you want to remove password, delete password.key
7. Exit the Aroma File Manager
8. Reboot*
9. Enjoy*
Didn't enjoyed this method somehow I don't know but it didn't worked for me as this folders didn't showed above said files.
5)now I flashed pattern password disable. Zip file using carliv recovery
And on booting phone screen asking for google id and password was gone link http://forum.xda-developers.com/attachment.php?attachmentid=1900741&d=1366570627
This was my method to unlock pattern locked gionee m2 phone but this can help you out too
Sent from my HM NOTE 1LTE using Tapatalk
several times after changing roms or trying out rooting with system-less SU, i restored data with TWRP.
Every time when i restore boot, pattern-lock isn't recognizing my pattern - fingerprintreader works.
I believe pattern is not saved within data so it will not saved by nandroid-backup.
has anyone an solution for this problem?
same here, with the pin code also. just had to revert back to a nandroid I made specifically without the pin yet. haven't figured out how to fix it yet.
Sent from my HTC One A9 using Tapatalk
i've made some tests: recovery restore of another boot-img and cache.img don't change nothing (pin / pattern were recognized as correct).
please where can that be otherwise stored or how is the password / pin / pattern encrypted?
JochenP said:
i've made some tests: recovery restore of another boot-img and cache.img don't change nothing (pin / pattern were recognized as correct).
please where can that be otherwise stored or how is the password / pin / pattern encrypted?
Click to expand...
Click to collapse
Hi,
please read the TWRP FAQ:
http://forum.xda-developers.com/showpost.php?p=64003115&postcount=2
in point 5 and 6 find your answer
joeatx said:
Hi,
please read the TWRP FAQ:
http://forum.xda-developers.com/showpost.php?p=64003115&postcount=2
in point 5 and 6 find your answer
Click to expand...
Click to collapse
No, that's not the point because after installing SU, encrypting of the data partition is indeed prevented (backup/restore is made WITH patched boot).
Default setup set a password for lock screen, phone says it is encrypted under settings but i doubt that.
It did not reboot for the encryption progress which might be fine given that it comes with pre generated keys.
However the phone boots immediately to sim pin enter and after unlock everyting is directly accessible. It boots way to fast to be encrypted IMHO.
I also had a simmilar bug with paranoid os (also android 10) where it said its encrypted but it was not, twrp did not ask for a password everything was accessible and it was the same boot process.
Usually with android encryption i first have to enter the password for decryption, phone continues with boot animation and then have to enter sim pin.
So i wonder is this a bug with android 10 or is it really encrypted.
Yes, Android will force encrypt by default. Your phone is actually encrypted using "default_password", and in MIUI, decryption keys are not changeable by setting another lock PIN/Password, like it normally would in any other Android versions. If you manage to tamper with the keys using third party tools, you will be locked out of your system. Typing password during boot will return an "incorrect password" message, even if you typed it corrrectly.
Xiaomi considers bootloader LOCKED devices to be safe enough, hence why they don't really care much about encrypting. If your phone's bootloader is unlocked, you might be worrying about your data/internal storage being easily decryptable by thieves or unwanted people (for example), and I understand that. There is not much you can do about changing the default decryption password, you might just wait for a custom ROM that supports encryption properly, like Pixel Experience.
It use FBE, not FDE, search about it
Okay thats interesting to know, so basically the encryption is worthless as anyone with physical access can just desolder the flash chip and read the whole content.
I quite like miui but thats a major reason for me to switch to a custom rom.
Worthless encryption then. This is plain obfuscation and no security concept.
Which custom ROM can I use for my Poco x3 with FDE?
POCO X3 NFC stuck at boot logo (has locked bootloader)
Question: if I do a recovery - "Wipe Data" - which will do a factory reset
After that, will I be able to use an undelete program to recover the files?
If default encryption is being used - but encryption password is always the same - won't the old data be recoverable using an undelete type program?
The intent here is for me to get the phone working again - but to salvage the data from the phone internal storage as much as I can (even if is just the files that were at top level and not app-specific folders etc.).
I have a unbranded android phone stuck on kitkat and will encrypt fine but have installed a custom rom marshmallow. This doesnt encrypt at all (green robot, reboot and nothing).
What i would like to do is to hide the data partition from twrp so if it gets lost no one can access data. Should be able to lock unlock from os that way i can atleast ensure data is safe. Ideally i would like to encrypt but it cannot find a custom rom with encryption. I cannot lock BL again as it hangs most likely i think cos it rooted. any info ?
I think you can't really hide a partition - really hide data in a partition, even if a dot is 1st character of name of a directory and/or file or the empty .nomedia file is present in a directory. But, if Android is rooted, there a quick and easy, non-desctructable method to make sure the data can’t be accessed without doing some effort. Useful to hide data from a layperson.
The method is simple: flip the 5th least significant bit of the partition ID. The 0x83 for Linux partitions becomes 0x93. Let’s say we want to hide the partition /dev/sdd1 we run in Terminal window
Code:
su
sfdisk --change-id /dev/sdd 1 93
Note: sfdisk is part of BusyBox
thats what im looking or, any chance theres an app for this ? using commands phone side is a bit tricky, an app could make like work of that. Still its good enough maybe.
Deleted member 1890170 said:
I think you can't really hide a partition - really hide data in a partition, even if a dot is 1st character of name of a directory and/or file or the empty .nomedia file is present in a directory. But, if Android is rooted, there a quick and easy, non-desctructable method to make sure the data can’t be accessed without doing some effort. Useful to hide data from a layperson.
The method is simple: flip the 5th least significant bit of the partition ID. The 0x83 for Linux partitions becomes 0x93. Let’s say we want to hide the partition /dev/sdd1 we run in Terminal window
Code:
su
sfdisk --change-id /dev/sdd 1 93
Note: sfdisk is part of BusyBox
Click to expand...
Click to collapse
can i ask if re installin twrp make the data partition reappear ? if not then this is what i could do rather than encrypt. And do you have a more detailed guide on how to do the sfdisk thanks
androzer said:
I have a unbranded android phone stuck on kitkat and will encrypt fine but have installed a custom rom marshmallow. This doesnt encrypt at all (green robot, reboot and nothing).
What i would like to do is to hide the data partition from twrp so if it gets lost no one can access data. Should be able to lock unlock from os that way i can atleast ensure data is safe. Ideally i would like to encrypt but it cannot find a custom rom with encryption. I cannot lock BL again as it hangs most likely i think cos it rooted. any info ?
Click to expand...
Click to collapse
TWRP has the option to password lock TWRP.
Droidriven said:
TWRP has the option to password lock
Droidriven said:
TWRP has the option to password lock TWRP.
Click to expand...
Click to collapse
i dont think it has but even if it does whats the point ? you could reflash twrp writing over the password. But which twrp has this version or where is this option ?
Click to expand...
Click to collapse
@nidowak653
No, flashing TWRP will not remove the password because the password is stored in data partition, not in recovery.
As far as I know, it is and has always been an option in TWRP.
Also, relocking bootloader would wipe all data on the device, defeating the purpose of trying to encrypt/protect your data.
You are aware that if your device is lost or stolen, you can go to your Google account online and use the "Find My Device" option to remotely wipe your device of all data.
Droidriven said:
@nidowak653
No, flashing TWRP will not remove the password because the password is stored in data partition, not in recovery.
As far as I know, it is and has always been an option in TWRP.
Also, relocking bootloader would wipe all data on the device, defeating the purpose of trying to encrypt/protect your data.
You are aware that if your device is lost or stolen, you can go to your Google account online and use the "Find My Device" option to remotely wipe your device of all data.
Click to expand...
Click to collapse
i cannot find any option in twrp to lock the recovery with password, also read this
Why doesn't TWRP have password protection?
I’ve had people ask enough for a protected TWRP that I’m creating this page as a response so I don’t have to retype. If you’re seeing this page, you’re proba...
twrp.me
i only want encrypt to be able to use the fone for work purposes i dont really care about the data or the phone itself they can be replaced but havin encrypt means i can work on it.