yashsingh1/xdaforums huggingface dataset:
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] NZedPred:
I actually feel quite honoured that you've checked it out :)

As far as I've seen, only retus is on the 85-17 branch. Then again, in the soak test, retus was on 85-13, so they're all compatible...

Not sure. I might investigate what's actually different between 85-13 and 85-17 branches. The debloated rom only updates the boot and system. As most unnecessary stuff is removed from the system, there may not be any material difference between the two after debloating (if there is any material difference between them without debloating).
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] clapele:
With 85-17 my IMEI SW was 12. Now with 85-13 it's 11.
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] d0a0de5d32:
Info about Xposed compatibility

I can confirm that Xposed is 100% compatible with this ROM. Just follow these simple steps and you won't encounter the boot loop issue that other people have faced. If you already have the stock ROM installed and rooted, skip to step 4.

1. Download the stock ROM zip and flash it in TWRP.

2. Flash Magisk.

3. Reboot.

4. Set up your phone.

5. Download the app Ex Kernel Manager from here, install it, then install the ElementalX kernel from within the app.

6. Reboot.

7. Download the latest Xposed installer from this thread and Xposed from this link.

8. Flash the Xposed zip in TWRP.

9.

Important

: Clear both the Dalvik cache and the regular Cache. There are separate options for them in TWRP so make sure you wipe both of them.

10. Reboot into your system.

11. Install the Xposed installer app.

12.

Important

: Use a file explorer app with access to the root directory to change the permissions of the folder /data/user_de/0/de.robv.android.xposed.installer to 777 (tick all boxes) and save your changes.

13. Reboot your phone.

At this point, you will have a fully functioning version of Xposed installed on your system.

I personally installed GravityBox right away. I think that combined with Substratum for a system-wide dark theme, you can have your cake and eat it too. You can have the stability and reliability of a stock ROM while also enjoying the customization options traditionally only offered by custom ROMs.

I had previously used AOSP Extended on my Moto G5 Plus for several months and while it's a great ROM, it suffered from two serious bugs. The first one is a bug with the proximity sensor which occasionally turns off the screen when you receive a call, making it impossible to turn on the screen again without hanging up. The second bug occasionally made the PIN entry for the second SIM card disappear, making it so you would have to reboot the phone to give it another try and hope that it won't happen this time. After extensive testing, I can confirm that neither of these bugs are present in the stock ROM.

If you ask me, this ROM, together with Magisk, Xposed and Substratum, offers the best experience you can have on a Moto G5 Plus. Thanks for making this ROM available to us, OP!
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] atrain2324:
Tried that. Bootlooped.
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] dglenn1957:
Try installing the ElementalX kernel and then installing Xposed via Magisk.

Works well for me.
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] atrain2324:
Oy vey. Guess Xposed is DOA for me then. I'm on Extended Stock since ElementalX does not have KCAL control, which I prefer to have to simulate night mode.
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] d0a0de5d32:
Thanks for the reminder, I forgot to include that step in my instructions. I personally didn't have any luck with installing Xposed (the unity installer version) via Magisk, even with the ElementalX kernel installed. Did you install the Xposed Framework (SDK27) module in Magisk? I haven't tried that one myself. The TWRP install worked flawlessly though.
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] dglenn1957:
I used the the unity installer version and it worked. While checking what I had installed, I noticed that my setup isn't passing SafetyNet. Can you pass SafetyNet with your current configuration?
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] d0a0de5d32:
No, but as far as I know it's impossible when you have Xposed installed. The basicIntegrity check will fail no matter what you do, but you can get the ctsProfile check to pass by installing the Xposed module "No Device Check."
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] atrain2324:
My bad. The new ElementalX kernel has KCAL, which is great. Flashed the stock boot.img backed up. Flashed ElementalX and some old settings remain, which is great.

Gonna give it a try now.

---------- Post added at 10:11 PM ---------- Previous post was at 09:50 PM ----------

Bootlooped again. Clearing the dalvik/cache causes the bootloop.
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] dglenn1957:
Thanks for that info. I can disable Xposed in Magisk and pass SafetyNet. Since I do little online banking with my phone, it's not a big deal.
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] aksh295:
Which security patch version is this and any difference between this and one posted in op ? I have retin Potter
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] rgnicholas:
Hello there... can you give me an idea of how using Xposed / GravityBox has impacted battery life for you, if any? I have toyed with the idea of doing what you suggest (and I agree about having a good stable ROM) With the EX kernel installed, I get better color control and as a normal user (no games) I get 2 days between charges. So please share how your setup impacted you battery life. THANKS!
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] freefourlife:
I tried your 1st Kernel manager link and it doesn't seem to work. Is there another working link.

And, can I just install the Kernel from main thread through Twrp, instead of through Kernel manager, my main goal is to get Xposed.....
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] Hhhhhuul:
So I bought something to connect mouse to android, but it doesn't work in TWRP, which means i can't flash the rom again. Is there another way to reflash the rom? The screen is completely non-functional otherwise. Or to flash new drivers for the screen?

Does this rom relock bootloader? "Preflash validation failed" seems to be associated with this.
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] d0a0de5d32:
I haven't noticed any different in battery life. Xposed / GravityBox don't seem to consume a lot of power.

I've updated the link in my post, so try downloading the file again. That being said, I don't know if you can install the kernel without the app since I haven't tried it.
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] NZedPred:
Just read a few posts before and a few posts after the one you quoted and you will see the answers...
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] NZedPred:
This ROM doesn't lock the bootloader, so that can't be an issue.

If the mouse didn't work, then I think the only option is the fastboot zips. With the error that you're getting, it may not be important and you may be able to proceed with the rest of the steps. I know that a few of the flash commands seem to fail, but they aren't that important.

Maybe post the full output of all of the commands here.
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] NZedPred:
Can the discussion about xposed please be taken to another thread, it's just getting a bit too off topic.

https://xdaforums.com/g5-plus/help/xposed-stock-oreo-t3851066
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] freefourlife:
Thank you for this info. Now I'm up and running on Xposed.

Thanks op for this beautiful rom.
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] Hhhhhuul:
Here you go. How exactly do I proceed with fastboot zips?
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] dglenn1957:
Will this help you?

MOTO G5 PLUS fastboot stock Oreo 8.1.0 Rom
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] Hhhhhuul:
Well it might, but can you advise about what commands might be useful? I have already used "flashed recovery," so not sure what other steps to take.
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] NZedPred:
Here's a thread with commands in a link.

https://xdaforums.com/g5-plus/how-to/fastboot-oreo-stock-rom-october-update-t3876014

You need to unzip the file first, which gives you the individual files to flash.
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] Aelkam2:
im stuck in hello moto bootloop, where did i messed up?
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] NZedPred:
As you have provided absolutely no information other than that you have a bootloop, I can only assume...

Did you do a clean flash?
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] Hhhhhuul:
It works! Thanks dudes.
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] bvsbutthd101:
So I dirty flashed the latest Oreo build over the latest Nougat build I was running before. Everything seems to work well for the most part. The only weird things I'm experiencing it when the phones been sitting for a minute or two, if I press the power button it takes about a second to turn on the screen. Same thing with the fingerprint reader. On Nougat these two actions happened in a split second. I'm assuming this has to do with the way Oreo handles going into it's deeper power state. Anyone else experience this?
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] KidoLMGP:
What are the differences between SOAK1, SOAK2 and SOAK3? Is there any changelog?
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] fivefour:
No, Motorola doesn't really do changelogs.
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] joepfohl:
Anyone have issues with play store not allowing some apps to be installed? Netflix says this phone isn't supported... If it helps, I'm coming from Pie based ROMs.
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] NZedPred:
You'll need Magisk installed and to hide root from Google services framework. After that it should be installable. The issue is safety net, you need to be able to pass to install some apps like Netflix.
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] joepfohl:
I'll give that a shot. Is the ROM rooted by default?
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] aksh295:
Nope ...but safety net is failing for some users on stock rom
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] stark1296:
Not after selecting changing fingerprint build in aroma installer.
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] joepfohl:
I thought I selected that option. I'll do a clean flash this afternoon and make sure I did that. If that doesn't work, Magisk it is.
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] NZedPred:
You still need Magisk as well.
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] Antiga Prime:
Flashing this ROM (potter-twrp-flashable-OPS28.85-17-2-aroma) kills my touchscreen as well, tried unsuccessfully multiple times (about 8 hours of testing). I did not flash the Oreo stock Rom with fastboot.

Phone: XT1867 (Moto G5 Plus) Retus, 4gb RAM, 64GB Internal Storage

Previous ROM: https://xdaforums.com/g5-plus/development/rom-aospextended-rom-v5-0-t3687007

Flashing procedure:

Installed latest TWRP, twrp-3.2.3-1-potter, (was on twrp-3.2.1-0-potter)

Wiped "system", "data", "cache" and "dalvik"

Flashed ROM

Reboot

After rebooting, phone bootloops exactly twice, and starts up on the third try. Nothing else was flashed. When the phone setup screen starts up, touchscreen is unresponsive, except that it seems like it is being pressed in the lower right corner, since the button flashes as if it were being pressed.

I also tried by:

Flashing stock nougat POTTER_RETAIL_7.0_NPN25.137-33_cid50_subsidy-DEFAULT_regulatory-DEFAULT_CFC.xml

Flashing TWRP

Flashing this ROM (I also tried with "potter-twrp-flashable-OPS28.85-13-3-aroma".)

The same touchscreen problem described above occurred in all cases.

In the I ended up going back to the ROM I was on prior to attempting to use this ROM.
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] NZedPred:
Thanks for the feedback. How did you flash your previous ROM? Did you have touchscreen functionality in TWRP?
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] ST Dog:
Has your screen been replaced?

Stock Oreo has reported issues with some 3rd party screens/digitizers.
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] Antiga Prime:
Previous ROM was flashed by following the instructions in the ROM OP:

Touchscreen did not work in TWRP. Regardless, even though I could not use TWRP with the touchscreen, I also tested flashing the ROM using TWRP's cli directly from ADB.

Edit: To answer your question in a more clearer manner, I got to the current state by fastboot flashing Nougat stock (without the NON-HLOS.bin, for some reason I lose signal if I flash that file to the modem) (after flashing stock Nougat, touchscreen works again), installed TWRP, and then flashed the AEX ROM.

----

As far as I know, this phone was brand new, I unboxed it myself, but there is no way I'd know if the seller modified anything prior to delivering.
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] satyavruth:
I am getting stuck on a bootloop, in which the device is booting in normal mode and recovery mode where the open recovery script is not working. Please Help.
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] stark1296:
Please name each and every file you flashed.

Maybe it's due to an arm64 kernel?

I've flashed this rom (different builds) a number of times, but never faced a boot loop.
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] NZedPred:
Thanks for these details. If you skipped the NON_HLOS.bin file (i.e. modem partition), and got back touchscreen flashing a custom ROM, that suggests that it's something to do with system or boot (i.e. kernel). I also see in earlier parts of this thread that one person recovered touchscreen without flashing modem as well. Let me think about what I can do with this information :)
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] sunmughans:
Data partition gets wiped. It shows 0mb. When i flash twrp the whole partition get wiped. I dont know why. But i never experienced this situation in my whole life. I cant even revert back to custom roms now.
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] Yauma9:
Hey! So I flashed it and now I have no data? No 3G nor 4G. IMEI is alright and I do have reception. I wonder if it's because I changed channel (My Moto is normally on the one that you didn't get, and I come from your Nougat flashable roms but I've never flashed any custom roms of any kind.) Do you happen to know if there's a fix or I'll have to downgrade?

Also, thanks! You're doing god's work right here!
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] Gr4yphantom:
I have a big problem, when I install oreo stock the touch screen doesn't works anymore, even in twrp, I had to flash nougat stock with adb :/
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] NZedPred:
You might need to ask someone in the TWRP thread. Just double-check that you flashed TWRP to the correct partition, and that when you format data it is formatting with no errors. Once it's formatted you should be able to mount it without issue.

See if downgrading to Nougat works (make sure to follow the instructions in the first post correctly). Keep in mind that this is a soak test, so it is possible that you are experiencing a bug that will be fixed in subsequent updates.

Never heard of that happening before. I don't have a good knowledge of recoveries, but I thought that they were meant to be 'self-contained' so that they worked independently of any other partition, so it shouldn't matter what was installed. If reverting to nougat worked, then I guess stick with it.
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] fivefour:
Thanks for the TWRP build/s.
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] diegomartinezlovey:
thanks for your effort....working like a charm..(Y)
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] NZedPred:
Updated build available

Soak test 2, now dm-verity and forced encryption are both disabled. Build number is OPS28.85-3. Still 1 July patch.
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] Cupcake 1.5:
Latest build is not good for me, I lost my signal on boot. Tried using my efs backup, did nothing. Reflashed my nos backup with efs, nothing, no signal.
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] NZedPred:
Did you revert to full Nougat stock first? The modem partition gets updates, and that could cause a number of things to not work in custom roms.
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] Cupcake 1.5:
I flashed the first release straight from nitrogen is before without problems. This time it killed my signal.
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] NZedPred:
A lot of modem related stuff got updated this release (and that means a number of partitions, not just the badly named modem one). I'd do the full nougat flash to be safest.
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] Teos_93:
Hi [MENTION=7346927]NZedPred[/MENTION] I successfully installed this build. However, I now tried to enter in recovery mode as usual and a No Command android window shows and I'm unable to enter recovery. Can you tell what should I do? Thanks in advance

---------- Post added at 11:20 AM ---------- Previous post was at 10:50 AM ----------

Nevermind. I read the main thread after i wrote to you. Thank you and sorry
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] Cupcake 1.5:
Flashed latest stock, all returned to normal as you said. Then I flashed the new Oreo build and the same thing happened, no signal at all.
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] bra1niac:
Months ago I flashed a custom Oreo ROM, reverted to Nougat, and lost my IMEI, etc. I did not have an EFS back up (my mistake for not backing up everything before flashing a custom ROM for the first time). I moved on to another phone but I keep tinkering with this G5 Plus.

I flashed the latest Nougat TWRP flashable ROM from the OP, the flashed the first Oreo soak test over the weekend. My IMEI remained 0, no signal, etc. Just now I flashed the 2nd Oreo soak test over the first one, and the results are the same. I wiped data between the 1st and 2nd soak test flash, but there was nothing of importance stored on the phone.

Do the soak test ROMS, or the future full release of Oreo offer any hope to those of us without EFS backups who ran into this issue months ago? I'm willing to screw around with this phone since I have nothing to lose and it's not being used for anything anyway.
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] fivefour:
You said you restored NOS and EFS, did you restore EFS after flashing Oreo before going back to the custom ROM?
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] Cupcake 1.5:
If you are referring to my case, yes, I tried my efs backup over the oreo beta rom. I also tried an old efs backup which was different, nothing got signal to work. I then did as OP said, flashed stock 7.0 and my signal returned, however, in my case, I did not get signal to work on the second release of oreo beta in this thread, no matter what I tried.
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] fivefour:
I haven't flashed yet but I assume the OP tested the build before uploading. I guess we will have to wait until he can reproduce the issue everyone is seeing.
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] NZedPred:
Yes it was tested, and I have a signal that is working fine. I wonder if we are simply seeing that the EFS backups from previous nougat or oreo roms are just not compatible with the latest modem/connection blobs? After all, as I say in the OP, Motorola erase the EFS partitions - and one would think that it is for a reason - to have a fresh one generated by new modem blobs.
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] fivefour:
I will flash when I get home from work in about an hour and see if I can reproduce the issue.

*edit*

Same for me as well, also during the update TWRP got stuck updating OEM partition. Seems like it may be related.

[MENTION=7346927]NZedPred[/MENTION]

What is the exact TWRP version you are using? If you aren't sure could you share a dump of your recovery partition. I am having issues with various revisions.

twrp-3.2.1-1-potter_crypto.img - Stuck decrypting data

twrp-3.2.1.2-potter_treble.img - Works

twrp-3.2.3-0-potter.img - Won't decrypt data (latest official TWRP)
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] NZedPred:
Go to the 'Fix persist' thread in the first post, and post all the information I ask for in the section "Asking for help". There seem to be cases where a custom rom / other app is removing critical files. But in any case, post in that thread.
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] pramodmadhu007:
After flashing the rom..I am not getting any network signal..but imei is present..how to solve..?

Some one pls help.,..
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] NZedPred:
This is in the FAQ, second post "On soak test 2 or later, I have my IMEI but no signal. What can I do?"
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] nikhilkarnal:
Please Guide

Currently i'm using this rom (HAVOC 9.0 LATEST BUILD)

https://xdaforums.com/g5-plus/development/rom-havocos-9-0-0r10-t3857297

HOW I FLASH STOCK OREO ???
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] stark1296:
Just clean flash (wipe system-data-cache-dalvik) then flash the rom, selecting your desired tweaks (camera2api fingerprint build) in aroma installer screen.
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] Simon V:
When writing modem it gets stuck on 98%. I'm on stock using the newest TWRP.
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] stark1296:
Redownload, I think there was some problem with the download, no such thing has ever happened to me.
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] nikhilkarnal:
Thnx bro

What i do if i want go back ??

HAVOC 9.0 PIE

Everything working fine in oreo ...Thnx ☺️
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] Zojak:
Despite a dozen attempts I couldn't get Xposed running on this thread's stock build without running into boot loops. But I was able to get it running on [MENTION=7346927]NZedPred[/MENTION]'s Stock Debloated Oreo build following your steps. :good:
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] gfunes98:
potter-firmware-92-14.zip is the stock and last firmware update?
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] NZedPred:
That's the last nougat firmware, only needed if people wanted to change to using Nougat or Oreo custom roms. The latest Oreo builds are in the other links.

Another new Oreo stock rom will be coming soon :)
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] NZedPred:
December 2018 security patch release out - OPSS28.85-13-5

Official Oreo OPSS28.85-13-5 (Oreo 8.1, 1 December 2018 security patches) - Aroma Installer

Android File Host - twrp-flashable-potter-OPS28.85-13-5-aroma.zip

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

This release was for all channels except retus. However, experience tells us that it should be fine for all channels.
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] dglenn1957:
I'm on retus and everything seems to be working perfectly.

Thanks for the update!
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] Klape:
Hi,

The update it self is just 73 MB, why is your zip 1.3 GB?

Regards

Klape
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] GtrCraft:
Its not an update. Its the full rom
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] rmajc007:
Currently I'm on stock Oreo OPSS28.85-17-2 on reteu channel. It was a dirty flash over previous OPSS28.85-13-x (don't remember the exact version).

Should I expect any troubles with dirty flashing back to -13- version (this latest OPSS28.85-13-5)?

Thanks.
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] NZedPred:
You should be fine, but do a backup first to be safe.