LG K10 (lg-m216)

Unlocking the bootloader
$ cd lglaf && python partitions.py --wipe aboot $ python partitions.py --restore /path/to/aboot_patched.img aboot
 * 1) Clone this repository that includes LGLAF script for communication with LG devices in download mode (make sure to enable developer mode first from android).
 * 2) Follow instructions listed in lglaf github page, power off the device and enter download mode connecting device via USB as peripheral while holding  button.
 * 3) Download   from here and flash it to   partition, running the following commands in a terminal:

$ cd lglaf && python partitions.py --wipe recovery $ python partitions.py --restore /path/to/twrp-3.5.2_9-0-m216.img recovery
 * 1) Power off the device and download TWRP from here. Then, enter download mode again as shown above and flash TWRP image to   partition, running the following commands in a terminal:
 * 1) After turning off the device, you can enter recovery mode holding  +  until the LG logo appears, then release both and press them again. Finally, choose   twice in the next screens. Once TWRP screen appears, you'll be able to flash bootloader images using this known custom recovery.

How to enter flash mode
Once lk2nd image has been flashed to  partition using TWRP, you can get to flash mode just turning the device on. The screen should display lk2nd menu.

Mainline installation
Follow the Installation_guide.

Download lk2nd from https://github.com/msm8916-mainline/lk2nd and flash it to the device.

Follow Qualcomm_Snapdragon_410/412_(MSM8916).