[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] MotoX4:
I hate to contradict a developer but your instructions do not work. At least they didn't for me and I tried 9x to get this to work.

Here is my instruction for those who seem to be having an issue. I have also included the explanations as to why I found this way works. :angel:

How to install Lineage OS 15.1

EDIT: I updated my guide here https://xdaforums.com/showpost.php?p=77703386&postcount=472

Download 3.2.3.-0 TWRP to mount. The latest official TWRP is missing MTP and will not mount in Linux without it, which would make it impossible to upload your files to your phone. https://dl.twrp.me/payton/twrp-3.2.3-0-payton.img.html

Restart your phone to your bootloader (press and hold both power and the lower volume key at the same time). From your Windows Prompt or Linux Terminal run the following command.

fastboot boot '/your_path_here/twrp-3.2.3-0-payton.img'

If using Linux, remember to start that as root ( sudo fastboot boot '/your_path_here/twrp-3.2.3-0-payton.img' )

1st if coming from stock INSTALL "Copy Partitions Zip". https://xdaforums.com/showpost.php?p=77490529&postcount=2 From there reboot to your bootloader and use the firmware download and running flash_all.bat (windows as administrator) or ./flash_all.sh (Linux run as root).

If coming from the previous unofficial Lineage, I found flashing everything worked best as I had repeat issues (9x) when trying to upgrade (usually apps would crash). Upgrading the official Lineage Rom should not be a problem and this issue likely only impacts the unofficial (In other words, treat this the same way you would, coming from a different ROM) -- IF your phone is encrypted, you will need to format DATA (as 3.2.3-0 will not decrypt your phone even with the correct password). -- Once done, reboot back to bootloader and once again use TWRP 3.2.3-0 to boot your phone.

Download, mount your phone, and upload to your phone the following:

Official Lineage 15.1 https://download.lineageos.org/payton

* MindTheGApps (Google Apps) https://androidfilehost.com/?flid=170282&w=files

* Lineage OS SU Addon (Root) https://mirrorbits.lineageos.org/su/addonsu-15.1-arm64-signed.zip

* Notes that these are technically optional but do make for a better experience. MindTheGApps will install the supported minimal install of Google system apps to allow you to download and install apps from Google Play Store. Lineage OS SU Addon is the official add-on which will grant you root level access to your phone. You can perfectly have the full basic functionality of your phone without either as they are optional, but you will gain a better experience (in my opinion) by adding them.

Time to switch to the latest TWRP. The older 3.2.3-0 that you needed to mount will not install the zips. At the time of this posting, the latest is 3.2.3-1 https://dl.twrp.me/payton/twrp-3.2.3-1-payton.img.html Restart your phone to bootloader and run the same command as previous, but with the newer build.

fastboot boot '/your_path_here/twrp-3.2.3-1-payton.img'

Install your first zip the ROM. Reboot back to bootloader and use reuse the previous fastboot command above.

Install your second zip, MindTheGApp. Reboot back to bootloader and use reuse the previous fastboot command above.

You are now DONE with TWRP. TWRP will not install Lineage OS SU Addon. TWRP will spit out a code 7 error informing you that it encountered too many symbolic links (symlinks) and cannot proceed with the install.

Reboot into recovery and use Lineage's Official Recovery.

Select Apply Update

Select the zip for Lineage OS SU Addon (the install will happen so quickly it will seem as if the screen only blinked - Don't worry, that's a good thing. :good: )

Reboot your phone

Optional - If you wish to delete those zips now that you are done with them they can be found at /data/media/

Go to Settings

Go to System

Go to About Phone

Scroll down to Build Number

Tap Build Number 7x real fast -- This will enable developer options

Go back 1 menu and you will now see Developer Options (Settings > System > Developer Options)

Scroll down to Root Access and enable (I, personally enable both, Apps and ABD).

Congratulations! You're done! :cool:

The future problem -- Lineage OS Recovery does not have an option to decrypt your phone. Which means I have no working solution at this time should you set up your phone with a lock option (as most folks will). Some version of TWRP will correctly decrypt your phone, but the ones I tested were missing MTP which would make it impossible to mount and upload files from your computer to your phone.

:eek: