yashsingh1/xdaforums huggingface dataset:
[Xiaomi Redmi Note 4 Guides, News, & Discussion] Giacomo_ITA:
I hope it works too. But I can't get what are the following steps, after that there is the procedure for Pixel's phones.
[Xiaomi Redmi Note 4 Guides, News, & Discussion] lalo_a13:
Works very well

First of all, thank you very much. I just rooted my redmi note 4 following your guide. it was very easy.

Second. If I would like to install twrp, wich command shoul I use? "fastboot flash twrp.img"???

Third. This guide would work on any android phone?

Thanks in advanced.
[Xiaomi Redmi Note 4 Guides, News, & Discussion] Arien689:
Thank you for the guide.

Can I uninstall system apps, or does it break OTAs?
[Xiaomi Redmi Note 4 Guides, News, & Discussion] age9990:
I'm on MIUI global stable 8.5.4.0 rom, followed the step the phone is rooted.

However, safetynet check is failed and Pokemon GO is stuck at login.

Is there any way to fix this issue?
[Xiaomi Redmi Note 4 Guides, News, & Discussion] unc0der:
Device: Xiaomi Redmi 4X

Just wanted to say thank you, it worked with SafetyNet bypassed.

Some helpful tips for others, official TWRP didn't work for me cause of encryption. Use ZCX TWRP instead.

You can get ZCX TWRP modified for our device by @cofface from here on XDA or from here on his blog.
[Xiaomi Redmi Note 4 Guides, News, & Discussion] lucaspeed:
Problem on Redmi Note 4

I receive an error trying to boot latest twrp:

downloading 'boot.img'...
OKAY [ 0.899s]
booting...
FAILED (remote: invalid kernel & ramdisk address: images overlap)
finished. total time: 0.901s

Something's wrong...
[Xiaomi Redmi Note 4 Guides, News, & Discussion] Pr8:
Thank you for the guide. Worked for me on Redmi Note 4 SD with MIUI 9.2.1.0 sTable
[Xiaomi Redmi Note 4 Guides, News, & Discussion] :
I have a dumb question.

That is, I rooted my phone with this method.

If I change some system files like deleting some chinese apks or adding some cust files to cust folder or deleting some unnecessary files from vendor directory, can I still get OTA?
[Xiaomi Redmi Note 4 Guides, News, & Discussion] NickNintendo:
Do I need to flash anything afterwards? (like lazyflasher)
[Xiaomi Redmi Note 4 Guides, News, & Discussion] hariraj96:
i have the same query...
[Xiaomi Redmi Note 4 Guides, News, & Discussion] :
I tested this by myself. OTA still get but idk it can be installed normally or not.
[Xiaomi Redmi Note 4 Guides, News, & Discussion] Drakemor:
I am wanting to get the Xiaomi Redmi Note 4. I've heard that when you buy a phone from amazon there is no way to unlock the bootloader. Is this true for this phone as well. If this is true can someone direct me where to buy this so the bootloader can be unlocked.
[Xiaomi Redmi Note 4 Guides, News, & Discussion] CygenBoT:
How to solve this issue?

-i-7UI

...done

Full SELinux support is present.

MTP Enabled

Installing zip file '/sdcard/Download/Magisk-v16.0. 21p'

Checking for Digest file...

Skipping Digest check: no Digest file found

************************

* Magisk V16.0 Installer ************************

Mounting /system, /vendor

Found boot/ramdisk image: /dev/block/mmcblk0p21 Device platform: arm64

Constructing environment

Encrypted data detected, keep forceencrypt Unpacking boot image

Checking ramdisk status

! Boot image patched by other programs

! Please restore stock boot image

Unmounting partitions

?***Updater process ended with Error: 1

Error installing zip file '/sdcard/download/Magisk-v16.0.zip****?

Updating partition details... ...done
[Xiaomi Redmi Note 4 Guides, News, & Discussion] jadebeer:
I bought my phone on Amazon, but it wasn't the Amazon ad supported version, just the regular Global Quallcom 64GB with 4GB RAM version. I got the bootloader unlocked without a problem - you just need to wait the full 72 hours once you get the go ahead - the error message is a little misleading when you try to unlock it before 72h have passed, possibly English translated from Chinese, but it means you have to wait 72 hours before taking the unlock steps.

http://c.mi.com/thread-316493-1-0.html
[Xiaomi Redmi Note 4 Guides, News, & Discussion] bcchgeneral:
Thanks for the helpful thread!

Forgive me if it's a stupid question, but if I intend to stay on stock ROM but just want to have root access, do I need to disable DM verity at any point using the method described by the OP?

Edit The answer is there's no need to disable DM verity separately, it seems as though Magisk does it as part of its installation.
[Xiaomi Redmi Note 4 Guides, News, & Discussion] Master0db:
It works perfectly on my redmi note 4x on Android 7.0 MIUI Global 9.5 | Stable 9.5.8.0

I used Magisk v16 and twrp-3.2.1-0-mido.img

Thanks.
[Xiaomi Redmi Note 4 Guides, News, & Discussion] p3dboard:
I would say you probably run a risk of OTA's not working, as depending if the OTA is doing a low level byte / bit comparison update, not just unzipping files, then your System Partition will no longer match the expected value.

If they are simply decompressing a .ZIP file to update, it would probably be ok, but for example, LineageOS can do a system update using unconditional patching of the system partition, byte level updates, and you would break that if you modified the system partition.

I know that Redwolf TWRP, which supports Miui OTA updates, keeps an actual extra unmodified "system" partition copy, for doing the MIUI incremental OTA updates. So I am guessing that's how the MIUI ota update will also work.
[Xiaomi Redmi Note 4 Guides, News, & Discussion] kn1g:
I still did not get the advantages or disadvantages of this method and using the red wolf project. Can someone explain the (tech) difference to me?
[Xiaomi Redmi Note 4 Guides, News, & Discussion] IAmScorpionz:
I just rooted my Note 4 Qualcomm using this method. It was fast and easy although it was a bit confusing at first.

Thanks! ;);)
[Xiaomi Redmi Note 4 Guides, News, & Discussion] ihipro:
Confirmed work for MIUI 9 8.5.10 Global Beta.

Waiting to try OTA.
[Xiaomi Redmi Note 4 Guides, News, & Discussion] Master0db:
Hi.

Any troubles if I update to 9.5.9.0 with this root method installed?
[Xiaomi Redmi Note 4 Guides, News, & Discussion] hadid90:
Hello guys ... i did exactly what is written in this tutorial .. and i wanna mention that i installed the 9.5.8.0 miui global stable rom through a clean flash .. through miflash of course ...

i booted to twrp .. flashed magisk... then rebooted .. got my device working .. stock recovery + root using magisk..

yesterday at night i got the 9.5.9.0 OTA update but it failed to install :( now my device is trying to download the full 1.3 GB rom

So anyone knows if flashing the full rom will actually erase all my files / settings / apps etc ? if yes then is there a way to flash the ota easily without having to wipe anything ?

thank you
[Xiaomi Redmi Note 4 Guides, News, & Discussion] jime1:
What do you mean, "now my device is trying to download the full 1.3 GB rom" ?

Now maybe you will have to download the latest fastboot rom and flash it(miflash )with the option to "flash rom wthout wiping user data and storage"

Now I too have magisk and I'm thinking about flashing the 9.5.9.0 OTA manually. But before, one has to read about how to do it on the forums first. Else you will definitely get your device messed up !

---------- Post added at 02:48 PM ---------- Previous post was at 02:28 PM ----------

[MENTION=4469618]Dr. Hurt[/MENTION] : You should have also mentioned steps for how to properly install OTAs .. might have avoided noobs messing up there devices !
[Xiaomi Redmi Note 4 Guides, News, & Discussion] hadid90:
can you point us to a thread for that please ???
[Xiaomi Redmi Note 4 Guides, News, & Discussion] jime1:
I asked OP the same.

I too am not sure about how to do it properly but ...

https://github.com/topjohnwu/Magisk/blob/master/docs/tips.md

the above link has some helpful info although its outdated.
[Xiaomi Redmi Note 4 Guides, News, & Discussion] hadid90:
At first, i got an ota of only 77 mb .. i download it and clicked on install .. the phone rebooted to stock recovery but the installation failed .. i rebooted to system .. now i get an update of 1.3 gb ? and i am worried if i flash it it will wipe my device .. i dont want to format
[Xiaomi Redmi Note 4 Guides, News, & Discussion] jime1:
So you are able to boot up ! Great !

It will be 77MB if you already had the 9.5.8.0 installed, I got update of 9.5.9.0 of 1.3 GB as I was on an older 9.2.2.0 i guess(I never bothered downloading 9.5.4.0 or 9.5.8.0 as they seemed pretty shady as the feedback on miui forums about these were all negative)

any ways, let me tell you how I did it..

BTW: I have Redmi Note 4 Qualcomm Global

In Magisk go to Magisk Manager → Uninstall → Restore Images (Do not reboot after doing this)

1. I downloaded the full rom .zip Version: V9.5.9.0.NCFMIFA (MIUI9) from : http://en.miui.com/download-309.html#468

2. Followed the steps from here : http://en.miui.com/a-232.html

3. Device updated and rebooted within 15 minutes !

4. Opened Magisk and found that the device was unrooted !

So I just followed the steps from here: https://xdaforums.com/redmi-note-4/how-to/guide-root-using-magisk-stock-recovery-t3718203

5. Now Device is successfully rooted with V9.5.9.0.NCFMIFA

I thought It would be much simpler to update OTAs with Magisk but I had to go through above steps !
[Xiaomi Redmi Note 4 Guides, News, & Discussion] hadid90:
really appreciate your help .. although when i read your previoous post i restored the images then rebooted :( haha now my device is not booting no more ... i m trying to fix it without a reset :( my device is MIDO too .. redmi note 4 qualcomm global .. do you have any idea how to save it now without resetting it ?

**update: i fixed my device by flashing stock boot image :D .. now i am updating and will root my device later :)

Just a question out of topic .. Are the developer rom for our device based on nougat or based on oreo ?
[Xiaomi Redmi Note 4 Guides, News, & Discussion] jime1:
Frankly, MIUI doesn't give a **** about Android versions !

But the latest developer rom 8.5.10 is probably N. http://en.miui.com/thread-2560475-1-1.html https://c.mi.com/thread-1028793-1-0.html

And I don't believe that MIUI will ever bother to bring Oreo to our RN4 !
[Xiaomi Redmi Note 4 Guides, News, & Discussion] android_noob101:
My banking app detected the Root, I followed all the steps correctly. Please can someone help me on how to make sure banking and snapchat app work after doing this?
[Xiaomi Redmi Note 4 Guides, News, & Discussion] jime1:
Did you : open Magisk > open menu (3 parallel horizontal lines) > open Magisk Hide > search for the app you want to hide (for example:banking app, Pokemon and snapchat app ) > click on the check box > now try to open that app and see whether it detects root or not ?
[Xiaomi Redmi Note 4 Guides, News, & Discussion] sudarshan3:
mi 4 works?

Hi

I know this thread its under mi note 4 but will it on work mi 4 (cancro) ??
[Xiaomi Redmi Note 4 Guides, News, & Discussion] dhruvdutt:
Tried with Redmi Note 5 Pro. It fails saying "System has been destroyed" and then reboots to normal existing ROM/system.
[Xiaomi Redmi Note 4 Guides, News, & Discussion] 00Rohan00:
Update For MIUI 9.6.1.0 on Redmi Note 4

On Redmi note 4 miui 9.6.1.0 flashing magisk showing error.and on 9.5.11.0 after flashing magisk device gone to boot.after wiping data I recovered my phone

Please test magisk on miui 9.6.1.0 On Redmi Note 4
[Xiaomi Redmi Note 4 Guides, News, & Discussion] jime1:
OMG ! thanks for the heads up...

and have you checked for updates on magisk and TWRP ?
[Xiaomi Redmi Note 4 Guides, News, & Discussion] 00Rohan00:
Yea sure I have installed latest redwolf recovery and latest magisk manager and I tried to install latest version magisk 16.0(1600) for My Redmi note 4 SD

Have you tried to install magisk on MIUI 9.5.11.0/9.6.1.0

On Redmi note 4 SD
[Xiaomi Redmi Note 4 Guides, News, & Discussion] jime1:
Wait, have you followed the steps in the first post of this thread ?

how can you use Redwolf with this method ? with this method recovery(TWRP) is not flashed but is temporarily booted into instead.

I updated yesterday evening 9.6.1.0 (Redmi note 4 SD), and it is OK ish...

waiting for your comment on working magisk with this, then I'll also try to install magisk on 9.6.1.0

BTW magisk worked fine on MIUI 9.5.11.0
[Xiaomi Redmi Note 4 Guides, News, & Discussion] 00Rohan00:
I flashed latest redwolf recovery img through TWRP

And I am on Redwolf recovery now.

And Try to install magisk on MIUI 9.6.1.0 on Redmi Note 4 SD.I am waiting for your comments.

Visit this link -

http://en.miui.com/thread-2908458-1-1.html.

Reply me about the result of magisk installation
[Xiaomi Redmi Note 4 Guides, News, & Discussion] jime1:
Bro, why do you want to complicate things for yourself ?

This thread is for "Root using Magisk, keep stock recovery for OTA"

and you are going on and on about redwolf flashing, you know redwolf is a custom recovery, right ?

I'll have to quote the author here:

Read the whole thing here please : https://xdaforums.com/showpost.php?p=74820308&postcount=1

and today I'll try to Root using Magisk with the above link steps just for you.

I'll let you know as soon I'm done with it..
[Xiaomi Redmi Note 4 Guides, News, & Discussion] jime1:
Successfully installed Magisk on MIUI 9.6.1.0 and now my device is rooted.
[Xiaomi Redmi Note 4 Guides, News, & Discussion] 00Rohan00:
Yea ok thanks for replying I successfully flashed magisk on Redmi note 4 and my device is rooted now

Many thanks

---------- Post added at 10:26 AM ---------- Previous post was at 09:32 AM ----------

Bro that's a complicated methode

and you should know though Redwolf recovery is a coustom recovery but It will not break MIUI OTA update system.

Read this whole thing-

https://xdaforums.com/redmi-note-4/...t/recovery-red-wolf-recovery-project-t3653704.

That will be helpful for you.

---------- Post added at 10:28 AM ---------- Previous post was at 10:26 AM ----------

Try to install redwolf recovery and flash so simply without PC or adb command.

Be smart bro
[Xiaomi Redmi Note 4 Guides, News, & Discussion] whouitsme:
HELP

i am on MIUI 9.6.1.0 Stable

i have unlocked bootloader and want to enable camera 2 api for gcam mod.

if i install magisk by booting into twrp by read only system method do i need to flash lazy flasher?

if i do the same method how to install ota , to do so i need to uninstall magisk to restore stock boot image or complete uninstall?

what if i do update without restoring boot image from magisk ,will my device brick and how to recovery from that ?
[Xiaomi Redmi Note 4 Guides, News, & Discussion] 00Rohan00:
First of all you need to flash redwolf recovery

Search on google for it

Now you ota updates fixed

After that flash the cam 2 API. zip to enable cam 2 API

Don't need to root

And remember you should flash the zip file after every update to enable cam 2 API.

I will give the zip tomorrow
[Xiaomi Redmi Note 4 Guides, News, & Discussion] 00Rohan00:
Flash it through redwolf recovery or TWRP to enable cam2 api
[Xiaomi Redmi Note 4 Guides, News, & Discussion] namasteji1:
Thanks for this guide. Really helpful.

I have a question now , i performed following steps :

1. Booted into TWRP.

2. Flashed Magisk.zip

3. Rebooted the phone normally, now phone is rooted with magisk installed.

Now when OTA arrives, do i need to uninstall from magisk manager or something ? Or simply i can install the OTA as i have stock recovery ?
[Xiaomi Redmi Note 4 Guides, News, & Discussion] h4harsimran:
Settings not opening

I rooted my phone using this method and now settings app is not opening. I am unable to change any settings or use mtp mode. I am currently on MIUI 10 8.8.2 developer rom. Please help!!!
[Xiaomi Redmi Note 4 Guides, News, & Discussion] 00Rohan00:
First you need to install Redwolf Recovery

Then you can update incremental OTA
[Xiaomi Redmi Note 4 Guides, News, & Discussion] foosaa:
Hello Friends,

I'm on Redmi Note 4 - MIUI Global 9.6 | Stable 9.6.2.0 (NCFMIFD)

Will this method work on my version? Have any one tried it?

I do not want to try and brick or get into a boot loop and then recover using the data wipe.

Just too many apps to re-configure! :crying::crying::crying:

If someone could confirm, it will be very helpful. Thanks.
[Xiaomi Redmi Note 4 Guides, News, & Discussion] Marcuitos:
Tried myself. Works like a charm.

Enviado desde mi Redmi Note 4 mediante Tapatalk
[Xiaomi Redmi Note 4 Guides, News, & Discussion] whouitsme:
Found new method for enabling camera 2 api

I have found new method that enabled camera 2 api

withour root, no need for magisk and no custom recovery, it preserves stock recovery and ota are available without any problem

and there is no need to reconfigure after ota updates.

You just need unlocked bootloader.

Download TWRP recovery image.

Open the folder where the file has been downloaded.

Hold the SHIFT key and right-click on an empty space inside this folder.

Select “Open PowerShell window here”.

Open PowerShell

Next, power off completely.

Hold down the Volume Down + Power button simultaneously to enter Fastboot mode.

Connect your phone to the PC.

Next, enter the following command to boot TWRP recovery:

fastboot boot "recovery-name".img

When it boots, make sure not to touch any options in TWRP.

Enter the following command to make sure that your device is being detected properly:

adb devices

Execute shell using:

adb shell

Enter the following commands to enable Camera2API and EIS :

setprop persist.camera.HAL3.enabled 1

setprop persist.camera.eis.enable 1

Exit the shell and reboot into Fastboot mode:

exit

adb reboot bootloader

Finally,you can lock the bootloader again and reboot.

fastboot oem lock
[Xiaomi Redmi Note 4 Guides, News, & Discussion] FrozenCreeper:
Just a question

When you say to put the twrp.img in the miunlock folder, where exactly, pc or phone?
[Xiaomi Redmi Note 4 Guides, News, & Discussion] jime1:
on pc
[Xiaomi Redmi Note 4 Guides, News, & Discussion] FrozenCreeper:
Oh ok. Do you think this is gonna work on my Xiaomi Redmi Note 4X Qualcomm (4GB/64GB)? And if yes, can I use Flashfire to install OTA updates without any problems?
[Xiaomi Redmi Note 4 Guides, News, & Discussion] jime1:
Yes.

Try Flashfire at your own risk !
[Xiaomi Redmi Note 4 Guides, News, & Discussion] FrozenCreeper:
Ok. I know that Flashfire supports my device by the way and I have a backup of my data just in case.
[Xiaomi Redmi Note 4 Guides, News, & Discussion] FrozenCreeper:
For some reason Flashfire isn't working. I suspect that is because of the lack of BusyBox. Should I use BusyBox after rooting with this method or will it harm my device? Please answer as soon as you can. Thx in advance ;)

---------- Post added at 08:53 PM ---------- Previous post was at 08:24 PM ----------

Can you show us what to do when there's an OTA update available please?
[Xiaomi Redmi Note 4 Guides, News, & Discussion] FrozenCreeper:
Did you have to wipe all your data? I am on MIUI 9.6.2.0 and I'm waiting for an OTA update. If for example I receive the MIUI 10 update or any other update, should I restore the image and then just download and install the update?
[Xiaomi Redmi Note 4 Guides, News, & Discussion] jime1:
Just before updating OTA, Restore Images. Then update OTA.

no need to wipe data or anything else.

Update removes root access, So if you want root then do it manually.
[Xiaomi Redmi Note 4 Guides, News, & Discussion] FrozenCreeper:
An update for Magisk was recently released but I don't get the director installation option and I no longer have access to my superuser. What should I do?
[Xiaomi Redmi Note 4 Guides, News, & Discussion] jime1:
As I replied earlier, "if you want root then do it manually"

Follow the OP steps in the first post.

Get Latest TWRP, Latest Magisk every time you root.
[Xiaomi Redmi Note 4 Guides, News, & Discussion] FrozenCreeper:
Ok thx for your help.
[Xiaomi Redmi Note 4 Guides, News, & Discussion] rushidarshan2k2:
It worked for me, but by mistake I did "swipe to make changes to system" what changes it will do ?
[Xiaomi Redmi Note 4 Guides, News, & Discussion] ranasrule:
where is this miunlock folder ?
[Xiaomi Redmi Note 4 Guides, News, & Discussion] bucks_26:
Hi sir, wanna ask some qustion.

Did u just follow the OP procedure for it?

And what recovery r u using rght now? stock, twrp, or redwolf recovery? Thanks.
[Xiaomi Redmi Note 4 Guides, News, & Discussion] Marcuitos:
Yes, i follow the OP procedure using TWRP, and Ota still working fine. Now I flash A Recovery and flash custom Rom (waiting for warranty void). Actually using OrangeFox Recovery (recommended)
[Xiaomi Redmi Note 4 Guides, News, & Discussion] Mr. Bhatti:
What is mi unlock app folder

What is miunlock app folder and where to find it please help
[Xiaomi Redmi Note 4 Guides, News, & Discussion] fragler:
I'm not sure what i'm doing wrong, but mine isn't loading twrp at all, instead it does a regular reboot..

i get the booting okay message and everything. but it doesn't load up twrp.. =\
[Xiaomi Redmi Note 4 Guides, News, & Discussion] arquillos:
Thank you very much!

It worked on my Note 4X with latest MIUI 9 and Android 7!

Splendid work!
[Xiaomi Redmi Note 4 Guides, News, & Discussion] turbilha0:
Another success report, this time from Portugal!

Thank you very much!
[Xiaomi Redmi Note 4 Guides, News, & Discussion] iSLaND7:
I am on MIUI 9.6.3.0 Stable Android 7 on Redmi Note 4 Snapdragon Indian variant.

I want root just for blocking and backup. Can i root using this method?

As i understand, even with this root, i will get OTA updates to MIUI 10, if I update to MIUI 10,will I loose root?
[Xiaomi Redmi Note 4 Guides, News, & Discussion] Smuji:
downloading 'boot.img'...

OKAY [ 0.672s]

booting...

FAILED (remote: dtb not found)

finished. total time: 1.328s

what does that mean ?

i already use the latest twrp- i've tried 4 different versions
[Xiaomi Redmi Note 4 Guides, News, & Discussion] MauMau777:
Hi there,

a friend of me rooted my Xiaomi Redmi Note 4 half a year ago but I want to install the latest OTA now and I am not sure if it is possible to do so without bricking it.

As far as I know he used Magisk to root. Magisk Manager is installed (according to it the installed Magisk version is 15.3, Magisk Manager version is 5.5.5 91).

Magisk Manager shows only one option: "UNINSTALL". So if I use this option, would it be possible to safely install an OTA without bricking the device or whatever?

Is there anything I should check for before trying to install an OTA?

Current MIUI version is MIUI Global 8.5 Stable 8.5.4.0 (NCFMIED), Android 7.0, Kernel version: 3.18.31-perf-g489aada4

EDIT:

Installing OTA just worked :) I just uninstalled Magisk Manager before using the "Complete Uninstall" option (not sure if this was really neccessary) , that's all.
[Xiaomi Redmi Note 4 Guides, News, & Discussion] TechnoBrat:
Hi, im new to this, this question might sound silly but do i have to back up my data before doing the above process.
[Xiaomi Redmi Note 4 Guides, News, & Discussion] tssphysicsboi:
Hey guys I'm currently on miui 9 and want to update through ota to 10. Possible to not brick my device and keep magisk and root ?
[Xiaomi Redmi Note 4 Guides, News, & Discussion] anuragiser:
Rooted MIUI 10

I had to install magisk two times

once direct install and once within the app download and install

then the method described works

Thanks......
[Xiaomi Redmi Note 4 Guides, News, & Discussion] antonio96ct:
I ran it all to perfection on my Mi A1, only that after installing TWRP, at restart I get the error code "the system has been destroyed" every time I try to enter TWRP, anyone can help me?
[General Questions and Answers] radogost:
Do anybody own Doogee mix LITE? How to root this little gem?
[General Questions and Answers] Ibuprophen:
I don't have this device but, your best bet is to post this question within the following thread.

https://xdaforums.com/showthread.php?t=3632785

Good Luck!

~~~~~~~~~~~~~~~

I DO NOT PROVIDE SUPPORT VIA PM UNLESS ASKED/REQUESTED BY MYSELF.

PLEASE KEEP IT IN THE THREADS WHERE EVERYONE CAN SHARE