TWRP cannot encrypts data with password - Redmi K30 5G Questions & Answers

I've tried to update to a weekly released, MIUI 12 20.12.28 for my K30 5G but it said that TWRP cannot encrypted data even with my personal password and needed a complete data format to be able to use the system. I don't know why and I don't want to set up my phone every time it updates so are there ways to fix it?

Update your recovery: latest TWRP or OFRP supports decryption in all devices except for stock A11 China ROM.

Related

Bootloop on every custom MIUI roms

Hi
i have tried to install all the custom MIUI roms available but non of them passed boot even after a system,data,cache,dalvik wipe
i even tried vendor i also removed password from the main rom (global beta) so that it can decrypt data normally
i tried installing firmware before flashing them i know it has its own fw but i tried to make it work
now i'm stuck i want to test them but i can't
i think formating data should help but i don't want to lose sdcard data
i also have the 128gb version if that makes a difference
please help me out

Device encrypted

I came from MIUI 9 official. I unlocked bootloader, flashed TWRP 3.2.1 vasishath, flashed Magisk and it said: "encrypted data detected, keep forceencryp"t. Then I did full wipes, then I installed AEX rom, gapps, and my device appears as encrypted. If i boot to recovery also is encrypted and asks me toenter pin. Encrypted by default? Is this MIUI, TWRP or AEX feature?
How can I decrypt? I want to decrypt to avoid future problems with dirty flashing and some other things, In addition, encryption slows down the system theoretically.
You need to FORMAT Data (not wipe) to remove encryption, Magisk will then prevent your rom from encrypting again on boot.
If your rom has a survival script for magisk, there is no need to reflash it on updating the rom.
If it doesn't then you will need to reflash it on update to prevent your rom from encrypting it on boot.
Me too....

Update Xiaomi.eu 8.8.9 to Global 10.2.1 best way?

Girlfriend had one of the earlier Mi Max 3 with the 'fake' global ROM. Using some of Omer919 info I updated it to the Xiaomi.eu 8.8.9 and left it at that as most things worked. Due to one annoying bug she wants to update to Global 10.2.1.
Is this just a case of flashing a fastboot ROM and making sure 'lock bootloader' is NOT ticked or is it easier (safer) to do it via Recovery?
Wam7 said:
Girlfriend had one of the earlier Mi Max 3 with the 'fake' global ROM. Using some of Omer919 info I updated it to the Xiaomi.eu 8.8.9 and left it at that as most things worked. Due to one annoying bug she wants to update to Global 10.2.1.
Is this just a case of flashing a fastboot ROM and making sure 'lock bootloader' is NOT ticked or is it easier (safer) to do it via Recovery?
Click to expand...
Click to collapse
Hi, On MiMax 3 unlocked bootloader, region is not a problem. But why you want to flash a global rom on a chinese one (fake global) ? It's more interesting to flash eu. 10.2.1
As you already are on xiaomi.eu, 8.8.9 (oreo) and 10.2.1 eu (oreo) you can only follow instructions on the Xiaomi.eu thread, wipe dalvik, cache and flash 10.2.1 eu. If it don't boot only wipe data partition and it'll boot fine.
If you want a cleaner install, you can factory reset. Or like me, I use a method which is not very recommended. (Wipe all axcept external storage and flash eu 10.2.1).
I recommend you to update your recovery to latest nigel8 one, whatever the method you want to use. Specially if you still have an encrypted partition. (On my side no more encrypted - did a format data to avoid problems)
Regards
Skyllery said:
Hi, On MiMax 3 unlocked bootloader, region is not a problem. But why you want to flash a global rom on a chinese one (fake global) ? It's more interesting to flash eu. 10.2.1
As you already are on xiaomi.eu, 8.8.9 (oreo) and 10.2.1 eu (oreo) you can only follow instructions on the Xiaomi.eu thread, wipe dalvik, cache and flash 10.2.1 eu. If it don't boot only wipe data partition and it'll boot fine.
If you want a cleaner install, you can factory reset. Or like me, I use a method which is not very recommended. (Wipe all axcept external storage and flash eu 10.2.1).
I recommend you to update your recovery to latest nigel8 one, whatever the method you want to use. Specially if you still have an encrypted partition. (On my side no more encrypted - did a format data to avoid problems)
Regards
Click to expand...
Click to collapse
Many thanks for the info. I think I will definitely update the recovery as I remember having issues booting the 8.8.9 and had to wipe data partition to fix it. Will try the Xiaomi.eu10.2.1 , let's hope the poor audio in video calls is fixed.
Skyllery said:
.... Or like me, I use a method which is not very recommended. (Wipe all axcept external storage and flash eu 10.2.1).
Click to expand...
Click to collapse
I did not feel as brave as you though I was tempted to wipe system as well (I'm used to doing this when updating my old Note 4) but I played it safe and just did the normal cache, data etc.
All done and working well and the girlfriend is really impressed with how much faster it is - just in time for Valentine's day.
Better flash fastboot rom to start clean if you previously had a fake rom.
Because you don't wipe everything when you flash Xiaomi.eu rom.
Wam7 said:
I did not feel as brave as you though I was tempted to wipe system as well (I'm used to doing this when updating my old Note 4) but I played it safe and just did the normal cache, data etc.
All done and working well and the girlfriend is really impressed with how much faster it is - just in time for Valentine's day.
Click to expand...
Click to collapse
What did you do ? Steps
Happy to read this btw
Sent from my MI MAX 3 using XDA Labs
mierlo420 said:
Better flash fastboot rom to start clean if you previously had a fake rom.
Because you don't wipe everything when you flash Xiaomi.eu rom.
Click to expand...
Click to collapse
It should be fine as I did the whole realign partition thing etc back when I originally flashed Xiaomi.eu. 8.8.9
Skyllery said:
What did you do ? Steps
Happy to read this btw
Click to expand...
Click to collapse
First I downloaded Nigel8's recovery, though took a little digging around to locate it.
I then booted into recovery and flashed the new recovery.
Then I just mounted all partitions and wiped cache, etc all except system. Then just flashed the 10.2.1 Xiaomi.eu ROM and after wiped cache and dalvik.
I'm liking the look of the Xiaomi.eu 10.2.1, at some later state I might put it on my own official Global MiMax3 when I can be bothered to unlock the bootloader.
Did updating to Global or Xiaomi.eu 10.2.1 also update your baseband on Chinese phone? I'm currently on 10.2.1.0(OEDMIFK) Model name: M1804E4A Baseband version: AT31c7-00014-1218_1225_71f61ca for an OTA update from Global 10.0.XX
The reception in North America is not good. I keep getting stuck on E edge 2G. Phone came with unlocked bootloader. I'd like to try the Xiaomi.eu ROM but am having issues updating recovery to TWRP

[Q] Decrypting data partition using TWRP?

Hello,
Previously I'm on Xiaomi.eu Stable 11.0.5 based on Android 9, did backup on system and other partition except data partition.
I updated to Xiaomi.eu Stable 11.01 based on Android 10. Flashing done without problem. After first boot, PIN code I used doesn't work to unlock the phone. (yes, i forgot to disable phone lock before updating)
Then I boot to twrp, it's prompt for decryption PIN, after decryption. I try to restore system partition, but it lead to bootloop.
I boot to TWRP again, but now it doesn't prompt for decryption PIN and my data partition still encrypted.
Is there any possiblity to decrypt it on TWRP so I can backup it to OTG drive before I clean Install it?
Or there are any other method to decrypt the files cause I can still access the files as MTP devices.
Thank you very much for your help
@underd0g, try to flash the ROM, of which data you want to restore, dirty before. This may make encrypt key availiable.
rp158 said:
@underd0g, try to flash the ROM, of which data you want to restore, dirty before. This may make encrypt key availiable.
Click to expand...
Click to collapse
Do you mean that I need to reflash the ROM previously I used?
Okay let me try it. Thank you for your answer.
edit: reflashing ROM fixed the problem
I´Hello I have the same problem,
Unfortunate flashing via OTG does not solve the problem.
Also I am not able to flash a stock rom via the mi flash tool
Hello, i don´t know wy but after several formats and installations it worked and I´m running now on 20-3-19
Thanks all

Question How to flash Xiaomi EU Weekly ?

I am on official 12.5.1 stock rom, TWRP installed, rooted.
I wanna know how can I flash the weekly Xiaomi EU without issues of bootloops or anything, so that later I can just download weekly updates and flash them using updater (Through TWRP)
Could anybody tell me about how to do it from scratch step by step, please?
as far as i'm aware, xiaomiEU weekly roms are twrp flashable. no need to reflash twrp after either, twrp is flashed along with rom. just flash directly over 12.5.1 (although i would do a factory reset first)
No factory reset need it. Just flash latest weekly and do a Format data (yes) before rebooting to system.
Alin45 said:
No factory reset need it. Just flash latest weekly and do a Format data (yes) before rebooting to system.
Click to expand...
Click to collapse
Thanks. I'll try that.
Alin45 said:
No factory reset need it. Just flash latest weekly and do a Format data (yes) before rebooting to system.
Click to expand...
Click to collapse
I was successfully able to flash it. Everything went smooth. But when I tried to flash the latest weekly. The updater ( after saying that my phone is encrypted which wasn't, I cancelled then did it again) took me to TWRP where I manually selected the lastest weekly. when the flashing was done, I tried to Reboot to system. It took me back to TWRP. Am I supposed to "Format Data" every time ?!!!
Is losing data necessary for every update !
laid1995 said:
I was successfully able to flash it. Everything went smooth. But when I tried to flash the latest weekly. The updater ( after saying that my phone is encrypted which wasn't, I cancelled then didn't it again) took me to TWRP where I manually selected the lastest weekly. when the flashing was done, I tried to Reboot to system. It took me back to TWRP. Am I supposed to "Format Data" every time ?!!!
Is losing data necessary for every update !
Click to expand...
Click to collapse
When switch from stable to weekly, or weekly to stable, you need to format data.
Stable to stable, or weekly to weekly does not necessary need to format data.
Your case seems to be 12.5.1.0 stable stock to Xiaomi.eu weekly Rom, so need to format data.
Alin45 did told you to format data.
pl1992aw said:
When switch from stable to weekly, or weekly to stable, you need to format data.
Stable to stable, or weekly to weekly does not necessary need to format data.
Your case seems to be 12.5.1.0 stable stock to Xiaomi.eu weekly Rom, so need to format data.
Alin45 did told you to format data.
Click to expand...
Click to collapse
I think I can't really tell which is which. Well. initially I flashed "xiaomi.eu_multi_HMK40_POCOF3_V12.5.3.0.RKHCNXM_v12-11.zip" over the official 12.5.1. Which required Data format. Fine with that. But now when I tried to dirty flash "xiaomi.eu_multi_HMK40_POCOF3_V12.5.4.0.RKHCNXM_v12-11.zip" which was released yesterday. I had to Format Data to boot to system. I don't get it!
Is the weekly one with the date being part of the zip name ?
So this one is the stable one, not the weekly. Right !
laid1995 said:
I think I can't really tell which is which. Well. initially I flashed "xiaomi.eu_multi_HMK40_POCOF3_V12.5.3.0.RKHCNXM_v12-11.zip" over the official 12.5.1. Which required Data format. Fine with that. But now when I tried to dirty flash "xiaomi.eu_multi_HMK40_POCOF3_V12.5.4.0.RKHCNXM_v12-11.zip" which was released yesterday. I had to Format Data to boot to system. I don't get it!
Is the weekly one with the date being part of the zip name ?
Click to expand...
Click to collapse
Then complain to Xiaomi.eu
https://xiaomi.eu/community/threads/56191/
They release the ROM, so they have to deal with your issue.
Those information written earlier were from here: https://forum.xda-developers.com/t/4267741/post-85199911
https://forum.xda-developers.com/t/4267741/post-85178383
Only passing the info to you, so ask him Alin45, or ask Xiaomi.eu.
laid1995 said:
So this one is the stable one, not the weekly. Right !
Click to expand...
Click to collapse
Yes
laid1995 said:
I think I can't really tell which is which. Well. initially I flashed "xiaomi.eu_multi_HMK40_POCOF3_V12.5.3.0.RKHCNXM_v12-11.zip" over the official 12.5.1. Which required Data format. Fine with that. But now when I tried to dirty flash "xiaomi.eu_multi_HMK40_POCOF3_V12.5.4.0.RKHCNXM_v12-11.zip" which was released yesterday. I had to Format Data to boot to system. I don't get it!
Is the weekly one with the date being part of the zip name ?
Click to expand...
Click to collapse
You did something wrong. I was in 12.5.3 and I just flashed 12.5.4 and I didn't had to format data.
If you keep flashing firmware something will go wrong... unless you're a developer or have good reasons to be constantly flashing I wouldn't take it so lightly. It's a sure fire way to instantly destroy a device and it opens you to the worst kinds of malware attacks.
I was successfully able to flash it. The whole thing went smooth. But after I tried to flash the latest weekly. The updater ( after saying that my phone is encrypted which wasn't, I cancelled then did it once more) took me to TWRP wherein I manually selected the lastest weekly. Whilst the flashing changed into done, I attempted to Reboot to machine. It took me back to TWRP. Am I imagined to "layout facts" each time ?!!!
Is losing records important for every update !192.168.100.1 192.168.1.1
Updating weekly updates without loosing your Data is now very simple with TWRP:
1. Download the new weekly update (xxx.zip)
2. Reboot to TWRP recovery and enter the same graphic scheme used to unlock your lockscreen.
3. In TWRP Install (flash) the downloaded weekly update with TWRP
4. If you want to (keep) root, flash last Magisk.zip
5. Wipe Dalvik (and nothing else)
6. Reboot to System
Done
I hope it helps.
michelD said:
Updating weekly updates without loosing your Data is now very simple with TWRP:
1. Download the new weekly update (xxx.zip)
2. Reboot to TWRP recovery and enter the same graphic scheme used to unlock your lockscreen.
3. In TWRP Install (flash) the downloaded weekly update with TWRP
4. If you want to (keep) root, flash last Magisk.zip
5. Wipe Dalvik (and nothing else)
6. Reboot to System
Done
I hope it helps.
Click to expand...
Click to collapse
Thanks. Now, I believe I'll have to do a clean flash since I'm on stable. I don't wanna lose data though. I'll try to back it up and recover it when finished flashing weekly.
Indeed, if you go from weekly developer to stable and vice-versa or to any custom ROM, you will have the wipe the Data.
The simplest way to restore your applications and associated data is to backup (and restore) all with Titanium (root) backup app.
I flashed eu weekly rom in my mi 11x but noting changes .
Right now i am on xiomi.eu 12.5.4 STABLE.
Please guide me how to flash eu weekly rom in my mi 11x.

Categories

Resources