Firstly, I need to say my specific problem so that this question won't marked as duplicated.
I've an android phone that has already root access and bootloader lock open. And recently I dropped it and its screen (lcd panel) was blacked out and no feedback about screen. But locally its touch panel %90 of screen was working because someone calls me it can answer and rejecet call if you swipe it from its oginal coordinates of screen.
However, I connect it from Vysor app to see screen and it was successfully done its process but I couldn't backup at that position because of time limitation about my life. A day later, I tried it again but not worked. After this I reset it but now it ask me to enter password manually for first time and fingerprint doesn't work. At this step I forced to power loss (by holding power button of phone) to start it from bootlader. And I started it from bootloader and boot from my previously used twrp.img version that has ability of decrypt password and was confirmed previously time before this happened. After this step it decrypted successfully and I deleted /data/system/gatekeeper.pattern.key after I backedup 58 bytes file. Now I have backup of .key file. After that I reboot phone to open normally but it doesn't ask password also doesn't decrypt userdata partiton. And stuck on Phone is starting...
screen.
Now, I realised that I set password again with same value from when system was awake. so my partition was encrypted before it was successfully decrypted. So if my password is true the TWRP security codes (that check if is successfully decrypted it) but it fails even if I use correct password. So I need to find algorithm of decryption and I will apply algorith twice.
In short, I need somehing like that but it won't check if password correct or not
twrp decrypt $PASS ; twrp decrypt $PASS
.
otherwise it will fail on first time so second time and so on it will repeats.
$PASS
always same in my situation. But when you do bruteForceAttack you must change $PASS to find out actual key. – makgun Jan 10 '20 at 14:23echo $PASS|md5sum|md5sum
. The md5 algorith applyed cummulatively with first encryption algorth output like in my situation data partition table was encrypted twice cummulatively. – makgun Jan 10 '20 at 14:28try unofficial TWRP from codeworkx
– alecxs Jan 10 '20 at 23:27adb pull /dev/block/sda13
~ 113981 MB / ~ 4 hours (before mess up), then restorecat /tmp/gatekeeper.pattern.key > /data/system/gatekeeper.pattern.key
furthermore wait for answer on this question https://android.stackexchange.com/q/216155 – alecxs Jan 11 '20 at 01:14gatekeeper.pattern.key
. Also I do full dump of my userdata partition as you suggested.(Takes 70mins with usb cable and ssd not 4 hours).However, at this time i dont have key in/tmp/
folder also my old key file was backed up as 58 bytes binary code but only remiving this file and booting device normally, it stucks onphone starting...
screen. And again keeping old file with same name and location (restored key) but now it ask pattern but not accepted. I think it uses more files to decrypt it. – makgun Jan 11 '20 at 08:47/data/system/gatekeeper.pattern.key
contents completely different my backed up file. Why this is so different key generated with same pattern also decrypted it with new phone and again encrypted and the key again changed. – makgun Jan 13 '20 at 18:45