LineageOS on Moto X4 (payton)

From Cactus Howto
Jump to navigationJump to search

docs

limitations

  • NetFlix app cannot be used in LineageOS

prepare

Using MacOS here

install

oem unlocking

for oem unlock of payton: use instructions on https://www.getdroidtips.com/unlock-bootloader-moto-x4/

  • get unlock key from Motorola - output from "fastboot oem get_unlock_data" cannot be used directly to unlock phone
  • make sure to use Chrome-Browser for getting the unlock key at Motorola!!! Otherwise the "get unlock code" button will not be visible.
macantha:~ tim$ fastboot oem unlock
(bootloader) Check 'OEM unlocking' in Android Settings > Developer 
(bootloader) Options
OKAY [  0.001s]
Finished. Total time: 0.001s
macantha:~ tim$ 
  • activate oem unlocking in android settings
  • execute twice:
fastboot oem unlock xxxxxxxxxxxxxxxxxxxx (20 digits)
  • reboot

install via twrp recovery

make sure to install the .img (not the .zip) file of the TWRP recovery image:

fastboot boot twrp-3.2.3-1-payton.img
  • wipe
  • format data
  • wipe advanced - system partition
  • copy image to sdcard:
adb push lineage-15.1-20181030-nightly-payton-signed.zip /sdcard/
  • install image in twrp (select above image)
  • Once installation has finished, return to the main menu, tap Reboot, and then System.

restore in case of hard brick

all of this needs to be done via Windows PC. (in my case Win10), disabled anti-virus SW

C:\Users\User\Downloads\blankflash>blank-flash.bat

C:\Users\User\Downloads\blankflash>.\qboot.exe blank-flash
Motorola qboot utility version 3.86
[ -0.000] Opening device: \\.\COM3
[  0.001] Detecting device
[  0.004] ...cpu.id  = 172 (0xac)
...
[  4.453] Rebooting to fastboot
[  4.458] Total time: 4.459s

C:\Users\User\Downloads\blankflash>pause
Drücken Sie eine beliebige Taste . . .

C:\Users\User\Downloads\blankflash>

re-installing stock oreo image

docs: https://www.stechguide.com/stock-firmware-of-moto-x4/

fastboot flash partition gpt.bin
fastboot flash bootloader bootloader.img

next