[Moto E5 Questions & Answers] matttt22:
I am hoping someone will be able to help me or point me in the right direction for further troubleshooting. I am a very technical person but have never had an issue as bad as this one.

This all started about a year ago when I tried to root my Motorola Moto e5 Play XT1921-1 (Comcast). The attempt failed so I decided to revert back to stock. However, I received an error as soon as I booted up the stock ROM "Motorola Modem Service Has Stopped" and would prompt me 20-30 times before it finally stopped popping up. After this I will get a single message "There is an internal problem with your device and it might be unstable until you factory data reset." After severala attempts to restore firmware, upgrade, downgrade, use the Moto Rescue tool and perform every imaginable troubelshooting task (including manually flashing via fastboot line-by-line based on flashfile.xml) the error message always appears. In addition, the SIM card appears to be recognized, but I have no service.

I gave up back then and have re-attempted to fix this phone (as I would like to use it) and, at this point, it's personal. I want to be able to figure out what is causing this error and how to fix it. I have seen some other forms where the same quesiton was asked but the solutions were always to reflash ROM/Modem etc. Another issue is that it seems like it might have something to do with the IMEI missing or baseband corruption. However, I appear to still have an IMEI and can see my baseband version in setrtings. Based on everything I have found out on this, my suspicion is it may have something to do with the fact that my phone was carrier unlocked before and, after reflashing the baseband (NON-HLOS.bin), it somehow messed up the phone because it was previouslly unlocked.

Facts:

Phone was carrier unlocked by XFINITY (provided carrier unlock code) and working fine with other carriers SIM

Phone was working for months

What broke it:

Attempted to root phone which failed

Using fastboot, used one of these firmware files to re-flash to stock: https://mirrors.lolinet.com/firmware/moto/rjames/official/Comcast/

After that, the errors came and then I used Motorola Rescue and Smart Assist to try to repair the phone. The software downloaded and installed the latest firmware but the same error messages came up.

After trying several versions of the Stock ROM, I have been unable to get rid of the error message or use any SIM cards

Additional Attempts (Current State):

I managed to get Lineage OS 17.1 installed based on the instructions here: https://xdaforums.com/t/rom-10-0-0_r41-lineageos-17-1-for-moto-e5-play-james-recovery-64bit.4194161/

I no longer get any error message like "Motorola Modem Service Has Stopped" or "There is an internal problem with your device and it might be unstable until you factory data reset."However, I am still having an issue getting any SIM card to work. I am currently only able to test with anactive AT&T SIM card while I have several other old/inactive SIM cards (such as Xfinity mobile). However, all of them yield the same results in LIneage OS. At the top (where carrier should be) it says: "No SIM card - 31000" So I assume that 31000 means Verizon and it sees Verizon's network because I have 1-2 bars and can see my signal strength of -104 dBm

However, I have an AT&T SIM in the phone so I am wondering if the phone is somehow locked again due to fglashing the bootloader. If this is the case, I don't have a way to unlock it again because it does not prompt me for an unlock code while on stock firmware.

I am also attaching all getvar and getprop specs in hopes that someone will be able to provide any guidance. Does anyone at all have any suggesions on further troubleshooting?

Fastboot getvar

Adb getprop