====== Moto X4 ====== [[https://wiki.lineageos.org/devices/payton|LineageOS device page]] ===== boot modes ===== ^ Recovery | powered off, hold Volume Down + Power, then select “Recovery mode” using Volume keys. | ^ Download | With the device powered off, hold Volume Down + Power. | ===== LineageOS 15.1 ===== - **Boot the newest TWRP .img** from the Official TWRP Project Site. - IF YOU ARE COMING FROM STOCK AND WANT TO INSTALL CUSTOM ROMS FOR FIRST TIME, INSTALL "Copy Partitions Zip" FROM POST #2 - In TWRP, click "Wipe", "**Format Data**", then type "yes" as prompted. - **ADB sideload** the newest weekly - (Optionally) You can flash the newest TWRP Installer also found at the Official TWRP Project Site if you wish to maintain TWRP, though the pre-installed Lineage Recovery instance will do everything you need it to in most cases. We don't recommend or support the use of the TWRP installer, as it is overwritten on every update (will need to be re-installed every update), and has no addon.d-v2 persistence. - Click "Reboot, then choose "Recovery", this will boot you to either Lineage Recovery or TWRP depending on your choice to install TWRP or not. It is necessary to reboot between ROM flash and GApps/Addon flash due to verity/slot-swap logic. - (Optionally) Flash GApps - MindTheGApps arm64 are recommended, OpenGApps are compatible with A/B as of 09102018, but I still only reccoemend and support MindTheGApps. - (Optionally) Flash SU - you'll need to turn it on from in developer settings after first boot Lineage OS SU Addon. - Magisk works fine, though is not supported. - Reboot ([[https://forum.xda-developers.com/moto-x4/development/rom-lineage-os-15-1-t3802265|source]]) ===== Troubleshooting ===== ==== set_metadata: Error on lstat of "/system/etc/init/superuser.rc": Too many symbolic links encountered ===== ''Updater process ended with ERROR: 7'' adb shell rm /system/etc ln -s /system/system/etc /system/etc → flash ZIP again