yashsingh1/xdaforums huggingface dataset:
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] kramttocs:
[MENTION=7346927]NZedPred[/MENTION]

Looks like the same thing happened to me.

I was doing this Oreo stock flash because for some reason I was getting an Error 1001 and Status 7 when trying to install the Arrow rom. After that error I couldn't install the rom I was on previously either (aosp extended) due to the same error. After that I backed up my efs and persist but it may be too late for all I know.

To give this process (nougat) a shot, do I get the stock rom (fastboot) and then run these (from the flashall.bat file):

fastboot oem fb_mode_set

fastboot flash partition gpt.bin

fastboot flash bootloader bootloader.img

fastboot flash logo logo.bin

fastboot flash boot boot.img

fastboot flash recovery recovery.img

fastboot flash dsp adspso.bin

fastboot flash oem oem.img

fastboot flash system system.img_sparsechunk.0

fastboot flash system system.img_sparsechunk.1

fastboot flash system system.img_sparsechunk.2

fastboot flash system system.img_sparsechunk.3

fastboot flash system system.img_sparsechunk.4

fastboot erase cache

fastboot erase userdata

fastboot erase customize

fastboot erase clogo

fastboot oem fb_mode_clear

So EXCLUDING the lines:

fastboot flash modem NON-HLOS.bin

fastboot erase modemst1

fastboot erase modemst2

fastboot flash fsg fsg.mbn

Sorry for all the edits - should have done more research before posting.
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] TheGameExtreme:
It's a bit slow depending on what percent of charge you're in. It should be 1500/2000 mAh if the percent of charge is between 30%-70%
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] smartish123:
Oh ok. I'll repeat the test when my battery is in that range and report back.
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] NZedPred:
Just for the record, a couple of days ago I tried to downgrade to Nougat to try and reproduce an error that some people with bad persists have had. Unfortunately for me, I had the issue of my touch screen being unresponsive as well, but this was going to a Nougat TWRP build. I tried flashing a couple of TWRP builds, but none could get things back, so I had to resort to a fastboot install, which restored functionality.

So as for which lines to leave out, I pretty much just followed the thread I found (think it was the same one you linked to) and crossed my fingers. I didn't exclude any commands. A couple failed, e.g. fastboot erase clogo, fastboot erase customize, not sure why, but I got things back after that.

Just make sure your persist, efs, data and internal storage is backed up as best as you can. If you still have TWRP installed, and you didn't erase userdata, you can still use adb commands to copy data.

Edit: also make sure that the version of the fastboot ROM you are using is at least as recent as the last full stock build you were on (excluding the twrp flashable builds).
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] fivefour:
He is correct. Just tested it, if your not seeing similar results I'm sticking with a bad cable or less likely the power brick.
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] smitharro:
Well, at least it's solvable! That's exactly why I always have the latest stockrom in my Dropbox. Along with a backup of Persist and EFS! On my Moto G6 Plus I do the same. Unfortunately development on that device is somewhat poor (only Lineage 15.1)...

About what thread I followed: none! The commands for flashing a stock rom I have in a text file. This for every device I have (Moto G2 2014 until Moto G6 Plus, I owned them all[emoji16])
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] smartish123:
I tested it and you're correct. I got about 2020mA. I guess that means my original charger is bust (said it would be charged in 4.5 hours starting from 45% ?). I still find it weird that I only ran into this issue after flashing. Oh well, it's probably just a coincidence.
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] kdarkness:
Hi, good job, many thanks

I have a issue when I use the hotspot, it shares internet but the other devices say that have a DNS problem, I don't know why
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] KuroIgunashio:
Hi [MENTION=7346927]NZedPred[/MENTION] good job with this rom!, i don't have this device but i want to disable the dm-verity and force encryption in the z2 play, i tried a lot of times to do that and until now it don't works. Which method you use to do that?

Greetings!
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] antojamez:
I flashed it, everything is okay except I am unable to connect to mobile network.

When i search for networks it says "error while checking for network". I checked *#*#4636#*#* and it says radio is off.

Any idea how to fix this?. By the way Soak Test1 does not have this problem.

Thanks in Advance.
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] karan3660:
I m on custom oreo rom ryt now

I have to just flash this atock rom nd my imei nd volte will be intact right?

---------- Post added at 07:20 AM ---------- Previous post was at 07:13 AM ----------

Try Fastboot flash stock rom again.

And did u get official android 8.1 update after u flash fastboot nougat? I have number of question can u please answer them

1 - did u loose imei nd 4g after flashing fastboot nougat?

2- if u lost imei nd 4g , did the 8.1 update made everything okay?
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] NZedPred:
You can refer to my guide on creating these builds, it covers off how to disable both.

https://xdaforums.com/g5-plus/how-to/guide-creating-twrp-flashbale-stock-roms-t3804776

Refer to the third post under the section - 4b) Oreo - Disable dm-verity and forced encryption (I'm assuming your device has Oreo).
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] NZedPred:
Refer to the FAQ (second post) - this is a known issue that is covered in there.
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] NZedPred:
If you're worried about losing IMEI then don't select the erase EFS option in the aroma installer (and make sure you are using the aroma installer zips). The usual advise applies - back up including persist and EFS anyway.
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] karan3660:
okay thanx for the clarification.
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] kramttocs:
[MENTION=7346927]NZedPred[/MENTION] [MENTION=4416117]smitharro[/MENTION]

Thanks guys. That did take care of it :) Very odd and I now have an initial screen with the blue Moto logo and some 'N/A' text stuck in it but hey, it works so no complaints here.
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] oscar1823:
Anybody get the SIM NOT ALLOWED error? i fixed it by restarting my phone 2 times but still is this an orea thing?
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] fivefour:
I have had it happen once or twice.
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] skmaiyad:
Hey, Can you tell me how can i clean flash? I am facing same problem as you faced. (No signal).
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] skmaiyad:
I was using stock nougat flashable version. after that, i flashed this oreo stock rom. Now, i lost network in my device. How can i get back that?
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] NZedPred:
You have flashed another device's persist or your persist is otherwise bad? If so, this is covered in the FAQ. Install the firmware from soak test 1.
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] skmaiyad:
I didn't flashed any persist right now. But yes, before flashed nougat, my device hard bricked and because of that i lost Volte. So for that i used one of efs/persist backup file which is given in https://xdaforums.com/g5-plus/how-to/fix-persist-resolve-imei0-explanation-t3825147 after flashed nougat.
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] NZedPred:
The zip in that thread only changes ownership of specific files and folders, and leaves your persist otherwise intact. The easiest way to see if you have an issue with your persist is to erase EFS and see if you end up with IMEI = 0.

However, just try flashing the firmware from the Soak Test 1 aroma installer. If that works, it's 99% certain that you do have issues with your persist. Regardless, backup EFS and Persist and keep them safe in the cloud.
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] skmaiyad:
It works. Thanks a lot. :o:good:
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] Ravi K R:
Is it possible to install Google port camera on stock 8.1 .....I tried many times apk install not completed please help me......present my device run with stock 8.1 rooted
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] karan3660:
Not possible gcam works on 64 bit rom only
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] eder5jga:
I want to try pixel experience but what if I want to get back to official Oreo?

What would the instructions for that process?
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] Emiarrbe:
You need to flash 7.0 stock by NZedPred which you can find in the forum, precise instructions are writen in the first page of th thread, I've done it in order to flash Lineage OS 14.1 and I had no issues with the signal or IMEI 0. As long as you don't flash a stock rom trough abd your phone will be ok, I can´t post any links but it's not big deal to find NZedPred thread.
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] fer198309:
Hi I have this rom soak 4 in the backup copy more when I try to get back to it the fingerprint sensor does not catch, even fleshing a stock nougat then restore my backup even so it does not pick up the digital sensor from the print.
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] fivefour:
Actually you can.

GCam_Nougat_3.2.045.apk

This file works fine on stock 8.1.1 we are running. Search that name on Google.
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] karan3660:
Yea its the basic gcam

Its doesnt have portrait mode embedded
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] Ravi K R:
I need portrait mode but it is a basic ....is there any other apk with portrait
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] karan3660:
No portrait can be used on stock rom as it is 32 bit and gcam support 64 bit for portrait mode to work
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] smartish123:
Great work on the build. I just noticed a small issue. TWRP can't seem to mount my storage and I'm pretty sure my data is not encrypted. Any ideas on what I can do? I'm on the latest official twrp 3.2.3-1
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] fivefour:
It must be encrypted.

You want this version of TWRP, search this thread for a link.

twrp-3.2.2.1-potter_treble.img
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] david.gs.gm:
I read now in another forum saying that the oreo is in trouble to work with two simcards ... that removing one of them ... the radio is reactivated and everything is ok ... anyone tested it?
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] NZedPred:
Build OPS28.85-17 01 September 2018 security patch

Hey all - a new build is up with September security patches!

twrp-flashable-potter-OPS28.85-17-aroma.zip
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] pastorbob62:
Thank you for your continued work on this. The download speed is extremely slow but I imagine the internet traffic is very heavy in Washington D.C. Android File Host used to give more than one server option for downloads but that's not the case any longer.
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] NZedPred:
I've added a Google drive link

https://drive.google.com/folderview?id=1L4GY6-zJxoKvPQpg-lhYum_nM4A79BHs
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] fivefour:
260 downloads and 10 thanks, somehow it's not scaling properly...
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] skmaiyad:
I am using Build OPS28.85-13 01 August 2018 security patch build. How can i update with this build?
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] aksh295:
Just dirty flash new build over old without clearing anything
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] pastorbob62:
Awesome! Much faster, thank you bunches. :good::good::good::good::good:
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] shibbu18111997:
Hello sir , I want stock android oreo 8.1 , How can i flash it ? Currently i am on android 7 NPNS25.137-92-14 build with unlocked bootloader and official twrp3.2.3-1 recovery :o
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] smartish123:
Just to make sure, people with bad persists should dirty flash just the System and patches only for this build as well, correct?
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] NZedPred:
Just a normal dirty flash should be fine. Backup first to be safe, especially efs and persist. Refer to the first couple of posts.

I'm assuming so. Someone would have to try and report back success or failure to know for sure.
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] fivefour:
Yes
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] ~Unify~:
how can I flash over Aug oreo built, my device is unrooted and locked bootloader.
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] shampod:
Is there any way to make the UI black or dark? Any guidance please.
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] motolio:
At what point do I flash the persist-fix.zip? Immediately after installing this, or just before downgrading?
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] NZedPred:
For Oreo you don't need it. Only needed for nougat.
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] gronemng:
Hey I just wanna say thanks I have no problems flashing I was in one of the first flasheables nougat version and I was a little scare to flash directly the version that you post yesterday but no problems

Thanks again :)
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] rjherms:
Only necessary if you have a bad persist, but you can do it either way
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] NZedPred:
Is anyone finding that they can't pass safety net, even with magisk? Interestingly it fails outright with just magisk, and only passes the basic check with extended kernel (CTS profile fails). Not sure if it's something I've done or safety net has had an update.

This is with magisk versions 16, 17.1, and 17.2.
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] gronemng:
Same problem here
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] japg2000:
It didn't pass for me too. I've gone back to 85-13 and it's passing fine… seems it's something related to 85-17

Enviado desde mi Moto G (5) Plus mediante Tapatalk
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] shampod:
How do I make the system app theme Dark? Any ways to make the system UI dark or black instead of white?
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] smartish123:
That's strange. I'm able to pass just fine on the latest build. Then again, I only flashed the system and it's patches.
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] fivefour:
I did the same but I'm not passing either.
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] NZedPred:
I've just tried downgrading to the August build, and that's passing. Hmmmm, wonder what the issue is...?
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] Anonymous:
Im on Oreo build Aug. I want to install pie custom ROM. Should I need to clean flash wiping internal to flash stock nougut build. Or else normal flash will be enough.

Kindly answer me. To safely install the software

Thanks alot for the flashable builds.
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] rjherms:
Please read thru the op. If you are on stock Oreo you need to flash nougat first then flash pie
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] fivefour:
Since this is a stock ROM that's a bit beyond the scope of this thread in my opinion.
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] Klape:
Hi all,

I'm back on Stock without to lost neither IMEI nor signal etc. I was on Validus Oreo. Everything is working in a proper way, except Magisk SafetyNet what is already mentioned.

Great job NZedPred.

Regards

Klape
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] japg2000:
Are you using some safety net magisk module?

Enviado desde mi Moto G (5) Plus mediante Tapatalk
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] smartish123:
Nope. All I did was flash just the system and patches. And then I immediately flashed magisk 17.1. I did this using the special TWRP treble 3.2.2 that's supposed to be able to read encrypted data partitions.

Side story (not sure if this will help debug this issue)

I accidentally encrypted my data when I flashed soak 1 with patches and flashed soak 4 (system only) without patches along with magisk(I thought magisk would be able disable dm-verity). I was able recover my data by formatting my data partition and restoring a data backup from stock nougat. To my surprise I found out after boot that my data was still encrypted (since official TWRP couldn't read any of my files) causing me to switch to the special TWRP.
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] fivefour:
The latest TWRP can now decrypt properly so you know, I was also using the specific version of TWRP you're referring to. It isn't that, it must the something related to what happened with your data partition.
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] lilbud2:
Is there a way to add the big 'clear all recents' button to the recent apps screen?

There is one in this rom, but it is only accessable at the top. I would like to know if it is possible to add a button to the bottom.
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] Perumal J:
Which version of Google Camera should i install on this rom ?

Give me the link please...for working Google Camera with all features of HDR+ , Portrait , etc., for this Stock oreo rom..

Thanks
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] agustinsaavedra1:
Hi, im in full stock oreo with locked bootloader but i want to flash a custom rom. Its the same process that nougat?
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] fivefour:
There isn't one.
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] NZedPred:
For those failing safety net in the latest 85-17 release, try using the magiskhide props config module

https://github.com/Magisk-Modules-R...ices-fingerprint-to-pass-the-ctsprofile-check

It can be installed direct from magisk.

Together with the extended kernel I get a pass. Interested if others can pass with this module and the stock kernel.

If this works on stock (sorry don't have time to test right now), I suspect that the issue is that Motorola haven't registered the build fingerprint with Google, and that is causing the failure.
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] gronemng:
Doesnt work for me, stock kernel :S
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] NZedPred:
FAQs added

I've added some FAQs to the second post. When people ask good questions, I will add answers to that post.
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] redbeard1083:
Beat me to it! Good to know. Sadly I may sit this out until I can OTA up to Oreo. Keep up the good work man, these builds will be a lifesaver given Motorola's unwillingness to provide firmware.
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] Yauma9:
Hey! Since I see you're on Mexico (que onda bro) have you got any problems with it so far? Since that one ain't meant to be for our software channel.
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] nightwalkerx22:
Is that "format data" step necessary? If so, why?
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] NZedPred:
If you got your data encrypted and you don't want it encrypted (i.e. by installing the rom without installing magisk immediately before rebooting), then if you want it unencrypted again you have to format it. That means you will lose all user data, including internal storage (/sdcard).
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] Armando Lopez:
Hey dude, The pc recognize my device, i know for the command "fastboot devices" but when try to flash twrp have the error: (bootloader) has-slot recovery not found, what can i do?
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] Cupcake 1.5:
Yes encyption is on. I cannot wipe, flash or, do anything right now. Encryption disable zip not working either.

---------- Post added at 10:34 AM ---------- Previous post was at 10:31 AM ----------

I get that using the recommended adb program from the guide for flashing in fastboot. Use this one, put twrp in the folder created by program, C:\adb. Then elivated command prompt, cd C:\adb, fastboot devices, fastboot flash recovery twrp.img (or whatever yours is named as).

https://xdaforums.com/showthread.php?t=2588979

---------- Post added at 11:09 AM ---------- Previous post was at 10:34 AM ----------

edit: Just discovered after flashing an oreo custom rom after this, my fingerprint is broke. Tried a few different roms :(
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] NZedPred:
You need to install a TWRP flashable nougat stock rom first. This is covered in the second post in the thread (it's been getting lots of updates throughout the last 12 hours).
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] ayad.phonex:
Just flashed Oreo stock via twrp working like a charm but I see no IMEI number even I flashed the persist fix zip I only want to get my IMEI numbers back HELP!
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] caiquejd:
100% working!

Using on XT1680 in Brazil!

NFC, IMEI, and 4G/LTE working, no need to restore persist or anything (coming from untouched persist Nougat).

I don't know about VoLTE because i don't use!
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] attack11:
I guess you must edit the file "fstab.qcom in" : "/vendor/etc/fstab.qcom" to disable verity and force encription . Btw thanks fot this! Is working perfectly fine! :good::good:
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] sanads:
so far working great
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] Pranavgogna:
Hi, nice work ?

But, I have an Indian variant can i flash other channel too?
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] sunmughans:
After flashing everything gone. System isn't able to flash anything via twrp. Twrp shows unable to mount storage. Data partition shows 0mb. Unable to get back to any rom. Kinda help!
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] roydhritiman:
I'm experiencing audio quality issues and don't like the padding of the status bar icons. Unevenly spaced. Reverting to Nougat.
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] NZedPred:
Not quite that simple.

The system entry in that file is commented out.

The vendor folder is a symlink to a folder in system, so system is already mounted by the time vendor is 'mounted'.

I had removed the forced encryption from that fstab.qcom, but it hasn't made any difference.

I have done some research and found a likely way of disabling dm-verity, but I'm not actually sure how to tell if it is enabled or not. I tried testing it last night and my phone ended up encrypting itself, although I didn't know that that was what it was doing, so after it didn't get to the pin screen I force-closed it. I lost all my data at that point:laugh:. Even devs get stung by this stuff...
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] NZedPred:
This is covered in the first post. Use the backup of your EFS to get it back, as you probably have a corrupt persist. If you didn't, there's the other backup that the zip does right at the start. Refer to the second post.

Is your TWRP up to date?

Others have tried and aren't reporting any issues. Give it a go.

You might need to format data, sounds like something got corrupted. Bummer if that's the case.
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] NZedPred:
I might have found the solution to properly disabling dm-verity and forced encryption. If someone would like to help test, please send me a private message. It will involve flashing a new boot image and uninstalling magisk.
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] Dark98:
Anyone?