TWRP on Mix 3, encryption question


kidstretch

Members
Oct 20, 2012
172
30
Hello, i have installed twrp 3.2.3 0214 by wzsx150, wiped data and decrypted the phone.

Then i installed the previous EU rom (9.3.14), but when i tried to install the latest update, twrp asks for my pin password to decrypt the phone.
I thought that this version of twrp worked fine. Is there another version that works ok without needing the password each time, meaning that it decrypts the phone without encrypting it again? Thanks in advance!
 

LOLO9393

Members
Feb 8, 2016
2,092
322
Hello, i have installed twrp 3.2.3 0214 by wzsx150, wiped data and decrypted the phone.

Then i installed the previous EU rom (9.3.14), but when i tried to install the latest update, twrp asks for my pin password to decrypt the phone.
I thought that this version of twrp worked fine. Is there another version that works ok without needing the password each time, meaning that it decrypts the phone without encrypting it again? Thanks in advance!
It is encry^pted with your OWN pin password?. Without you did some settings for that?
Your case has to be deeper studied because we are many guys here weekly dealing with fstab to get our phone permanently ENCRYPTED.
If that works for you, please keep it. It better protect your phone in case you loose it without any drawback.
 
  • Like
Reactions: HofMan

MIUInewbie

Members
Jul 1, 2016
239
52
The same happened to me and it stayed encrypted after flashing official twrp. Now I need to enter my phone's pin each time I want to use twrp
 

LOLO9393

Members
Feb 8, 2016
2,092
322
The same happened to me and it stayed encrypted after flashing official twrp. Now I need to enter my phone's pin each time I want to use twrp
I would be very happy having that behavior on MI8SE.
If you are not satisfied why you didn't report it into the bug section.
please
 

Gandhi70

Members
Jul 3, 2017
41
20
Unlocked my Mi Mix 3 yesterday.
Afterwards i flashed TWRP and booted into recovery.
Data partition was mounted and I then flashed Xiaomi.EU ROM and Magisk 18.2 canary release and booted to system.
After setting up fingerprint and PIN I rebooted to TWRP and noticed, that I had to enter my PIN when entering twrp .
So, data partition is still encrypted and everything works fine!
 

LOLO9393

Members
Feb 8, 2016
2,092
322
Unlocked my Mi Mix 3 yesterday.
Afterwards i flashed TWRP and booted into recovery.
Data partition was mounted and I then flashed Xiaomi.EU ROM and Magisk 18.2 canary release and booted to system.
After setting up fingerprint and PIN I rebooted to TWRP and noticed, that I had to enter my PIN when entering twrp .
So, data partition is still encrypted and everything works fine!
That the way a good ROM should perform for safety reason. Like all official are factory installed.
Not a big trouble/issue to type a PIN PW in TWRP when flashing new release or some additional stuff. And your data stay safe in case of phone lost.
 

Gandhi70

Members
Jul 3, 2017
41
20
That the way a good ROM should perform for safety reason. Like all official are factory installed.
Not a big trouble/issue to type a PIN PW in TWRP when flashing new release or some additional stuff. And your data stay safe in case of phone lost.
true. I am very happy, that the data partition is still encrypted. How easy is it, to loose a phone? And for me at least, loosing the DATA on the phone would be very bad (Keepass, Google Authenticator, lots of photos and other crucial data)
 

LOLO9393

Members
Feb 8, 2016
2,092
322
true. I am very happy, that the data partition is still encrypted. How easy is it, to loose a phone? And for me at least, loosing the DATA on the phone would be very bad (Keepass, Google Authenticator, lots of photos and other crucial data)
Lost, stolen,physical drop,critical phone failure, memory wearing etc .
MANY reason to always have data backup.
But about encryption, just for fun, leave me your unencrypted phone in hands for 2 mn. Just the needed time to enter TWRP file explorer and delete one file and I get full control of it...
 

Gandhi70

Members
Jul 3, 2017
41
20
Lost, stolen,physical drop,critical phone failure, memory wearing etc .
MANY reason to always have data backup.
But about encryption, just for fun, leave me your unencrypted phone in hands for 2 mn. Just the needed time to enter TWRP file explorer and delete one file and I get full control of it...
Even with encrypted data and a pin?
 

LOLO9393

Members
Feb 8, 2016
2,092
322
Even with encrypted data and a pin?
I wrote "unencrypted" like 95% of the people under custom MIUI rom are today. (without fstab modification) .
When phone is encrypted the only solution is to format ALL the data to make reuse of it.
 

Gandhi70

Members
Jul 3, 2017
41
20

LOLO9393

Members
Feb 8, 2016
2,092
322

MonteXMat

Members
Apr 4, 2019
15
15
That's good for your safety!
Please:
What have you done?
Details phone model/rom version/twrp version.
Thanks
Phone: UK Mi Mix 3 6GB/128GB ROM | SN: 21710
ROM: MIUI 10.3 | 9.3.28
TWRP: 3.2.3-1-perseus from here
Encryption: Disable-Force-Encryption-Treble from here
Magisk: 19.0

Flashed TWRP, then force encryption treble, restarted, then Magisk.
Cleared data, flashed the ROM, wiped cache/dalvik. Setup android.
Rebooted to recovery, flashed Magisk once again.

Voila, Mix 3 encrypted with my own pin, running MIUI 10.3 with dark mode, with Magisk 19.0.
 
  • Like
Reactions: LOLO9393

LOLO9393

Members
Feb 8, 2016
2,092
322
Phone: UK Mi Mix 3 6GB/128GB ROM | SN: 21710
ROM: MIUI 10.3 | 9.3.28
TWRP: 3.2.3-1-perseus from here
Encryption: Disable-Force-Encryption-Treble from here
Magisk: 19.0

Flashed TWRP, then force encryption treble, restarted, then Magisk.
Cleared data, flashed the ROM, wiped cache/dalvik. Setup android.
Rebooted to recovery, flashed Magisk once again.

Voila, Mix 3 encrypted with my own pin, running MIUI 10.3 with dark mode, with Magisk 19.0.
Thanks for your details that can help.
When you say: Voila, Mix 3 encrypted.
Known that MIUI EU rom come with encryption disabled, Is it done by setting encryption ON or you found the rom encrypted itself?
If the embedded setting for encryption is working well up to the end, it's NEW and it is 100% related to updated TWRP .
Good to know for people seeking for encryption.
 

MonteXMat

Members
Apr 4, 2019
15
15
Thanks for your details that can help.
When you say: Voila, Mix 3 encrypted.
Known that MIUI EU rom come with encryption disabled, Is it done by setting encryption ON or you found the rom encrypted itself?
If the embedded setting for encryption is working well up to the end, it's NEW and it is 100% related to updated TWRP .
Good to know for people seeking for encryption.
The phone must have encrypted itself if the ROM comes with it disabled o_O

 
  • Like
Reactions: LOLO9393

LOLO9393

Members
Feb 8, 2016
2,092
322
The phone must have encrypted itself if the ROM comes with it disabled o_O

CONGRATULATIONS!
You are the first one to test and confirm a working TWRP able to NORMALLY encrypt EU weekly ROM (and may be all other MIUI custom version).
I wait for this version available for my phone model!
Cheers
 
  • Like
Reactions: MonteXMat

bluviper

Members
Jun 29, 2014
89
40
can i ask something? what if my twrp bypasses the encryption password phase? now it stays encrypted.
how can i decrypt it?
 

LOLO9393

Members
Feb 8, 2016
2,092
322
can i ask something? what if my twrp bypasses the encryption password phase? now it stays encrypted.
how can i decrypt it?
If you want to flash a new rom you must remove data encryption. If at TWRP opening you see your data partition stay encrypted (check it with file explorer.) you must apply format data/yes in the wipe section of twrp and then install your new rom.
If TWRP is well working it should be encrypting again after reboot.
 

bluviper

Members
Jun 29, 2014
89
40
If you want to flash a new rom you must remove data encryption. If at TWRP opening you see your data partition stay encrypted (check it with file explorer.) you must apply format data/yes in the wipe section of twrp and then install your new rom.
If TWRP is well working it should be encrypting again after reboot.
so there are lots of data that needs to be backed up, right? what would I'll be losing that needs backup?
sorry for the noob question.