[Oreo][Stock][Rom] TWRP Flashable Stock Builds

Emiarrbe

Member
Jun 9, 2014
10
3
0
Give it a day to settle
I face the same battery draining issue I've dirty-flashed from soak 3, at least 4 days ago and I can confirm battery is draining a lot, I do have also a 2 SIM variant and both of them are working perfectly, it's just the battery issue what makes me want to flash Lineage or another Nougat custom rom.
 

mohammad_here

Senior Member
Sep 5, 2016
54
1
0
About this project
This project provides repackaged Stock Oreo roms that can be flashed by TWRP. Modifications from stock are listed below.

As we are now moving into the Oreo world, I've decided that now is a good time to make a few changes to how things were done previously with Nougat. Please pay attention to the next few sections.

Modifications from stock
Note - It seems that I can't get DM-verity nor forced encryption disabled. The location of the fstab.qcom file is no longer in the Boot image. I found a similar file in the system image, but changing that appears to have had no effect. In order to disable these, use Magisk. UPDATE - Resolved since soak test 2, and soak test 1 with Aroma installer
DM-verity is disabled
Forced encryption of the data partition is disabled. It is still possible to encrypt the partition if you wish (optional with Aroma installer)
The partition table and boot loader are not included, which makes it safer to up/down-grade.
Do not attempt to apply standard OTAs over these builds. They'll probably fail, worst case they will brick your phone


Differences from previous Nougat builds
I have now started using the Aroma installer for Oreo builds. Some of the below is now customisable at install time. Aroma installer zips will have "-aroma" in their filename.
The modified boot logo will no longer be included in the rom download. A separate zip will be provided to just flash the modified logo.
EFS will be erased on install! If your persist is intact, EFS will recreate itself. With the amount of exposure that the lost IMEI issue has had, all should be very familiar with the importance of backing up persist and EFS. And those that have had a compromised persist, will know that they should be hanging on to their EFS backups for dear life. Full details of the issue and solution (for those with intact persist) is here: Fix Persist, resolve IMEI=0, Volte, 4G, Explanation, Requirements From my perspective, the EFS is erased installing OTAs for a reason. I don't know what it is myself, but the folks at Motorola build it into their OTAs and they know far better than I do.
As a mitigation to the risk of people forgetting/losing their EFS and / or Persist backups, I will have a very crude backup system integrated into the zips. However, it will take some skill / knowledge to restore from these backups, and they should not be relied upon over the long term. Refer to the second post for more details.


Important information if downgrading to Nougat and Custom Oreo roms
The Oreo roms will change the ownership of specific files and folders in the /persist folder. As a result of this, stock Nougat will have issues such as lost IMEI, no Volte, no 4G, etc. In order to overcome these issues, either follow the instructions in the link above, or flash the following zip in TWRP.
potter-stock-persist-fix.zip

Another potential issue is that, as a result of various partitions being updated, the new Oreo blobs may not be compatible with existing Nougat roms (stock or custom), or even current Custom Oreo roms. This may result in issues such as the fingerprint reader not working, etc. To ensure they run correctly, it is MANDATORY to install one of the latest Stock Nougat TWRP flashables. This will ensure that all affected partitions are compatible with Stock Nougat and Custom Oreo roms. You can get these from this thread here:
[Nougat][Stock][Rom] TWRP Flashable Stock Builds

Usage
Steps to flash
Ensure you have the latest TWRP
Download an appropriate zip from one of the links below
Copy to the phone or SD card
BACKUP YOUR DATA, INCLUDING EFS AND PERSIST
Flash the zip via TWRP
Optionally flash Magisk etc - NOTE - in order to disable dm-verity and forced encryption you must flash magisk before rebooting Resolved since Soak Test 2 and Soak Test 1 Aroma installer, Magisk is optional
Reboot
Profit?


How you can help with new builds
If your phone gets an OTA notification for a build that has not been released, please pull it and share it in this thread:
When the notification is received, allow your phone to download the OTA
Power off and boot into recovery
Go to Advanced -> File Manager
Navigate to /cache
There will be a file Blur_Version_x.y.z.potter.blah.zip - Note - Oreo OTAs may not be named this way, they may be named according to the version of the rom that is currently installed
Copy it to internal storage or the sdcard
Copy to PC (optional)
Upload to Mega, Google Drive, wherever
Share the link

You can also remove the file from the /cache folder to prevent any auto-updates from happening.

Latest versions
Note - as a general rule, it is safest to stay on the release that is the for your channel. However, many people have flashed the other channel's zip, and haven't experienced any issues.

Soak Test 4 OPS28.85-13 (Oreo 8.1, 1 August 2018 security patches) - Aroma Installer
SOAK4-twrp-flashable-potter-OPS28.85-13-aroma.zip
Suitable for the following channels:
retus (US)
reteu (Europe)
retapac (Asia Pacific)


(Other channels not available - no one grabbed the OTA, sorry!)
Suitable for the following channels:
retin (India)
retla (Latin America)


All versions that I have created will be placed in this folder (or the Archive sub-folder) at Android File Host:
Potter TWRP Flashable Stock Oreo

Modified Boot Logo
Optional, only needs to be flashed once. Replaces the warning screen with the standard logo. Can't hide the N/A. If you want to hide the N/A, go to the themes forum.
potter-logo.zip

Kernel Sources
Kernel sources are provided by Motorola:
https://github.com/MotorolaMobilityLLC/kernel-msm/


XDA:DevDB Information
Potter Oreo TWRP Flashable, ROM for the Moto G5 Plus

Contributors
NZedPred
ROM OS Version: 8.x Oreo
ROM Kernel: Linux 3.x

Version Information
Status: Stable

Created 2018-08-17
Last Updated 2018-09-01
Bro.. I unlocked my bootloader and twrp and somehow bricked my phone.. so I flashed the stock ROM and done OTA update and hard bricked that. Then I flashed various Oreo and pie custom roms like treble and arrow OS.. everything works fine except the VoLTE feature. I am able to use the data but can't make or receive the calls.. can you pls help.. plzz
Does the VoLTE work after flashing the above mentioned persist zip?
 
Last edited:

jneedle

Member
Sep 6, 2013
5
1
3
Smooth and easy upgrade from Nougat to OPS28.85-13

Lots of cautionary tales in the 27 pages of this thread so I approached this cautiously. Backed up EFS and persist to my external sd card with dd, updated to the twrp referenced elsewhere (twrp-3.2.2.1-potter_treble.img), slapped SOAK4-twrp-flashable-potter-OPS28.85-13-aroma.zip and the latest magisk zip on the sd card then updated twrp and dirty flashed the Oreo image (left all aroma options selected) and magisk, rebooted, held my breath for about 2 minutes and am up and running 8.1.0 OPS28.85-13 with no issues at all. I was coming from your latest Nougat twrp-flashable ROMs. Only issue I ran into is that the installer says to press "Install ROM" and the option reads "Install Now" but the workaround for that was easy enough :). Excellent job and thanks for your great work (as well as the great guide).
 
  • Like
Reactions: NZedPred

NZedPred

Senior Member
Mar 16, 2016
858
1,633
113
Wellington
Bro.. I unlocked my bootloader and twrp and somehow bricked my phone.. so I flashed the stock ROM and done OTA update and hard bricked that. Then I flashed various Oreo and pie custom roms like treble and arrow OS.. everything works fine except the VoLTE feature. I am able to use the data but can't make or receive the calls.. can you pls help.. plzz
Does the VoLTE work after flashing the above mentioned persist zip?
If you've been doing all of those things it's hard to know exactly where you are right now. Whatever you do, backup your EFS and Persist as they are now. You may get some functionality back by flashing one of the Oreo stock builds. The persist zip mentioned isn't needed for an Oreo stock build.
 
  • Like
Reactions: mohammad_here

mohammad_here

Senior Member
Sep 5, 2016
54
1
0
If you've been doing all of those things it's hard to know exactly where you are right now. Whatever you do, backup your EFS and Persist as they are now. You may get some functionality back by flashing one of the Oreo stock builds. The persist zip mentioned isn't needed for an Oreo stock build.
Will it work if I flash oreo stock build? Like will the VoLTE will b back?
 

jingletard

Member
Nov 12, 2010
41
4
0
Backed up my EFS & Persist, flashed this knowing I had one of those stupid backed up EFS/Persist zips floating around, and my IMEI went right to 0. Restored my janky EFS/Persist from my stock Nougat and no service despite having my IMEI back intact.

I swear if we had a way to get a good oreo EFS/Persist where I could inject my own IMEI in to it, I'd be ****ing ecstatic. I know what my IMEI is, thankfully.

I'd be real, real careful with this if you flashed that backed up EFS/Persist from the other thread that supposedly fixed our VoLTE issues. It *will* wipe your IMEI despite unchecking the option in the Aroma installer.
 

fivefour

Senior Member
Jun 7, 2010
740
1,327
0
Emerald Coast
bit.ly
Backed up my EFS & Persist, flashed this knowing I had one of those stupid backed up EFS/Persist zips floating around, and my IMEI went right to 0. Restored my janky EFS/Persist from my stock Nougat and no service despite having my IMEI back intact.

I swear if we had a way to get a good oreo EFS/Persist where I could inject my own IMEI in to it, I'd be ****ing ecstatic. I know what my IMEI is, thankfully.

I'd be real, real careful with this if you flashed that backed up EFS/Persist from the other thread that supposedly fixed our VoLTE issues. It *will* wipe your IMEI despite unchecking the option in the Aroma installer.
Flash the first soak test then restore efs. Then you can flash only system from the last soak test, this will leave you running the latest version with working radio.
 
  • Like
Reactions: jingletard

NZedPred

Senior Member
Mar 16, 2016
858
1,633
113
Wellington
@NZedPred here's the OTA link for Oreo update captured by someone on RETBR channel

https://plus.google.com/116142993672750486749/posts/38icrGGWe6H
Good stuff. So, after a super quick download from the link, the key lines are as follows:

ui_print("Source: motorola/potter/potter:7.0/NPNS25.137-92-14/16:user/release-keys");
ui_print("Target: motorola/potter/potter:8.1.0/OPS28.85-13/b8ea:user/release-keys");


In other words, the source for this is the latest Nougat (NPNS25.137-92-14) for retin, retla (and I guess whatever retbr stands for), and the target is... the same version as what I've already produced for Soak test 4 - OPS28.85-13.

So, without actually building it right now (it's nearly time for bed in NZ :)) I would say that Motorola have unified the channels and we will probably have just one build, which happens to be the same as Soak test 4.

I will build it separately however, just in case there are differences. Hope you can all hold out for 24 hours or so :)
 

psychopac

Senior Member
Sep 12, 2012
842
224
43
New Delhi
good stuff. So, after a super quick download from the link, the key lines are as follows:

Ui_print("source: Motorola/potter/potter:7.0/npns25.137-92-14/16:user/release-keys");
ui_print("target: Motorola/potter/potter:8.1.0/ops28.85-13/b8ea:user/release-keys");

in other words, the source for this is the latest nougat (npns25.137-92-14) for retin, retla (and i guess whatever retbr stands for), and the target is... The same version as what i've already produced for soak test 4 - ops28.85-13.

So, without actually building it right now (it's nearly time for bed in nz :)) i would say that motorola have unified the channels and we will probably have just one build, which happens to be the same as soak test 4.

I will build it separately however, just in case there are differences. Hope you can all hold out for 24 hours or so :)
*retail brazil :)
And yes please, take your time
 
  • Like
Reactions: NZedPred

kdt09

Member
Sep 18, 2017
17
1
0
Good stuff. So, after a super quick download from the link, the key lines are as follows:

ui_print("Source: motorola/potter/potter:7.0/NPNS25.137-92-14/16:user/release-keys");
ui_print("Target: motorola/potter/potter:8.1.0/OPS28.85-13/b8ea:user/release-keys");


In other words, the source for this is the latest Nougat (NPNS25.137-92-14) for retin, retla (and I guess whatever retbr stands for), and the target is... the same version as what I've already produced for Soak test 4 - OPS28.85-13.

So, without actually building it right now (it's nearly time for bed in NZ :)) I would say that Motorola have unified the channels and we will probably have just one build, which happens to be the same as Soak test 4.

I will build it separately however, just in case there are differences. Hope you can all hold out for 24 hours or so :)
How could we install this OTA using twrp?
 
Last edited:

NZedPred

Senior Member
Mar 16, 2016
858
1,633
113
Wellington
Official Oreo == Soak Test 4 - suitable for all channels

As per the title. I have now verified that the newest Official Oreo release is exactly the same as Soak Test 4. I can also confirm that there is just one firmware for all channels. The previous split of two firmwares covering different channels/regions has been unified (and let's hope that they keep things that way!).

Since there is absolutely no difference between soak 4 and official, there will be no new download. I have however renamed the file in the download to reflect it is 'standard'.

twrp-flashable-potter-OPS28.85-13-aroma.zip