Fastboot Unlock
From Variscite Wiki
VAR-SOM-MX6 - Android Nougat - Fastboot unlock
OEM unlocking via Fastboot
If you are using the user debug build, it behaves like a standard Android device and says device is locked.
You may need to unlock the device by following below steps:
- Settings => System => About Tablet => Build number
- Keep on tapping until you see a prompt that says "You are now a developer!"
- Settings => System => Advanced => Deveoper options => OEM unlocking
- Reboot to bootloader via
$ adb reboot bootloader
or on the Serial terminal
# reboot bootloader
- Type "fastboot 0" in the U-Boot command line
- Run "sudo `which fastboot` oem unlock" from the Host PC
- Wait until the unlock process is complete
Now you should have your device OEM unlocked, and from now onwards you can flash your custom-built AOSP images generated from your Android build.