FORUMS
Remove All Ads from XDA

Cedric TWRP Flashable Oreo

745 posts
Thanks Meter: 1,418
 
By NZedPred, Senior Member on 11th August 2018, 06:55 AM
Post Reply Email Thread
Announcement from NZedPred: Final security patch available
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:
    1. modem
    2. fsg
    3. dsp
    4. boot
    5. system
    6. 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/jwhbwo4kg...tsL1BWLEa?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
The Following 21 Users Say Thank You to NZedPred For This Useful Post: [ View ] Gift NZedPred Ad-Free
 
 
11th August 2018, 06:55 AM |#2  
OP Senior Member
Flag Wellington
Thanks Meter: 1,418
 
Donate to Me
More
Reverting back to stock Nougat
Just a note about reverting back to stock nougat. As Oreo changes permissions on some key files and folders, you may get an issue of your IMEI becoming 0. In order to resolve this, you can do one of the following:

Download and install this zip through TWRP:
cedric-stock-nougat-persist-fix.zip

Execute the following commands within stock Nougat:
Code:
su
chown -R rfs:rfs /persist/rfs
chown -R rfs:rfs_shared /persist/hlos_rfs
Then reboot.

The TWRP zip does the same thing as the code.
The Following 3 Users Say Thank You to NZedPred For This Useful Post: [ View ] Gift NZedPred Ad-Free
11th August 2018, 06:55 AM |#3  
OP Senior Member
Flag Wellington
Thanks Meter: 1,418
 
Donate to Me
More
Reserved
11th August 2018, 09:34 AM |#4  
Member
Flag New Delhi
Thanks Meter: 5
 
More
For potter or cedric?
11th August 2018, 09:42 AM |#5  
OP Senior Member
Flag Wellington
Thanks Meter: 1,418
 
Donate to Me
More
Quote:
Originally Posted by Kdemwa

For potter or cedric?

This is for cedric. I'm just stating that I'm a potter user, don't have a cedric device, but they're similar, and I can contribute
11th August 2018, 01:18 PM |#6  
Member
Thanks Meter: 8
 
More
Everything works very well, battery life will be tested, it would be great if someone debloated it, thanks by the way!

---------- Post added at 02:18 PM ---------- Previous post was at 01:55 PM ----------

I made a short youtube video to show how the rom works, but cause i'm new here, it won't let me post links, so the title is "Moto G5 (2017) Flashable Oreo Stock Rom".
The Following 2 Users Say Thank You to topkee For This Useful Post: [ View ] Gift topkee Ad-Free
11th August 2018, 07:31 PM |#7  
Senior Member
Flag Salvador
Thanks Meter: 37
 
More
Sorry if I can not ask you this, you can do this for the G5s plus (sanders)

in my cedric worked perfectly thanks
The Following User Says Thank You to jakson7474 For This Useful Post: [ View ] Gift jakson7474 Ad-Free
11th August 2018, 08:03 PM |#8  
OP Senior Member
Flag Wellington
Thanks Meter: 1,418
 
Donate to Me
More
Quote:
Originally Posted by topkee

Everything works very well, battery life will be tested, it would be great if someone debloated it, thanks by the way!

---------- Post added at 02:18 PM ---------- Previous post was at 01:55 PM ----------

I made a short youtube video to show how the rom works, but cause i'm new here, it won't let me post links, so the title is "Moto G5 (2017) Flashable Oreo Stock Rom".

Great, thanks for letting me know it all works. I'll check out your video.

Quote:
Originally Posted by jakson7474

Sorry if I can not ask you this, you can do this for the G5s plus (sanders)

in my cedric worked perfectly thanks

I could do it if I had the right files. I'd need either the fastboot image for Oreo if available. Or, the fastboot image of the version prior to the Oreo OTA, and the Oreo OTA. If there's a thread that has those, pass it on to me and I'll have a look.
11th August 2018, 09:30 PM |#9  
Senior Member
Thanks Meter: 10
 
More
Sorry for asking but which twrp version i should use to flash this ROM 64-bit or 32-bit
The Following User Says Thank You to basem bebarse For This Useful Post: [ View ] Gift basem bebarse Ad-Free
11th August 2018, 11:36 PM |#10  
Senior Member
Thanks Meter: 48
 
More
Is the speaker bad like the other Oreo updates ? It seems to be the only problem about those updates if you read the other threads.
12th August 2018, 03:32 AM |#11  
Junior Member
Thanks Meter: 4
 
More
Working great, thank you
The Following User Says Thank You to iagossilva For This Useful Post: [ View ] Gift iagossilva Ad-Free
Post Reply Subscribe to Thread

Guest Quick Reply (no urls or BBcode)
Message:
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes