Is it possible to encrpyt a ROM and dont lose anything.? - Redmi K20 Pro / Xiaomi Mi 9T Pro Questions & Answe

The question probably sounds stupid but after almost a year of just forgetting about using root or unlocking bootlader i forgot many things.
I remember i used to have a mi 9 with encryption on and everytime i open twrp you will need to decrypt the data.
Now with the MI 9T Pro i had to format data in order to boot into Evolution X ROM that of course left me with a decrypted phone and i dont really like it in case my phone gets stole or something.
Do you guys know if i can use the option inside teh ROM to encrypt and what else i wuld need to do?
Thanks in advance to whoever takes the time to respond

PriPhaze said:
The question probably sounds stupid but after almost a year of just forgetting about using root or unlocking bootlader i forgot many things.
I remember i used to have a mi 9 with encryption on and everytime i open twrp you will need to decrypt the data.
Now with the MI 9T Pro i had to format data in order to boot into Evolution X ROM that of course left me with a decrypted phone and i dont really like it in case my phone gets stole or something.
Do you guys know if i can use the option inside teh ROM to encrypt and what else i wuld need to do?
Thanks in advance to whoever takes the time to respond
Click to expand...
Click to collapse
If all you did was format data, then encryption is still enabled. As soon as you setup lock-screen security, i.e. PIN, password, pattern, etc., for the first time your phone will automatically be encrypted.

Robbo.5000 said:
If all you did was format data, then encryption is still enabled. As soon as you setup lock-screen security, i.e. PIN, password, pattern, etc., for the first time your phone will automatically be encrypted.
Click to expand...
Click to collapse
No I couldn't boot until I flashed the DM verity.
So the encryption is now gone, but do you know if I can encrypt and then flash DM verity again with the force encryption on?.

PriPhaze said:
No I couldn't boot until I flashed the DM verity.
So the encryption is now gone, but do you know if I can encrypt and then glad DM verity again with the force encryption on?.
Click to expand...
Click to collapse
Ordinarily you shouldn't need to flash dm-verity. And as far as I'm aware, there is still no need to.
Normally it's just a case of formatting data to temporarily remove encryption, if flashing over MIUI.
As to your specific question, I couldn't say, as I've never needed to flash a dm-verity, disable force encrypt, or vbmeta file/script.
Personally, I would flash the latest fastboot MIUI ROM for the phone, then reinstall EvoX.
Before installing the ROM, in TWRP do the factory reset and then format data (There is no need to wipe anything else). Then reboot into TWRP to ensure the newly formatted data partition is properly mounted and flash as normal.
This has worked for me every time.

Yeah, some roms aren't booting without dfe.
to remove decrypt you can just wipe vendor and flash it again. you'll get encrypted. (however, some users confirm it puts them back into recovery, and they needed to reflash vendor+dfe for them.) Currently investigating if this is a RIN or RCN problem or for every device.
alternatively. If you are scared about having your device stolen. May I suggest you stay decrypted. Use ofox. and under ofox settings add a recovery password?
In the event you get stolen, they won't be able to access your recovery.
also, I'm looking for someone to test if wiping the data partition and not flashing dfe (after a rom has booted for the first time) and rebooting causes encyrption. (as you desired.) If you're willing to test. Try the above 3 methods?

Sandeeep Kiran said:
Yeah, some roms aren't booting without dfe.
to remove decrypt you can just wipe vendor and flash it again. you'll get encrypted. (however, some users confirm it puts them back into recovery, and they needed to reflash vendor+dfe for them.) Currently investigating if this is a RIN or RCN problem or for every device.
alternatively. If you are scared about having your device stolen. May I suggest you stay decrypted. Use ofox. and under ofox settings add a recovery password?
In the event you get stolen, they won't be able to access your recovery.
also, I'm looking for someone to test if wiping the data partition and not flashing dfe (after a rom has booted for the first time) and rebooting causes encyrption. (as you desired.) If you're willing to test. Try the above 3 methods?
Click to expand...
Click to collapse
BS. There is zero 'need' to flash dfe scripts. People are not formatting data when they need to, then when they cannot boot into a newly flashed ROM, they search and find solutions telling them to format data and flash dfe scripts. The thing is, people do not realise that it is the formatting data that fixes the problem, and they believe it is the dfe patch that is the fix. In all these cases formatting data alone would have been enough to fix the problem.
Also Orange Fox is only preferential if you stay with MIUI, as it's extra features are all about working with MIUI. If you are going with an AOSP ROM, stick with mauronofrio's latest TWRP, it is by far the best recovery for this phone.
As far as your 'test' is concerned, twice I have had bootloops after flashing a ROM, that have been fixed by formatting data alone.
The first time was when I first flashed an AOSP based ROM over MIUI before knowing that formatting data was required in this scenario. The second time was flashing AOSiP over LOS, when I still thought that going from one AOSP ROM to another never needed to format data when flashing.

Robbo.5000 said:
BS. There is zero 'need' to flash dfe scripts. People are not formatting data when they need to, then when they cannot boot into a newly flashed ROM, they search and find solutions telling them to format data and flash dfe scripts. The thing is, people do not realise that it is the formatting data that fixes the problem, and they believe it is the dfe patch that is the fix. In all these cases formatting data alone would have been enough to fix the problem.
Also Orange Fox is only preferential if you stay with MIUI, as it's extra features are all about working with MIUI. If you are going with an AOSP ROM, stick with mauronofrio's latest TWRP, it is by far the best recovery for this phone.
As far as your 'test' is concerned, twice I have had bootloops after flashing a ROM, that have been fixed by formatting data alone.
The first time was when I first flashed an AOSP based ROM over MIUI before knowing that formatting data was required in this scenario. The second time was flashing AOSiP over LOS, when I still thought that going from one AOSP ROM to another never needed to format data when flashing.
Click to expand...
Click to collapse
We've had numerous cases for specific devices not booting without dfe despite formatting for some roms. I believe they are aosp roms that face this. Some when using oss, I vaguely remember. or when moving from LOS fod to mi9 fod or which flashing a different kernel.
(Do note. There are over 50+ roms for our device. 6 variants of the phone. 7 vendors (and separate modified vendors). 2 kinds of fod implementations. and about 95% of the cases arent asked on xda. 25% of the roms aren't posted either. None of the experimental builds are provided on xda.
There are tons of combos users use.)
I have not seen you on telegram. Only on xda. Who are you btw?
twrp is great. Ofox has a better ui and more features. Also, mauronofrio doesn't own a k20p btw. Just FYI. But he has the experience to still update twrp.
updated twrp is still not official, and gives error 7 for some raphaelin users who haven't updated updater-script.
recoveries are subjective. I mean, we have like 6 different recoveries now so.

Sandeeep Kiran said:
We've had numerous cases for specific devices not booting without dfe despite formatting for some roms. I believe they are aosp roms that face this. Some when using oss, I vaguely remember. or when moving from LOS fod to mi9 fod or which flashing a different kernel.
(Do note. There are over 50+ roms for our device. 6 variants of the phone. 7 vendors (and separate modified vendors). 2 kinds of fod implementations. and about 95% of the cases arent asked on xda. 25% of the roms aren't posted either. None of the experimental builds are provided on xda.
There are tons of combos users use.)
I have not seen you on telegram. Only on xda. Who are you btw?
twrp is great. Ofox has a better ui and more features. Also, mauronofrio doesn't own a k20p btw. Just FYI. But he has the experience to still update twrp.
updated twrp is still not official, and gives error 7 for some raphaelin users who haven't updated updater-script.
recoveries are subjective. I mean, we have like 6 different recoveries now so.
Click to expand...
Click to collapse
Numerous cases? Who's we? What roms on what devices need dfe then? Only seen 2 roms ask for dfe, everything else it's as easy as 'going to and from miui, format data and reboot recovery' works every single time.

Sandeeep Kiran said:
We've had numerous cases for specific devices not booting without dfe despite formatting for some roms. I believe they are aosp roms that face this. Some when using oss, I vaguely remember. or when moving from LOS fod to mi9 fod or which flashing a different kernel.
(Do note. There are over 50+ roms for our device. 6 variants of the phone. 7 vendors (and separate modified vendors). 2 kinds of fod implementations. and about 95% of the cases arent asked on xda. 25% of the roms aren't posted either. None of the experimental builds are provided on xda.
There are tons of combos users use.)
I have not seen you on telegram. Only on xda. Who are you btw?
twrp is great. Ofox has a better ui and more features. Also, mauronofrio doesn't own a k20p btw. Just FYI. But he has the experience to still update twrp.
updated twrp is still not official, and gives error 7 for some raphaelin users who haven't updated updater-script.
recoveries are subjective. I mean, we have like 6 different recoveries now so.
Click to expand...
Click to collapse
Try this next time you see somebody saying they have tried may things and always get bootloops when trying to flash an AOSP ROM and you want to advise them to flash dfe.
Instead tell them to flash the latest MIUI fastboot ROM for their device, then install TWRP, in TWRP do a factory reset followed by format data, then reboot into TWRP and flash the ROM.
I bet they will come back and tell you it worked.
Again there should be zero need to flash dfe scripts.
If there are any AOSP ROMs out there that genuinely won't boot without flashing dfe (and here I'm talking about all users of such ROM), then the dev had done something stupid and everyone should seriously avoid the ROM.
At least half of the 50+ ROMs are no longer actively maintained.
The vast majority of Orange Fox extra features are specific to MIUI and so are redundant for AOSP ROMs. Mauronifrio's latest TWRP is the most stable for this phone, so if you're going with AOSP ROMs then the extra stability makes most sense.
I've been aware that mauronifrio does not own this phone ever since his initial build. I was also aware back then that he is also an official TWRP maintainer for other devices and so would mostly likely become the maintainer of the official version for this phone, which has now happened. If you go to the official TWRP site and download for this phone, it is by mauronifrio. You can also download the official version from the OP of his TWRP thread.
I would suggest that in most cases, people getting error 7 issues are not on the latest mauronofrio TWRP build.
Are you aware that all these different recoveries are just TWRP with a fancy dress. This is the great thing about TWRP. It was designed to be extensible, to allow others to build on it, in terms of functionality and design. So really there is only TWRP, just many different flavours.

Related

Few questions about encryption/decryption, strange behaviors, etc....Read within

As of right now I am currently using FreedomOS CE 2.11 (7.1.1). It was the only rom I had on my hard drive that I knew would work. I own the OnePlus 3T for any of you curious. Here lately I have had some issues in getting certain roms to work. I'd go through the whole process of flashing: to include a clean wipe of everything. I'd flash the rom and get no working data whatsoever. That's the first issue. The next question I have is why exactly would I need to encrypt or decrypt my one plus 3t? I have heard it's for multiboot, but I've never had any reason to use two roms at once. I had an issue with liquid rom 8.1 earlier where it was asking me for a password during the initial bootup, so I entered 0000. A few moments later I got a message saying decryption successful, but wanted me to reboot into recovery for some reason. I've also experienced the password problem using stock recovery, but I haven't seen that in a week or two. I mainly used blu recovery or twrp (latest versions).
I can't say why others decrypt their phones, other than to avoid the inconvenience of typing in a password, but I always have my data encrypted so that, if I lose my phone, no one else can access the information on it.
I also always use a password (not pin or pattern) and require it to boot the phone.
Without this, because I have an unlocked bootloader, anybody could use TWRP to delete the password files and then boot the phone and have access to everything on it.
I have not decrypted my phone since I bought it a year ago. And have never had issues with passwords because, I'm guessing, I set it to be required on boot. I've used different versions of TWRP and ROMs all without problems.

How not to Brick Mi 8

Dear all experienced folks,
Can uou please tell me the point which i should avoid to Bricking My MI 8?
Just follow the guides step by step, but verify before comments
Dont flash experimental roms.
Dont flash roms made by rom automation program. Such as Mokee.
Don't flash roms from people who don't own the same device, and therefore cannot test it themselves.
Don't get impatient and restart the phone if a rom is taking longer than expected to install.
Don't bother installing GSI roms, they don't work well anyway.
Dont flash roms from other devices.
Don't feel obliged to flash every single update that is released. Especially when your device is already highly stable, wait to hear feedback from others.
prior to flashing AOSP roms.
Make a FULL TWRP backup of your stock installation. Keep this backup on your desktop and worst case you have a fast path to restoring your phone.
Do your homework and take notes, if you mess and brick your device, in the end , it's your fault.
Finally just because is bricked doesn't necessarily mean that the phone is unrecoverable. I have hard bricked my Mi8 about 3 times this year and fixed it everytime.
If you do, brick your phone
* So basically i can flash Global Stock [V11.0.6.0.PEAMIXM] via TWRP without bricking my phone?
* I have heard it bricks our phone if we downgrade [Flash anything below V11.0.6.0], right?
Frankly speaking i dont see any need of downgrading stock to a previous version...!
tsongming said:
Finally just because is bricked doesn't necessarily mean that the phone is unrecoverable. I have hard bricked my Mi8 about 3 times this year and fixed it everytime.
If you do, brick your phone
Click to expand...
Click to collapse
* And may i ask what was the way?
F3AR said:
* So basically i can flash Global Stock [V11.0.6.0.PEAMIXM] via TWRP without bricking my phone?
* I have heard it bricks our phone if we downgrade [Flash anything below V11.0.6.0], right?
Frankly speaking i dont see any need of downgrading stock to a previous version...!
* And may i ask what was the way?
Click to expand...
Click to collapse
Hmmmmm. Mi 8 have no arb set (source xiaomi.eu) always do clean install(format data) while switching rom. It works for me and doesn't break my device.
JonathanFreeze said:
Hmmmmm. Mi 8 have no arb set (source xiaomi.eu) always do clean install(format data) while switching rom. It works for me and doesn't break my device.
Click to expand...
Click to collapse
Formatting Data means Cleaning of Internal Storage... Which is {Quite} problematic
Aren't there any solutions. Like, In my Redmi Note 4 I formatted my Data partition with F2FS file system. That helped me not to wipe my internal storage while switching back and forth with Android 8 and 9.
tsongming said:
Dont flash experimental roms.
Dont flash roms made by rom automation program. Such as Mokee.
Don't flash roms from people who don't own the same device, and therefore cannot test it themselves.
Don't get impatient and restart the phone if a rom is taking longer than expected to install.
Don't bother installing GSI roms, they don't work well anyway.
Dont flash roms from other devices.
Don't feel obliged to flash every single update that is released. Especially when your device is already highly stable, wait to hear feedback from others.
prior to flashing AOSP roms.
Make a FULL TWRP backup of your stock installation. Keep this backup on your desktop and worst case you have a fast path to restoring your phone.
Do your homework and take notes, if you mess and brick your device, in the end , it's your fault.
Finally just because is bricked doesn't necessarily mean that the phone is unrecoverable. I have hard bricked my Mi8 about 3 times this year and fixed it everytime.
If you do, brick your phone
Click to expand...
Click to collapse
Don't know why, but TWRP backup/recovery stopped working on my device some time ago, like 4 months perhaps. I manage to make a backup (default options and partitions) and get a bootloop when try to recover. Used 3 diffferent twrp intotal none of them worked properly. So I ended up recovering using migrate. Not sure why twrp so temperamental though.
So do i need to Clean my Internal Storage (Data) before using Xiaomi.eu?
Currently using HavocOS 3.0 [Android 10], Willing to Flash Xiaomi.eu Miui 11 [Android 10]
Currently using recovery: TWRP-3.3.1-1031-XIAOMI8-Q+Version-CN-wzsx150
F3AR said:
So do i need to Clean my Internal Storage (Data) before using Xiaomi.eu?
Currently using HavocOS 3.0 [Android 10], Willing to Flash Xiaomi.eu Miui 11 [Android 10]
Currently using recovery: TWRP-3.3.1-1031-XIAOMI8-Q+Version-CN-wzsx150
Click to expand...
Click to collapse
If you are not encrypted your data may persist, just be sure to back your files up just in case.
---------- Post added at 04:05 PM ---------- Previous post was at 04:03 PM ----------
pabloeldiablo said:
Don't know why, but TWRP backup/recovery stopped working on my device some time ago, like 4 months perhaps. I manage to make a backup (default options and partitions) and get a bootloop when try to recover. Used 3 diffferent twrp intotal none of them worked properly. So I ended up recovering using migrate. Not sure why twrp so temperamental though.
Click to expand...
Click to collapse
Before creating backups, I find that it works best by not using encryption and removing passwords prior to the full backup.Otherwise, you would need to flash the boot image that you were using previously.
tsongming said:
If you are not encrypted your data may persist, just be sure to back your files up just in case.
---------- Post added at 04:05 PM ---------- Previous post was at 04:03 PM ----------
Before creating backups, I find that it works best by not using encryption and removing passwords prior to the full backup.Otherwise, you would need to flash the boot image that you were using previously.
Click to expand...
Click to collapse
I don't have Encryption and I find it best using OrangeFox, the Chinese recovery gives me error 7 while orangefox can flash seamlessly
I have successfully flashed Xiaomi.eu and got back into LineageOS again.
*Each time i downgrade, i format my Data partition to avoid any problem.
F3AR said:
I don't have Encryption and I find it best using OrangeFox, the Chinese recovery gives me error 7 while orangefox can flash seamlessly
I have successfully flashed Xiaomi.eu and got back into LineageOS again.
*Each time i downgrade, i format my Data partition to avoid any problem.
Click to expand...
Click to collapse
Absolutely use what works for you, if you have no issues then I certainly don't blame you for sticking with it.
Personally I prefer the L.R Team version. ( For the long run, months of use, it is absolutely fail safe,)
Edit: For the record, Orange failed on me twice, and became encrypted and unavailable, I could not access recovery or fastboot. But finally resolved using edl.
L.R. Team may require a full clean start and it definitely has some limitations.
Specifically for users whose primary language is not Chinese or English. Also Orange Fox, is definitely much nicer looking and I love its customization options.
But in the long run, and I am sure that the people who have used both extensively would agree the LR Team while not pretty, is extremely stable, and that is what really matter when choosing a recovery.
Plus it is not a blind build, LR Team only build for devices they have on hand.
tsongming said:
Edit: For the record, Orange failed on me twice, and became encrypted and unavailable, I could not access recovery or fastboot. But finally resolved using edl.
Click to expand...
Click to collapse
Have you flashed your Mi 8 in EDL mode? Any special work is needed to flash in edl?
alone_in_dark said:
Have you flashed your Mi 8 in EDL mode? Any special work is needed to flash in edl?
Click to expand...
Click to collapse
I have written about this on various threads...extensively.
I don't have time write now to explain all the steps, also i you ever find yourself in this situation I can attempt fixing it , for a fee. Basically avoid using EDL at all cost, unless you are involuntarily stuck in EDL and have no choice.
My phone was hard bricked and it took a full day to fix. ( mostly because it was the first hard brick with my mi8) The issue with people needing special account privileges is due to those people not having proper credentials. They did not unlock the bootloader themselves,and they don't have a MiCloud account linked to their devices serial number.
However, if the phone is bound to a known account , that is you have the correct credentials then the solution is not terribly difficult. Even if the bootloader is locked: if the phone is bound to your account there is usually no issue with recovering the phone. When the phone is hard bricked, port 9008 is still accessible and the phone can usually be repaired using QPST, MiFlash, or Flashall.bat methods.
If you do not have the credentials then that is a whole different matter:
In that case, you must have the phone restored by an authorized service center. As far as I know, those types of 3rd party repair centers, with EDL privileges are no longer available in western countries.

Miui 11 3D Face Unlock

Hi guys, So I recently bought mi 8 global version. I changed the region to HK,Taiwan Italy u name it but it only gives me 2D Face unlock. is there a way to avtivate it? Thanks.
samcex said:
Hi guys, So I recently bought mi 8 global version. I changed the region to HK,Taiwan Italy u name it but it only gives me 2D Face unlock. is there a way to avtivate it? Thanks.
Click to expand...
Click to collapse
You are talking about IR unlock. and it sounds like you are already using it. For example, go into a pitch-black room and use face ID to unlock the phone. if it unlocks in a pitch-black room, it's already activated. You will notice the IR receiver turns red as this happens.
While the Stable rom is great, once you can unlock the bootloader, give the custom Miui Xiaomi.EU rom a try. The Xiaomi.EU rom includes all of the bleeding edge features that have not yet made their way onto the stable rom. Plus, there is no need to disable ads, there aren't any to disable and you do not need to change regions, to be allowed to access the best features.
Additionally, Xiaomi.EU rom is based on the Weekly developers, China builds, and as the stable build, Google Play services is built-in, it also includes the drivers from the global build. The only drawback is that it is released weekly, and if you flash updates with every release, you will experience occasional bugs. ( it is based on beta afterall) So, it's best, to stick with the builds without bugs and update only occasionally instead of weekly. With that being said there are also many great custom ROMs, including the latest Pixel Rom which is also stellar.
Enjoy your new phone.
tsongming said:
You are talking about IR unlock. and it sounds like you are already using it. For example, go into a pitch-black room and use face ID to unlock the phone. if it unlocks in a pitch-black room, it's already activated. You will notice the IR receiver turns red as this happens.
While the Stable rom is great, once you can unlock the bootloader, give the custom Miui Xiaomi.EU rom a try. The Xiaomi.EU rom includes all of the bleeding edge features that have not yet made their way onto the stable rom. Plus, there is no need to disable ads, there aren't any to disable and you do not need to change regions, to be allowed to access the best features.
Additionally, Xiaomi.EU rom is based on the Weekly developers, China builds, and as the stable build, Google Play services is built-in, it also includes the drivers from the global build. The only drawback is that it is released weekly, and if you flash updates with every release, you will experience occasional bugs. ( it is based on beta afterall) So, it's best, to stick with the builds without bugs and update only occasionally instead of weekly. With that being said there are also many great custom ROMs, including the latest Pixel Rom which is also stellar.
Enjoy your new phone.
Click to expand...
Click to collapse
I unlocked my bootloader and flashed twrp, but twrp can't see the zip files I put in Internal storage, can u help me out?
samcex said:
I unlocked my bootloader and flashed twrp, but twrp can't see the zip files I put in Internal storage, can u help me out?
Click to expand...
Click to collapse
You need to format your data partition. All your files will be lost, so try to backup them somehow. You can find how to format data using TWRP on YouTube. Good search.
samcex said:
I unlocked my bootloader and flashed twrp, but twrp can't see the zip files I put in Internal storage, can u help me out?
Click to expand...
Click to collapse
You may need to mount system first, and then your desktop may be able to see the files. You will also need to install root, until you change from stock. I would suggest using Orange fox, but it's different from using TWRP.
Since you have TWRP, keep using it until you have mastered it's use than change to Orange fox later.
The stock Rom automatically encrypts your data so as the other person said you may need to format user data. Format type yes, reboot to recovery
When wiping on choose wiping caches, data, and storage only when needed. i would suggest buy a fast USB 3.0 drive and a OTBA to USB A adapter. You can get them cheap at places like Walmart, typically around $5.
While videos can be helpful, this page can answer any of your questions about TWRP : https://twrp.me/FAQ/
just take your time, never wipe Persist if it's in the wipe menu, never wipe system unless using a rom that instructs that you do so. in most cases swiping factory reset is all you need to do when installing new rom.
This post may be a little out of data : but you can find the majority of what you need here: https://forum.xda-developers.com/mi-8/how-to/how-to-install-roms-resolve-issues-t3911611
tsongming said:
You may need to mount system first, and then your desktop may be able to see the files. You will also need to install root, until you change from stock. I would suggest using Orange fox, but it's different from using TWRP.
Since you have TWRP, keep using it until you have mastered it's use than change to Orange fox later.
The stock Rom automatically encrypts your data so as the other person said you may need to format user data. Format type yes, reboot to recovery
When wiping on choose wiping caches, data, and storage only when needed. i would suggest buy a fast USB 3.0 drive and a OTBA to USB A adapter. You can get them cheap at places like Walmart, typically around $5.
While videos can be helpful, this page can answer any of your questions about TWRP : https://twrp.me/FAQ/
just take your time, never wipe Persist if it's in the wipe menu, never wipe system unless using a rom that instructs that you do so. in most cases swiping factory reset is all you need to do when installing new rom.
This post may be a little out of data : but you can find the majority of what you need here: https://forum.xda-developers.com/mi-8/how-to/how-to-install-roms-resolve-issues-t3911611
Click to expand...
Click to collapse
I did it! Do u think I could downgrade to miui 9 or miui 10?
samcex said:
I did it! Do u think I could downgrade to miui 9 or miui 10?
Click to expand...
Click to collapse
Can you see my signature?
Rollback protections were never enabled on the Mi8 by Xiaomi, so why wouldn't you be able to downgrade? You will have to format data though. (format, not wipe)
Next the newer versions of Miui 11, especially the beta versions are vastly better than previous builds. There is a a lot more features, more overall fluidity, less issues with permissions and notifications, and better overall battery life.
tsongming said:
Can you see my signature?
Rollback protections were never enabled on the Mi8 by Xiaomi, so why wouldn't you be able to downgrade? You will have to format data though. (format, not wipe)
Next the newer versions of Miui 11, especially the beta versions are vastly better than previous builds. There is a a lot more features, more overall fluidity, less issues with permissions and notifications, and better overall battery life.
Click to expand...
Click to collapse
Where can I find older miui versions images?

Enabling encryption on Pixel Experience ROM

Hi everyone! I'm very much a newbie when it comes to custom ROM's, so apologies if this is a a dumb question...
I just managed to install the latest Pixel Experience ROM on my K20 Pro, from the stock Chinese ROM. Before installing it, I had to flash DFE. So, from my understanding, it is now blocking me from re-enabling encryption. I need to have encryption enabled for work email access, so is it possible to enable it somehow? I'm not worried about losing any data on the phone, but I would certainly prefer to use Pixel Experience than to go back to MIUI.
Per another forum thread I found, one member suggested to "reflash your vendor/firmware." Is that accurate? If so, how do I do that, and what would be the result?
shleepy said:
Hi everyone! I'm very much a newbie when it comes to custom ROM's, so apologies if this is a a dumb question...
I just managed to install the latest Pixel Experience ROM on my K20 Pro, from the stock Chinese ROM. Before installing it, I had to flash DFE. So, from my understanding, it is now blocking me from re-enabling encryption. I need to have encryption enabled for work email access, so is it possible to enable it somehow? I'm not worried about losing any data on the phone, but I would certainly prefer to use Pixel Experience than to go back to MIUI.
Per another forum thread I found, one member suggested to "reflash your vendor/firmware." Is that accurate? If so, how do I do that, and what would be the result?
Click to expand...
Click to collapse
Why did you have to flash DFE? It's only used if you change roms frequently to avoid encryption.
I initially had trouble successfully installing the ROM. So, I started from scratch and followed some thorough instructions I found online, which included the DFE step. (I noticed that TWRP was previously showing an encryption error at the start of ROM installation; but I guess it could just be a "warning" more than an error. I suspect my problem before was probably more related to not having the latest MIUI update installed, or something like that.)
I don't plan on frequently swapping ROM's.
shleepy said:
I initially had trouble successfully installing the ROM. So, I started from scratch and followed some thorough instructions I found online, which included the DFE step. (I noticed that TWRP was previously showing an encryption error at the start of ROM installation; but I guess it could just be a "warning" more than an error. I suspect my problem before was probably more related to not having the latest MIUI update installed, or something like that.)
I don't plan on frequently swapping ROM's.
Click to expand...
Click to collapse
Your best bet is to go back to stock and start again. I believe installing an official fastboot ROM will restore encryption. Your previous issues were probably caused by not formatting data when flashing PE.
There is no requirement to disable encryption on this phone, ignore any guide that adds that as a step. You should only disable encryption if it's your personal preference to disable it.
Follow this guide.
Flash the latest Chinese 11.0.5 fastboot ROM. Make sure you don't lock the bootloader if using the Mi Flash Tool.
Boot into MIUI once to allow it to finalise the install, you don't need to do the initial phone setup once it boots into MIUI.
Boot into fastboot and install TWRP. I recommend the latest from mauronofrio which should be 3.1.1-32
Boot immediately into TWRP. I use the volume up button while powering up the phone.
Perform a factory reset in TWRP (using the swipe button), then format data (need to type 'yes' to confirm).
Reboot into TWRP using the TWRP boot menu, this ensures the newly formatted data partition is correctly mounted.
Copy over the PE ROM, then flash.
Boot into your new ROM, everything should be OK. Then boot back into TWRP to install Magisk if you want root.
shleepy said:
I initially had trouble successfully installing the ROM. So, I started from scratch and followed some thorough instructions I found online, which included the DFE step. (I noticed that TWRP was previously showing an encryption error at the start of ROM installation; but I guess it could just be a "warning" more than an error. I suspect my problem before was probably more related to not having the latest MIUI update installed, or something like that.)
I don't plan on frequently swapping ROM's.
Click to expand...
Click to collapse
Do yourself a favour and follow the instructions in the description of the rom, not some instructions you found online telling you to do some unnecessary stuff. Going to and from miui, format data, everything else just wipe cache, system and data to avoid issues, even then you can get away with dirty flashing aosp based roms 99% of the time imo.
As for the miui update, I have no idea how you came to that conclusion but just no, that's not how it works at all. Vendor firmware and the rom is all you need for pixel experience at the bare minimum.
You can try flashing the rom again, but don't flash the DFE.

Need help in flashing cutom roms

I got my device yesterday and today i have been trying to flash legion os 2.11 but i always keep getting error 7 even tried by installing global rom through mi flash tool but still got error 7 from twrp and oxfox both.
Can someone just guide me clearly on flashing roms on this k20 pro.
Currently i using global miui 11 11.0.4.0 rom but want to try other custom roms as well..
Ezio553 said:
I got my device yesterday and today i have been trying to flash legion os 2.11 but i always keep getting error 7 even tried by installing global rom through mi flash tool but still got error 7 from twrp and oxfox both.
Can someone just guide me clearly on flashing roms on this k20 pro.
Currently i using global miui 11 11.0.4.0 rom but want to try other custom roms as well..
Click to expand...
Click to collapse
Try the latest TWRP from here.
https://forum.xda-developers.com/k2...icial-twrp-xiaomi-redmi-t3944363/post79823568
If you still get the same problem, report back in this thread.
Robbo.5000 said:
Try the latest TWRP from here.
https://forum.xda-developers.com/k2...icial-twrp-xiaomi-redmi-t3944363/post79823568
If you still get the same problem, report back in this thread.
Click to expand...
Click to collapse
yeah finally the twrp 3.4 unofficial worked fine from global miui 11 rom i wiped everything and flashed indian vendor-firmware file and then flashed rom with fcrypt zip file nd worked fine...
Thanks for suggesting this file i was using youtube videos as guide and everyone was using oxfox or older twrp..
Ezio553 said:
yeah finally the twrp 3.4 unofficial worked fine from global miui 11 rom i wiped everything and flashed indian vendor-firmware file and then flashed rom with fcrypt zip file nd worked fine...
Thanks for suggesting this file i was using youtube videos as guide and everyone was using oxfox or older twrp..
Click to expand...
Click to collapse
I've got a bit more time to reply now.
OFox is really designed to be used with MIUI. The majority of it's extra features are specific to running MIUI. I would only recommend it if you decide to stick with MIUI in the long run.
The TWRP I pointed to is from the dev who maintains the official TWRP for our device. The unofficial version you've installed is identical to the official version, but with the TWRP app removed. If you intend to stick with custom ROMs, I recommend you stick with TWRP from mauronofrio.
If you prefer to have your phone encrypted, then there was no need to flash fcrypt/DFE. There are a small number of users that continue to insist that we need to disable encryption, but it is not needed.
Having the phone unencrypted does make life a little easier when flashing, but if you prefer the security and want to know about living with an encrypted phone, reply back and I'll give you more details.
Robbo.5000 said:
I've got a bit more time to reply now.
OFox is really designed to be used with MIUI. The majority of it's extra features are specific to running MIUI. I would only recommend it if you decide to stick with MIUI in the long run.
The TWRP I pointed to is from the dev who maintains the official TWRP for our device. The unofficial version you've installed is identical to the official version, but with the TWRP app removed. If you intend to stick with custom ROMs, I recommend you stick with TWRP from mauronofrio.
If you prefer to have your phone encrypted, then there was no need to flash fcrypt/DFE. There are a small number of users that continue to insist that we need to disable encryption, but it is not needed.
Having the phone unencrypted does make life a little easier when flashing, but if you prefer the security and want to know about living with an encrypted phone, reply back and I'll give you more details.
Click to expand...
Click to collapse
I tried Legion Os which is Aosp based and it installed fine but then i tried Masik X 16 which again said this isn't for your device so had to make changes in updater script then it flashed fine.
Also i would like to know about decryption of storage and would it cause any issues in flashing roms again nd again..
Ezio553 said:
I tried Legion Os which is Aosp based and it installed fine but then i tried Masik X 16 which again said this isn't for your device so had to make changes in updater script then it flashed fine.
Also i would like to know about decryption of storage and would it cause any issues in flashing roms again nd again..
Click to expand...
Click to collapse
If you want to be permanently decrypted, then you will not have any problems flashing ROMs. However, whenever you need to update the vendor and firmware, you will also need to flash the DFE script again.
If you want to be encrypted, then the best thing to do, every time you flash, is to temporarily remove encryption by removing all lockscreen security just before flashing, then once you've finished, restore encryption by adding back lockscreen security. However, if you restore MIUI, then choose to go to another custom ROM, you will need to format the data partition when flashing over MIUI, even if you've removed lockscreen security first.
Robbo.5000 said:
If you want to be permanently decrypted, then you will not have any problems flashing ROMs. However, whenever you need to update the vendor and firmware, you will also need to flash the DFE script again.
If you want to be encrypted, then the best thing to do, every time you flash, is to temporarily remove encryption by removing all lockscreen security just before flashing, then once you've finished, restore encryption by adding back lockscreen security. However, if you restore MIUI, then choose to go to another custom ROM, you will need to format the data partition when flashing over MIUI, even if you've removed lockscreen security first.
Click to expand...
Click to collapse
Ok that means going from miui to aosp & vice versa - format data needed.
So this should similarly apply to all Miui based roms like xiaomi.eu or masik x or it is just for stock miui.
Ezio553 said:
Ok that means going from miui to aosp & vice versa - format data needed.
So this should similarly apply to all Miui based roms like xiaomi.eu or masik x or it is just for stock miui.
Click to expand...
Click to collapse
As far as I know, you only need to format data when flashing over official MIUI. I don't know the details, but it is my understanding that encryption on MIUI does not follow standard practice, which is why it it's necessary to format data when flashing over MIUI. I don't believe this issue exists with MIUI based custom ROMs, or when reverting back to MIUI.
Though, there may be occasions, when flashing from one AOSP ROM to another, and the phone is encrypted, when you may get a bootloop. In this case booting to TWRP and formatting data, will fix the problem. This is why I earlier recommended temporarily removing lockscreen security, if you choose to have an encrypted phone, even though this is a rare occurrence.
Robbo.5000 said:
As far as I know, you only need to format data when flashing over official MIUI. I don't know the details, but it is my understanding that encryption on MIUI does not follow standard practice, which is why it it's necessary to format data when flashing over MIUI. I don't believe this issue exists with MIUI based custom ROMs, or when reverting back to MIUI.
Though, there may be occasions, when flashing from one AOSP ROM to another, and the phone is encrypted, when you may get a bootloop. In this case booting to TWRP and formatting data, will fix the problem. This is why I earlier recommended temporarily removing lockscreen security, if you choose to have an encrypted phone, even though this is a rare occurrence.
Click to expand...
Click to collapse
Thanks for the info.
I tried custom miui rom and well flashing dfe worked fine so i think its just for official miui.

Categories

Resources