A quick guide for people want to flash custom rom.
1. Install or update your ADB driver on your computer
http://adbdriver.comhttps://developer.android.com/studio/run/win-usb.htmlInstall it
2. Unlocking Bootloader
https://account.xiaomi.com/pass/registerwww.miui.com/unlock/index_en.htmlUse legit HP number, type legit reason like "install custom rom".If you encounter IP error, use Hoxx VPN or any VPNs to switch your IP address, apparently is a site bug, keep trying until it works. Do not refresh the page or resend the SMS, you will trigger SMS limit.In your device, go to Settings > About > Build, tap the build multiple times to unlock developer optionIn your device, go to Settings > Additional Settings, add your device to your Mi accountYou will need to wait a total 72 hours after adding the device to your account.
www.miui.com/unlock/index_en.htmlTurn off your device and boot into bootloader mode by pressing Volume Down + Power buttonsConnect your device to your PCRun the unlocker software to unlock your bootloader
3. Get the tools
https://dl.google.com/android/reposi...st-windows.zip
4. Install Custom RecoveryPersonally I use TWRP
https://twrp.me/devices/xiaomiredminote4.htmlPlace the img file into the "tool" folderTurn off your device and boot into bootloader mode by pressing Volume Down + Power buttonsConnect your device to your PC
http://www.droidviews.com/download-l...win-mac-linux/Type "fastboot devices" to check if fastboot workingType "fastboot erase recovery"Type "fastboot flash recovery twrp-3.1.1-0-mido" or whatever the file name isType "fastboot reboot recovery"
If you gonna install MIUI rom, then use
http://en.miui.com/thread-742589-1-1.html
5. Install Firmwares + Roms + Gapps + Root
https://www.androidfilehost.com/?w=s...irmware_xiaomihttps://forum.xda-developers.com/redmi-note-4Download gapp from opengapps.org - Choose ARM64, 7.1, Mini or Full or Stock
http://www.supersu.com/downloadWipe your device through recovery, personally I completely wipe the device by choosing advance option.Transfer your files via ADB by...Run command prompt on your tool directoryType "adb devices" to check if workingType "adb push <your firmware filename> /sdcards/firmware.zip"Type "adb push <your rom filename> /sdcards/rom.zip"Type "adb push <your gapps filename> /sdcards/gapps.zip"Type "adb push <your supersu filename> /sdcards/supersu.zip"Install Firmware firstInstall Rom nextInstall Gapp lastRebootOnce your rom setup finish, reboot to bootloader again. The custom rom should show that option on your power menu, if not check Settings > Security to display that option.Install SuperSUReboot, you are done.