[SOLVED] Encrypted phone - Xiaomi Mi A1 Questions & Answers

I install twrp recovery but it need a kind of password that i don´t have. Anyone can help me?

JOSE_1889 said:
I install twrp recovery but it need a kind of password that i don´t have. Anyone can help me?
Click to expand...
Click to collapse
Hello,
The password that TWRP requires is your personal password/pin/pattern that you use to unlock your device, it's needed to desencrypt your data, because oreo have encrypt data not as Nougat and before.
Regards

black_arashi said:
Hello,
The password that TWRP requires is your personal password/pin/pattern that you use to unlock your device, it's needed to desencrypt your data, because oreo have encrypt data not as Nougat and before.
Regards
Click to expand...
Click to collapse
Yes. I discover it searching on internet. Thanks

Related

TWRP asking for password I didn't set

I unlocked my bootloader, flashed Chainfire's systemless boot.img, flashed TWRP twrp-2.8.7.1-angler.img and when I took into recovery TWRP is asking me for a password to decrypt. I don't remember setting a password and don't know if there is a default one.
Can anyone help?
exSD said:
I unlocked my bootloader, flashed Chainfire's systemless boot.img, flashed TWRP twrp-2.8.7.1-angler.img and when I took into recovery TWRP is asking me for a password to decrypt. I don't remember setting a password and don't know if there is a default one.
Can anyone help?
Click to expand...
Click to collapse
Give this a shot?
Dees_Troy said:
When you set up a lock screen PIN / pattern / password, you are presented with an option to require a password when turning on the device. If you say no to this option, your device is encrypted using "default_password" as the password.
Click to expand...
Click to collapse
RojoNinja said:
Give this a shot?
Click to expand...
Click to collapse
I tired both a pin/default_password. Neither seems to work.
Do I need to format userdata to decrypt?
Your device is likely encrypted and TWRP can't read the contents of your SD card unless you format /userdata first. This will wipe everything on your phone. The nexus 6P rooting guide will explain this in detail. I'd link it here but I'm new on here and I don't really know how. Look in the Nexus 6P general section. It should be stickied at the top.
Here's the link to the rooting guide: http://forum.xda-developers.com/nexus-6p/general/guides-how-to-guides-beginners-t3206928
What happens if you boot up and set a password? Does that password work for TWRP?
Cares said:
What happens if you boot up and set a password? Does that password work for TWRP?
Click to expand...
Click to collapse
I flashed the stock image and redid the process.
I booted the phone and did not set any password/pin/fingerprint/etc. No security. Then I redid the boot.img, recovery.
I was then able to reboot into TWRP without the password prompt. Flashed systemless SuperSU and rebooted.
Now I'm stuck in the Google loading screen and has been there for a while. Looks like maybe it's not liking the new boot.img?
exSD said:
I flashed the stock image and redid the process.
I booted the phone and did not set any password/pin/fingerprint/etc. No security. Then I redid the boot.img, recovery.
I was then able to reboot into TWRP without the password prompt. Flashed systemless SuperSU and rebooted.
Now I'm stuck in the Google loading screen and has been there for a while. Looks like maybe it's not liking the new boot.img?
Click to expand...
Click to collapse
You're likely not on the latest build, so you'll have to use the images on Google to put yourself on the MDB08K (or higher) build before proceeding with the modified boot img (unless your devices can get the OTA). Many of the devices shipped with MDA89D out of the box.
Kusanagi Fire said:
You're likely not on the latest build, so you'll have to use the images on Google to put yourself on the MDB08K (or higher) build before proceeding with the modified boot img (unless your devices can get the OTA). Many of the devices shipped with MDA89D out of the box.
Click to expand...
Click to collapse
Is D or K the latest?
exSD said:
Is D or K the latest?
Click to expand...
Click to collapse
Latest is M. Modified boot was created based on K, but I believe has no problems working on M.
Kusanagi Fire said:
Latest is M. Modified boot was created based on K, but I believe has no problems working on M.
Click to expand...
Click to collapse
For some reason I thought D was the latest and flashed that. I'll upgrade to M and use the modified K boot.img.
That should clear it all up. Thanks for your help bud. I appreciate it. Let me know if I can ever help you sometime.
exSD said:
For some reason I thought D was the latest and flashed that. I'll upgrade to M and use the modified K boot.img.
That should clear it all up. Thanks for your help bud. I appreciate it. Let me know if I can ever help you sometime.
Click to expand...
Click to collapse
No worries. Happy to help. I had this problem when trying to root my phone, as well. It happens to the best of us. Hope that clears everything up for you and you're able to enjoy this beauty.
Is this normal for TWRP to ask for a password if you have pattern password turned on. So do I need to turn off all of my security before flashing TWRP 2.8.7.1
Right now my bootloader is unlocked, M6.0 all stock. I’ve been waiting for the source code to be release by Google so we can get a official root SU
boxcar8028 said:
Is this normal for TWRP to ask for a password if you have pattern password turned on. So do I need to turn off all of my security before flashing TWRP 2.8.7.1
Right now my bootloader is unlocked, M6.0 all stock. I’ve been waiting for the source code to be release by Google so we can get a official root SU
Click to expand...
Click to collapse
I'm not sure how TWRP would handle the pattern password. You can flash TWRP 2.8.7.1 and give it a shot. If it doesn't work, just download the stock image and extract the recovery.img from it and flash it back to stock.
Kusanagi Fire said:
No worries. Happy to help. I had this problem when trying to root my phone, as well. It happens to the best of us. Hope that clears everything up for you and you're able to enjoy this beauty.
Click to expand...
Click to collapse
Hey, FYI, that was my issue. Flashed the M image, then the K systemless root boot.img and all is working well now. No password prompt on latest TWRP either.
Resetting the pin worked for me
was having the same problem on Nexus 6P- had previously TWRP/rooted with no problem, don't remember being asked for a password.
After flashing recovery/radio/ROM back to stock and then later deciding to root again ran into this.
Android was still booting up OK so just set a new pin in Settings-->Security-->ScreenLock and selected the require PIN to start option. This PIN then worked as the password in TWRP to decrypt.
I was having the same issue with TWRP 2.8.7.2, I decided to flash TWRP 3.0.0.1 and I did not get prompted for the password. Not sure if this a true solution so at some point I may just decrypt data.
From another forum, This worked for me and couple of other people too
I found a better way.
I found a way around. Boot into ROM, create a 4 digit pin screen lock, then use flashify to flash recovery, then boot into new recovery and use pin.
Boom, you have decrypted recovery. You can boot back into your rom and change the passcode to "none" and twrp won't ask for a pin.
This is because when twrp initially boots it sees a "default_password" but if you go into twrp and try to type default password it will not work because there isn't a default password it just sees there is one except its unlisted it's kind of a double negative but a way around that is to create a password.
rdskhalsa said:
I found a better way.
I found a way around. Boot into ROM, create a 4 digit pin screen lock, then use flashify to flash recovery, then boot into new recovery and use pin.
Boom, you have decrypted recovery. You can boot back into your rom and change the passcode to "none" and twrp won't ask for a pin.
This is because when twrp initially boots it sees a "default_password" but if you go into twrp and try to type default password it will not work because there isn't a default password it just sees there is one except its unlisted it's kind of a double negative but a way around that is to create a password.
Click to expand...
Click to collapse
Tnx mate, your method worked like a charm for me.
I think I'm having a twist on this problem.
After using Lineage for a while I tried another rom (carbon) which I now think has encrypted my data. I tried going back to lineage but now I cannot access my data, nor the backups I made for both Lineage and Carbon.
I think that if I can put the backup of carbon back I should also have my files back. But with and encrypted file system I can not get back to Carbon.
I think I did set "ask for password at boot" in Lineage but I took off the pattern+ finger prints before making the backup and I did not set pattern or fingerprint after installing carbon.
Is there a way to get back to carbon?
Your data is no longer accessible. Once your storage has been encrypted, the only way to un-encrypt is to flash a full stock Google image, and then do a factory reset from the stock recovery. If you had any backups on PC, you could then restore them and be back in business. This USUALLY only happens to you one time and you never forget. Think of it as a housecleaning day.

TWRP recovery requires me to have a password to decrypt data

I have installed TWRP for android N, however when I run it I need to enter a password to decrypt my data. I know this can be a problem resulting from not booting after unlocking, however I did. Also the default password 'default_password' did not work. I was wondering if there are any ways around this that do not involve wiping my phone.
Thanks
stants225 said:
I have installed TWRP for android N, however when I run it I need to enter a password to decrypt my data. I know this can be a problem resulting from not booting after unlocking, however I did. Also the default password 'default_password' did not work. I was wondering if there are any ways around this that do not involve wiping my phone.
Thanks
Click to expand...
Click to collapse
adb twrp-3.0.2-2-angler.img. Sounds like you are on an older version of TWRP.
BTW" with this version, you do not need to decrypt.
Currently adb twrp-3.0.2-2-angler.img. Sounds like you are on an older version of TWRP.
Click to expand...
Click to collapse
The version I'm using is twrp-3.0.2-3-angler, so it seems to be p to date, and apparently there are bugs for twrp 3.0.2-2 for android N.

storage encrypted

Hey guys, so, i got this phone with encrypted storage, and now i am trying to root it. Twrp requires password, and without it i can't flash anything.
Does anyone own a decrypted version of the stock firmware, and, could you help me with that?
stefan gg said:
Hey guys, so, i got this phone with encrypted storage, and now i am trying to root it. Twrp requires password, and without it i can't flash anything.
Does anyone own a decrypted version of the stock firmware, and, could you help me with that?
Click to expand...
Click to collapse
in TWRP: repair/change filesystem/format data-partition as EXT4 filesystem
and/or follow:
http://android.stackexchange.com/questions/98228/removing-encryption-from-recovery

Encrypted or not?

How can i see if i am encrypted or not? I am on nougat rooted and i wanna upgrade to Oreo.
Settings > Security > Scroll down to the bottom, you'll see there if you're encrypted or decrypted
lazostat said:
How can i see if i am encrypted or not? I am on nougat rooted and i wanna upgrade to Oreo.
Click to expand...
Click to collapse
Also, if you don't know, you probably are encrypted
But as said, go to the security menu to check
Yes i am encrypted. Thank you for the info.
How is it possible to get decrypt? I dont want to, but maybe i do it by mistake when flashing new custom roms.. Dont know..
lazostat said:
Yes i am encrypted. Thank you for the info.
How is it possible to get decrypt? I dont want to, but maybe i do it by mistake when flashing new custom roms.. Dont know..
Click to expand...
Click to collapse
To go decrypted, you need to go into TWRP and format data (an operation that needs confirmation by typing "yes", so you'll know.)
Doing so, you will lose everything and really everything on the phone memory so do a backup.
Then sideload a ROM, and follow the steps from its thread. If the ROM needs decryption, then you'll be required to flash a small zip called No verity. This will stop the phone to encrypt.
If you flash nothing then the phone will be encrypted upon next Reboot.
Just follow the exact instructions in your ROM thread.
lazostat said:
How is it possible to get decrypt? I dont want to, but maybe i do it by mistake when flashing new custom roms.. Dont know..
Click to expand...
Click to collapse
Check out this thread for information on how to decrypt.

Unsure what I did

but ....... I am in twrp unable to reboot into my rom. When I click on Install I see all these folders with letters and numbers and what my original folders.
Can somone help me boot into my rom again?
ms.journie said:
but ....... I am in twrp unable to reboot into my rom. When I click on Install I see all these folders with letters and numbers and what my original folders.
Can somone help me boot into my rom again?
Click to expand...
Click to collapse
You will more than likely need to format data. This will cause you to loose everything. But that is what you are seeing, those folders, are your data. Just encrypted.
Also make sure you are on the latest version of TWRP. Sometimes the older unsupported version had encryption errors.
Omg this saddens me! So there's no way I am unable to at least retrieve my pictures?
Scott said:
You will more than likely need to format data. This will cause you to loose everything. But that is what you are seeing, those folders, are your data. Just encrypted.
Also make sure you are on the latest version of TWRP. Sometimes the older unsupported version had encryption errors.
Click to expand...
Click to collapse
Have u tested change boot partition ?
yup
J3zz said:
Have u tested change boot partition ?
Click to expand...
Click to collapse
ms.journie said:
yup
Click to expand...
Click to collapse
Simple test are:
- change boot partition
- reflash system
- Say goodbye too all
Got the same problem, Solved After reboot in twrp and enter the good decryption code
I'm right in the middle of reflashing. I am trying everything else before I do say goodbye to my pictures! :crying:
How did you figure out the decryption code?
J3zz said:
Simple test are:
- change boot partition
- reflash system
- Say goodbye too all
Got the same problem, Solved After reboot in twrp and enter the good decryption code
Click to expand...
Click to collapse
ms.journie said:
I'm right in the middle of reflashing. I am trying everything else before I do say goodbye to my pictures! :crying:
How did you figure out the decryption code?
Click to expand...
Click to collapse
First time entering in twrp after flashing update, I did not get folder to flash magisk, did a reboot and get it, just a bad encryption code I think
Did u flash rom or anything else before getting this problem ?
Yup, I sure did! 4am couldn't sleep so I thought I would finally put a fingerprint mod on; which I have done this before with no issues. For the life of me, I don't remember which mod I tried to install thru Magisk.
My phone is currently stuck on "Phone is starting"
I also think it's time to look into some sort of automatic back up service..... Got any ideas?
J3zz said:
First time entering in twrp after flashing update, I did not get folder to flash magisk, did a reboot and get it, just a bad encryption code I think
Did u flash rom or anything else before getting this problem ?
Click to expand...
Click to collapse
ms.journie said:
Yup, I sure did! 4am couldn't sleep so I thought I would finally put a fingerprint mod on; which I have done this before with no issues. For the life of me, I don't remember which mod I tried to install thru Magisk.
My phone is currently stuck on "Phone is starting"
I also think it's time to look into some sort of automatic back up service..... Got any ideas?
Click to expand...
Click to collapse
Use msmdownloadtool, have u tried using magisk uninstall in twrp with zip file ? Then boot and uninstall the "****in" fantastic module... maybe it works
I did try to uninstall Magisk in twrp using adb shell. I never had any luck with that msmdownloadtool and not only that it relocks your bootloader.
I usually go this route [ROM][STOCK][FASTBOOT][OP6T] Stock Fastboot ROMs for OnePlus 6T https://forum.xda-developers.com/oneplus-6t/how-to/rom-stock-fastboot-roms-oneplus-6t-t3862516
Thanks for trying to me!
J3zz said:
Use msmdownloadtool, have u tried using magisk uninstall in twrp with zip file ?
Click to expand...
Click to collapse
ms.journie said:
I did try to uninstall Magisk in twrp using adb shell. I never had any luck with that msmdownloadtool and not only that it relocks your bootloader.
I usually go this route [ROM][STOCK][FASTBOOT][OP6T] Stock Fastboot ROMs for OnePlus 6T https://forum.xda-developers.com/oneplus-6t/how-to/rom-stock-fastboot-roms-oneplus-6t-t3862516
Thanks for trying to me!
Click to expand...
Click to collapse
Good luck !!
I saw this happen when I used the official TWRP app.
It went away when I used this TWRP. Hope that helps.
I'm glad you already know not to use the MSM tool. Too many people jump straight to this.....
You just need to boot the correct recovery and your data will decrypt, and you will be able to back it up to a PC, then you can reload your ROM via TWRP or Fastboot to get the phone bootable again. So now it's a question of what ROM were you running before. Do you need a recovery with the latest security patch or something older? What TWRP are you running. Try 3.3.1-6 psychen6 linked too first. Boot that image from Fastboot. See if your password/pin will work to decrypt your data.

Categories

Resources