These are the instructions to root and unroot Xiaomi Mi4 Smartphone without using any Root Application (can be done through the device also).
Requirements: Your Xiaomi Mi4 smartphone should have atleast 20 percent of device battery or more to begin the root process.
How to root Xiaomi Mi4
(Link are Updated Daily and if one Link is Down try another link to Root your Device)
Step 1: Download Rooting tool ( software tool) on your computer ->
LINK 1
LINK 2
Step 2: install the downloaded software toolStep 3: Now Download Xiaomi Mi4 Developer Rom (zip – download any version) on your computer or on your smartphone.
Step 4: Now, rename the downloaded zip file as “update.zip“.
Step 5: If you have downloaded the Xiaomi Mi4 Developer Rom on your computer then move it to the root of your smartphone sd memory using the usb cable.
Step 6: Now, On your Xiaomi Mi4 Smartphone Select Updater.
Step 7: Now, hit the Menu key and select Reboot to the recovery mode.
Step 8: Once you have booted into the Mi Recovery, use UP-Down key for navigation and Power Key to select.
Step 9: Under the Main Menu, Select Wipe and Reset > Wipe Cache > Yes.
Step 10: Once, Wipe Cache completed, tab on the back key.
Step 11: Now, Under Main menu > Select install update.zip.
Step 12: Now, Confirm install update.zip > Yes.
Step 13: Now, update process will take place.
Step 14: Once Update process is completed, Tab on the Back key > Reboot > Reboot to System One.
Step 15: Once your Device is restarted > Open Security > Permissions > Enable Root Permission.
How to unroot Xiaomi Mi4
Step 1: Download software tool on your computer
LINK 2
Step 2: Now, install the downloaded software tool
Step 3: Download Xiaomi Mi4 Stable Rom (zip) on your computer or on your smartphone.
Step 4: Follow the above tutorial from Step#1 to Step#12.