Xiaomi Mi 4i (xiaomi-ferrari)

Contributors

 * Sungold

Recovery mode

 * Turn the device off (or restart also works)
 * Hold and  button
 * Once you feel vibration and phone turns on, release button
 * Keep holding until you get to recovery.

Flashing (Download, Fastboot) mode

 * Same as recovery, but this time hold the and  keys.

Installation
pmbootstrap install pmbootstrap flasher flash_kernel pmbootstrap flasher flash_rootfs
 * Install pmbootstrap first on your PC
 * zap & reinit pmbootstrap, choose  as a device
 * proceed with installation as usual: reboot device to fastboot mode, then: