The conversation between human and AI assistant.
How can I root Xiaomi Mi 5?
Do I need to unlock the bootloader before rooting my device?
Yes, you need to unlock the bootloader of your Xiaomi Mi 5 before rooting it. You can follow these steps to unlock the bootloader: 
1. Go to 'Settings' -> 'About phone' -> 'Build number' and tap it 7 times to enable Developer options
2. Go to 'Settings' -> 'Developer options' and enable 'OEM unlocking'
3. Power off your device and boot into fastboot mode by pressing power and volume down buttons simultaneously 
4. Connect your device to the computer and open command prompt
5. Type 'fastboot devices' to check if your device is recognized by the computer
6. Type 'fastboot unlock' and follow the on-screen instructions to unlock the bootloader