yashsingh1/xdaforums huggingface dataset:
[Xiaomi Poco F1 Guides, News, & Discussion] Jerryxl:
Hi i am on global 10.3.5 stable, rooted with magisk and twrp is not installed (only hot booted).

1. Can i just flash dfe?

2 what about ota update? If i just flash dfe Will it ask for any pin after doing ota update?? Or i can just update and then flash dfe again

3. Also i have one doubt. i flashed pixel rom once and i decided to revert back to miui. So i restored my twrp backup of miui and got bootloop. Then i flashed the 10.3.5 zip and vendr/firmware also. But after booting it asked me for pin. i had to fastboot flash the rom again. It wiped all my data. So what did i do wrong here. And how to restore miui twrp backup. Coz its really difficult to back up all the data in my phone every time i flash a rom. Thats holding me back from enjoying the custom roms. So any clarification would be highly appreciated. Thanks
[Xiaomi Poco F1 Guides, News, & Discussion] rehfore:
but how do i do it? i only read dfe dfe dfe everywhere but can't find anywhere how to disable encryption
[Xiaomi Poco F1 Guides, News, & Discussion] pac213:
How can you tell the benefits without providing concrete proof? I am running encrypted since I got my POCO and installed LOS16. I haven't encountered any issues at all with regards to performance or battery life.
[Xiaomi Poco F1 Guides, News, & Discussion] Amstro:
Where can i get the DFE.zip file?
[Xiaomi Poco F1 Guides, News, & Discussion] Darklouis:
The benefits he talked about are:

-Battery Life Improvement

-Slightly Better Response Times

This is true, but sometimes it cannot be noticed. Why?

-Battery Life Improvement

Booting to an encrypted phone has process,

First is booting. After booting, you have to type in your password/passcode, etc.

After typing the password/passcode, the CPU starts decrypting the phone

After decrypted, the device starts to soft reboot (rebooting without power loss, this is different than a usual reboot)

and booting for the second time.

It can cost a little amount of battery because of the CPU decrypting the phone and the device's first and second boot.

Maybe, you can't even notice because it has a slight impact on battery (maybe 1 or 2%) It is barely noticeable but for some users that likes to reboot their device so much, it can be a big issue.

That's why unencrypted device has slight battery life improvement.

-Slightly Better Response Times

Maybe some users experienced this seeing that their device slows down for a reason.

For me, I did some benchmarks on an encrypted device and on unencrypted device.

Parameters
-Android 10 CrDroid
-Unrooted
-No other apps other than stock apps that comes with the ROM

The R/W (Read and Write) on both devices is not the same. But not a huge difference in their scores.

Maybe the encrypted one lags on starting an app but barely noticeable on daily usage.

So unencrypted device has slightly better response times in terms of R/W

As emphasized by Immortalis (I am so sorry, I don't know the format to tag somebody)
[Xiaomi Poco F1 Guides, News, & Discussion] Darklouis:
This one is stable for me. Flash it after you flashed your Firmware/vendor and ROM

1. Firmware/Vendor

2. ROM

3. DFE

DISCLAIMER: FLASH AT YOUR OWN RISK. IT IS NOT 100% GUARANTEED THAT IT WILL WORK ON YOUR DEVICE
[Xiaomi Poco F1 Guides, News, & Discussion] Amstro:
Thanks a lot, and if i'm using Magisk, i should flash DFE before Magisk.
[Xiaomi Poco F1 Guides, News, & Discussion] Darklouis:
DFE first then reboot to confirm it works, no bootloops or any errors.

Then flash Magisk
[Xiaomi Poco F1 Guides, News, & Discussion] badshah Khan001:
This doesn't work for my device.

What to do?
[Tilt, TyTN II, MDA Vario III General] ecolive:
I installed the nice comm mgr that has the 3G on/off, etc...

However, every time I power the phone on, the WIFI function comes enabled, even tough I had it disabled when powered down the phone. Does anyone have any hints? Thanks
[Xiaomi Redmi Note 5 Pro Guides, News, & Discussion] Camerado:
9.9.3

https://sourceforge.net/projects/xi....eu_multi_HMNote5Pro_9.9.3_v10-9.zip/download

https://androidfilehost.com/?fid=1899786940962576634

9.8.29

https://sourceforge.net/projects/xi...eu_multi_HMNote5Pro_9.8.29_v10-9.zip/download

https://androidfilehost.com/?fid=1899786940962572944

9.8.22

https://sourceforge.net/projects/xi...eu_multi_HMNote5Pro_9.8.22_v10-9.zip/download

https://androidfilehost.com/?fid=6006931924117942482

9.8.15

https://sourceforge.net/projects/xi...eu_multi_HMNote5Pro_9.8.15_v10-9.zip/download

https://androidfilehost.com/?fid=6006931924117937204

9.8.9

https://sourceforge.net/projects/xi....eu_multi_HMNote5Pro_9.8.9_v10-9.zip/download

https://androidfilehost.com/?fid=6006931924117934243

9.8.1

https://sourceforge.net/projects/xi....eu_multi_HMNote5Pro_9.8.1_v10-9.zip/download

https://androidfilehost.com/?fid=6006931924117928902

9.7.25

https://sourceforge.net/projects/xi...eu_multi_HMNote5Pro_9.7.25_v10-9.zip/download

https://androidfilehost.com/?fid=6006931924117924457

9.7.18

https://sourceforge.net/projects/xi...eu_multi_HMNote5Pro_9.7.18_v10-9.zip/download

https://androidfilehost.com/?fid=6006931924117919454

9.7.11

https://sourceforge.net/projects/xi...eu_multi_HMNote5Pro_9.7.11_v10-9.zip/download

https://androidfilehost.com/?fid=6006931924117914711

9.7.4

https://sourceforge.net/projects/xi....eu_multi_HMNote5Pro_9.7.4_v10-9.zip/download

https://androidfilehost.com/?fid=6006931924117909788

New links will be posted here.
[Xiaomi Redmi Note 5 Pro Guides, News, & Discussion] Grantius:
What TWRP works with this ROM
[Xiaomi Redmi Note 5 Pro Guides, News, & Discussion] Camerado:
Official works fine.
[Xiaomi Redmi Note 5 Pro Guides, News, & Discussion] lcdkhoa:
hi, i'm on stock miui 9.3.25 and fastboot gets problem.

So i couldnot install TWRP.

Could you please guide me how to revert to 8.1.0 miui ?
[Xiaomi Redmi Note 5 Pro Guides, News, & Discussion] Juanlufer4:
They say that TWRP can not decrypt Miui Pie, is it true?
[Xiaomi Redmi Note 5 Pro Guides, News, & Discussion] lcdkhoa:
that is true. all of us are hooking at pie beta
[Xiaomi Redmi Note 5 Pro Guides, News, & Discussion] Juanlufer4:
But you have it installed?
[Xiaomi Redmi Note 5 Pro Guides, News, & Discussion] Michal161:
U need to flash older fw
[Xiaomi Redmi Note 5 Pro Guides, News, & Discussion] lcdkhoa:
already yet

---------- Post added at 08:22 PM ---------- Previous post was at 08:21 PM ----------

by how ?
[Xiaomi Redmi Note 5 Pro Guides, News, & Discussion] SunilSuni:
Flash fastboot ROM using Mi flash software
[Xiaomi Redmi Note 5 Pro Guides, News, & Discussion] lcdkhoa:
please any tut ?, i never using mi flash so i dont know how to.
[Xiaomi Redmi Note 5 Pro Guides, News, & Discussion] SunilSuni:
visit en.miui.com/a-234.html

Make sure no space in extracted fastboot ROM package folder directories
[Xiaomi Redmi Note 5 Pro Guides, News, & Discussion] lcdkhoa:
thankyou so much, i'll try this
[Xiaomi Redmi Note 5 Pro Guides, News, & Discussion] SunilSuni:
Welcome :) and happy flashing
[Xiaomi Redmi Note 5 Pro Guides, News, & Discussion] ayanzav:
Viper4android dont work in this version... someone has any idea?
[Xiaomi Redmi Note 5 Pro Guides, News, & Discussion] Juanlufer4:
Dolby and Magisk either
[Xiaomi Redmi Note 5 Pro Guides, News, & Discussion] candres_c:
I installed it, version of xiaomi.eu, tell you that you can not go back to Oreo, I have lost the AI ​​in the stock camera, I have lost gcam. Does anyone know how to reactivate AI in the camera? Thank you.
[Xiaomi Redmi Note 5 Pro Guides, News, & Discussion] Grantius:
Wrong. Magisk 18.1 works fine. You are doing something wrong.
[Xiaomi Redmi Note 5 Pro Guides, News, & Discussion] Juanlufer4:
I will look to see if there is something wrong
[Xiaomi Redmi Note 5 Pro Guides, News, & Discussion] Setsa-DNA:
is it become ARB 5 or still ARB 4. I think if still ARB 4 u can still go back to Oreo ARB 4. CMIIW
[Xiaomi Redmi Note 5 Pro Guides, News, & Discussion] elkhshap:
for me its working fine

make wipe data maybe solve it

are new version have changed in the icon of quick setting or not i think its have new look
[Xiaomi Redmi Note 5 Pro Guides, News, & Discussion] Ducatuca:
Yeah, it's ok. I have clean flashed it ?
[Xiaomi Redmi Note 5 Pro Guides, News, & Discussion] adeel312:
default camera not working on latest 9.8.22 beta rom not even working with third party camera application . Any solutions...??
[Xiaomi Redmi Note 5 Pro Guides, News, & Discussion] prince_mihir:
Camera is not working with custom kernels. If you are using any custom kernel check with default kernel.

and if you want to use ROM with custom kernel in that case do following:

1. Flash 9.8.9 and backup Vendor

2. Then Flash 9.8.22 and Kernel and Magisk

3. Restore Vendor (9.8.9)

4. Reboot.
[Xiaomi Redmi Note 5 Pro Guides, News, & Discussion] LipSick:
MIUI EU (9.8.22) All GCam is not working for me

ಥ_ಥ
[Xiaomi Redmi Note 5 Pro Guides, News, & Discussion] xell75:
Seriously? Solution is above you.
[Xiaomi Redmi Note 5 Pro Guides, News, & Discussion] Camerado:
9.8.29 added in OP: https://xiaomi.eu/community/threads/9-8-29-last-miui-10.52036/post-500806
[Xiaomi Redmi Note 5 Pro Guides, News, & Discussion] Jack'O:
On their site they say this is the last Miui 10 update and that Miui 11 is around the corner, will HMNote5 get it?
[Xiaomi Redmi Note 5 Pro Guides, News, & Discussion] Camerado:
MIUI 11 stable only in Nov/Dec, i think...
[Xiaomi Redmi Note 5 Pro Guides, News, & Discussion] TheHoc:
9.8.29

9.8.29 failed to flash. Phone got stuck in boot loop afterward. Reflashed 9.8.22 and worked fine.
[Xiaomi Redmi Note 5 Pro Guides, News, & Discussion] Camerado:
9.9.3 added in OP.
[Xiaomi Redmi Note 5 Pro Guides, News, & Discussion] Duonghuynh2357:
Excuse me, China team doesn't pause for miui optimization?
[Xiaomi Redmi Note 5 Pro Guides, News, & Discussion] Camerado:
Bug fixes for revoked 9.8.29.
[Xiaomi Redmi Note 5 Pro Guides, News, & Discussion] elkhshap:
why we got new update ?

as i know last update is 9.8.29
[Xiaomi Redmi Note 5 Pro Guides, News, & Discussion] elkhshap:
miui 11 9.9.24 is release chines rom when we will get eu rom

i'm us it now but google services is the problem
[Xiaomi Redmi Note 5 Pro Guides, News, & Discussion] SyeedAhmed:
it will come when miui officialy srat releasing miui 11 beta on their website
[Xiaomi Redmi Note 5 Pro Guides, News, & Discussion] elkhshap:
iam wait its very nice but iam back agine to miui 10 cuz of google services
[Xiaomi Redmi Note 5 Pro Guides, News, & Discussion] xell75:
9.9.25 is released so EU will come soon I guess.
[Xiaomi Redmi Note 5 Pro Guides, News, & Discussion] krillehb:
it`s already there, i just installed it. Absolutely no bugs so far. Very fast and fluent
[Xiaomi Redmi Note 5 Pro Guides, News, & Discussion] elkhshap:
what is recovery version you are use with me not installing via twrp
[Xiaomi Redmi Note 5 Pro Guides, News, & Discussion] xell75:
MIUI 11 better than MIUI 10?
[Xiaomi Redmi Note 5 Pro Guides, News, & Discussion] creative21:
does dirty flash from miui 10 to 11 work? anyone tried with success?

edit : i tried and it works fine
[Xiaomi Redmi Note 5 Pro Guides, News, & Discussion] krillehb:
definiltely YES !!!!:good:

---------- Post added at 04:15 PM ---------- Previous post was at 04:15 PM ----------

I use OrangeFox 10.0.1
[Xiaomi Redmi Note 5 Pro Guides, News, & Discussion] Warrimonk:
Is this thread going to switch to MIUI 11 or stay as an MIUI 10 support thread?

I updated and it's been great so far. Much better battery life and my device runs much cooler than the last version of MIUI10
[Xiaomi Redmi Note 5 Pro Guides, News, & Discussion] jackson_c:
This rom comes with google apps/services installed or need gapps?
[Xiaomi Redmi Note 5 Pro Guides, News, & Discussion] gsmyth:
28.11 rom just released.

---------- Post added at 08:49 PM ---------- Previous post was at 08:48 PM ----------

They're already part of the rom, no need to flash them.
[Xiaomi Redmi Note 5 Pro Guides, News, & Discussion] candres_c:
I tried, try to install Oreo and not turned, was in Bootloop.
[Xiaomi Redmi Note 5 Pro Guides, News, & Discussion] krillehb:
I use Orange Fox

---------- Post added at 06:37 AM ---------- Previous post was at 06:35 AM ----------

the Problem is (at least in my case), that the phone is not recognised on the PC
[Xiaomi Redmi Note 5 Pro Guides, News, & Discussion] krillehb:
of course you can go back to Xiaomi EU 9.3.14 which is Oreo based. I already did it
[Xiaomi Redmi Note 5 Pro Guides, News, & Discussion] elfumondice:
Is it possible to install via system updater, choosing update package, etc?
[Xiaomi Redmi Note 5 Pro Guides, News, & Discussion] Antyhaker:
You can't so go back to stock or learn how to live without it [emoji14]

Wysłane z mojego Redmi Note 5 przy użyciu Tapatalka
[Xiaomi Redmi Note 5 Pro Guides, News, & Discussion] 01Thesam:
I installed this version, and twrp says cannot decrypt data.. what should I do, please guide me guys ??
[Xiaomi Redmi Note 5 Pro Guides, News, & Discussion] 0veR:
Get back to stock, android 8.1 ?
[Xiaomi Redmi Note 5 Pro Guides, News, & Discussion] 01Thesam:
How bro ?
[Xiaomi Redmi Note 5 Pro Guides, News, & Discussion] 0veR:
Are you serious? ?
[Xiaomi Redmi Note 5 Pro Guides, News, & Discussion] Amilton.Quadros:
I solved this problem by switching custom recovery, and doing a Full Wipe (data, cache, dalvik, internal memory, vendor) BEFORE flashing the rom.
[Xiaomi Redmi Note 5 Pro Guides, News, & Discussion] 01Thesam:
Which recovery you used and after that what you did please can you tell me all the steps. :angel:

---------- Post added at 04:59 AM ---------- Previous post was at 04:20 AM ----------

Bro the issue is we can't flash anything from internal and not even wipe system. And we can't take risk to use miflash as many users have used miflash tool after this issue but none worked. Miflash says success but not boots system
[Xiaomi Redmi Note 5 Pro Guides, News, & Discussion] datnx:
There was a problem activating camera2api. Two methods are flash magisk module and fix build.prop is not working. Does someone have a solution?
[Xiaomi Redmi Note 5 Pro Guides, News, & Discussion] 01Thesam:
Hey guys finally found a solution to deal with this issue​

1. Download the latest Mi flash tool

http://en.miui.com/a-234.html

and Install it.( INSTALL THE FLASH TOOL IN C DRIVE )

2. Now, from the above link download "LATEST GLOBAL STABLE" Remember to download stable one ( there will be a dev. version too)

3. Extract the rom downloaded rom file.

4. Now, copy the rom file in c drive and rename the folder to "ROM".

5. Now, open Miflash tool and select the rom folder we copied to c drive.

6. Now, click on refresh button.

7. Then at the bottom of Miflash tool select "CLEAN ALL AND LOCK" (This will clean flash and lock the bootloader too avoid any errors)

8. Now, click on flash it will take sometime but after flashing is done your device will automatically get rebooted :o

Now, you have a clean device :angel:

Enjoy !!​
[Xiaomi Redmi Note 5 Pro Guides, News, & Discussion] trip007in:
Im on Xiaomi.eu ROM 9.3.25 pie. Magisk is not working. Enabled camera2API through TWRP flashable ZIP, but GCam does not work, pops up with error message. Flashing Magisk, fails to boot the ROM. First time some how I could flash magisk 18.2 but had bootloop on reboot. After reflashing the ROM, cant succeed in to booting the ROM with either 18.1 or 18.2. So something must be related to the pie version of MIUI. So now I'm without root, no Camera2API so no GCam, no viper. Cant go back to previous version, it shows headphone attached, without the headphone connected, so no ear piece or speaker will work. There are issues related to google service as well, no downloads from play store. Anyone has any solution to offer? would help everyone.
[Xiaomi Redmi Note 5 Pro Guides, News, & Discussion] 01Thesam:
haven't you seen my above post to solve all issues and errors :angel: Go for it, i was also having this issue after flashing this rom ;)
[Xiaomi Redmi Note 5 Pro Guides, News, & Discussion] dullmeox:
Got same issue..
[Xiaomi Redmi Note 5 Pro Guides, News, & Discussion] 01Thesam:
Use my above method.. dont go for other methods or your device may get bricked
[Xiaomi Redmi Note 5 Pro Guides, News, & Discussion] dullmeox:
I tried mount SD card and its work,

can i flash stock recovery img to delete TWRP?
[Xiaomi Redmi Note 5 Pro Guides, News, & Discussion] trip007in:
You mean to revert to previous version of ROM? Have you done this? and facing no issues at all? My next plan was to flash Fastboot ROM and even have downloaded the ROM, but holding up as of now as I have read people reporting their phones bricked. So I am proceeding cautiously. As of now what I am missing on pie is GCam, Root, Viper. Other than that everything else is smooth. So will wait for next version of Pie, if it does not fix the issues will try Miflashtool.
[Xiaomi Redmi Note 5 Pro Guides, News, & Discussion] dullmeox:
Thanks for your advise brother,

ok its no problem downgrade from PIE to Oreo?
[Xiaomi Redmi Note 5 Pro Guides, News, & Discussion] 01Thesam:
Don't worry i did everything as in my method and just installed again custom rom. ( but again i unlocked the bootloader and flash twrp )

and for gcam don't forget to check my thread to install latest stable pixel 3 gcam with everything working ;)

https://xdaforums.com/redmi-note-5-pro/themes/google-camera-stable-build-everything-t3891492

---------- Post added at 08:51 AM ---------- Previous post was at 08:48 AM ----------

No after again flashing twrp it will still show unable to decrypt sys. And you will not be able to flah any rom. (i did this and wiped the system but after wiping it again gave me the same error and was not able to flash any rom ) just go for my method its simple and has zero chances of failure as it worked fine for me without any issues :angel:
[Xiaomi Redmi Note 5 Pro Guides, News, & Discussion] Amilton.Quadros:
⚡️ Custom TWRP for Pie

ℹ️ twrp-3.2.3-2

?*♂️ fx-mod (4pda)

? AFH: https://androidfilehost.com/?fid=1395089523397927658

✓ Fixed Pie decryption with new Pie beta rom (9.3.25)

✓ Persist and Cust partitions can also be mounted

Note: Shamelessly taken from 4pda and tested by me.

[MENTION=9125111]Whyred[/MENTION]official | [MENTION=9125111]Whyred[/MENTION]photos | [MENTION=5068885]XiaoMi[/MENTION]ot | [MENTION=2097796]customiz[/MENTION]ation
[Xiaomi Redmi Note 5 Pro Guides, News, & Discussion] wewenk:
Just flash default TWRP on fastboot

In my experience fastboot only works if you turn off the phone and enter fastboot with power and vol - button.

Fastboot won't work with adb reboot-bootloader

With default twrp, i flash MIUI 10.2.1.0 and it's working.

I guess it should work without formatting data. But in my case I format data.
[Xiaomi Redmi Note 5 Pro Guides, News, & Discussion] furchtlos76:
tryed this with fastboot boot recovery.img but does not start!?
[Xiaomi Redmi Note 5 Pro Guides, News, & Discussion] Amilton.Quadros:
Is your Anti Roll Back (ARB) already disabled?
[Xiaomi Redmi Note 5 Pro Guides, News, & Discussion] furchtlos76:
**update** flashed again, and it works, strange. Thanks anyway!

What do you mean with disabled? used some custom roms and wanted to try pie miui now, orange fox recovery works,

but your recovery seams not to run, but i saw on 4pda is a new recovery in the same thread, but i got no account there so

i can not download it.
[Xiaomi Redmi Note 5 Pro Guides, News, & Discussion] dullmeox:
sorry, wrong post

---------- Post added at 04:29 AM ---------- Previous post was at 04:14 AM ----------

Amazing it's work for me,thanks for your great works brother..
[Xiaomi Redmi Note 5 Pro Guides, News, & Discussion] Joakin2k:
I reverted back , check my post of ALERT IN the section of questions ...
[Xiaomi Redmi Note 5 Pro Guides, News, & Discussion] bhramha:
Guys i have updated my device to close beta pie 9.3.25 but now my device is detected in adb mode but not able to detect in fastboot mode and because of that I'm not able to flash Twrp and install custom roms

Is there any solution pls help
[Xiaomi Redmi Note 5 Pro Guides, News, & Discussion] The4anoni:
http://anglov.pl/~orjon/TWRP-whyred-9.0.zip

Red Wolf Recovery, works with latest xiaomi.eu Dev.

I don't know who make this, got this from miuipolska.pl forum https://miuipolska.pl/forum/topic/42157-miui-9328/
[Xiaomi Redmi Note 5 Pro Guides, News, & Discussion] Antyhaker:
Every posts in "alert section" are bull**** :)

---------- Post added at 01:33 PM ---------- Previous post was at 01:31 PM ----------

Someone from telegram group :)

---------- Post added at 01:34 PM ---------- Previous post was at 01:33 PM ----------

Full shutdown and then power + vol down. Reboot from recovery or ADB doesn't work.
[Xiaomi Redmi Note 5 Pro Guides, News, & Discussion] furchtlos76:
Anyone got a working GCam for this?
[Xiaomi Redmi Note 5 Pro Guides, News, & Discussion] candres_c:
I'm on xiaomi.eu 9.3.28 with OrangeFox recovery and it goes great https://sourceforge.net/projects/orangefox/files/whyred/OrangeFox-R9.0-1-whyred.zip/download

---------- Post added at 04:07 PM ---------- Previous post was at 04:00 PM ----------

Hi, I'm using the version of arnova GCam-5.1.018-Pixel2Mod-Arnova8G2-V8.3b1

So far it has been working well. You Have to have active camera2 API, Build.prop/persist.vendor.camera.HAL3.enabled=1
[Xiaomi Redmi Note 5 Pro Guides, News, & Discussion] trip007in:
As far as I know, the GCam does not work on MIUI 10, pie. Even after activating Camera2API, the GCam is crashing. I tried all the GCam mods that i was using on 8.1. So switched back to oreo 8.1, last developer release. Its not worth upgrading to pie at the cost of GCam, Viper and Root.
[Xiaomi Redmi Note 5 Pro Guides, News, & Discussion] Grantius:
The reply that you posted, that GCAM version works fine for me. It's something you are doing wrong.
[Xiaomi Redmi Note 5 Pro Guides, News, & Discussion] reddsmokee:
I want to flash xiaomi.eu 9.3.28 but i am afraid if problem appear to back other roms. Just normal flash is enough? Do i need lazy flasher or something specific else?
[Xiaomi Redmi Note 5 Pro Guides, News, & Discussion] rocker00:
LOL, GCam, V4A and root are working but the problem is reading and searching are always a real pain, that's the problem :)
[Xiaomi Redmi Note 5 Pro Guides, News, & Discussion] Kuato:
But how? I was searching anywhere but no luck.. no one share how to enable cam api2 on Miui pie
[Xiaomi Redmi Note 5 Pro Guides, News, & Discussion] rocker00:
Have you tried to take a look at build.prop?

This is already exists on build.prop which is on SYSTEM:

persist.vendor.camera.HAL3.enabled=0

Change 0 to 1..done :)
[Xiaomi Redmi Note 5 Pro Guides, News, & Discussion] trip007in:
I had tried this several times but I could not boot in to the ROM after rooting with Magisk, even after using the new TWRP modified for Pie. Secondly, I have read and posted queries related to these issues but most of them are facing the same issue. You are the first person who is saying that it works. I read most of the forums and posts but I did not get this answer. If you are saying so confidently then I would give it a try again, I am not afraid of flashing the Pie again as I have already down graded once and know very well how to revert if things go wrong.

---------- Post added at 05:45 PM ---------- Previous post was at 05:43 PM ----------

Which version of Magisk work?

---------- Post added at 05:47 PM ---------- Previous post was at 05:45 PM ----------

No, You will have to flash latest Fastboot 8.1 ROM, to revert. Then you can root and even restore the ROM along with data using TWRP backup .
[Xiaomi Redmi Note 5 Pro Guides, News, & Discussion] kotobodj:
magisk v19 beta work fine
[Xiaomi Redmi Note 5 Pro Guides, News, & Discussion] trip007in:
Factory reset / wiping data helped. The Magisk 19 worked on clean install. But have to reinstall and reconfigure each and every app now.
[Xiaomi Redmi Note 5 Pro Guides, News, & Discussion] Camerado:
9.3.28 added in OP.
[Xiaomi Redmi Note 5 Pro Guides, News, & Discussion] Gonz19:
Viper 4 android doesn't work in this pie build. The driver cannot be installed. Any solution?