below is what i've done to unlock n install twrp
QUOTE
how to unlock
ensure u are running on dev china/china stable rom
settings - about phone
tap 10x MIUI version to enable "developer options"
settings - additional settings - developer functions
tick "oem unlocking"
tick "usb debugging"
settings - MI account
logon to your MI account
go to http://en.miui.com/unlock in your laptop
logon to your MI account
click "download miui unlock"
off hp
press vol down & power to enter fastboot mode
connect your hp and laptop with usb cable
extract in your laptop
run "miflashunlock.exe"
click "unlock"
Success
click "reboot phone"
ensure u are running on dev china/china stable rom
settings - about phone
tap 10x MIUI version to enable "developer options"
settings - additional settings - developer functions
tick "oem unlocking"
tick "usb debugging"
settings - MI account
logon to your MI account
go to http://en.miui.com/unlock in your laptop
logon to your MI account
click "download miui unlock"
off hp
press vol down & power to enter fastboot mode
connect your hp and laptop with usb cable
extract in your laptop
run "miflashunlock.exe"
click "unlock"
Success
click "reboot phone"
QUOTE
verify unlock
D:\fastboot-recovery>fastboot oem device-info
...
(bootloader) Device tampered: false
(bootloader) Device unlocked: true
(bootloader) Device critical unlocked: true
(bootloader) Charger screen enabled: true
(bootloader) Display panel:
OKAY [ 0.058s]
finished. total time: 0.061s
D:\fastboot-recovery>fastboot oem device-info
...
(bootloader) Device tampered: false
(bootloader) Device unlocked: true
(bootloader) Device critical unlocked: true
(bootloader) Charger screen enabled: true
(bootloader) Display panel:
OKAY [ 0.058s]
finished. total time: 0.061s
QUOTE
flash twrp for redmi 4 prime
dload it here
extract it to same folder with fastboot folder
rename it as "twrpR4P.img"
D:\Lenovo\fastboot-recovery>fastboot devices
676ee00c7d63 fastboot
D:\fastboot-recovery>fastboot.exe flash recovery twrpR4P.img
target reported max download size of 536870912 bytes
sending 'recovery' (28814 KB)...
OKAY [ 0.740s]
writing 'recovery'...
OKAY [ 0.389s]
finished. total time: 1.137s
D:\fastboot-recovery>fastboot.exe boot twrpR4P.img
downloading 'boot.img'...
OKAY [ 0.749s]
booting...
OKAY [ 0.615s]
finished. total time: 1.371s
hope flexus90 can pin it at 1st pg...dload it here
extract it to same folder with fastboot folder
rename it as "twrpR4P.img"
D:\Lenovo\fastboot-recovery>fastboot devices
676ee00c7d63 fastboot
D:\fastboot-recovery>fastboot.exe flash recovery twrpR4P.img
target reported max download size of 536870912 bytes
sending 'recovery' (28814 KB)...
OKAY [ 0.740s]
writing 'recovery'...
OKAY [ 0.389s]
finished. total time: 1.137s
D:\fastboot-recovery>fastboot.exe boot twrpR4P.img
downloading 'boot.img'...
OKAY [ 0.749s]
booting...
OKAY [ 0.615s]
finished. total time: 1.371s
Jan 21 2017, 12:23 PM
Quote
0.0467sec
0.83
7 queries
GZIP Disabled