yashsingh1/xdaforums huggingface dataset:
[Redmi Note 9S / Note 9 Pro (Indian Model) Question] LoadOP2:
And what about flashing magisk in twrp.
[Redmi Note 9S / Note 9 Pro (Indian Model) Question] LoadOP2:
Formatting data normally decrypts it . I don't know why something like this is happening here.

Follow my guide again maybe? Give it a shot step by step.
[Redmi Note 9S / Note 9 Pro (Indian Model) Question] MPK99:
Yah, I'm feeling weird too. Normally there are 3 ways to remove decryption...I tried all those.

1. Formatting Data by typing "yes"

2. Formatting data partition from f2fs to ext4

3. Installing Decrypt script v2 zip immediately after flashing stock rom.

I tried everything I could. I know all sorts of common flashing things. I caz I always used to try so many roms on my previous redmi's, but this one is special case.
[Redmi Note 9S / Note 9 Pro (Indian Model) Question] kalehrl:
I'd suggest you use LineageOS recovery. That's how I removed decryption.
[Redmi Note 9S / Note 9 Pro (Indian Model) Question] MPK99:
Sure. Encryption is the whole culprit for me to say exactly. I'm trying to decrypt & flash builds. I'll notify if it works. Nice to get help from you guys.
[Redmi Note 9S / Note 9 Pro (Indian Model) Question] LoadOP2:
Try this.

How to decrypt rom/storage so you can easily switch roms without format

First I would thankx to @sakhatlonda for koutiliy.zip

Steps to download file

1. Download koutility.zip from below.

2. Documentation related to koutility

Read from below link (recommended)

Just a utility zip which can be flashed on every rom flash, to do some pre-defined tasks.

Can be used either to copy everything you place in sdcard/sudeep/system_root to respective dirs or to set config and use that to do predefined tasks

This is how it works:

Flash in recovery, every option has Note with it

Available Configs:

brbootdtbo - auto backup/restore boot & dtbo, will do backup if no backup present and will do restore if backup is there

bbootonly - always backup boot

bdtboonly - always backup dtbo

resbootdtbo - always restore boot & dtbo (brbootdtbo won't work if this is enabled)

enalways - encrypt always (edauto won't work if this is enabled)

dealways - decrypt always (enalways & edauto won't work if this is enabled)

edauto - auto change encryption state on each flash

avb - removes avb flags (if decrypted)

quota - removes quota flag (if decrypted)

keep - doesn't over-writes boot/dtbo backups

debloat - removes bloats

rebloat - restore removed bloats

patchD - same as flash but set in config

productsize - makes a product image from your currently flashed rom to sdcard/sudeep and adds 600mb to it. So you can flash gapps etc. without error. (PC needed to flash product.img)

Steps to decrypt rom/storage

1. Flash roms

2. Flash koutility.zip tested on aosp only

3. Format data (required only first time after flashing koutility)

4. Reboot to recovery

5. Flash gapps (optional)

6. Boot into system

Congratulations your storage/rom is decrypted , you can switch roms without format

Next time when you want to switch roms

Steps

1. Wipe data,caches and dalvik caches

2. Flash rom

3. Flash koutility.zip

4. Reboot to recovery

5. Flash gapps (optional)

6. Boot into system

Notes

Remember you need to config koutility.zip in recovery

How to config koutility for decryption

Volume down (set config) > yes

After that "No" till 5th option

Then "yes" for 6th option

Rest "No" till 15th option

Last "yes" to flash
[Redmi Note 9S / Note 9 Pro (Indian Model) Question] MPK99:
@LoadOP2 Thanx for providing KoUtil & its read me.

But I think we shouldn't reboot to recovery immediately after formatting the data. Because the stock rom will start it's initial encryption process by then & I won't get decrypted storage. Isn't it ?

I think this is the case that's happening to me. I always reboot recovery after formatting data, my storage will encrypt again because of stock rom's existence.
[Redmi Note 9S / Note 9 Pro (Indian Model) Question] LoadOP2:
Yes you have to reboot to recovery. Otherwise you won't be able to use data partition.
[Redmi Note 9S / Note 9 Pro (Indian Model) Question] MPK99:
Yes, you're correct, we should do that. But can you read my 1st post in this thread. This is about that specific problem. I'm rebooting recovery after formatting data, then recovery shows Unable to decrypt FBE device
[Redmi Note 9S / Note 9 Pro (Indian Model) Question] LoadOP2:
Send your recovery logs after formatting data.
[Redmi Note 9S / Note 9 Pro (Indian Model) Question] MPK99:
That would help. I'll attach screenshots too. Currently I'm on stock & being busy. I'll do this by today night & post logs & screenshots.
[Redmi Note 9S / Note 9 Pro (Indian Model) Question] MPK99:
@LoadOP2 I have log right now in my sdcard.

Line 84 : Unable to decrypt FBE device.
[Redmi Note 9S / Note 9 Pro (Indian Model) Question] LoadOP2:
Let me see.
[Redmi Note 9S / Note 9 Pro (Indian Model) Question] MPK99:
Well that log was 2 days old & has lots of stuff . I'll provide you with fresh logs with just the problem that I face later...
[Redmi Note 9S / Note 9 Pro (Indian Model) Question] LoadOP2:
Have you changed your partition to ext4?. Some Roms don't boot on ext4 maybe that is the reason for bootloop. Try switching it back to f2fs. And after you flash a custom rom does your internal storage show weird folder names? In recovery file manager.
[Redmi Note 9S / Note 9 Pro (Indian Model) Question] MPK99:
Ha, yes I got those weird names once, when I formatted to ext4. I then knew that ext4 wasn't gonna work. So I reformatted it to f2fs. It's true. Currently it's f2fs & I'm running stock. I'll try out again on f2fs this time. Thx for mentioning btw.
[Redmi Note 9S / Note 9 Pro (Indian Model) Question] LoadOP2:
So you don't get those folder names on f2fs?
[Redmi Note 9S / Note 9 Pro (Indian Model) Question] MPK99:
Got some gibberish when I tried ext4. But not now...

I'll update this thread when it gets solved... even if it's not...sooner this day.
[Redmi Note 9S / Note 9 Pro (Indian Model) Question] LoadOP2:
When you install a rom and your device is encrypted you will always get weird folder names it doesn't depend on file system. Anyways try again using twrp. Looking forward to you updating the thread.
[Redmi Note 9S / Note 9 Pro (Indian Model) Question] MPK99:
Does it mean Pitchblack, orangefox recoveries are the culprit...? Caz as far as I know, both of them support decryption & formatting data.

I haven't tried TWRP caz there's no official build. Used only PBRP & Orangefox caz their official build even if they're in beta stages.
[Redmi Note 9S / Note 9 Pro (Indian Model) Question] LoadOP2:
Ofox completely skips encryption on my *encrypted* device. I mean completely. Yes try twrp it doesn't matter if it's official or not.
[Redmi Note 9S / Note 9 Pro (Indian Model) Question] MPK99:
K, next time I'll send fresh logs through twrp.
[Redmi Note 9S / Note 9 Pro (Indian Model) Question] MPK99:
[deleted]
[Redmi Note 9S / Note 9 Pro (Indian Model) Question] MPK99:
Thanks for everyone who helped me. I got through this out.

I'M SO DUMB GOING THROUGH THIS...🤣

The custom roms that I tried are from global version which were the main case for bootloops... & my device is indian version. When I tried other roms, they're working fine....

Thank you for @LoadOP2 & @kalehrl for participating in my thread here. This thread is solved now.
[Redmi Note 9S / Note 9 Pro (Indian Model) Question] Aelkhshap:
me too have same of you but are this with miui eu rom or every rom with this device
[Redmi Note 9S / Note 9 Pro (Indian Model) Question] MPK99:
Actually, above methods decypt internal storage successfully. Not just miui eu, but for any rom. Problem is that this device has dynamic partitioning. Means whenever you reboot a decrypted storage it will automatically encrypt itself.
[Redmi Note 9S / Note 9 Pro (Indian Model) Question] Ravi3467:
It's reallly wonderful that u got ur solution, I am also stucked in the same problem as you and till now no solutions
[Redmi Note 9S / Note 9 Pro (Indian Model) Question] Ravi3467:
It's been 3 days without my phone, I had a pattern lock on my phone and when my rom got crashed, I tried to restore my phone but it started with a error: unable to decrypt fbe devices, now there is now way I can install new or old rom infact it is not letting me restore my data, rest can be restored but it goes into a everlasting boot animation......Please help me
[Redmi Note 9S / Note 9 Pro (Indian Model) Question] MPK99:
What were you trying to flash ? If your on twrp, try to format the data, reboot to recovery, then try to flash a new rom like havoc os or something. If you want to use stock firmware, get it from official xiaomi website, then flash it from twrp. Note that u need to flash twrp recovery again before rebooting, else stock recovery will be there.
[Redmi Note 9S / Note 9 Pro (Indian Model) Question] Ravi3467:
I was using Evolution x 4.6, after that i installed fenix kernel but forgot to wipe dalvik and rom got crashed , I forgot to remove my pattern lock and when I got into Twrp (Sky hawk inbuilt in rom ), it started with an error unable to decrypt fbe device whereas it should have asked for pattern but it didn't....and now I am lost...
[Redmi Note 9S / Note 9 Pro (Indian Model) Question] Ravi3467:
I had tried wiping data, formatting data, installing global as well as Europe stock recoveries even on both partitions, Tried Mi flash tool but failed with error, it's not letting me install anything to remove the encryption; tried no verity, lazy flasher and magisk but all failed with error :1
[Redmi Note 9S / Note 9 Pro (Indian Model) Question] MPK99:
You can't remove encryption. Use the device with encryption. No choice here. Just flash a working rom with gapps & other stuff & Your good to go.

Also flash magisk only after first boot. If you flash magisk before 1st boot, you'll get bootloops.
[Redmi Note 9S / Note 9 Pro (Indian Model) Question] Ravi3467:
As you told me to try a new Os, so right now I am installing havoc os and I have successfully installed magisk as you said but it is still stucked in the boot animation....I have searched everywhere for the solution but failed as there is not much information on this topic, now you are my only hope....
[Redmi Note 9S / Note 9 Pro (Indian Model) Question] MPK99:
No bro. Don't flash magisk right after the rom. You need to boot into the rom first. Then you can go into the recovery again to flash it.

Because rooting an ongoing encrypting device obstructs the initial boot.

Also note that if you need gapps, then you should install it along with the rom, just before initial boot.
[Redmi Note 9S / Note 9 Pro (Indian Model) Question] Ravi3467:
But it get stucked in the boot animation doesn't matter which rom I use...
[Redmi Note 9S / Note 9 Pro (Indian Model) Question] Ravi3467:
I am sure, by any means If I'll be able to flash a rom , the problem will get solved as after that the recovery with not start with an error. Write now my biggest issue is that error on the top of my recovery....that error is not letting me install anything at all....
[Redmi Note 9S / Note 9 Pro (Indian Model) Question] MPK99:
Because you're rooting the rom before even booting.

Also trust me, that FBE error is nothing actually. Dont worry. Just format data by typing "yes", then flash a rom & gapps, then reboot to the rom. Everything works just fine.
[Redmi Note 9S / Note 9 Pro (Indian Model) Question] Ravi3467:
No I am rooting it before booting infact right now I am not even interested in rooting my phone, I just want to flash the rom but the rom is stucked in boot animation
[Redmi Note 9S / Note 9 Pro (Indian Model) Question] MPK99:
Wipe data, cache, dalvik, format data, flash rom, then gapps, then reboot to system.

Anyways, what's your device ? And what rom are you flashing ?
[Redmi Note 9S / Note 9 Pro (Indian Model) Question] Ravi3467:
Only after you mentioned this solution, I tried flashing magisk as I thought maybe it will help me pass the boot animation
[Redmi Note 9S / Note 9 Pro (Indian Model) Question] MPK99:
Dude, first boot didn't mean reboot to recovery. It means boot to system.
[Redmi Note 9S / Note 9 Pro (Indian Model) Question] Ravi3467:
I always follow this exact procedure( Wipe data, system, dalvik, format data, flash rom, then reboot to system ) as I am noob in this field, so I never take risk of dirty flashing, infact I download only roms that have gapps built in but even after following the full procedure I am stucked in a never ending boot animation.
[Redmi Note 9S / Note 9 Pro (Indian Model) Question] Ravi3467:
I can totally understand that
[Redmi Note 9S / Note 9 Pro (Indian Model) Question] Ravi3467:
Finally something worked for me, I installed stock firmware first so that there is no problem with vendor or anything and then installed my (oss vendor based rom) over it and then restored my backup except for data and restarted. Then I formated data and restarted again, Now I can successfully restore my backup as there is no unable to decrypt error....Thank God! And Sorry bro I know I should have created my own thread but I cannot live without my phone....so Thanks a lot for your support...
[Redmi Note 9S / Note 9 Pro (Indian Model) Question] MPK99:
Wait. Your device is mi a3. Why did you consulted this thread. It's Redmi Note 9 Q&A forum...

Anyways, something worked for you. Happy flashing.
[Redmi Note 9S / Note 9 Pro (Indian Model) Question] Ravi3467:
Thanks a lot... actually there are two reasons for that, first is that there was nothing much on Google regarding this not even on xda and second I was in such a rush for looking for solution. Later on I realised xda has different communities so I should ask this question on my thread but believe me this way things got sorted really fast....Infact I was so happy to see that you have always been replying really quickly even in your early posts so I was sure that you are someone who is online and helpful....You have helped me a lot in understanding this all....Thanks a lot....
[Redmi Note 9S / Note 9 Pro (Indian Model) Question] CountChokcula:
I had the same issue on my 9t. it's because of the encryption of the stock OS. The steps below is what i did to work around this it when I encountered the bootloop. So whenever you load the stock firmware, it immediately encrypts the device, the way to prevent this is to boot directly into recovery after flashing the stock firmware and flashing the custom recovery, to avoid completing the process. I also had issues with the adb sideload feature, but i found a lengthy work around below. The whole idea is to prevent the stock OS from encrypting everything

NOTE: I am on the global version of the xiaomi 9t, my device codename is davinci

1. Install STOCK firmware through the Miflash tool, I flashed using flash_all (warning, do not use flash_all_lock, this will lock your bootloader)

2. Booting into OS, moving the custom ROM from my computer to OS using usb file transfer

3. Rebooting into fastboot mode, Then flashing the custom twrp recovery for my 9T (this gives you access to the root of the filesystem)

4. rebooting to recovery, and moving the custom rom to the root of the filesystem ( in the path "/" )

(Normally with every other phone, you could wipe the data and system portion at this step, but for some strange reason that didn't work for this device)

NOTE: READ STEP 5 AND 6 BEFORE FOLLOWING THROUGH, THE DEVICE WILL REBOOT AFTER INSTALLING THE FIRMWARE, AND YOU MAY HAVE TO START OVER AGAIN

NOTE: step 5 reverts the encryption

5. Go back to fastboot and REFLASH the STOCK firmware

6. after it was finished the vice will reboot and hold vol down to IMMEDIATELY go back to fastboot and do NOT boot the stock firmware

7. I flashed the custom twrp recovery at least 3 times (sometimes it doesn't flash recovery the first time and you'll have to repeat step 5)

8. I rebooted and IMMEDIATELY went to RECOVERY (This prevents encryption)

9. I did a factory reset, cleared data, system, and dalvik cache, (do not wipe internal storage)

10. Install the the custom firmware you moved to the root directory ( the path is "/" ) ( i installed lineage os for davinci xiaomi devices)

11. Final step, wipe data, factory reset. reboot

Congratulations! you are now on a custom rom

To root the device, I downloaded magisk and installed the zip through twrp.

From here the OS will resume encryption but since the encryption technique different from the stock firmware, it is completely safe and the password to decrypt the data in the recovery, will be whatever password you set when you first start the device
[Redmi Note 9S / Note 9 Pro (Indian Model) Question] posvar8:
This worked perfectly on my Redmi Note 8t. Big thanks!
[Redmi Note 9S / Note 9 Pro (Indian Model) Question] MPK99:
The whole point of this thread is to decrypt your device & use it in decrypted mode successfully.

Most of this device's custom roms come with forced encryption. You just need to decrypt the rom before booting for first time. I mostly use KoUtility here. Follow this for the tutorial.
[Redmi Note 9S / Note 9 Pro (Indian Model) Question] TGVB:
Hello members

Guess I am in a pickle, with mi10t lite 5g where I followed the steps to flash PixelExperience but after flashing it reboots to MIUI page and hangs. on TWRP it does state that the flash was successful. Is there any solution to this issue. thanks
[Redmi Note 9S / Note 9 Pro (Indian Model) Question] TGVB:
Hello members

post removed as it may not be relevant here!
[Redmi Note 9S / Note 9 Pro (Indian Model) Question] Anthony_Key:
Well, this may be a bit funny, but I discovered how to remove this error in the poco x3 nfc due to an oversight, I was following the steps of a previous comment and just emphasized that I would not select the "clean all & lock" option and it just hit me. step and leave it in that option, when I realized it is when the program marked me error, then I rebooted my device (It always turned on without problem in the stock rom, but when I tried to install any other it failed) it started everything fine and it is still unlocked, It starts with the arrival of miui12, I set a pin, once in the main menu I restart in the recovery to see if the twrp was still, I see that the stock is there and I select restart in the system, now I restart in fastboot to install the TWRP again , I enter the recovery and surprise! He asks me for my pin (which he did not do the previous times) and it seems that everything works perfect again :)

Sorry for the english, use the translator XD
[Redmi Note 9S / Note 9 Pro (Indian Model) Question] bhanu9009:
please try 'fastboot -w'

once data got erased there is no need for decryption...

the problem I feel is it was not able to encrypt the /data.
[Redmi Note 9S / Note 9 Pro (Indian Model) Question] lg-optimus:
I am in a bootloop with a X3 NFC surya. Before it worked with crdroid and I liked to change from crdroid to havoc-os-v4.6-20210620-surya-official using twrp_3.5.0-0_by_mahajant99

The 1st time I was asked for my key and data was decrypted. I erased all partitions and formatted data (yes). Then I rebooted into recovery again.

Flashing havoc-os-v4.6-20210620-surya-official and nikgapps-core-arm64-11-20210704-signed showed no(!) erros except this "unable-to-decrypt-fbe-device" at the beginning.. I tried to flash havoc only too, but I am always getting into bootloop.

The same strategy with a Redmi Note 9 Pro global / Joyeuse worked fine. with the RN9 I used havoc-os-v4.6-20210619-joyeuse-official and the same gapps-file nikgapps-core-arm64-11-20210704-signed.

I will give orangefox-r11.0_6_alpha-unofficial-surya a chance now.

Any advices are welcome. Everything personal is saved, so I can delete everything.
[Redmi Note 9S / Note 9 Pro (Indian Model) Question] Line321:
How do you flash another TWRP, when you have already flashed another one? (sorry question from a not-computer-wizard). Do you just command something in terminal or do you have to do something on the phone?

Kind regards,

Line321
[8125, K-JAM, P4300, MDA Vario Software Upgrading] NATDADDY2001:
Ok, im not really to new to this forum ive been using different roms i got from here on my wing(herald) which is running "OTP v6.5 Biggy.nbh". But, my question is i just bought a wizard for my gf and she really likes the operation system set up on my wing. Is the .nbh file im using on my wing usable on the wizard like do i just change it out of my herald ruu program drop it in the wizards and load flash away? thats what im gathering from reading but, i just would like to make sure. oh and btw its a g3 cid unlocked and ready to flash. Thanks in advance for any help
[8125, K-JAM, P4300, MDA Vario Software Upgrading] ashasaur:
In short, probably, since Windows Mobile is essentialy the same software, regardless of the platform that it is on. In long, I personally wouldnt do it. While the Wing and the Wizard are essential the same spec wise, they are not identical hardware wise, which in my opinion would spell diasaster for you if you try to flash a Wing ROM to the Wizard or vice-versa. We have many different WinMo 6.1 flavors for download here, and im sure that one of them would be too your liking. Please my friend, dont sacrifice a Wizard for experimentation!

Personally, I would try the latest TNT build(20237 I think), its very fast, and WinMo 6.1, and the latest build to boot!

Hope that helps!
[8125, K-JAM, P4300, MDA Vario Software Upgrading] ashasaur:
In short, probably, since Windows Mobile is essentialy the same software, regardless of the platform that it is on. In long, I personally wouldnt do it. While the Wing and the Wizard are essential the same spec wise, they are not identical hardware wise, which in my opinion would spell diasaster for you if you try to flash a Wing ROM to the Wizard or vice-versa. We have many different WinMo 6.1 flavors for download here, and im sure that one of them would be too your liking. Please my friend, dont sacrifice a Wizard for experimentation!

Personally, I would try the latest TNT build(20237 I think), its very fast, and WinMo 6.1, and the latest build to boot!

Hope that helps!

EDIT-Gahh, dunno what happened, but I double posted by accident! Can a mod please remove this? (and not use the temp. ban hammer?)
[8125, K-JAM, P4300, MDA Vario Software Upgrading] hotrod101:
That is some good advice. I was also kinda wondering about this kind of thing and just happened to come accross your post.
[8125, K-JAM, P4300, MDA Vario Software Upgrading] NATDADDY2001:
Thanks for the reply! Yea, i think ill just find one here. I dont wanna brick it :eek: im really looking for a stable 6.1 touch diamond build.Imma try those out and she how she likes em! Thanks again. i so thought i was gonna get flamed lol
[8125, K-JAM, P4300, MDA Vario Software Upgrading] ashasaur:
Heh, perhaps by another member...but not from me! I try not to flame people asking innocent questions like that, now crap that is in the FAQ or something...THATS WHEN THE FLAMING BEGINS!! heh, but yeah, the latest TNT is indeed based off of the Touch Diamond ROM thats been floating around, so you are good to go there.

@hotrod101, glad I could be of service!
[Xiaomi Poco F1 Questions & Answers] dinopat:
I can't change region on my phone, it's alway China, how can i change it, please help. Thank you!