Unlocking the bootloader on a Xiaomi Redmi 5 Go to product viewer dialog for this item.
Backup: The unlocking process will erase all data on your device.
How to Unlock the Developer Options on Xiaomi Phone (Android Tutorial)
Tap on MIUI Version 7 times until you see "You are now a developer".