[Moto E5 ROMs, Kernels, Recoveries, & Other Develop] weakNPCdotCom:
If you have a factory fresh e5, I and several others on here would greatly appreciate a TWRP backup of your factory boot/system/system image before you proceed with any changes. These would help save a lot of phones from accidental soft-bricks since we dont have any factory firmware available.

Ill summarize the steps to get it working below, but I just want to warn you it is not very fun. I have my device functional now, for the most part, but I had to jump through some hoops to get around problems with it.

Main Issues

Camera and Flash do not work

Stock Messaging App doesnt work

LineageOS Boot Image causes a bootloop or stuck on motorola boot screen. You have to flash a stock boot image to get Lineage to boot after flashing the ROM.

PITA getting GApps installed and working. Because of Google's latest lockdown on "uncertified devices" you have to go through a very annoying procedure to register your google services framework id in order to get GApps to work and prevent repeated uncertified device notifications from popping up.

You have to flash GApps before you setup the device. GApps will crash often if you dont. If you notice the initial android setup taking a long time to verify information and what not, that was normal for me.

Confirmed Working for T-Mobile

Mobile Data, 4G LTE

Calls, Speakerphone

Mobile Hotspot

Summary of Steps

I dont recommend anyone use a boot image other than the one for the XT1921-3. After losing my factory boot image, this is how I was able to get LineageOS running and my phone functional.

Unlock bootloader using the Motorola process here

Boot to bootloader and fastboot flash twrp from the Moto E5 TWRP ROOT thread to recovery

Boot to recovery

Make a FULL backup in TWRP to an external sd card.

Wipe - Format Data. Reboot

Wipe System/Cache/Dalvik. Reboot

Flash LineageOS Unofficial Jason ROM.

If you have a backup of your boot partition, restore it.

Otherwise reboot to bootloader and fastboot flash the boot image from the Stock 8.0 Jason ROM to boot partition

If you want root, boot to recovery and flash magisk and GApps.

If you use any GApps you will get uncertified device messages. You will need to follow the instructions at https://www.google.com/android/uncertified/. Follow steps 11-13 to get your google services device id.

Reboot to system. You will see "N/A" on the screen and it will reboot once or twice before booting to the Lineage boot screen

Begin the initial setup of Lineage. You will shortly get an uncertified device screen. When you see this, power down the phone.

Boot to the bootloader. With USB connected to your PC, adb pull /data/data/com.google.android.gsf/databases/gservices.db and download an sqlite db browser program. you will need to open that db file and search the "main" table for the android "android_id" value. use this value to register your device. FYI each time you do a factory reset or wipe data on lineage you will have to register a new code.

Reboot to Recovery and wipe your cache partition only and reboot to system.

Complete the initial setup of Lineage.

Setup might hang, but i eventually got through it and the phone is running smoothly.

If you decide to go through with this, PLEASE let me know if you can share the twrp backup of your boot, system and system image. I will host them myself for other people to use and it will hopefully help advance development for our phone.

Let me know if you have any questions.