[Moto E4 (Qualcomm) ROMs, Kernels, Recoveries, & Ot] MotoJunkie01:
•••• Qualcomm Moto E4 (xt1766) SPerry Only ••••

DISCLAIMER:

By proceeding further, you are assuming sole responsibility for the integrity and functionality of your device. Although this ROM has been thoroughly tested on my own device, I take no responsibility for bricked or otherwise inoperable devices incurred as a result of this thread. Follow the instructions carefully, and things should go smoothly and without negative results.

SPECIFICATIONS:

• Moto E4 (XT1766) SPerry

• Sprint, Virgin Mobile, Boost Mobile

• Android Version: 7.1.1 Nougat

• Build No. NCQS26.69-64-10

• System Version: 26.231.8.sperry_sprint.en.US

• Radio Version: M8920_15000.280.06.58.05R

• Kernel Version: Linux 3.18.31-perf

• Security Patch Level: September 1, 2018

FEATURES:

• Stock Configuration

• Systemless Root - Magisk v17.1 Stable

• SafetyNet Pass (ctsProfile & basicIntegrity)

• Zipaligned /system/app & /framework

• Optimized RAM efficiency

• Disabled AVB & dm-verity

• Disabled Force Encryption (Opt-Encrypt)

• BusyBox v1.29.2 (Static Binaries)

• TWRP Flashable Installer

PREREQUISITES:

An unlocked bootloader and TWRP custom recovery are required to install this ROM. IMPORTANT: Use [MENTION=6485916]squid2[/MENTION]'s TWRP v3.2.1-r1 or older for installation https://xdaforums.com/devdb/project/dl/?id=27958 Newer builds will cause a conflict with the /vendor & /oem partitions when installing my partition updater zip. After installation, you may update TWRP to a newer or current version.

The conflict is due to the partition scheme of my updater-script, and is not due to any fault in [MENTION=6485916]squid2[/MENTION]'s current TWRP builds. Here is a link to [MENTION=6485916]squid2[/MENTION]'s TWRP thread for the Qualcomm Moto E4. https://xdaforums.com/moto-e4/moto-...velopment/twrp-twrp-moto-g4-qualcomm-t3655160 Please be sure and hit the thanks button on his thread if you use his work.

NOTES:

• If you have previously installed the 26.221.3 OTA to bring your build version up to NCQS26.69-64-10, you should have no need to install the partition updater zip prior to installing the ROM. However, if you are unsure of your present firmware build, or if you have not installed the latest OTA, the partition updater should be installed per the instructions below, in order for the ROM to work with the best results;

• As to force encryption, the kernel fstab has been modified to disable this OEM security feature. However, you may still manually encrypt your /userdata by fully charging your device, going to Settings>Security>Encrypt Phone, and following the on-screen prompts;

• This OTA update did not augment the baseband (radio firmware) version (M8920_15000.280.06.58.05R), which remains unchanged from NCQS26.69-64-8. While the radio firmware did receive a couple of minor patches, the changelog in this regard is insignificant, so I did not include these in either the partition updater or the ROM. If anybody wants these radio patches, leave a comment and I'll fix up a TWRP flashable installer.

INSTRUCTIONS:

• 1. Download the ROM and Partition Updater from the download link below and save them to your device's external storage (because the /usedata partition needs to be formatted to disable force encryption, saving the downloaded zips to internal storage would be futile);

• 2. Make a backup of any important files on your device;

• 3. Boot your device into TWRP recovery mode;

• 4. Select Wipe>Advanced Wipe and select System, Cache & Dalvik Cache. Swipe the action bar to commence the wipe;

• 5. Again select Wipe>Format Data, input the word "YES" when prompted, and swipe the action bar to commence the format. Reboot Recovery (often necessary to ensure proper mounting of /usedata after a format);

• 6. Select Install, navigate to the saved location of the Partition Updater zip, and swipe to commence install (this updates your /oem partition, /rpm primary bootloader, /tz trust zone partition, and /devcfg partition to Build No. NCQS26.69-64-10);

• 7. Select Install, navigate to the ROM zip, and swipe to commence install;

• 8. Reboot System.

Kernel Source Code (msm8920): https://github.com/MotorolaMobilityLLC/kernel-msm/releases/tag/MMI-NCQ26.69-48

THANKS & CREDITS:

•Thanks to the long-dedicated [MENTION=6485916]squid2[/MENTION] for his TWRP builds for this and many other Motorola devices;

•Thanks to the great [MENTION=5787964]SuperR.[/MENTION] for his amazing Windows version SuperR's Kitchen;

• Thanks to the world famous [MENTION=4470081]topjohnwu[/MENTION] for his Magisk Universal Systemless Interface;

• Thanks to [MENTION=5752019]madbat99[/MENTION] for his dedication to Motorola devices, and for taking the time to assist so many Motorola device owners;

• Thanks to [MENTION=4544860]osm0sis[/MENTION] for his static BusyBox installer and his Magisk Modules;

• Thanks to [MENTION=5488402]Davey126[/MENTION] for his support of Motorola devices, and his dedication to helping other members on various device threads.

DOWNLOAD LINKS:

NCQS26.69-64-10 Partition Updater: https://drive.google.com/file/d/1VmOPXbYBQQkqB475iVzKip2JI_AO0YCM/view?usp=drivesdk

NCQS26.69-64-10 Stock Android 7.1.1 ROM: https://drive.google.com/file/d/1VRuKnSgVHNkewbk5juB7_WWeLm_ptmUP/view?usp=drivesdk