Difference between revisions of "LineageOS on Moto X4 (payton)"
From Cactus Howto
Jump to navigationJump to searchLine 1: | Line 1: | ||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
= restore in case of hard brick = |
= restore in case of hard brick = |
||
* docs (tried a lot - only this one worked): https://forum.xda-developers.com/moto-x4/help/hard-bricked-how-enter-emergency-t3757472 |
* docs (tried a lot - only this one worked): https://forum.xda-developers.com/moto-x4/help/hard-bricked-how-enter-emergency-t3757472 |
||
Line 52: | Line 90: | ||
C:\Users\User\Downloads\blankflash> |
C:\Users\User\Downloads\blankflash> |
||
</pre> |
</pre> |
||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ |
Revision as of 18:52, 3 November 2018
docs
- https://wiki.lineageos.org/devices/payton/install
- https://wiki.lineageos.org/adb_fastboot_guide.html
limitations
- NetFlix app cannot be used in LineageOS
prepare
Using MacOS here
- download latest image from https://download.lineage.microg.org/payton/ (allows life without google)
- download latest android platform tools from google https://dl.google.com/android/repository/platform-tools-latest-darwin.zip
- install tools to $HOME/ (see https://wiki.lineageos.org/adb_fastboot_guide.html)
- download recovery image (TWRP) from https://dl.twrp.me/payton/ (download .img!)
- download LineageOS su add-on arm64 package (optional) from https://download.lineageos.org/extras
install
- follow instuctions on https://wiki.lineageos.org/devices/payton/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
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
restore in case of hard brick
- docs (tried a lot - only this one worked): https://forum.xda-developers.com/moto-x4/help/hard-bricked-how-enter-emergency-t3757472
- using windows pc - downloaded blank flash tool here: https://drive.google.com/file/d/1wfNOTMquSJFcCjCtaxf1lrSPVABm9XTS/view
- unpack, start cmd connect bricked phone to usb and execute "blank-flash.bat" and device will come up in fastboot mode:
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) [ 0.004] ...cpu.sn = 1378945535 (0x523109ff) [ 0.004] Opening singleimage [ 0.004] Loading package [ 0.006] ...filename = pkg.xml [ 0.007] Loading programmer [ 0.008] ...filename = programmer.elf [ 0.008] Sending programmer [ 0.196] Handling things over to programmer [ 0.197] Identifying CPU version [ 0.198] Waiting for firehose to get ready [ 3.236] ...SDM630 1.0 [ 3.236] Determining target secure state [ 3.240] ...secure = yes [ 3.266] Configuring device... [ 3.271] Flashing GPT... [ 3.271] Flashing partition with gpt.bin [ 3.274] Initializing storage [ 3.306] ...blksz = 512 [ 3.408] Re-initializing storage... [ 3.408] Initializing storage [ 3.508] Flashing bootloader... [ 3.510] Flashing xbl_a with xbl.elf [ 3.757] Flashing pmic_a with pmic.elf [ 3.809] Flashing rpm_a with rpm.mbn [ 3.862] Flashing tz_a with tz.mbn [ 4.043] Flashing hyp_a with hyp.mbn [ 4.112] Flashing devcfg_a with devcfg.mbn [ 4.150] Flashing prov_a with prov64.mbn [ 4.192] Flashing cmnlib_a with cmnlib.mbn [ 4.250] Flashing cmnlib64_a with cmnlib64.mbn [ 4.308] Flashing keymaster_a with keymaster.mbn [ 4.362] Flashing storsec_a with storsec.mbn [ 4.394] Flashing abl_a with abl.elf [ 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>