I am now on PE latest build. I have a query, can I root with your given method on PE latest build?
NoDo I need to go back to the stock kernel of my rom in order to flash the latest stable of Magisk?
Just to be sure - if I come from actual stable miui pie stock - would it be possible to install OTAs if I change recovery to orangefox and root via magisk? Or do I have to install stock again with orangefox, as described in the xda orangefox thread?
All the steps still apply, tho I wasn't able to use TWRP because there was an issue about the encryption, so I used OrangeFox as sugested by the post below.Is this guide still valid now? Are the steps the same and all?
It went alright till unlocking the bootloader. but after that when I boot into twrp, mtp and otg and even adb sideload does not work!! when i boot into miui and download the rom files into internal storage and boot back to twrp, the files disappear!!
I cannot transfer the rom files to my internal storage so how to install custom rom??
Nevermind I got it to work. The problem is that TWRP recovery doesn't handle storage encryption on newer android versions well. Since I was running latest MIUI on pie, TWRP was not decrypting storage properly. Even RedWolf was not working. Only Recovery I found that has this bug fixed OrangeFox. It comes in .zip format and not in .img format so follow the steps:--
1) Download the latest OrangeFox recovery for whyred from this link: https://files.orangefox.website/OrangeFox-Stable/whyred/
2) Extract recovery.img from the zip and boot recovery.img using fastboot. Now you will be in OrangeFox recovery.
3) Now before flashing anything first flash the OrangeFox recovery zip file. It would automatically reboot you to the recovery again after installation.
4) Now you are good to go, flash anything you want !!! Also no need of flashing lazyflasher because the recovery has built in dm-verity disable.
Unlocking will wipe not only your data but also all the internal storageReady to unlock bootloader. Just one question:
Wipe all the data from phone is still necessary? Is there a way to avoid that? Because i come to understand that unlocking brings the phone to factory settings pretty much..
SuperSu was great in the old days but it was then sold to a shady company, and now in fact is no longer developed. Don't install it. LineageOS provides their own add-on su, you can use it instead: https://download.lineageos.org/extrasIs there any reason one should choose Magisk over SuperSU to root their Redmi Note 5 running MIUI 126.96.36.199? I always liked SuperSU because it offered a quick and dirty way to determine if your device is successfully rooted or not (if it shows up in apps, it's rooted, if not, it's not).
I want to root only just for adblocking and vanced YouTube, do I need to flash lazyflasher even after flashing magisk. Shouldn't flashing magisk make twrp permanent?