ASUS ZenFone 2 Laser (720p) (asus-z00l)

Contributors

 * antonyjr

Maintainer(s)

 * antonyjr

How to enter flash mode
Press Volume Up + Power Key. At the time of writing lk2nd does not recognize volume down for this device so you can't enter into flashing mode with lk2nd when you flash your kernel to the boot partition.

The only workaround is to erase the boot partition completely by entering the stock fastboot. For this you have to turn your phone completely off(do not plug in anything since if it's charging then it boots). Now Use Volume Up + Power Key once you see the bootloader release the buttons. Now do the following,

$ fastboot erase boot $ fastboot flash boot lk2nd.img $ fastboot reboot $ # Now you should be in lk2nd

Unlocking Bootloader
Before you do anything to the device you should unlock the bootloader (Make sure to enable Developer Mode and USB Debugging in Android first).

Since the recovery partition of the device is not locked by default we would flash TWRP first. Download TWRP from here and flash it to recovery.

$ # Boot into stock fastboot by pressing Vol Up + Power Key $ fastboot flash recovery twrp.img

Now Press Volume Down + Power Key while still in fastboot, Once you see your phone reboot and show the ASUS logo release the buttons. Now You should see TWRP, do the required changes by TWRP. Now reboot again and verify if Android is still working and again get into Recovery.

Also Please Turn Off Screen locking in TWRP settings which causes some trouble. Disable Screen Locking and reduce the Screen brightness.

Now make a backup of your Phone with TWRP to a USB Flashdrive using OTG Cable this is important to recover if you do something wrong or want to go back to Android after writing postmarketOS to your internal memory. (Because the phone will not install any other Android OS unless you are in your Stock Android with latest Firmware again)

For Installing Lineage OS you should do a dirty flash with the latest firmware update.

Now you must install SuperSU or other android root software(TWRP -> Install -> SuperSU.zip transferred from Computer). SuperSU worked for me.

Wipe all caches and reboot into your device. Hopefully it should be rooted.

Now connect your device to your computer with USB debugging enabled. Download this zip file and extract it to some location of your computer.

SUBSYSTEM=="usb", ATTR{idVendor}=="0b05", ATTR{idProduct}=="4daf", MODE="0666", GROUP="plugdev", SYMLINK+="android%n"

Now go to the extracted directory of the zip and execute the following command while your phone connected with USB Debugging and without the screen lock state,

$ ./unlock_bootloader.sh

Make sure to allow permissions by SuperSU on your phone screen.

Now hopefully your device should be unlocked. To check this execute the following command. This will reboot your device into fastboot.

$ adb reboot bootloader $ fastboot oem device-info # It should say Bootloader: unlocked $ fastboot reboot

Installation
Install the lk2nd bootloader, as it is required to handle some quirks with msm8916 devices on mainline kernels. Flash the  image to the boot partition with. lk2nd also provides a fastboot interface that allows for flashing kernels without overwriting lk2nd itself. As soon as you flash this to this device the default boot will always be lk2nd, when you flash a valid mainline kernel you can't see lk2nd again. Read the above sections for workaround.

Once you have booted into lk2nd, follow Qualcomm_Snapdragon_410/412_(MSM8916).