Motorola Moto G4 Play (motorola-harpia)
Users owning this device
How to enter flash mode
Hold down POWER + Vol Down while booting to enter Flash Mode.
As some features are still in development for this device, the kernel needs to be built from source using envkernel. To do this, you'll need a copy of
envkernel.sh, and the latest kernel tree
for the device. Once you have those, and you have run
pmbootstrap init, run the following commands:
cd /path/to/linux/kernel source /path/to/envkernel.sh make msm8916_defconfig pmos.config make -j<cores> pmbootstrap build --envkernel linux-postmarketos-qcom-msm8916
You will also need to install the lk2nd bootloader, as it is required to handle some quirks
with msm8916 devices on mainline kernels. Flash the
lk2nd.img image to the boot partition with
fastboot flash boot /path/to/lk2nd.img. lk2nd
also provides a fastboot interface that allows for flashing kernels without overwriting lk2nd itself. To enter it, power on the device, then hold down Vol Down as soon
as you see the boot splash. You should be presented with a menu that looks like the following:
After that, proceed with installation as usual, using lk2nd's fastboot interface to flash the kernel and rootfs.