
Open Settings -> About Phone and tap Build Number 7 times to enable Developer Options.

Go to System -> Developer Options, then enable OEM Unlocking and USB Debugging.
Turn off phone -> hold volum up + power 3 second to boot recovery menu
Select "Fastboot mode" by press volume down button
Connect to computer. use command
fastboot flashing unlockPress up volume button to approve. wait success message them enter in adb

reboot