On your phone, go to Settings > About Device > Software Information and tap "Build Number" seven times. Then, enable USB Debugging and OEM Unlock in Developer Options.
Modify configuration
Flashing