Unlocking the bootloader and rooting will expose you to a loss of warranty.
You do everything at your own risk.
The method is to pull the unlock code from the phone. For this we will need root. You can only root for a blocked bootloader on Android 5.0. So:
1. If you do not have Android 5.0, do a downgrade.
How to go on Android 5.0 (downgrade):
2. Root your phone with KingRoot,
3. Download Minimal ADB and fastboot, connect the phone in USB Debugging mode and start the ADB,
4. Enter the command:
And then:
Code:
su -c "grep -m1 -aoE 'WVLOCK.{14}[0-9]{16}' /dev/block/mmcblk0p7 |grep -aoE '[0-9]{16}'"
You will receive the unlock code. Copy it.
5. Press ctrl + d and Enter:
6. Enter:
Code:
fastboot oem unlock ****************
(paste your code in place of the stars)
And that's it. You have the bootloader unlocked
Originally posted by Baron Rafau in forum.android. pl site