How to decrypt storage - Redmi K20 Pro / Xiaomi Mi 9T Pro Questions & Answe

How to remove decryption in storage? I tried Andy Yans script but it doesn't work for me. It stays on the Android splash page but doesn't boot into system. I installed the script after I wiped data.
I would like to try custom kernals.

hanzzi said:
How to remove decryption in storage? I tried Andy Yans script but it doesn't work for me. It stays on the Android splash page but doesn't boot into system. I installed the script after I wiped data.
I would like to try custom kernals.
Click to expand...
Click to collapse
Format data, the one where u need to type yes(you lose all internal)
disable force encryption is used before first boot of a new vendor firmware to prevent encryption, it wont decrypt.

Mooatreides said:
Format data, the one where u need to type yes(you lose all internal)
disable force encryption is used before first boot of a new vendor firmware to prevent encryption, it wont decrypt.
Click to expand...
Click to collapse
Thanks for the reply but I'm still a little unsure. I can't seem to find format data where you have to type yes. In Twrp I go to advance wipe and just select data and I have to slide the bar to the right. Then I install the script. Is this wrong?

hanzzi said:
Thanks for the reply but I'm still a little unsure. I can't seem to find format data where you have to type yes. In Twrp I go to advance wipe and just select data and I have to slide the bar to the right. Then I install the script. Is this wrong?
Click to expand...
Click to collapse
Yeah it says advanced wipe, and format data, tap format data and type yes.

Related

[Q] How to wipe Data partition after it's been encrypted?

Hey guys,
My work switched to Google Apps for their email so i wanted to test it out on my phone. Doing so required them to encrypt my phone. What this appears to have done is encrypt the data partition. So now when i go into (TWRP) recovery and try to do a backup / wipe / or anything else, it says it is "Unable to mount /sdcard" I'm unable to do a factory reset of any kind so i'm essentially stuck on this rom (ARHD) until i can figure out how to wipe data and get the /sdcard to be not encrypted. Does anyone have any ideas? I'm imagining that with the modified recovery not being able to access the data partition that i'm going to have to do some adb type stuff?
Please help! I want to keep flashing new roms!
Anyone??
I think you can't decrypt your data partition...
Did you try to wipe your data partition with the latest TWRP?
Guich said:
I think you can't decrypt your data partition...
Did you try to wipe your data partition with the latest TWRP?
Click to expand...
Click to collapse
That's the thing, the recovery can't mount /sdcard so wiping isn't an option from recovery
jrun said:
That's the thing, the recovery can't mount /sdcard so wiping isn't an option from recovery
Click to expand...
Click to collapse
Hi! Only TWRP recovery can solve your issue just do this...
Boot to TWRP recovery->Wipe
From there there are 2 options the left is the advance wipe and on the right is Format Data
Just select the format data button and it should reformat the whole data partition.
1st one would prompt so many errors and reformat then reformat it again 1 time and it should fully reformat your phone.
In theory it should reformat data partition even when encrypted but just in case it fails and I won't be able to go back to this thread just boot in bootloader and type
"fastboot erase userdata"
Well none of that works. TWRP doesn't support decryption yet for this device.
sevenalive said:
Well none of that works. TWRP doesn't support decryption yet for this device.
Click to expand...
Click to collapse
What I instructed basically doesn't decrypt the partition. It reformats it.
Riyal said:
What I instructed basically doesn't decrypt the partition. It reformats it.
Click to expand...
Click to collapse
I know what you instructed, it doesn't work. Only way I got it to work. Flash the stock recovery. Boot into system. Take off the encryption, phone reboots and removes the encryption, data is formatted. Then flash TWRP again.
I basically ran into this exact problem. I was hoping that I'd still be able to back up the encrypted device, but forget about it. What a pain in the ass.
Someone should make add something to the guides about how encrypting your device makes nandroid backups impossible.

How to know if encrypted or not?

I flashed a file that was supposed to disable encryption but it still shows as "encrypted" in Security settings. How can I tell if encryption is actually enabled or not?
If not encrypted you will have option "Encrypt phone" in security settings. After flashing kernel that does not enforce encryption you need to format userdata.
The Resurrection Remix ROM I'm using gave a zip to flash that was supposed to disable encryption but all I did after flashing the ROM, Gapps, and then that file was wipe the cache and then the dalvik cache. What is formatting the userdata?
enginuity2 said:
I flashed a file that was supposed to disable encryption but it still shows as "encrypted" in Security settings. How can I tell if encryption is actually enabled or not?
Click to expand...
Click to collapse
flashing a file wont decrypt you. you have to decrpt yourself after flashing that file or a kernel that allows decrypting. you have to format your user data/storage, this will delete everything in your storage. only then will you be decrypted after booting up.
enginuity2 said:
The Resurrection Remix ROM I'm using gave a zip to flash that was supposed to disable encryption but all I did after flashing the ROM, Gapps, and then that file was wipe the cache and then the dalvik cache. What is formatting the userdata?
Click to expand...
Click to collapse
Connect device to a PC and use command "fastboot format userdata". This will wipe all your private stuff so backup before proceeding.
Can I do that through my TWRP recovery?
enginuity2 said:
Can I do that through my TWRP recovery?
Click to expand...
Click to collapse
You can. It is in Wipe>Format Data section. You will have to type "yes" to confirm.
Is that all I need to do to decrypt now? Just wipe the user/data? Can I install a new kernel and not have to wipe everything?
enginuity2 said:
Is that all I need to do to decrypt now? Just wipe the user/data? Can I install a new kernel and not have to wipe everything?
Click to expand...
Click to collapse
not wipe. format. they are two differing things. and yes, as long as it allows decryption.
That worked surprisingly well. Since I've already lost all of my data, what can I wipe in order to do a full clean install of my rom? TWRP gives me the option to wipe Dalvik Cache, System, Data, Internal Storage, and Cache. Your help is greatly appreciated.
enginuity2 said:
That worked surprisingly well. Since I've already lost all of my data, what can I wipe in order to do a full clean install of my rom? TWRP gives me the option to wipe Dalvik Cache, System, Data, Internal Storage, and Cache. Your help is greatly appreciated.
Click to expand...
Click to collapse
to get a full real wipe.. you should wipe system and data, then reflash your rom. because when you wipe system, you wipe your rom off your phone.
enginuity2 said:
That worked surprisingly well. Since I've already lost all of my data, what can I wipe in order to do a full clean install of my rom? TWRP gives me the option to wipe Dalvik Cache, System, Data, Internal Storage, and Cache. Your help is greatly appreciated.
Click to expand...
Click to collapse
Before you do that make sure that you can connect your device to PC in bootloader mode and in recovery mode (TWRP). If you wipe everything you will cut the branch you are sitting on.
Witek_M, you beat me to it. Thank you.
Witek_M said:
Before you do that make sure that you can connect your device to PC in bootloader mode and in recovery mode (TWRP). If you wipe everything you will cut the branch you are sitting on.
Click to expand...
Click to collapse
to be safe, ok. thats a great idea for newer folk.
but ill be honest, there are a few differing ways to get a rom onto your device from twrp. but you should downliad the rom beforehand, it wont get deleted. anyways, now you can use adb to transfer files, two differing ways. and you can just simply transfer a rom to your phone using twrp, not adb, as well.
What commands do I need to use to push the rom onto the phone?
enginuity2 said:
What commands do I need to use to push the rom onto the phone?
Click to expand...
Click to collapse
if anything, i use adb push. but twrp has an option now to tranfer roms over to your phone as well, without using adb.
So if I put the rom's zip, gapps, etc on the phone's storage and wipe system, the rom zip file and twrp will still be usable on the phone after that?
enginuity2 said:
So if I put the rom's zip, gapps, etc on the phone's storage and wipe system, the rom zip file and twrp will still be usable on the phone after that?
Click to expand...
Click to collapse
yes. wiping system will get rid of the rom, wiping data will get rid of all your apps and data, but none of them will wipe your storage. thats in advanced wipe settings.

TWRP 3.1.0

I recently updated my TWRP to the latest and official version of 3.1.0, but now after updating it i am facing a new bug.
Whenever i wipe cache and dalvik cache it say's in the end "Unable to mount Storage"
Someone please help
You have some partitions encrypted.
Decrypt your phone and try again.
Some ROM have encryption activated, initially.
Testerofroms said:
You have some partitions encrypted.
Decrypt your phone and try again.
Some ROM have encryption activated, initially.
Click to expand...
Click to collapse
Could you please tell me how to decrypt? I am using RR rom 7.1.1 official
Prayas29 said:
Could you please tell me how to decrypt? I am using RR rom 7.1.1 official
Click to expand...
Click to collapse
Mmmh it seems, that you can not.
please go there and read:
http://forum.le.com/us/index.php?threads/issue-whit-leeco-update.2383/
In addition you should also google for "android encrypt" or perhaps for "android 7 encrypt" ?
This feature exists already since Android 5...
Testerofroms said:
Mmmh it seems, that you can not.
please go there and read:
http://forum.le.com/us/index.php?threads/issue-whit-leeco-update.2383/
In addition you should also google for "android encrypt" or perhaps for "android 7 encrypt" ?
This feature exists already since Android 5...
Click to expand...
Click to collapse
Even though it says unable to mount storage i am able to see all the files in my storage and access them
Prayas29 said:
Even though it says unable to mount storage i am able to see all the files in my storage and access them
Click to expand...
Click to collapse
Please read this thread:
Indian stock ROM LeMax2 EUI 5.8 15s
/data is encrypted with a factory password
-> no way to make it accessable for TWRP.
so you need to copy the content and after that, you need to wipe this partition
Testerofroms said:
Please read this thread:
Indian stock ROM LeMax2 EUI 5.8 15s
/data is encrypted with a factory password
-> no way to make it accessable for TWRP.
so you need to copy the content and after that, you need to wipe this partition
Click to expand...
Click to collapse
I had done that earlier when i flashed TWRP for the first time and after that nothing like this showed. I am seeing this again after updating it again to 3.1.0.
So i will have to factory reset it again to make itwork properly?
And do i have to do it every time i update my TWRP?
And also what all should i wipe?
Should i wipe my whole phone storage?
Prayas29 said:
And also what all should i wipe?
Should i wipe my whole phone storage?
Click to expand...
Click to collapse
wipe /date and /cache
---------- Post added at 17:49 ---------- Previous post was at 17:46 ----------
Prayas29 said:
I had done that earlier when i flashed TWRP for the first time and after that nothing like this showed. I am seeing this again after updating it again to 3.1.0.
So i will have to factory reset it again to make itwork properly?
And do i have to do it every time i update my TWRP?
Click to expand...
Click to collapse
the stock boot is always checking of /data is encrypted or not.
if /data is not encrypted, it will start encrypting while booting.
decrypt key is not known.
Testerofroms said:
wipe /date and /cache
---------- Post added at 17:49 ---------- Previous post was at 17:46 ----------
the stock boot is always checking of /data is encrypted or not.
if /data is not encrypted, it will start encrypting while booting.
decrypt key is not known.
Click to expand...
Click to collapse
Thanks for the help but one more question is that will this happen again if i dont update my TWRP? Or only while updating it encrypts the data?
Sorry for all the noob questions. I am not so techy guy so these things are new to me
Prayas29 said:
Thanks for the help but one more question is that will this happen again if i dont update my TWRP? Or only while updating it encrypts the data?
Sorry for all the noob questions. I am not so techy guy so these things are new to me
Click to expand...
Click to collapse
You will never have access to /data with TWRP,
if you can not provide the correct password.
This password is set by the manufacturer and not public yet.
If you boot the system you will have access to /data.
If you boot the TWRP you will not have access to /data.
This is not related to any update..
Testerofroms said:
You will never have access to /data with TWRP,
if you can not provide the correct password.
This password is set by the manufacturer and not public yet.
If you boot the system you will have access to /data.
If you boot the TWRP you will not have access to /data.
This is not related to any update..
Click to expand...
Click to collapse
But i used to wipe my cache and do flash ROMs earlier and it never said unable to mount storage. It started doing this recently
Prayas29 said:
But i used to wipe my cache and do flash ROMs earlier and it never said unable to mount storage. It started doing this recently
Click to expand...
Click to collapse
Believe me or read the other threads regarding default encrypting Android versions..
/cache is cache
/data is all your userdata and apps
/system is the os
/boot is bootloader
/recovery is the TWRP
there are more mountpoints, you can see them if you click on mount in TWRP.
I wrote /data encrypted and you wrote /cache wiping.
Testerofroms said:
Believe me or read the other threads regarding default encrypting Android versions..
/cache is cache
/data is all your userdata and apps
/system is the os
/boot is bootloader
/recovery is the TWRP
I wrote /data and you wrote /cache.
Click to expand...
Click to collapse
Dude i meant that how suddenly it happened on its own i used to wipe cache and other stuff but never it has shown the unable to mount storage error thats what i meant i believe you i just want answers
Prayas29 said:
Dude i meant that how suddenly it happened on its own i used to wipe cache and other stuff but never it has shown the unable to mount storage error thats what i meant i believe you i just want answers
Click to expand...
Click to collapse
Also it doesn't ask for any password or anything just says unable to mount storage at the end while wiping cache and dalvik cache. I havn't flashed anything since some time soo can't tell if flashing ROM will work or will it show some error.
But a few months ago NO error was displaying and everything was fine
Prayas29 said:
Also it doesn't ask for any password or anything just says unable to mount storage at the end while wiping cache and dalvik cache. I havn't flashed anything since some time soo can't tell if flashing ROM will work or will it show some error.
But a few months ago NO error was displaying and everything was fine
Click to expand...
Click to collapse
You think, it's perhaps related to TWRP version?
Well then you can boot the version before or another version w/o flashing...
Guide to start TWRP remotely
enable OEM unlocking in developer settings
boot into fastboot mode (power and Volume down)
fastboot boot twrp.img
TWRP chinese version
You need to switch the language away from chinese.
Other TWRP versions are listed here
http://www.hackleaks.in/2017/01/all-about-leeco-le-2-x522-x526-x527.html

[Solved] How to reset / clear TWRP's password

Hello everyone, I changed my Redmi K20 Pro password but I stopped using it and forgot the password. Is there a way to clear TWRP's password, uninstall TWRP or even change the phone's recovery back to stock? Anything to regain access to the phone. Thanks for the help!
HenriqueMarrocos said:
Hello everyone, I changed my Redmi K20 Pro password but I stopped using it and forgot the password. Is there a way to clear TWRP's password, uninstall TWRP or even change the phone's recovery back to stock? Anything to regain access to the phone. Thanks for the help!
Click to expand...
Click to collapse
If you mean the lockscreen security password/PIN, then there's no solution that won't allow you to keep the data currently on the phone. The simplest solution is to format the data partition in TWRP. In this case is doesn't matter that you don't know the lockscreen password when entering TWRP. Just hit OK and you'll get a message saying it failed to decrypt the partition, but afterwards you'll still be able to format the data partition.
Robbo.5000 said:
If you mean the lockscreen security password/PIN, then there's no solution that won't allow you to keep the data currently on the phone. The simplest solution is to format the data partition in TWRP. In this case is doesn't matter that you don't know the lockscreen password when entering TWRP. Just hit OK and you'll get a message saying it failed to decrypt the partition, but afterwards you'll still be able to format the data partition.
Click to expand...
Click to collapse
Thank you Robbo.5000. I had already formatted Dalvik, Cache, System, Vendor, Data and Internal Storage but I didn't pay attention to the Format Data button on the previous screen. Problem solved!

Question Unable to mount /system.

So I was trying to install viper4arise using their own tutorial [https://forum.xda-developers.com/t/...ditory-research-in-sound-enhancement.3379709/] using Orange Fox Recovery. Also, since I can't access the /sdcard partition using the recovery, I used adb push to transfer the zip file to be flashed.
Then while flashing the zip, it requires access to /system and hence while flashing, it shows "ERROR:1, unable to mount /system."
I've heard that data is some kind of encrypted and to remove it I have to do "Format Data".
1 - Is there any other way to decrypt than doing a format data?
2 - Also once i do format data can i keep my storage unencrypted someway?
3 - And most importantly, what exactly does "Format Data" do? Which files does it remove and will I have to reinstall my stock ROM after doing it.
Thanks a lot and I'd love if you answer my questions part-by-part.
doughnut9 said:
So I was trying to install viper4arise using their own tutorial [https://forum.xda-developers.com/t/...ditory-research-in-sound-enhancement.3379709/] using Orange Fox Recovery. Also, since I can't access the /sdcard partition using the recovery, I used adb push to transfer the zip file to be flashed.
Then while flashing the zip, it requires access to /system and hence while flashing, it shows "ERROR:1, unable to mount /system."
I've heard that data is some kind of encrypted and to remove it I have to do "Format Data".
1 - Is there any other way to decrypt than doing a format data?
2 - Also once i do format data can i keep my storage unencrypted someway?
3 - And most importantly, what exactly does "Format Data" do? Which files does it remove and will I have to reinstall my stock ROM after doing it.
Thanks a lot and I'd love if you answer my questions part-by-part.
Click to expand...
Click to collapse
Probably needs to root the device.
1 - Is there any other way to decrypt than doing a format data?
Remove all lock screen security
2 - Also once i do format data can i keep my storage unencrypted someway?
Once you have installed a rom and added a security on the lock screen.
3 - And most importantly, what exactly does "Format Data" do?
Format data delete all your content and create a new partition if necessary.
will I have to reinstall my stock ROM after doing it?
yes.
NOSS8 said:
Probably needs to root the device.
1 - Is there any other way to decrypt than doing a format data?
Remove all lock screen security
2 - Also once i do format data can i keep my storage unencrypted someway?
Once you have installed a rom and added a security on the lock screen.
3 - And most importantly, what exactly does "Format Data" do?
Format data delete all your content and create a new partition if necessary.
will I have to reinstall my stock ROM after doing it?
yes.
Click to expand...
Click to collapse
Thanks a lot!

Categories

Resources