yashsingh1/xdaforums huggingface dataset:
[Xiaomi Redmi Note 6 Pro ROMs, Kernels, Recoveries,] clemenza011:
Thank you so much for the efforts .. the matter of fact is that I had no ANY previous backup, as I was all the time so far encrypted with the system partition and decryption never worked before.

however, after this 'splash' TWRP screen expired, I got the 4 options only, I think I selected 'install twrp' and it was (re)installed, then got booted back automatically to the twrp, got the decryption of all partitions ('successfully decrypted with default password' was the line ).

So I did the backup to the sdcard of the default proposed partitions (system, boot and data (excl storage). I have no backed up nothing else to sd card. Then hit the Format data option, it was not able to be done (message is 'failed to mount /data (device or resource busy)).

So I am not sure what to do next? I did hit 'reboot system' (so without restoring the previous backup) and I got seems clean miui.
[Xiaomi Redmi Note 6 Pro ROMs, Kernels, Recoveries,] ATG Droid:
If you formatted /data then there should be a message that you should reboot your device to be able to use /data again. So just reboot back in to recovery and after that restore the previous backup.
[Xiaomi Redmi Note 6 Pro ROMs, Kernels, Recoveries,] clemenza011:
yes, I think there was such a message. I am in my vanilla Miui now. Just before I get back to the TWRP, should I remove fingerprint/pin whatever, or with the current setup I should pay no attention as the twrp would decrypt whatever it's needed regardless of the local phone setup?

Also, just to confirm once for good, with the current recovery of yours, there is no way that one could flash an older version over newer, thus do the hard bricking of the phone (or in other words, is anti rollback 100% included, regardless of if we switch to/from miui to aosp, and vice versa any combination)

last, your 'donate to me' button replies with '404' page, so is there something to be done there? :)
[Xiaomi Redmi Note 6 Pro ROMs, Kernels, Recoveries,] ATG Droid:
At this point your device is decrypted, once you restore your previous backup of /data, it automatically gets encrypted again, so don't try to reboot in to this version of recovery again once you encrypt it. Just flash the 3.2.3.1 and then it will be fine. I don't usually take donations, but if you really want then my PayPal is https://www.paypal.me/atgdroid :)

Edit: And yeah, anti-rollback is included. Some people already tried the same process on other devices and it worked
[Xiaomi Redmi Note 6 Pro ROMs, Kernels, Recoveries,] clemenza011:
wow, so now I am again very confused. I hope I am not hitting your nerves, yet first you advised to restore initially created backup and I will have my system back working (encyrpted, as it was initially encrypted). (and there was no mentioning to return to the previous twrp version). Now like you are saying that 3.2.3.2 is to be used just for this initial access to the encrypted phone, and once we did that, we should us 3.2.3.1 for everyday use once being decrypted, so to stay decrypted.

ALso, my magisk manager shows still ticket checkbox 'preserve force encryption' so it likes still sees partition as encrypted?

For a paypall could you please your email address, as I cannot send the beer money upon your nickname.
[Xiaomi Redmi Note 6 Pro ROMs, Kernels, Recoveries,] ATG Droid:
I wasn't even 100% sure if 3.2.3.2 is really able to decrypt /data. It's just a test build. I recommended to download 3.2.3.1, because it seems like that the 3.2.3.2 decryption isn't yet working properly as you reported, since for whatever reason the decryption password once you rebooted back to the system wasn't working. So to prevent any future issues I recommended to use the 3.2.3.1 until I fix the decryption for 100%. And if you really aren't sure if you're decrypted, then just download terminal from Google Play store and enter "getprop ro.crypto.state", it will then show you the result.

My PayPal email is: bythedroid@gmail.com
[Xiaomi Redmi Note 6 Pro ROMs, Kernels, Recoveries,] balliboxer:
Working fine without any issue .Flash the recovery through terminal over previous twrp recovery of mr-r00t .Gud job done mate .
[Xiaomi Redmi Note 6 Pro ROMs, Kernels, Recoveries,] clemenza011:
beer money sent :)

my device is encrypted (which imho should be the case as I have sent patter/fingerprint) as I verified with the terminal.
[Xiaomi Redmi Note 6 Pro ROMs, Kernels, Recoveries,] ATG Droid:
So better flash the 3.2.3.1 before booting back in to the recovery, otherwise you will get the same issue back. ;)
[Xiaomi Redmi Note 6 Pro ROMs, Kernels, Recoveries,] clemenza011:
ok, so I am again on 3.2.3.1, which cannot decrypt, so the full cyrcle is being turned now.

Now will definitely wait however much time is needed until You figure out whatever else is to be figured out. To be honest, it is just one big mess with all these encryptions and sh*t which just can take anyone's phone away in a glimpse, just as it was case with my device this evening.
[Xiaomi Redmi Note 6 Pro ROMs, Kernels, Recoveries,] ATG Droid:
I fell like that your device is force encrypted though, otherwise it wouldn't get automatically encrypted everytime you set password. Did you ever flashed lazyflasher or any similar zip which remove the dm-verity and forced encryption from a device? Because with custom recovery installed it anyway seems pointless to even have encrypted device, specially when there is custom recovery like TWRP which is able to decrypt /data.
[Xiaomi Redmi Note 6 Pro ROMs, Kernels, Recoveries,] clemenza011:
I did flashed dm verity I think in the past, yet you are right - my setup is not correct. So I believe I should flash it again, format data again and get from scratch unencrypted...
[Xiaomi Redmi Note 6 Pro ROMs, Kernels, Recoveries,] shaharyan93:
I really appreciate your work and your time spent in doing the same

Is it official?
[Xiaomi Redmi Note 6 Pro ROMs, Kernels, Recoveries,] ATG Droid:
It's not, I didn't even think yet about applying for a official status. It anyway doesn't matter, official status won't change anything.
[Xiaomi Redmi Note 6 Pro ROMs, Kernels, Recoveries,] lalibm:
Quoting the OP is a practice that's discouraged. Please don't do it. Thank you.
[Xiaomi Redmi Note 6 Pro ROMs, Kernels, Recoveries,] g070140:
When i try to flash it in fastboot mode, it says file tramsfer is more than max allowed. Anyone knows why？
[Xiaomi Redmi Note 6 Pro ROMs, Kernels, Recoveries,] SrWladimir:
I don't know really why this happened to me and how managed to fix it, but I tried the following things, maybe one work for you.

-Connecting the phone to a USB 2.0 port (if you PC don't have one, use a usb 2.0 hub)

-Using the fastboot included in the MiFlash tool

-Insist in the command to flash the recovery

-installing xiaomi drivers?

idk which of this things fixed it, but you don't lose anything trying
[Xiaomi Redmi Note 6 Pro ROMs, Kernels, Recoveries,] pixel52:
awesome recovery for tulip ,the only twrp work an install gapps aroma files, thanks, man. [MENTION=8393345]ATG Droid[/MENTION]
[Xiaomi Redmi Note 6 Pro ROMs, Kernels, Recoveries,] clemenza011:
problem never stops for me .. last eve I got notice that Miui 10.2.2.0 is available update, so I did the same which was working before for Miui update (I was using PitchBlack by that time). So I deinstalled Magisk, performed update, TWRP booted, was not able to install (same as PitchBlack) then re-downloaded miui update (this time a bit bigger), then again phone restarted to TWRP, it did the system update, and the phone restarted fine. So the same like with PitchBlack,

Now comes the good part - as I tried to go back to recovery to install Magisk back, I got the factory recovery. Even better, I flashed via adb console 3.2.3.1, all went fine (sending recovery ... OKAY), and yet when I enter to recovery I don't have TWRP but the stock recovery. Any idea (instead of future hiding the notification for miui system update that caused all the sh*t ;) ) ?
[Xiaomi Redmi Note 6 Pro ROMs, Kernels, Recoveries,] Simomaster1:
I advise you to follow these steps in order to update without issues:

1. Download the full update by clicking on the 3 dots in the updater and selecting "download..." etc

2. Re-download magisk installer, dm-verity disabler and everything you flashed which modifies the kernel

3. Flash the downloaded rom, then everything you downloaded in step 2

4. Reboot
[Xiaomi Redmi Note 6 Pro ROMs, Kernels, Recoveries,] ATG Droid:
Flash recovery and directly boot in to it, or use fastboot boot recovery.img

After that flash dm-verity zip.
[Xiaomi Redmi Note 6 Pro ROMs, Kernels, Recoveries,] Pratham Desai:
How to safely flash this? Is this compatible with 10.2 miui global? And what's this decryption/encryption things which I have to take care of, I don't understand anything. Please guide me!!
[Xiaomi Redmi Note 6 Pro ROMs, Kernels, Recoveries,] Pratham Desai:
What are the steps to safely flash this? I'm new to this please help.
[Xiaomi Redmi Note 6 Pro ROMs, Kernels, Recoveries,] dhuriajay:
why DM variety.. where I can get that..

---------- Post added at 03:18 PM ---------- Previous post was at 03:16 PM ----------

Unlock your bootloader.. if you haven't unlocked yet.. then run following command

fastboot flash recovery recovery.img

currently recommended version is 3.2.3-1
[Xiaomi Redmi Note 6 Pro ROMs, Kernels, Recoveries,] Pratham Desai:
Is this compatible with global miui 10.2 stable update?
[Xiaomi Redmi Note 6 Pro ROMs, Kernels, Recoveries,] bornlivedie:
yes
[Xiaomi Redmi Note 6 Pro ROMs, Kernels, Recoveries,] Pratham Desai:
How to avoid this decryption issue? I don't even know what's it's about? Can you explain to me what it is and how it can be avoided please?? Please reply and help me out..
[Xiaomi Redmi Note 6 Pro ROMs, Kernels, Recoveries,] Hacker?pcs:
So my situation was this, I was on 10.0 unecrypted rooted with Magisk after unlocking the bootloader and applying dm-verity and anti-force encrypt disabler. I upgraded to 10.2.1 but forgot to apply the disabler again so the data partition was encrypted. Trying to root by flashing Magisk resulted in a bootloop fixed only by re-flashing the vanilla boot. So I discovered this thread and tried the beta with the decryption capabilities.

It was able to decrypt the data with 3.2.3.2 beta but after rebooting it couldn't accept the passphrase so I tried the suggestion here. I was able to make a backup of the data which was unecrypted (and also backed up /sdcard files as instructed). I wonder though how the decryption happened in the first place without the passphrase, it didn't ask for it in TWRP like it TWRP did in my old LG G3. Restoring resulted in a bootloop but that was because there seems to be a connection with system and data and you need to do this

to be able to restore a data backup without a bootloop.

Note the last tip about lockscreen, it may work with the initial problem with the wrong passphrase, it may help someone and in fixing or bypassing the problem with the decryption in the 3.2.3.2 beta.

So the result was being able to go from initially an encrypted data partition to a decrypted one, a nice outcome, albeit a bit of time. After that with a decrypted data I simply installed 10.2.2 in TWRP then installed the disabler before booting into the OS to avoid being encrypted again. The problem with bootloop after flashing magisk remains and I have to flash stock 10.2.2 boot.img then disabler (to avoid encryption) but that's an issue I think not relevant here.

EDIT:

So... the problem with magisk bootloop was Xposed, I had the module installed and it's not compatible with MIUI at all, it bootloops. I uninstall it in TWRP with Magisk Manager for Recovery Mode (mm) and was able to boot correctly.
[Xiaomi Redmi Note 6 Pro ROMs, Kernels, Recoveries,] Dhruvshelke588:
I tried to flash this recovery via fastboot but it showed "requested download size is more than max allowed"

I have unlocked my bootloader and enabled usb debugging. Help
[Xiaomi Redmi Note 6 Pro ROMs, Kernels, Recoveries,] tofclaire:
have you tried an other usb port ?
[Xiaomi Redmi Note 6 Pro ROMs, Kernels, Recoveries,] Hacker?pcs:
Boot it with

fastboot boot twrp-3.2.3.1-tulip-atg.img

then flash it from within it
[Xiaomi Redmi Note 6 Pro ROMs, Kernels, Recoveries,] Dhruvshelke588:
My laptop has three ports and I tried all three and even two different cables. But still the same. Sometimes when I enter flash recovery command it just disconnets the device
[Xiaomi Redmi Note 6 Pro ROMs, Kernels, Recoveries,] shakil002:
Unable to format f2fs file system ....
[Xiaomi Redmi Note 6 Pro ROMs, Kernels, Recoveries,] Dhruvshelke588:
Tried this says unknown command. I even tried switching ports continuously and at one point it shows sending recovery and nothing happens. Quick question: Does it require internet?

---------- Post added at 04:17 PM ---------- Previous post was at 04:16 PM ----------

Did you mount system cache data etc?
[Xiaomi Redmi Note 6 Pro ROMs, Kernels, Recoveries,] Hacker?pcs:
No

Make sure you have the latest fastboot utility
[Xiaomi Redmi Note 6 Pro ROMs, Kernels, Recoveries,] tofclaire:
and usb2 port, usb3 make issue sometimes
[Xiaomi Redmi Note 6 Pro ROMs, Kernels, Recoveries,] Dhruvshelke588:
I have adb 1.4.3 and all are usb2 ports
[Xiaomi Redmi Note 6 Pro ROMs, Kernels, Recoveries,] shakil002:
No
[Xiaomi Redmi Note 6 Pro ROMs, Kernels, Recoveries,] Hacker?pcs:
Make sure you use the official platform tools from here

https://developer.android.com/studio/releases/platform-tools
[Xiaomi Redmi Note 6 Pro ROMs, Kernels, Recoveries,] Joomsy:
So, what's the benefit of using this over PBPR? I see this seems to pay closer attention to niche features, but does the decrypt bug still exist, or are people just not wiping /data?
[Xiaomi Redmi Note 6 Pro ROMs, Kernels, Recoveries,] Hacker?pcs:
This can decrypt the data partition but leaves a failing lockscreen on boot. It can be fixed probably by the workaround I've quoted or by eliminating the encryption with the procedure described before
[Xiaomi Redmi Note 6 Pro ROMs, Kernels, Recoveries,] PedroJuuu:
This recovery does not support f2fs, unable to create/read f2fs partitions
[Xiaomi Redmi Note 6 Pro ROMs, Kernels, Recoveries,] zedoc:
Do i need to flash "Universal DM-Verity, ForceEncrypt, Disk Quota Disablers " only once after TWRP install, or each time after i flash a ROM? (or only after MIUI ROM flashing?) i don't get it...

and don't want to Brick... :)
[Xiaomi Redmi Note 6 Pro ROMs, Kernels, Recoveries,] fbirraque:
Hi ATG Droid,

Thanks again for your commitment with TWRP development.

Do you have any news about decryption that wasn't working?

Does 3.2.3.2 still in test only?

I'm waiting a stable version to install on my RN6.

Note: I hope you apply for official version. Our RN6 deserves this trust code stamp.

Regards,
[Xiaomi Redmi Note 6 Pro ROMs, Kernels, Recoveries,] ATG Droid:
Recovery supports it, but kernel which is used in the image doesn't. Actually i said in the second post that i used prebuilt kernel, so yeah, anyway you can just replace it manually by some image kitchen if you want. Or just wait until I replace it.

I needed to build some AOSP based custom ROM to use for now, since I use this device as a daily driver and I'm not a fan of MIUI to be honest. So at this point I'm decrypted, but probably I will again restore my MIUI backup and look at it during this weekend. So some another update can be expected soon.

Every time the fstab in boot image or /system partition include the dm-verity or forced encryption flags. Better google something about it, google also got a whole documentation related to the android's verified boot. Anyway, simply said you should just flash it after every MIUI's update or directly once you flash TWRP. Because custom ROMs shouldn't include these fstab flags.
[Xiaomi Redmi Note 6 Pro ROMs, Kernels, Recoveries,] Pratham Desai:
Will I be able to set a fingerprint lock or a pin to my device? I don't exactly know what this decryption thing is all about
[Xiaomi Redmi Note 6 Pro ROMs, Kernels, Recoveries,] Draky50110:
Hi.

So, if I want to flash a custom ROM, are those steps ok ?

Unlock device

Flash TWRP with ADB inf Fastboot mode

Reboot to TWRP

Flash DMVerify

(Optional flash Magysk)

Flash Custom ROM

And for an update of custom ROM to flash :

Boot in TWRP

Wipe cache/dalvik

Flash Custom ROM (new one/update)

Flash DMVerify

Thanks for help.
[Xiaomi Redmi Note 6 Pro ROMs, Kernels, Recoveries,] tofclaire:
unlock,

flash twrp

boot in twrp

format data

reboot in twrp

wipe system,data,cache,dalvik,

flash your custom rom,

flash gapps .

flash magisk after
[Xiaomi Redmi Note 6 Pro ROMs, Kernels, Recoveries,] Draky50110:
No more dmverify ?

Ok, I think I mixed two concepts :)

This TWRP will decrypt data partition.

So no format data.

And no dmverify because custom ROM will not erase TWRP with default Xiaomi recov.
[Xiaomi Redmi Note 6 Pro ROMs, Kernels, Recoveries,] tofclaire:
no, it doesn't decrypt, but if you format data for flashing a custom rom, you don't need to décrypt
[Xiaomi Redmi Note 6 Pro ROMs, Kernels, Recoveries,] Reentry310:
Sorry if this has been said before but I'm interested if you are willing to maintain an "official" TWRP variant for this device. Looks like to have the skills to do that, and its something much needed for this device. An official recovery. Also are you planning on developing custom roms for this device. If you wonder why I'm asking you in particular, its because you know what you are doing lol. Unlike some of these other ports by other devs which have various issues.
[Xiaomi Redmi Note 6 Pro ROMs, Kernels, Recoveries,] limuc:
I've been using this recovery since it was 3.2.3-2. I tried three different PIE custom ROMs: PE, AEX and CrDroid, all of them ran without any major problems, but I like CrDroid the best.

I am NOT using f2fs, I am NOT encrypting my device, I am using the fingerprint and the face unlock.

I am very grateful for the recovery of ATG and the Custom ROM from CrDroid.
[Xiaomi Redmi Note 6 Pro ROMs, Kernels, Recoveries,] fbirraque:
+1

I also waiting for a real Official TWRP for Redmi Note 6 Pro.

Please ATG Droid take the drive seat.

Regards,
[Xiaomi Redmi Note 6 Pro ROMs, Kernels, Recoveries,] live4speed:
Patiently waiting for this recovery to decrypt internal storage permanently.
[Xiaomi Redmi Note 6 Pro ROMs, Kernels, Recoveries,] Pratham Desai:
Yeah same
[Xiaomi Redmi Note 6 Pro ROMs, Kernels, Recoveries,] TigerKHaN:
Thanks Sir.

Perfect Twrp

My phone No problem
[Xiaomi Redmi Note 6 Pro ROMs, Kernels, Recoveries,] bhanuchowdary:
installation steps

can somebody mention exact installation steps, because after installation and reboot recovery twrp is getting replaced by stock recovery i am on MIUI 10 global stable.
[Xiaomi Redmi Note 6 Pro ROMs, Kernels, Recoveries,] tofclaire:
flash with fastboot command, and boot in twrp by fastboot command too
[Xiaomi Redmi Note 6 Pro ROMs, Kernels, Recoveries,] Pratham Desai:
Is the work still in development, I haven't heard from anyone here in 3 days.
[Xiaomi Redmi Note 6 Pro ROMs, Kernels, Recoveries,] Pratham Desai:
You said this is about serious development but why hasn't there been any updates??
[Xiaomi Redmi Note 6 Pro ROMs, Kernels, Recoveries,] fbirraque:
I suggest you to read the previous posts before push the developer.
[Xiaomi Redmi Note 6 Pro ROMs, Kernels, Recoveries,] Pratham Desai:
Sorry didn't mean to come out that way , I was just curious if this is still going on. I'm still waiting for bootloader unlock permission! ;( It says to wait 157 hrs.
[Xiaomi Redmi Note 6 Pro ROMs, Kernels, Recoveries,] ATG Droid:
Because i got my personal life too. This is just one of the many side projects...
[Xiaomi Redmi Note 6 Pro ROMs, Kernels, Recoveries,] Pratham Desai:
Sorry for offending you in any way , I didn't mean to come out like that.
[Xiaomi Redmi Note 6 Pro ROMs, Kernels, Recoveries,] fbirraque:
Hi ATG Droid,

MIUI updates had stopped during Chinese New Year but now OTA is back.

I and probably others RN6's owners here are patiently waiting for this Recovery to decrypt internal storage permanently. Since TWRP 3.2.3-2 has one month now I would like to ask if you has any news to share with us? Did you have time to do new tests with MIUI on your device?

We're counting with you to release a reliable Official TWRP.

Best Regards,
[Xiaomi Redmi Note 6 Pro ROMs, Kernels, Recoveries,] shaun_prawn:
Benefits of decryption?

Hi fbirraque, could you please explain to me the benefits of decrypting internal storage? I have just unlocked bootloader for my RN6 and looking into some custom roms. I have flashed roms on other phones before with no issues but I'm not familiar with anything about decrypting internal storage with TWRP. Is it just so you can flash other roms from internal storage and create backups on the internal storage instead of onto micro SD card? Or are there other reasons everyone wants decryption? Any info would be much appreciated. Thanks.

I'm deciding on whether it is worth waiting for a version of TWRP that can decrypt internal storage.
[Xiaomi Redmi Note 6 Pro ROMs, Kernels, Recoveries,] vdng9338:
On any custom ROM, you can choose to encrypt your internal storage to make your phone more secure, however as of now no recovery can perform decryption. By default no decryption is needed. On MIUI, encryption is forced, so TWRP can't access any of the data in the internal storage, including ROM zips. Neither can TWRP backup your internal storage, in that case.
[Xiaomi Redmi Note 6 Pro ROMs, Kernels, Recoveries,] shaun_prawn:
To flash custom ROM?

Thanks for the quick response. So for now if I just want to flash a custom rom I will have to format the existing partition with MIUI on it, and use the micro sd card to flash a ROM zip? Or maybe sideload with adb? (I vaguely remember doing that once with another phone). As I just unlocked the bootloader it deleted everything anyways, so I'm not too bothered if I have to format the internal STORAGE. Also have you tried any custom ROM's for RN6 that you recommend? I was kinda interested in the Havoc ROM.
[Xiaomi Redmi Note 6 Pro ROMs, Kernels, Recoveries,] limuc:
I installed the latest HAVOC 2.2 (17.2.19) using ATGDroid 3.2.3-1, I had to format the internal memory, now I have full access to it. My device is NOT encrypted. In the last 4 days I haven't noticed any major flaws in using the RN6P.
[Xiaomi Redmi Note 6 Pro ROMs, Kernels, Recoveries,] Pratham Desai:
I'm also waiting for the same. Please developer if you could release it for the Note 6 pro community that would be great! Also I finally unlocked my bootloader!!?
[Xiaomi Redmi Note 6 Pro ROMs, Kernels, Recoveries,] Pratham Desai:
Okay so I finally installed the twrp, and it is so far so good. No issues till now. Thanks for the work!
[Xiaomi Redmi Note 6 Pro ROMs, Kernels, Recoveries,] fbirraque:
Did you kept the Xiaomi stock ROM or installed a custom version?
[Xiaomi Redmi Note 6 Pro ROMs, Kernels, Recoveries,] Xenovant:
Sorry for the question guys but I'm new, as you can see xD

What's the difference between this version and the one on this website h**ps://eu.dl.twrp.me/tulip/twrp-3.2.3-0-tulip.img.html ?

It isn't just that here is a newer version because v3.2.3.0 from here is bigger than the one on that web (?)

Which one should I install on my Global 10.2.2.0? This one?

EDIT:

Is this the difference? the other one is a "crappy" version?
[Xiaomi Redmi Note 6 Pro ROMs, Kernels, Recoveries,] Pratham Desai:
Right now stock ROM ,but thinking going for Lineage OS. Any suggestions?? Also someone else idk who released the twrp officially for this device. I just read on XDA
[Xiaomi Redmi Note 6 Pro ROMs, Kernels, Recoveries,] artyfarty:
Finally twrp for tulip Is available on official twrp site :svetius::victory:
[Xiaomi Redmi Note 6 Pro ROMs, Kernels, Recoveries,] Jiimmy97:
I tried it have some issues this Recovery still the best .

Regards:laugh:
[Xiaomi Redmi Note 6 Pro ROMs, Kernels, Recoveries,] artyfarty:
Issues?

Official release can decrypt device?
[Xiaomi Redmi Note 6 Pro ROMs, Kernels, Recoveries,] fbirraque:
I'm a bit lost. Who's the Developer of the Oficial TWRP for Xiaomi Redmi Note 6 (tulip)... Without "Pro"!?!?!?

Which kind of issues did you have?

Regards,