[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] NZedPred:
Hi folks, I'm here from the potter (G5 Plus) forums. For potter, I create the TWRP flashable builds of the stock rom. Whilst I'm waiting for the official Oreo for potter, I decided I'd have a go at creating a TWRP flashable build of Oreo for cedric. So here it is....

A few things to note about this:

Bear in mind that I don't have this device, so can't test it. The usual disclaimer applies a.k.a. try at your own risk.

Think of this as a custom rom that happens to be just like stock

It will install the updates to most partitions, except bootloader-related partitions and the partition table. The full list of updated partitions is:

modem

fsg

dsp

boot

system

oem

It does not include the commands to erase modemst1 or modemst2. Experience from the potter forums tells me that it is safest to leave those out, for the few that never backed up their EFS and / or Persist.

Normally I would disable dm-verity and forced encryption of the data partition, but I didn't this time - 1) I wanted to make sure it was bit-perfect with what you'd get with the normal OTA (aside from bootloader updates), and 2) I don't actually believe dm-verity is enforced in this build (although I could be wrong). I was wrong!

The second soak test uses the aroma installer. Much of the above is selectable, and I have managed to work out how to disable dm-verity and force encryption.

Refer to my Potter Oreo thread in the references below for further information. There is a good description and FAQ, much of which will apply to Cedric as well.

So how did I do it?

I used the key files from the OP of this thread:

[STOCK][OREO] Upgrade to Official Stock Oreo 8.1.0

I used the fastboot flashable of 137-93-2 to create an initial TWRP flashable zip, then applied the OTA over the top of the previously created zip (it's complex, but I have a guide on how to do it, one needs to be pretty adaptable on this one).

What you should do

Back up your phone - especially your data, EFS and Persist.

Clean flash vs dirty flash? Not sure, I don't have this device so don't really know. If you were on stock, a dirty flash may work, try clean if it doesn't. If you've come from a custom rom, clean flash is mandatory.

Going back to Nougat or Custom Roms / Problems with fingerprint

The stock Oreo roms update many of the files that are used for functionality such as fingerprint, connectivity, etc. These files are, in many cases, incompatible with stock Nougat and custom Oreo roms. Furthermore, a normal flash (of a custom rom) does not update these files. In order to safely downgrade, it is best to fully downgrade to stock Nougat. If you then wish to install a custom rom, do so after.

A TWRP flashable build of stock Nougat is available in these folders:

https://www.androidfilehost.com/?w=files&flid=280563

https://www.dropbox.com/sh/jwhbwo4kgim67hk/AAAREEIvVxTNq4VJtsL1BWLEa?dl=0

Problems with lost IMEI, missing VoLTE functionality, or no 4G?

As I state above, I haven't got this device, but I have found the underlying cause in potter. If you suffer from any of those issues, please send me a private message if you are willing to try something to restore. One word in advance - if you don't have your own persist partition, you're probably screwed :(

Links

All files for cedric will be placed here:

Android File Host

Dropbox

Developer help

If any developer out there is interested in maintaining this project, feel free to message me.

References

Here are the relevant threads of mine from the potter world, as I only own a potter (G5 Plus). Much of the information in these threads is applicable to cedric as well. To state the obvious, don't flash any of the linked files on your cedric device.

Creating TWRP Flashable Stock Roms

[Oreo]TWRP Flashable Stock Roms

[Nougat]TWRP Flashable Stock Roms

Fix Persist, resolve IMEI=0, Explanation, Requirements

XDA:DevDB Information

TWRP Flashable Oreo, ROM for the Moto G5

Contributors

NZedPred

ROM OS Version: 8.x Oreo

Based On: Stock ROM

Version Information

Status: Stable

Created 2018-08-11

Last Updated 2019-06-04