How do I know TWRP Supports encryption?


Shaya

Members
Mar 12, 2020
18
13
Hi.
So I have MIUI EU v. 11.0.3.0.PFXCNXM stable installed and I want to upgrade it to latest stable.
My phone is encrypted. TWRP is version unofficial TWRP-3.3.1-0930-XIAOMI9PRO-By.TRabZonLu.
Aparently it does not support encriptyon. The drive apears all encrypted and it does not ask me for my password to unlock the device.

I'm really afraid it will result me a bootloop. Can anyone help? Does anyone know how to figure out if this twrp version supports encryption?
 

LOLO9393

Members
Feb 8, 2016
3,044
322
Hi.
So I have MIUI EU v. 11.0.3.0.PFXCNXM stable installed and I want to upgrade it to latest stable.
My phone is encrypted. TWRP is version unofficial TWRP-3.3.1-0930-XIAOMI9PRO-By.TRabZonLu.
Aparently it does not support encriptyon. The drive apears all encrypted and it does not ask me for my password to unlock the device.

I'm really afraid it will result me a bootloop. Can anyone help? Does anyone know how to figure out if this twrp version supports encryption?
You have to find (if possible) the twrp that encrypted your phone and use it further.
If it doesn't matter for you to have permanent encryption (that's not bad) you can update your rom by OTG or external sdcard if any.
 

invisiblewave

Members
Dec 26, 2018
145
30
There doesn't appear to be a TWRP version yet for the Pro 5G that supports encryption. You can get around this by turning off encryption in TWRP after formatting data but before booting to system. On the advanced menu, the option is something like RMEncryption, I forget the exact wording, then uncheck DMVerity and check remove encryption. This will permanently remove encryption on the device (until you turn it back on again) and you can flash the rom, boot, then flash Magisk, etc.

You can actually leave encryption on if you like, but you won't be able to flash Magisk (except perhaps via OTG, I haven't tried that), and OTA updates will not work, every time you upgrade it will be necessary to format data.
 

Shaya

Members
Mar 12, 2020
18
13
I only used this TWRP version, there is no other TWRP that encrypted the phone. By the time I first installed the Xiaomi eu ROM I did use OTG. The point is that or I would have to format it at every upgrade (very tiresome even to think about...), or leave the encryption off (very unsafe...).

That is why i'm searching for a version that supports encryption on my MI 9 Pro 5G (crux). (I forgot to mention the model before...)
Thank you guys anyway.

PS.: I think people with this model should start a petition for TWRP to officially support it. ;)
 
Last edited:

LOLO9393

Members
Feb 8, 2016
3,044
322
I only used this TWRP version, there is no other TWRP that encrypted the phone. By the time I first installed the Xiaomi eu ROM I did use OTG. The point is that or I would have to format it at every upgrade (very tiresome even to think about...), or leave the encryption off (very unsafe...).

That is why i'm searching for a version that supports encryption on my MI 9 Pro 5G (crux). (I forgot to mention the model before...)
Thank you guys anyway.

PS.: I think people with this model should start a petition for TWRP to officially support it. ;)
No need to format at every update, keeping encryption ON.
Just install from OTG stick or ext SD card.
 

Shaya

Members
Mar 12, 2020
18
13
I would like some specific instructions on that one then, cause last time I did, TWRP did not recognized any file or folder and all the internal folders name changed (because of encryption) and were unreadable afterwards. The system would not even boot. I had to format data because of that (loosing all my data) last time.
 

LOLO9393

Members
Feb 8, 2016
3,044
322
I would like some specific instructions on that one then, cause last time I did, TWRP did not recognized any file or folder and all the internal folders name changed (because of encryption) and were unreadable afterwards. The system would not even boot. I had to format data because of that (loosing all my data) last time.
You put the zip rom into your otg stick and in twrp you mount and select it. then install the rom from it.
Don't bother encryption!
 

invisiblewave

Members
Dec 26, 2018
145
30
I would like some specific instructions on that one then, cause last time I did, TWRP did not recognized any file or folder and all the internal folders name changed (because of encryption) and were unreadable afterwards. The system would not even boot. I had to format data because of that (loosing all my data) last time.

Turn encryption off. Boot to TWRP->Advanced->RM Forceencrypt->Uncheck Remove DMVerity and check Remove Forceencrypt. Format data. Install ROM. Boot to System. Reboot to TWRP. Install Magisk.

The only drawback is that OTA updates won't work (not an issue anyway if you're running the final MIUI 11 build).

There is currently no TWRP for the Pro 5G that supports encrypted storage (afaik, please let me know if you find one that does).
 

vadimburanok

Members
May 10, 2020
12
13
Turn encryption off. Boot to TWRP->Advanced->RM Forceencrypt->Uncheck Remove DMVerity and check Remove Forceencrypt. Format data. Install ROM. Boot to System. Reboot to TWRP. Install Magisk.

The only drawback is that OTA updates won't work (not an issue anyway if you're running the final MIUI 11 build).

There is currently no TWRP for the Pro 5G that supports encrypted storage (afaik, please let me know if you find one that does).
I don’t understand why you need to turn off encryption if you can just upgrade via a OTG flash drive?
 

vadimburanok

Members
May 10, 2020
12
13
Which of the three stable versions do you recommend putting on MI 9 Pro 5G? Which one is more stable and has no less errors? This will be the first clean install.

V11.0.4.0.QFXCNXM

V11.0.3.0.PFXCNXM

V11.0.2.0.PFXCNXM
 

Shaya

Members
Mar 12, 2020
18
13
I'm using the v. 11.0.3.0. The only issue I have so far (and I reported on another post) is that the cellphone is answering my calls automatically, and is not configured to do so. I believe is always better to use the fresher stable version. That usually corrects the bugs from the last one (at least that is expected to).
 
Last edited:

Shaya

Members
Mar 12, 2020
18
13
Turn encryption off. Boot to TWRP->Advanced->RM Forceencrypt->Uncheck Remove DMVerity and check Remove Forceencrypt. Format data. Install ROM. Boot to System. Reboot to TWRP. Install Magisk.

The only drawback is that OTA updates won't work (not an issue anyway if you're running the final MIUI 11 build).

There is currently no TWRP for the Pro 5G that supports encrypted storage (afaik, please let me know if you find one that does).

You see. By your step by step I would have to format data. Exactly what I want to avoid.
 

Shaya

Members
Mar 12, 2020
18
13
I don’t understand why you need to turn off encryption if you can just upgrade via a OTG flash drive?

Because with encryption on the data is lost (except if you have one version that supports encryption).
The flash drive is seen by TWRP, but the internal folders are not. Meaning that I would have to format data. Trust me. I've been there before.
 

LOLO9393

Members
Feb 8, 2016
3,044
322
Because with encryption on the data is lost (except if you have one version that supports encryption).
The flash drive is seen by TWRP, but the internal folders are not. Meaning that I would have to format data. Trust me. I've been there before.
the flash drive (OTG stick or external SDcard if any) is seen in twrp. Right, but you need to mount it if you want to see the zip rom file you have inside.
Then you install it like normal.
That's is everybody 's way to do when twrp stay encrypted.
Edit: How long have you been here?
 

vadimburanok

Members
May 10, 2020
12
13
I'm using the v. 11.0.3.0. The only issue I have so far (and I reported on another post) is that the cellphone is answering my calls automatically, and is not configured to do so. I believe is always better to use the fresher stable version. That usually corrects the bugs from the last one (at least that is expected to).
This is a very serious mistake. They could somehow solve it?
 

invisiblewave

Members
Dec 26, 2018
145
30
Because with encryption on the data is lost (except if you have one version that supports encryption).
The flash drive is seen by TWRP, but the internal folders are not. Meaning that I would have to format data. Trust me. I've been there before.

This is why I didn't bother to try it this way. If decryption isn't supported, how can TWRP write the /system partition, even if it can read the ROM from OTG?
 

Shaya

Members
Mar 12, 2020
18
13
the flash drive (OTG stick or external SDcard if any) is seen in twrp. Right, but you need to mount it if you want to see the zip rom file you have inside.
Then you install it like normal.
That's is everybody 's way to do when twrp stay encrypted.
Edit: How long have you been here?

Yes, I agree. And I did so. I have an OTG usb. I have mounted it. The zip was installed. But what about the (encrypted) data, a.k.a my personal files, that I don't want to lose, and don't want to be obligated to install all the apps again? The apps are exactly inside the folders that TWRP does not see in encrypted mode. Meaning I would have to format data and install all the apps again.

Best regards.

PS.: What I'm trying to say in technical terms, is that I want to dirty flash it, capisci? ;)
 
Last edited:

invisiblewave

Members
Dec 26, 2018
145
30
Yes, I agree. And I did so. I have an OTG usb. I have mounted it. The zip was installed. But what about the (encrypted) data, a.k.a my personal files, that I don't want to lose, and don't want to be obligated to install all the apps again? The apps are exactly inside the folders that TWRP does not see in encrypted mode. Meaning I would have to format data and install all the apps again.

Best regards.

PS.: What I'm trying to say in technical terms, is that I want to dirty flash it, capisci? ;)

If you successfully dirty flashed from OTG, what's the problem? You don't need TWRP to decrypt the data, just reboot, the ROM can do the decryption.
 
  • Like
Reactions: LOLO9393