yashsingh1/xdaforums huggingface dataset:
[Moto E4 (Qualcomm) ROMs, Kernels, Recoveries, & Ot] RebelLion_:
Download the latest stock from https://mirrors.lolinet.com/firmware/moto/sperry/official/Sprint/ and use these instructions to flash:

Please read full procedures and warnings from this XDA thread before proceeding.

Most importantly, you need the firmware zip extracted to your PC, adb/fastboot installed, and your device connected to the PC in fastboot mode. Once that's ready, open a terminal, navigate to the extracted zip's directory and run these commands, in order:

fastboot oem fb_mode_set

fastboot flash partition gpt.bin

fastboot flash bootloader bootloader.img

fastboot flash modem NON-HLOS.bin

fastboot flash fsg fsg.mbn

fastboot erase modemst1

fastboot erase modemst2

fastboot flash dsp adspso.bin

fastboot flash logo logo.bin

fastboot flash boot boot.img

fastboot flash recovery recovery.img

fastboot flash system system.img_sparsechunk.0

fastboot flash system system.img_sparsechunk.1

fastboot flash system system.img_sparsechunk.2

fastboot flash system system.img_sparsechunk.3

fastboot flash system system.img_sparsechunk.4

fastboot flash oem oem.img_sparsechunk.0

fastboot flash oem oem.img_sparsechunk.1

fastboot flash oem oem.img

fastboot erase userdata

fastboot erase cache

fastboot erase DDR

fastboot oem fb_mode_clear

And once that's complete:

fastboot reboot

Note: Any warning while flashing 'oem' about file not existing is okay to ignore, one variant has an oem.img and the other has sparse_chunks. The commands will attempt to flash both to work with either.
[Moto E4 (Qualcomm) ROMs, Kernels, Recoveries, & Ot] -clem:
Cell radio is not working for me on XT1768 with this rom. Is this a known issue?
[Moto E4 (Qualcomm) ROMs, Kernels, Recoveries, & Ot] :
Stock would be better. It shouldn't really matter though.

Edit: I have Boost so I only need sprint and anything else cdma.
[Moto E4 (Qualcomm) ROMs, Kernels, Recoveries, & Ot] savagevegeta:
Do you want it as a .txt file or the buildprop?
[Moto E4 (Qualcomm) ROMs, Kernels, Recoveries, & Ot] :
Doesn't matter, either would be fine.
[Moto E4 (Qualcomm) ROMs, Kernels, Recoveries, & Ot] savagevegeta:
Should I DM you it or post the link here?

---------- Post added at 08:16 PM ---------- Previous post was at 08:09 PM ----------

I sent you the .txt drive link in your PMs in case I might have left device specific details in it
[Moto E4 (Qualcomm) ROMs, Kernels, Recoveries, & Ot] SomethingiCy:
Installed this build fresh after trying the preview you posted a few days ago on the "progress" thread. Call mic and speaker now work. Basically, I haven't found anything so far that doesn't work other than LTE. Tried a bunch of different AT&T apn settings but couldn't get anything beyond H+. Not a major concern. Phone is the Boost variant of the E4.
[Moto E4 (Qualcomm) ROMs, Kernels, Recoveries, & Ot] CodyF86:
[MENTION=6485916]squid2[/MENTION] Good job man. I had one of the devices that didn't like the stock dt image and the dt image the kernel source spat out either. I banged my head on that one for days and once I finally got a kernel to boot. I burnt out for a bit and was hoping someone would take the last steps and build lineage.

Going to fork your repos just so any improvements I can help with are from the same code base. Good Job man. :)
[Moto E4 (Qualcomm) ROMs, Kernels, Recoveries, & Ot] Troupster:
I'll start testing when you get working Sprint APNs in, as I need the data.

I'm really excited for this
[Moto E4 (Qualcomm) ROMs, Kernels, Recoveries, & Ot] ThatBunner:
I'm on Boost. After flashing, I managed to get 3G after tapping reset network settings. I checked the APNs and it was apparently automatically set to "Sprint LTE Internet" and under it says n.ispsn. I opened the browser and pages loaded, etc. When I reboot the 3G disappears and I have the repeat the same process for it to come back.

Also to note when going back to Stock ROM from backup for me, it takes a while for 4GLTE to return to my device.
[Moto E4 (Qualcomm) ROMs, Kernels, Recoveries, & Ot] savagevegeta:
https://xdaforums.com/moto-e4/how-to/e4-qualcomm-los-cdma-data-fix-discussion-t3690873 use this thread to report any mobile data issues. It's currently being worked on and discussed by others with this issue

Do remember that CDMA devices are having network issues
[Moto E4 (Qualcomm) ROMs, Kernels, Recoveries, & Ot] ThatBunner:
Thanks for pointing that thread out for me, I'm going to tinker and see what I can get and report there. I will also check there and see if anyone else finds anything.
[Moto E4 (Qualcomm) ROMs, Kernels, Recoveries, & Ot] savagevegeta:
There is no 4G fix at the moment, unfortunately. I check the thread myself. However, I'm on Sprint, and don't know if this will apply for boost too, but after flashing the ROM Aquarius, I found that the phone connects to 3G. Flashed the in call audio fix and boom! A nice daily driver with features to entertain for a few more days until I decide to experiment with the others. I did have to change a APN though, but it still works, and if you get full bars, it's as fast as LTE.
[Moto E4 (Qualcomm) ROMs, Kernels, Recoveries, & Ot] fix-this!:
I know these are early builds but is there any way to make the data signal just full bars all the time? It fluctuates from 0 to a signal to frequently. I know this is a common bug with some aosp ROMs. It just visually drives me nuts.

Other than that the ROM is smooth as silk.
[Moto E4 (Qualcomm) ROMs, Kernels, Recoveries, & Ot] bluemoonlight:
How do you get the 3g to work? I can't get anything other than 1g. The only time I had 3g is when I was in the boost mobile store. My phone died and I lost all signal.
[Moto E4 (Qualcomm) ROMs, Kernels, Recoveries, & Ot] madbat99:
It's not a bug, pretty sure that's the actual signal strength.
[Moto E4 (Qualcomm) ROMs, Kernels, Recoveries, & Ot] mikaleee:
Two noob questions is this LineageOS rootable? And are there instructions somewhere for reverting back to stock?
[Moto E4 (Qualcomm) ROMs, Kernels, Recoveries, & Ot] savagevegeta:
Yes it's rootable. Download the SU add-on from the Lineage website. Google it. And just download the stock firmware and revert from there.

---------- Post added at 05:29 PM ---------- Previous post was at 05:28 PM ----------

https://xdaforums.com/moto-e4/how-to/progress-boost-mobile-moto-e4-t3650359/page1

That's to revert to stock
[Moto E4 (Qualcomm) ROMs, Kernels, Recoveries, & Ot] KyleBryant:
It also works with magisk 14.3.
[Moto E4 (Qualcomm) ROMs, Kernels, Recoveries, & Ot] mikaleee:
Thank you. Flashed it this morining and loving it. Is there a way to get an apk or zip of the Moto app for the E4, so I can use their night mode and one-button fingerprint sensor mode features in this ROM?
[Moto E4 (Qualcomm) ROMs, Kernels, Recoveries, & Ot] :
Sounds like a great question for here: https://xdaforums.com/moto-e4/help/help-thread-question-noob-friendly-2017-t3634245
[Moto E4 (Qualcomm) ROMs, Kernels, Recoveries, & Ot] ReimuHakurei:
Any chance of this being ported to the Qualcomm Moto E4 Plus? The hardware is virtually identical.

TWRP for this device works fine on the Plus if you fastboot boot it but not if flashed.

I assume some board config or something would need to be changed to make it try to boot.

Any config files or blobs I need to extract?
[Moto E4 (Qualcomm) ROMs, Kernels, Recoveries, & Ot] DB126:
Second custom ROM you called out for this flaw. Did you flash "Rebel" kernel which seems to exhibit the same behavior?

https://xdaforums.com/moto-e4/moto-...lopment/kernel-rebelkernel-rebellion-t3896955
[Moto E4 (Qualcomm) ROMs, Kernels, Recoveries, & Ot] -clem:
I did not flash any kernel. My issue with the other ROM (StockPlus) is the WiFi, not the cell radio. So in one ROM, cell works but WiFi does not, and in the other (this one, and also Slim7 which I just tried) the wifi works but not the cell radio. Everything worked in factory stock moto rom.
[Moto E4 (Qualcomm) ROMs, Kernels, Recoveries, & Ot] DB126:
On this ROM (and many others for Moto devices) mobile radio performance is highly dependent on carrier, region and hardware. I'm not savey to the details as I opted to stick with unlocked/rooted stock as it sufficiently close to AOSP and carries no burdens as you are experiencing now. Scroll through the thread for potential solutions.
[Moto E4 (Qualcomm) ROMs, Kernels, Recoveries, & Ot] -clem:
Yeah I'm thinking I'll do the same, stock + xposed. Thanks!
[Moto E4 (Qualcomm) ROMs, Kernels, Recoveries, & Ot] DB126:
Good choice; really can't ask for more with that combo. ?
[Moto E4 (Qualcomm) ROMs, Kernels, Recoveries, & Ot] sidgallup:
Does anyome have the ORIGINAL latest build that was ppsted in this thread? ive tried to flash the newest build from another forum and flash always gets stuck around halfway through, i didnt have a backup and now i cant use the phone, tried formating data system and cache and still flash ets stuck at %50.

USING TWRP
[Moto E4 (Qualcomm) ROMs, Kernels, Recoveries, & Ot] juancollado2003:
new update is working very well

https://androidfilehost.com/?fid=1395089523397907371
[Moto E4 (Qualcomm) ROMs, Kernels, Recoveries, & Ot] astrod:
Where is this update from? It says it's for Lenovo tablet.
[Moto E4 (Qualcomm) ROMs, Kernels, Recoveries, & Ot] beachfl:
It looks like it's correct.... just a mislabel on the download site:

Target: motorola/perry/perry:7.1.1/NPNS26.118-22-1/1:user/release-keys

post-build=motorola/perry/perry:7.1.1/NPNS26.118-22-1/1:user/release-keys
[Moto E4 (Qualcomm) ROMs, Kernels, Recoveries, & Ot] astrod:
Thanks for that info. Is there a thread or description for this? How did you find it?
[Moto E4 (Qualcomm) ROMs, Kernels, Recoveries, & Ot] beachfl:
I've seen other files that are listed for an incorrect tablet, and I noticed this one's filename did say 'perry', which is our phone, the XT1765. :)

So I downloaded it, and looked in a couple of the files inside.... 'metadata' and 'updater-script'. That's what I c/p'd above.
[Moto E4 (Qualcomm) ROMs, Kernels, Recoveries, & Ot] Zplitzcreen:
this is compatible with xt1766 perry sprint right? and if so, which version of gapps should I use? theres so many different options
[Moto E4 (Qualcomm) ROMs, Kernels, Recoveries, & Ot] squid2:
Plans for Pie

Just so you folks don't lose hope:

While I hadn't done much with Android over the past 7 months, I'm back at it now. I still intend to keep my promise of bringing LineageOS 16 to perry (and probably owens too) by the end of the year. If I can get it fully stable and functional, I'll make it official too. It's my next planned Android project after I bring official LineageOS 15.1 for the msm8916 family. I'll probably start working on it next months, so expect some beta quality builds in November.
[Moto E4 (Qualcomm) ROMs, Kernels, Recoveries, & Ot] iamraikamran:
I have moto e4 xt1766 can i falsh this rom?
[Moto E4 (Qualcomm) ROMs, Kernels, Recoveries, & Ot] Ghulamullah:
My Moto e4 invalid sim hiden menu problem
[Moto E4 (Qualcomm) ROMs, Kernels, Recoveries, & Ot] DeadJenkins:
Hey squid, just want to say I really appreciate you checking back in here for the ole Moto e4. Looking forward to your next release, thank you for your hard work!
[Moto E4 (Qualcomm) ROMs, Kernels, Recoveries, & Ot] aarem:
Hi, Is the March LOS build still the most recent for the MOTO E4 (perry) or is there an update? I have a device for Sprint: will this work with a Tmobile SIM in the US or do I have to do anything else for that? Sorry I am new in the context of using LOS on the E4?
[Moto E4 (Qualcomm) ROMs, Kernels, Recoveries, & Ot] alfahd:
in bootloader choose start or QCOM or Bp TOOLS , that work with me

---------- Post added at 04:58 PM ---------- Previous post was at 04:57 PM ----------

in bootloader choose start or QCOM or Bp TOOLS , that work with me
[Moto E4 (Qualcomm) ROMs, Kernels, Recoveries, & Ot] aarem:
Hi, If I were to flash back the stocl rpm from https://mirrors.lolinet.com/firmware/moto/sperry/official/Sprint/ would that lock the bootloader? How about TWRP and the rooting? Thanks!
[Moto E4 (Qualcomm) ROMs, Kernels, Recoveries, & Ot] DB126:
Bootloader will remain unlocked. TWRP might be replaced by stock recovery depending how and what you flash. Root will be lost unless you take explicit steps to retain. You'll want to do some more reading before taking this on. Be sure to backup your existing Lineage install and have a recovery plan should something go wrong. Which it likely will if you haven't done this before.
[Moto E4 (Qualcomm) ROMs, Kernels, Recoveries, & Ot] aarem:
Thanks, what are the instructions to flash back to stock? Where should I read? I have installed a lot of LOSs in general but never gone back to stock. (I bought a used E4 and while the seller thought it was unlocked, it is not and I can not use my T-Mobile SIM on it even with LOS so Ebay wants me to send it back for a refund. Of course, I have to send it back as received which was with stock.)
[Moto E4 (Qualcomm) ROMs, Kernels, Recoveries, & Ot] DB126:
Look for posts from [MENTION=5752019]madbat99[/MENTION] who is one of the resident experts on restoring stock images. I have my own ways which are effective but a little unorthodox. It's also been awhile since being actively engaged with my E4s as they are now dedicated to secondary tasks as WiFi only devices. I don't want to steer you wrong. Good luck.
[Moto E4 (Qualcomm) ROMs, Kernels, Recoveries, & Ot] aarem:
Thanks, I have found the following, though it is with a different device:

https://xdaforums.com/moto-g6/how-to/guide-faster-updated-guide-to-root-t3914228

Would this work? Btw, why is this procedure of flashing stock different than flashing the zip using TWRP's adb sideload?

I would not mind knowing more about unorthodox but effective approaches...
[Moto E4 (Qualcomm) ROMs, Kernels, Recoveries, & Ot] musicclar:
I just wanted to ask for a clarification/synopsis of the current state of things. I've been using linage, but a very old build, and wanted to just make sure I have it straight (let me know what below I've misunderstood):

1) The build linked here, March 2019, is the most recent we've got, correct? And, even though this entire thread is for an "unofficial build," because it's not built by the OP, even though it's the most recent, it does not appear on Post #1 of this thread. Is that correct?

2) Can I flash it over the current build I'm running, in the same way that I'd expect I could flash one of the more recent Post #1 builds over top of an older one?

3) Is this for SPERRY/xt1766 only, or would it work with xt1768? (Edit: according to the linked thread someone has successfully used it on XT1678).

4) I got a little turned around in reading about stock updates and firmware versions (something about -10) and various things breaking other things. Does anyone know -- would running stock and accepting updates cause all of these builds to stop working later? And, is this phone still actually getting updates to stock?

Thanks and sorry if I'm asking questions that could be answered elsewhere, I just realized I didn't have the focus to do it and it would probably be worthwhile to have all in one place in any case.
[Moto E4 (Qualcomm) ROMs, Kernels, Recoveries, & Ot] DB126:
- works fine on XT1768

- should be fine to flash over existing 14.1 build (caveat emptor)

- taking a "stock" update is not possible without rebuilding your device

- stock is not being regularly maintained by moto
[Moto E4 (Qualcomm) ROMs, Kernels, Recoveries, & Ot] Tin_Man_0:
Sorry, just to confirm from this last post. The latest and greatest for this phone i still 14.1 that is posted on the download tab on tab on the first page?
[Moto E4 (Qualcomm) ROMs, Kernels, Recoveries, & Ot] astrod:
I am wondering the same thing, this has been my daily driver for a long time and it has been awesome. (thanks again, [MENTION=6485916]squid2[/MENTION]!)
[Moto E4 (Qualcomm) ROMs, Kernels, Recoveries, & Ot] robartsd:
Looks like squid2 hasn't been active on XDA for some time.. I know he's come back several times stating an intent to work on this at some point in the future., so I'm not quite giving up hope that there may yet be progress on upgrading android for my XT1768. As the Lineage OS versions in this thread are still older than the last stock update (security patch level July 1, 2019), I don't think I'll be trying them at this time. I would be interested in a newer ROM (even if still based on the same version of Android).
[Moto E4 (Qualcomm) ROMs, Kernels, Recoveries, & Ot] kentchristopher:
I have an XT1768 and I'm looking at one of these ROMs to replace stock, but since even the newest one here was posted last year, I'm assuming they're all stuck on 2019 security patches? Not that stock is much better, being stuck on July 2019 security patch.

Edit: Typo corrected. I originally said "stock on 2019 security patches" when I meant STUCK, which was surely misleading.
[Moto E4 (Qualcomm) ROMs, Kernels, Recoveries, & Ot] musicclar:
The latest that I was referring to in my question is not in the original post, it is linked from this post:

https://xdaforums.com/moto-e4/how-t...discussion-t3690873/post79031856#post79031856

[MENTION=5488402]DB126[/MENTION] - Does that mean that if I wanted to have the latest firmware I could restore the stock ROM, accept any and all updates, and that these builds would still work when I restored them?
[Moto E4 (Qualcomm) ROMs, Kernels, Recoveries, & Ot] DB126:
There is zero benefit to that path; stock image is replaced by Lineage (or any other custom ROM).
[Moto E4 (Qualcomm) ROMs, Kernels, Recoveries, & Ot] musicclar:
Right, but there's other stuff like radio, right?
[Moto E4 (Qualcomm) ROMs, Kernels, Recoveries, & Ot] beachfl:
No. No parts of the stock remain. The firmware doesn't get added to, it gets completely replaced.
[Moto E4 (Qualcomm) ROMs, Kernels, Recoveries, & Ot] musicclar:
https://xdaforums.com/moto-e4/moto-...4-qualcomm-t3690156/post79344917#post79344917

https://xdaforums.com/moto-e4/moto-...4-qualcomm-t3690156/post79371806#post79371806

Plenty of posts on this thread refer to the "radio" or "baseband" being updated at a certain point and then being non-downgradable. To my knowledge, these are parts of the stock rom and parts that get updates via various OTA updates. At a certain point it seems that upgrading them beyond a certain point would break Lineage (which does not contain the radio or baseband - I don't know if those are one and the same or two separate things, but Lineage only contains 'boot' and 'system' images), though it's hard to tell what exactly the details are from going back through the history of this thread. Just do a search for "firmware" on this thread and you'll see a bunch of posts. The two referenced above are just two examples.
[Moto E4 (Qualcomm) ROMs, Kernels, Recoveries, & Ot] kentchristopher:
Let me rephrase my question from above: What's the date of the security patch on the latest ROM (from GartimusPrime)?
[Moto E4 (Qualcomm) ROMs, Kernels, Recoveries, & Ot] DB126:
Only [MENTION=4825640]GartimusPrime[/MENTION] knows for sure; one can assume 1Q19 or earlier given post dates.

---------- Post added at 11:37 AM ---------- Previous post was at 11:32 AM ----------

Unless you are targeting a specific fix conversation is academic. This device has a short life with few updates. Risks far outweigh potential benefits which appear to be nil.
[Moto E4 (Qualcomm) ROMs, Kernels, Recoveries, & Ot] musicclar:
I know it's hypothetical, but I've wondered because I have at times thought of using the stock rom with the magisk mods or whatever other framework, and wanted to know if I would have to be careful not to accept any OTA's if I ever wanted to go back to Lineage.
[Moto E4 (Qualcomm) ROMs, Kernels, Recoveries, & Ot] DB126:
Last OTA was July 2019. I think you're safe. I never moved away from stock on my E4s as I saw no advantage to Lineage on this platform. Moto ROMs are clean, stable and generally well behaved.
[Moto E4 (Qualcomm) ROMs, Kernels, Recoveries, & Ot] musicclar:
Indeed. I just like the features like status bar brightness control (just have to press and hold on the status bar), the fact that it doesn't have as much of the google bloatware (using opengapps pico) and probably various other things that I don't even think about/remember now. I also never learned how to use magisk or other mods well enough to reproduce the things I like about Lineage and also never figured out how to get Trebuchet (Lineage's launcher) on stock.
[Moto E4 (Qualcomm) ROMs, Kernels, Recoveries, & Ot] FusionDragon:
I just want to post this here for anyone else interested in GartimusPrime's Lineage Port; https://androidfilehost.com/?fid=1395089523397907371

This is theirs and I take no credit for it, it was updated 2 days after the one he linked in his past comment and I can confirm that it is working.
[Moto E4 (Qualcomm) ROMs, Kernels, Recoveries, & Ot] gabor.czinege:
​

Is it worth it to install?

Also is this okay for xt1766?

also here.. lol after installing the one above i reboot i only see n/a since like 10 minutes. while phone being warm/hot that could mean something is happening or is it just the screen? which how the phone started since i unlocked the bootloader and installed twrp. but n/a was gone within a second or a few more.

i remember lineageos first boot takes long bc that's how android is, but i remember it "being stuck" at the lineageos logo and the running little circles below it.

should i just install the one from this post?

i wanted to have oreo though...
[Moto E4 (Qualcomm) ROMs, Kernels, Recoveries, & Ot] FusionDragon:
That is for a different model, it's possible it's only for the mediatek variant of the device, the one i posted in my comment before this one is from Gartimusprime and I am using it as my main driver, it works with 0 issues and is ridiculously smooth. the system partition has about 2-3 gigs of space so you can fit that and full aroma gapps (though you wouldn't need it). also I'm using an addonsu package since i was having weird issues with Magisk so I'm using LineageOS' integrated root. but you cant make it work without the addonsu for apps only adb so I'll post it here too, it must be enabled in the developer settings.
[Moto E4 (Qualcomm) ROMs, Kernels, Recoveries, & Ot] storepeter:
I have a Moto E4 xt1766 bought from BOOST in 2017 working on TING (gsm/tmobile) with Lineage 14 until I canceled the subscription this spring.

I have been very happy with Lineage

I also use this phone when in Europe with an European GSM sim-card

Now I am back in the US and tried unsuccessfully to activate the phone again on TING (gsm/tmobile) . TIng says this i no longer possible, and send me a SPRINT sim-card - unfortunately the SPRINT SIM-card does not work with Linage 14, so I restored the original firmware (NCQ26.69-56) And the phone is now active on TING (via SPRINT).

The phone wants to update over the air to NCQ26.69-64 but fails

I have seen here that there are issues with SPRINT and Linage on the Moto E4, and that upgrade to newer E4 version is a one-way street (if I understand correctly)

So my questions are:

1) Should I upgrade to NCQ26.69-64, manually using adb (XT1766_SPERRY_SPRINT_7.1.1_NCQS26.69-64-21_cid50_subsidy-DEFAULT_regulatory-DEFAULT_CFC.xml.zip)

2) Would the phone still work in Europe GSM with a European SIM-card if I upgraded ?

3) Is there any chance that Lineage could be installed and the phone still working on SPRINT ?

If you can read Danish (or trust google translate I have written about my phone on my blog peter.lorenzen.us/android/moto-e4-xt1766

Best regards

Storepeter.
[Moto E4 (Qualcomm) ROMs, Kernels, Recoveries, & Ot] Kahenraz:
Posted to wrong thread. I see no way to delete posts.