yashsingh1/xdaforums huggingface dataset:
[Moto G5 Guides, News, & Discussion] freeZbies:
Mine is better than on Nougat or any custom Rom. I've tested. I didn't update through OTA though.

Regardless of the variant the firmware is the same for all Moto G5. Mine is the 2Gb variant and it's all right.

As long as your phone model is XT167x you should be fine flashing this.

This is for moto G5s, you posted it in the wrong thread

Guy is wrong, that's for G5S
[Moto G5 Guides, News, & Discussion] hpolski010:
Is it the final version of Oreo? Or just another leak or beta?
[Moto G5 Guides, News, & Discussion] JoeDoe0:
Actually this australian site https://ausdroid.net/2018/10/12/motorola-g5-g5s-series-phones-receive-android-8-1-update/ confirms that the official Oreo 8.1 Update in Australia (retapac) for the Moto G5 is OPQ28.85-13 whereas the final Update in India and Brazil is OPP28.85-16.

Sounds a bit strange to me. :confused:
[Moto G5 Guides, News, & Discussion] JoeDoe0:
OPQ28.85-13 Australia

I just downloaded https://rsdsecure-cloud.motorola.co...ubsidy-DEFAULT_regulatory-DEFAULT_CFC.xml.zip (needs VPN server in Australia ;) ) from the Motorola server.

This is the official Moto G5 (CEDRIC) firmware released in Australia and even Italy (Europe) acc. to the original post.

Here the info file with version information extracted from the zip file.

CEDRIC_OPQ28.85-13_cid50_subsidy-DEFAULT_regulatory-DEFAULT_CFC.info

BUILD REQUEST INFO:

SW Version: cedric-user 8.1.0 OPQ28.85-13 06a8 release-keysM8937_37.13.03.67R

MBM Version: B8.31

Modem Version: M8937_37.13.03.67R

FSG Version: FSG-8937-02.65.18.03

Build Fingerprint: motorola/cedric/cedric:8.1.0/OPQ28.85-13/06a8:user/release-keys

CQATest App Version: 6.0.6

VERSION INFO FOUND UNDER 'ABOUT PHONE' SCREEN:

System Version: 28.31.14.cedric.retail.en.US

Model Number: Moto G (5)

Android Version: 8.1.0

Baseband Version: M8937_37.13.03.67R

Build Id: OPQ28.85-13

SW Display Build ID: OPQ28.85-13

Build Date: Fri Aug 17 09:06:03 CDT 2018

OTHER MISC VERSION INFO:

Subsidy Lock Config: slcf_rev_d_default_v1.0.nvm

Regulatory Info (eLabel): regulatory_info_default.png

Blur Version: Blur_Version.28.31.14.cedric.retail.en.US

Version when read from CPV: cedric-user 8.1.0 OPQ28.85-13 06a8 release-keys

And here the info from OPP28.85-16 for comparison.

CEDRIC_OPP28.85-16_cid50_subsidy-DEFAULT_regulatory-DEFAULT_CFC.info

BUILD REQUEST INFO:

SW Version: cedric-user 8.1.0 OPP28.85-16 0400 release-keysM8937_22.29.02.70R

MBM Version: B8.31

Modem Version: M8937_22.29.02.70R

FSG Version: FSG-8937-02.65.33

Build Fingerprint: motorola/cedric/cedric:8.1.0/OPP28.85-16/0400:user/release-keys

CQATest App Version: 6.0.6

VERSION INFO FOUND UNDER 'ABOUT PHONE' SCREEN:

System Version: 28.41.15.cedric.retail.en.US

Model Number: Moto G (5)

Android Version: 8.1.0

Baseband Version: M8937_22.29.02.70R

Build Id: OPP28.85-16

SW Display Build ID: OPP28.85-16

Build Date: Wed Sep 5 09:46:09 CDT 2018

OTHER MISC VERSION INFO:

Subsidy Lock Config: slcf_rev_d_default_v1.0.nvm

Regulatory Info (eLabel): regulatory_info_default.png

Blur Version: Blur_Version.28.41.15.cedric.retail.en.US

Version when read from CPV: cedric-user 8.1.0 OPP28.85-16 0400 release-keys
[Moto G5 Guides, News, & Discussion] achintyakv:
Finally updated to Oreo 8.1 ??. Just flashed the files step by step. Takes only half an hour to update to oreo.
[Moto G5 Guides, News, & Discussion] m_melgarejo:
Hey guys, it is Right if I update trough this fastboot method, my g5 2GB/32GB DS XT1671 is on channel retla (which is Latin America) I already have the July patch and my build number is NPPS25.137-93-14, I'm not sure if flashing this version or Oreo will be okay or not, but I really want to do it though, if someone whith a the same model and build has already done it successfully, can tell me if there is some special steps, and also I would want to skip the "erase user data" command, cause my net sucks and I don't want to restore all my things back again, it can be Skipped right?, Well, thanks for the support here guys and sorry for my poor English.

Enviado desde mi Moto G (5) mediante Tapatalk
[Moto G5 Guides, News, & Discussion] m_melgarejo:
Edit

Successfully updated, u omitted the gpt.bin and bootloader.img, and also the erase user data command, my phone runs fine, thanks for the guide guys.

Enviado desde mi Moto G (5) mediante Tapatalk
[Moto G5 Guides, News, & Discussion] cc33wm:
need to go back?

Hello, if i'm in a custom version like DOT OS or Lineage... I need to go back to stock firm befor doning this?

Ty for the answer :)
[Moto G5 Guides, News, & Discussion] kolbek357:
gracias

excelenteee:cowboy::cowboy:
[Moto G5 Guides, News, & Discussion] freeZbies:
This guide teaches you exactly how to do that: go back to stock.
[Moto G5 Guides, News, & Discussion] enjoy10:
I am on OPP28.85-13. Is it possible to upgrade to OPP28.85-16 without flashing from scratch. Can you share the file "Blur_Version.28.41.15.cedric.retail.en.US" which I can sideload and upgrade. Many Thanks.
[Moto G5 Guides, News, & Discussion] OurNation:
my bl is B8.25(*), it's oke?
[Moto G5 Guides, News, & Discussion] OurNation:
Yes, it's ok
[Moto G5 Guides, News, & Discussion] woozie.2007:
tu intrebi, tu raspunzi :)
[Moto G5 Guides, News, & Discussion] OurNation:
[en] used Google translate? :)

or i'm not the unique romanian from xda

[ro] Folosisi google translate? :)

sau nu sunt singurul roman de pe xda
[Moto G5 Guides, News, & Discussion] woozie.2007:
e plin de romani aici, dar nu toti pun steagul la profil :)
[Moto G5 Guides, News, & Discussion] enjoy10:
What is the android security patch date in OPP28.85-16 ? Is it Sep 2018 ?
[Moto G5 Guides, News, & Discussion] sonmota:
Anyone here with the updated October ROM? CEDRIC_OPPS28.85-16-2 for fastboot?
[Moto G5 Guides, News, & Discussion] ivse:
Thanks. Worked Fine, I've got a Mexican AT&T Moto G5 2/32 GB. Got a Bootloop After I

installed xposed on Oreo, I managed to get the phone working again with a TWRP

backup restoration, but the phone got finicky, magisk kept poping up after unrooting

and without proper root access.

With this I got stock and boot loader Locked, I just read and followed your instructions

and skipped both lines, didn't do anything else but the first part.

I will try to downgrade to Nougat 7.1, so I can Install Xposed. So I just need to skip

both lines again, right?

(I was on B8.31 and OPP28.85-13 and now OPP28.85-16)
[Moto G5 Guides, News, & Discussion] Andrej_SK:
Yes. If downgrading, don't flash both gpt and bootloader. Also don't run erase modem commands, they will wipe your IMEI in this case.
[Moto G5 Guides, News, & Discussion] ivse:
Thanks. I found this: https://xdaforums.com/g5/development/official-stock-moto-g5-cedric-firmware-t3733897

fastboot oem fb_mode_set

fastboot flash modem NON-HLOS.bin

fastboot flash fsg fsg.mbn

fastboot flash dsp adspso.bin

fastboot flash boot boot.img

fastboot flash recovery recovery.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 flash oem oem.img

fastboot erase cache

fastboot erase userdata

fastboot oem fb_mode_clear

fastboot reboot

Is it ok to use "flash modem NON-HLOS.bin" command?
[Moto G5 Guides, News, & Discussion] Peace|maker:
Hey, I'm kinda stuck here.

The speaker died, after ~ 10 month and I'll like try to RMA the Phone( XT1676 2/16G. ) so I'd like to relock the bl.

But after I ran two times "fastboot oem lock" I can't flash the oem.img any more.

fastboot flash oem oem.img
target reported max download size of 535822336 bytes
sending 'oem' (148900 KB)...
OKAY [ 4.685s]
writing 'oem'...
(bootloader) Security version downgrade
(bootloader) Image o failed validation
(bootloader) Invalid signed image
(bootloader) Preflash validation failed
FAILED (remote failure)
finished. total time: 4.720s

do you have any ideas? Bl version is B8.31
[Moto G5 Guides, News, & Discussion] Andrej_SK:
What's your actual build number in "About phone" section, please?
[Moto G5 Guides, News, & Discussion] Peace|maker:
Right now: OPP28.85-16

But as I wrote, I can flash the oem.img, but not after oem lock command.

fastboot flash oem oem.img
target reported max download size of 535822336 bytes
sending 'oem' (148900 KB)...
OKAY [ 4.685s]
writing 'oem'...
OKAY [ 3.596s]
finished. total time: 8.281s
[Moto G5 Guides, News, & Discussion] Andrej_SK:
According to your previous post (security downgrade error), most probably you are trying to lock your bootloader with the older firmware than is actually installed in your phone. If you're really running OPP28.85-16 (as you already wrote), download the firmware from the first post and use it to follow all the steps of the procedure bellow:

1. Reflash the whole firmware at first using the commands bellow (bootloader, gpt and erase modem commands are excluded, they aren't neccessary in this case). ALL OF THE DATA WILL BE WIPED, SO BACKUP IMPORTANT THINGS FIRST!

fastboot oem fb_mode_set
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 flash system system.img_sparsechunk.5
fastboot flash system system.img_sparsechunk.6
fastboot flash system system.img_sparsechunk.7
fastboot flash system system.img_sparsechunk.8
fastboot flash modem NON-HLOS.bin
fastboot flash fsg fsg.mbn
fastboot erase cache
fastboot erase userdata
fastboot erase customize
fastboot erase clogo
fastboot oem fb_mode_clear

2. After fully successful flash, input this command and press Enter:

fastboot reboot bootloader

Your phone will reboot to the bootloader immediately.

3. Then, continue with this tutorial written by me https://xdaforums.com/showpost.php?p=77790101&postcount=15. It's important to input lock commands one by one, otherwise you will get "image signed with key bad key" error.

If it won't work, run "fastboot getvar all" command and copy the whole output into your next reply. Also, copy the full filename of the firmware you are using to lock the bootloader, please.

Unlocked bootloader will actually let you downgrade any partition except bootloader and gpt.
[Moto G5 Guides, News, & Discussion] Peace|maker:
Thanks for the detailed answer.

But I'm flashing with CEDRIC_OPP28.85-16_cid50_subsidy-DEFAULT_regulatory-DEFAULT_CFC.xml.

I can flash the device with this firmware and with older FW NPP.X.X.X. , but can not lock it / flash after trying 2x "fastboot oem lock"

Or is there a method to downgrade everything to NPP?

here are my vars

fastboot getvar all
(bootloader) version: 0.5
(bootloader) version-bootloader: moto-msm8937-B8.31
(bootloader) product: cedric
(bootloader) board: cedric
(bootloader) secure: yes
(bootloader) hwrev: P5
(bootloader) radio: 4
(bootloader) storage-type: emmc
(bootloader) emmc: 16GB SAMSUNG QE13MB RV=08 PV=0D FV=000000000000000D
(bootloader) ram: 2GB SAMSUNG LP3 DIE=8Gb M5=01 M6=05 M7=00 M8=1F
(bootloader) cpu: MSM8937
(bootloader) serialno: ZY322GLW3J
(bootloader) cid: 0x0032
(bootloader) channelid: 0x40
(bootloader) uid: 4F0B0D3100000000000000000000
(bootloader) securestate: flashing_unlocked
(bootloader) iswarrantyvoid: yes
(bootloader) max-download-size: 535822336
(bootloader) reason: Volume down key pressed
(bootloader) imei: 3564760837000000
(bootloader) meid:
(bootloader) date: 11-10-2017
(bootloader) sku: XT1676
(bootloader) carrier_sku:
(bootloader) battid:
(bootloader) iccid:
(bootloader) cust_md5:
(bootloader) max-sparse-size: 268435456
(bootloader) current-time:
(bootloader) ro.build.fingerprint[0]: motorola/cedric/cedric:8.1.0/OPP28
(bootloader) ro.build.fingerprint[1]: .85-16/0400:user/release-keys
(bootloader) poweroffalarm: 0
(bootloader) ro.build.version.full[0]: Blur_Version.28.41.15.cedric.reta
(bootloader) ro.build.version.full[1]: il.en.US
(bootloader) ro.build.version.qcom: LA.UM.6.6.r1-08600-89xx.0
(bootloader) version-baseband: M8937_22.29.02.70R CEDRIC_EMEADSDS_CUST
(bootloader) kernel.version[0]: Linux version 3.18.71-perf-g2148ea10 (hu
(bootloader) kernel.version[1]: dsoncm@ilclbld71) (gcc version 4.8 (GCC)
(bootloader) kernel.version[2]: ) #1 SMP PREEMPT Wed Sep 5 10:00:37 CDT
(bootloader) kernel.version[3]: 2018
(bootloader) sbl1.git: git=MBM-NG-VB8.31-0-g77d3670
(bootloader) rpm.git: git=bd76357-dirty
(bootloader) tz.git: git=26cc248
(bootloader) devcfg.git: git=26cc248
(bootloader) keymaster.git: git=26cc248
(bootloader) cmnlib.git: git=26cc248
(bootloader) cmnlib64.git: git=26cc248
(bootloader) prov.git: git=26cc248
(bootloader) aboot.git: git=MBM-NG-VB8.31-0-g0b9dae9
(bootloader) frp-state: no protection (0)
(bootloader) ro.carrier: reteu
(bootloader) current-slot:
(bootloader) slot-suffixes: _a
(bootloader) slot-count: 1
(bootloader) slot-successful:_a: INVALID
(bootloader) slot-successful:_b: INVALID
(bootloader) slot-bootable:_a: INVALID
(bootloader) slot-bootable:_b: INVALID
(bootloader) slot-retry-count:_a: unknown
(bootloader) slot-retry-count:_b: unknown
all: listed above
finished. total time: 0.060s
[Moto G5 Guides, News, & Discussion] Peace|maker:
Many thank! With the newer firmware it worked fine :)
[Moto G5 Guides, News, & Discussion] Peace|maker:
But not totally,.. the phone always boot into bootloader, but can be started to stock fw from bl without any problems.

Edit.: I flashed the firmware as you wrote after locking.
[Moto G5 Guides, News, & Discussion] enjoy10:
I installed this image, but the android security patch is still Aug 2018 (I was earlier on OPP28.85-13 Oreo 8.1). Shouldn't this image update the security patch to Oct 2018 ?
[Moto G5 Guides, News, & Discussion] Andrej_SK:
So is the booting actually fixed after reinstalling the entire ROM using fastboot or not?

---------- Post added at 10:41 PM ---------- Previous post was at 10:28 PM ----------

Nope. Updates with OPP28.85-13 and OPP28.85-16 build numbers provide the same security patch, however, the update you get depends on the software channel you are actually running. If you are looking for the update with October 2018 security patches, look for the OPPS28.85-X-2 (while "X" is once again 13 or 16, according to your actual build number) fastboot firmware/OTA zip or just wait for the official OTA release.
[Moto G5 Guides, News, & Discussion] rafaelbarreto22:
What is the difference between OPP 28.85-13 and OPP 28.85-16? I am in OPP 28.85-13 and the sound is low, in OPP 28.85-16 or OPP 28.85-16-2 this is fixed?
[Moto G5 Guides, News, & Discussion] Andrej_SK:
Read the post above yours.

You won't get an update with OPP28-85-16-2 build number, as you are running OPPS28.85-13 right now (your update will have OPPS28.85-13-2 build number). In both versions (OPPS28.85-X-2), the low sound issue seems to be finally fixed. Flashing OPPS28.85-16-2 manually through fastboot will work, but it will prevent you from getting any future OTA updates until you revert to the stock firmware with the correct build number again. However, don't do the OTA update, if you have unlocked bootloader, but downgraded system and the OTA update also updates the bootloader partition (doing so may result in hardbrick as OTA is doing changes in the bootloader which were already made).
[Moto G5 Guides, News, & Discussion] maritimesbob:
Thanks for the firmware, it saved my hard bricked device too as I needed a newer firmware.

Anyone know if xposed/gravitybox works on this release? I tried it and I get a bootloop. I had to run the uninstaller script to remove xposed.

Apologies, I appreciate xposed is not related to this thread. Just wondered if anyone was successful.
[Moto G5 Guides, News, & Discussion] mr-br:
Hi

I've read the OP several times but can I use this method if my bootloader is locked? It mentions something about relocking the BL but nothing about unlocking it in the the first place. (My bootloader can't be unlocked and I don't want to brick my device half way through the flash process ...)
[Moto G5 Guides, News, & Discussion] riyan65:
You can use this method, it just gives you more information how to relock your device. As you didn't unlock the bootloader so you need to leave the relock method,you just need to run the above commands till the unlock bootloader method comes.
[Moto G5 Guides, News, & Discussion] mr-br:
Thanks - it's just that all the fastboot flashing guides I've seen all mention unlocking the bootloader as a pre-requisite and I thought that "fastboot flash bootloader bootloader.img" would require it.
[Moto G5 Guides, News, & Discussion] coloneyescolon:
I would like to fix my Android 9 camera with the stock firmware.

What do I have to flash to install Android 9 custom ROMs?

I live in Germany. If I flash this stock ROM, will I get the retin software channel?
[Moto G5 Guides, News, & Discussion] usucapiao:
Don't know about the pie cam fiz, but with this stock you get retin for sure. I'm using here in Brazil without any problem and receiving OTAs too.
[Moto G5 Guides, News, & Discussion] coloneyescolon:
What if I flash only:

fastboot flash oem oem.img
fastboot flash boot boot.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 flash system system.img_sparsechunk.5
fastboot flash system system.img_sparsechunk.6
fastboot flash system system.img_sparsechunk.7
fastboot flash system system.img_sparsechunk.8

?

I dont know what software channel I am. What if I flash retail software on a non-retail Smartphone? Can I flash it on XT1676?
[Moto G5 Guides, News, & Discussion] coloneyescolon:
Okay I have flashed it as above and after I did some things in the System I rebooted to recovery and it said: "No command". Also in the bootloader it said "Baseband: <not found>". After reboot baseband was fixed. I could reflash TWRP but if I reboot System, I need to flash TWRP again.
[Moto G5 Guides, News, & Discussion] davidgeek:
Hey, I did not do exactly this (well I do not remember) but I re-locked my Cedric a while ago and stayed with stock oreo, that was a few months back so I barely remember what I did, if I want to unlock my BL again what should I do/where should I start?

Hopefully someone can point me in the right direction, thanks!
[Moto G5 Guides, News, & Discussion] Andrej_SK:
Execute "fastboot oem unlock XXXXXXXXXXXXXXXXXXXX" command twice (while each "X" replaces one character of your unique unlock code). Remember that your phone will get wiped completely if you proceed.

If you lost your unlock code, follow the steps mentioned on this site https://motorola-global-portal.custhelp.com/app/standalone/bootloader/unlock-your-device-a to generate it again.
[Moto G5 Guides, News, & Discussion] Bayarrd:
I was able to relock my XT1675 with this method, but only after I'd found the correct signed image from the mirrors dot lolinet dot com site referred to elsewhere in this thread, the one that matched the firmware on my phone exactly. No other image worked. So thank you very much for that.

As I was simply relocking the bootloader and not replacing the firmware, I omitted the lines

fastboot flash partition gpt.bin

fastboot flash bootloader bootloader.img

However I got error messages ((bootloader) Permission denied) when I tried

fastboot erase customize

and

fastboot erase clogo .

although this did not affect the outcome, i.e. my phone was still returned to stock configuration and booted normally.

Perhaps these two commands should be omitted if you are simply relocking.
[Moto G5 Guides, News, & Discussion] facua92:
Hi, im actually on Lineage os 17.1 (android 10) and i want to go back to stock. I have xt1670 model of moto g5. I've downloaded firmware 28.85-16-6 RETAR (im from Argentina) which seems to be the last oreo release for my model. Could anyone tell me the correct way to downgrade step by step in order not to lose imei, signal or hardbrick my device? Many thanks in advance.
[Moto G5 Guides, News, & Discussion] unapregunta:
Im on Lineage 17.1. How can I downgrade to official stokc Oreo safely. What are the steps? Any automated tool or way to just use TRWP?
[Moto G5 Guides, News, & Discussion] nift4:
There is an TWRP flashable stock around here on the forums.
[Moto G5 Guides, News, & Discussion] prakhar2772:
I am getting security downgrade error while Relocking the bootloader on Boot and OEM files . Please help.
[Moto G5 Guides, News, & Discussion] Morricorne:
Help i need this stock firmware for my g5

CEDRIC RETEU DS 8.1.0 OPP28.85-19-4-2 CID50

Cant download from gdrive from first post.

I need remove lineageos and back to stock.

I have this fw on HDD. But its damaged.
[Moto G5 Guides, News, & Discussion] TheFixItMan:
All firmware can be downloaded from

lolinet mirrors - firmware, software, iso etc.

lolinet mirrors - powered by h5ai

mirrors.lolinet.com
[Moto G5 Guides, News, & Discussion] Morricorne:
Thanks. I can finally flash my device.
[Moto G5 Guides, News, & Discussion] foxy6800:
I have used many of these firmware on my xt1675 and always get "image signed with key bad key"

and bootloader not locking.

Any ideas!?

Thanks
[Moto G5 Guides, News, & Discussion] frituurvet:
Same here, but with an XT1676
[Moto G5 Guides, News, & Discussion] frituurvet:
Found the culprit! I had to give it internet access, enable allow oem unlock from developer settings, then do the entire procedure again
[Asus Zenfone 5Z  ROMs, Kernels, Recoveries, & Othe] jackeagle:
Steps to Install and Information

TWRP Recovery Downloads

TWRP 3.4.0 Q Image by jackeagle

TWRP 3.4.0 Installer by jackeagle

How To Install TWRP Recovery On Asus Zenfone 5z (ZS620KL)

Prerequisites: Unlocked bootloader (Refer to Asus Documentation on Unlocking Bootloader for further information)

Step 1:

Download TWRP Recovery onto your PC. Make sure you check the md5 to verify its integrity (where possible).

Step 2:

Place the file in your fastboot folder (this is where fastboot.exe is located on your PC).

Power off your phone then boot into the bootloader (power + volume up).

Step 3:

Check Active Slot in fastboot. This is very important and if its showing "a" you have to switch to slot "b" and vice versa.

To switch active slot using following command

fastboot --set-active= <a/b>

then reboot to bootloader again to check if active slot is changed or not using following command

fastboot reboot bootloader

Step 4:

Flash TWRP Recovery using following command

fastboot flash boot boot.img

Step 5:

Press Volume keys and select

Reboot to Recovery

and Press and Hold Power button to reboot to recovery.

You will be successfully rebooted to TWRP Recovery! :)

Enjoy!

Warning: DO NOT SWITCH SLOTS USING TWRP SETTINGS FOR NOW! USE FASTBOOT METHOD ITSELF ELSE YOU WONT BE ABLE TO BOOT STOCK!

DO NOT FLASH PERMANENT TWRP ZIP ON STOCK KERNEL. IT WILL CAUSE TOUCH ISSUES DUE TO KERNEL DRIVERS.