yashsingh1/xdaforums huggingface dataset:
[Moto G5 Plus Guides, News, & Discussion] Dyscalculic:
can you maybe post these to www.firmware.center and www.androidfilehost.com

this phone's stock firmware are seriously lacking in the clouds and we need volunteers to post their respective up-to-date firmware
[Moto G5 Plus Guides, News, & Discussion] BopNiblets:
I got the OTA too (reteu) but there was an error installing because I have a botched root (I was able to use root apps for a while like adaway but now it's saying I'm not rooted) and I also replaced the logo.bin

Do I have to wipe my phone again, get it back to stock, then apply OTA, then re-root?

This was so much easier with Nexus and Flashfire!
[Moto G5 Plus Guides, News, & Discussion] love4chat:
Reset Ur device with stock firmware...
[Moto G5 Plus Guides, News, & Discussion] BopNiblets:
Thanks, I think I need one of these but not sure which one?

https://firmware.center/firmware/Motorola/Moto G5 Plus/Stock/

I think either

POTTER_NPN25.137-35_cid50_subsidy-DEFAULT_regulatory-DEFAULT_CFC.xml

POTTER_NPN25.137-33_cid50_subsidy-DEFAULT_regulatory-DEFAULT_CFC.xml

I'm on May patch NPNS25.137-33-5, ideally I would flash stock with the August patch included but I can't see anything like that? :confused:
[Moto G5 Plus Guides, News, & Discussion] Udito:
Germeny too

I have got this NPNS25.137-33-11. August 2017 Security Patch here yesterday.

Averything works normal. I did not notice any big changes.
[Moto G5 Plus Guides, News, & Discussion] carnivalrejectq:
Anybody got in the US?
[Moto G5 Plus Guides, News, & Discussion] iam_ajayc:
anyone got update in India?
[Moto G5 Plus Guides, News, & Discussion] :
No, still waiting.
[Moto G5 Plus Guides, News, & Discussion] manos78:
Please, someone can share the OTA file for RETEU?

I need the ZIP file because I've done the update, but something has failed. So I do a downgrade (using "fastboot flash" with emmc img's from a backup) and now all is working (with the previous version) but I can't receive the update. The "System update" says that my device is up-to-date!

I feel the Motorola's servers or something in the device (perhaps a different partition than "system", "data", "boot", "recovery" or "logo") has saved that I have already made the update and now refuses to deliver the update one more time.

Please, share the ZIP!

Thank you!
[Moto G5 Plus Guides, News, & Discussion] manos78:
Hi,

Please, can you share your OTA files?

Then we can download for compare different versions, and can restore/check after failures!

Thank you!
[Moto G5 Plus Guides, News, & Discussion] ckret:
when you reflashed you are registered as a "new" device for the update servers

so will are at the end line for the update but it should pop up anytime soon
[Moto G5 Plus Guides, News, & Discussion] manos78:
Please, can you explain more? I don't know why the update servers are using a device list. Futhermore, I restored all partions from NPNS25-137-33-5 and I don't receive the update.

In any case. Please, can you share the OTA ZIP for RETEU?

Thank you!
[Moto G5 Plus Guides, News, & Discussion] InsaneNexuS:
Yeah I know you usually have to wait and I did. But for some reason everyone I know has gotten the update but not me. Mine is RETEU aswell. I did use to run custom roms but flashed back to stock rom with May patch and locked bootloader. Would love if someone could post ota zip.
[Moto G5 Plus Guides, News, & Discussion] manos78:
I'm not sure if something related to this is stopping us from getting the OTA.

Who will know?

In any case, I hope that someone who has the OTA file (a ZIP at the root of the Internal SD) can shared it.

Please! Please!!! :fingers-crossed:
[Moto G5 Plus Guides, News, & Discussion] manos78:
Hi,

Please, someone with RETEU:

Can you put your result to command "fastboot getvar all" when in bootloader?

I need to know the result before and after the OTA.

I feel my device is in a frankestein state! :(
[Moto G5 Plus Guides, News, & Discussion] manos78:
Hi,

Also I need some backup of the "OEM" partition ("oem.img" or "oem.emmc.wim") as the OTA requires this partition untouched (my backup of this partition has gone).

Please!

---------- Post added at 11:04 PM ---------- Previous post was at 10:12 PM ----------

Thank you! Now, I got it! :highfive:

Searching for the "OEM.img" of the RETEU "NPNS25-137-33-5"
[Moto G5 Plus Guides, News, & Discussion] InsaneNexuS:
You mean you fixed it and got a ota?
[Moto G5 Plus Guides, News, & Discussion] manos78:
Hi,

I got the OTA file (for RETEU). Now I need a backup of the "oem" partition, as the OTA refuses because my "oem" is already upgraded (I lost the backup, and when doing the downgrade I can't restore the ancient oem).

When I receive a copy of the "oem.img" for "NPNS25-137-33-5" RETEU, then I'll complete my guide for

OTA update with rooted devices

.
[Moto G5 Plus Guides, News, & Discussion] InsaneNexuS:
So you got the ota file but it doesn't want to flash because of the oem. Img?

---------- Post added at 10:45 PM ---------- Previous post was at 10:43 PM ----------

I want to add im not rooted completely back to stock from custom roms but after days of checking still no ota :( I want to know if there is something wrong with my stock rom or I just need to wait a little longer?
[Moto G5 Plus Guides, News, & Discussion] Q9Nap:
I have created a twrp flashable zip of this build so you can update/recover safely; you can find it here:

https://xdaforums.com/g5-plus/development/rom-twrp-flashable-stock-builds-t3675616

This is as good as it gets until the official fastboot file turns up; enjoy :)
[Moto G5 Plus Guides, News, & Discussion] manos78:
Yes, however now I'm resolved the oem.img problem. :D

Thank you all for sharing your OTA files and OEM partition. :highfive:

---------- Post added at 08:45 AM ---------- Previous post was at 08:41 AM ----------

Thank you! :good:

However, please be advised that this will be safe only if:

- If it includes SYSTEM, BOOT, RECOVERY, LOGO and OEM partitions.

- If it includes the MBNs of the RADIO and MODEM partitions.

If something of this is not included, then I recommend to not flash it. Wait on hold for my comming guide for flashing OTA with rooted devices.

:cool:

---------- Post added at 08:50 AM ---------- Previous post was at 08:45 AM ----------

Hi,

I confirm that the updates are not recived in base of a server list... it's based only on build.prop's data of SYSTEM and

OEM

partitions. So, if you have some different oem partition not consistent with the system one, then you never receive an update. Therefore,

flash only a downgrade of the system.img if you have the corresponding oem.img file

... if not, you will lose the OTAs forever!

Be aware!

Backup your SYSTEM and OEM partitions!
[Moto G5 Plus Guides, News, & Discussion] InsaneNexuS:
Is there anyone out there who hasn't received it? I think I did something wrong when flashing back to stock because I still don't get the ota. Can someone link me a ota zip I could flash trough STOCK recovery?
[Moto G5 Plus Guides, News, & Discussion] manos78:
Flash correct SYSTEM.IMG and

OEM.IMG

and you will receive the OTA.

If you like to check it, in execute "fastboot getvar all" and copy the value "ro.build.fingerprint". It's composed by "build.prop" data in system and oem.
[Moto G5 Plus Guides, News, & Discussion] InsaneNexuS:
I'm so sorry i'm pretty confused whit your guide. Could you explain what I should do again maybe? In a noob guide way? I usually have a lot of experience with flashing all kinds of phones but this one is really pain in the ass. I just want my August ota :(
[Moto G5 Plus Guides, News, & Discussion] manos78:
I'm creating a guide... wait on hold!

I only need a valid "oem.img" for my RETEU NPNS25-137-33-5 for complete it.
[Moto G5 Plus Guides, News, & Discussion] Q9Nap:
https://androidfilehost.com/?fid=961840155545594421
[Moto G5 Plus Guides, News, & Discussion] manos78:
Hi,

I'm still waiting for a OEM dump of the stock

NPNS25-137-33-5

for RETEU. I can't pass the filesystem check of the /oem partition because this (I lost my backup of

this

partition).

Because this I can't terminate my guide. Remember that to be in line with OTAs it's required to maintain a backup of: SYSTEM, BOOT, RECOVERY, LOGO and OEM.

Thank you in advance! :highfive:

---------- Post added at 11:36 AM ---------- Previous post was at 11:35 AM ----------

This fails for NPNS25-137-33-5 for RETEU. :(
[Moto G5 Plus Guides, News, & Discussion] echo92:
What happens when you flashed the NPN25.137-33-5 stock ROM? What fails in fastboot?

I think with OTA updates you also need an unmodified system (no root, and also your system partition to remain read only, no modifications in TWRP).
[Moto G5 Plus Guides, News, & Discussion] manos78:
Hi,

I'm comming from a previous OTA downloaded as Update. So, I never "flashed" a stock ROM on

this

device. The objective is preserve at all the option for OTA updates.

You only need unmodified SYSTEM, BOOT, RECOVERY, LOGO and OEM. If you can restore them (from a Dump), then you don't need anything more for apply the OTA.

My problem now is that I have a dump of all my stock partitions execept OEM. So, if you have STOCK NPNS25.137-33-5 for RETEU, then share it.

Thank you!
[Moto G5 Plus Guides, News, & Discussion] echo92:
Surely the link Q9Nap gave you is the stock NPNS25.137-33-5? So what did you do with it - I'm guessing you were hunting for a OEM image file?

How did you obtain the dump of your files, and how are you certain they are not modified? I agree you need a unmodified system, kernel, recovery, logo.bin and modem partitions of the same patch level in order to accept OTAs, and they must match your bootloader patch level as well, else you're likely to hard brick.

I'm just wondering if the easier way to revert from a rooted device would be to flash this stock ROM in fastboot? This should ensure your device is unmodified (no need to relock the bootloader) and as it's the same build as your device firmware, may flash without issues. Afterwards, your device should be able to accept OTA updates, without having to worry about OEM partitions, Granted, you'll lose root and TWRP, but that's what you're doing anyway...
[Moto G5 Plus Guides, News, & Discussion] MrBelter:
Meanwhile the UK is still fannying about on Januarys security patch, cheers Moto.
[Moto G5 Plus Guides, News, & Discussion] echo92:
Yeah, I don't know why the UK is so far behind, especially when EU (retEU) is on the August security patch. Any idea if anyone's messaged Motorola, checking if they're actually pushing the updates to the retGB channel as well?
[Moto G5 Plus Guides, News, & Discussion] manos78:
Of course! I flashed this version, and the OTA when it checks the OEM partition then if fails.

Please, belive me! I know what I'm doing.

I'm trying to explain it better:

- To apply an "

update

OTA" you need to pass all checks of the integrity of your partitions. This is required because the upgrate is a patch, not a full dump of the filesystem. So only with the expected source you can apply the patch.

- The above is true for SYSTEM and OEM, as usually the LOGO, RECOVERY and BOOT are fully flashed (not really true all the times, as the BOOT can be also patched).

- The advantage of using an "update OTA" instead of a "FULL "OTA" is because the update of the bootloader, modem and EFS data is safe. Doing a full flash you can lost some data or have a missmatch of different versions in you device. The device can run, however it may not be identical to a stock device.

- Futhermore, with current Systemless rooting methods, you can apply an "update OTA" if you restore the sotck status of the SYSTEM, OEM, BOOT, RECOVERY and LOGO partitions. This is quite easy if you doesn't touch them, or if you have a dump/backup. For example if you flash a custom kernel o recovery, then you may flash them before the OTA.

- Finally, how to create a dump? Two options: with a TWRP dump/backup; or with commands, like "dd if=/dev/block/bootdevice/by-name/oem of=/external_sd/oem-img" (you can run it inside a custom recovery).

So, if you like a guide for a safe OTA, then please help me to obtain a dump of my missing OEM partition.

Thank you!
[Moto G5 Plus Guides, News, & Discussion] rmajc007:
I'm on NPNS25.137-33-5, but with custom TWRP, unlocked bootloader and root. I have tried Lineage ROM, but reverted back to stock. I guess my OEM is altered, too?

Otherwise I can see the NPNS25.137-33-11 security update but I'm afraid of clicking the "Update" button. :silly:
[Moto G5 Plus Guides, News, & Discussion] alvarorojas4:
Well with Retla is the same. We are also on January Patch...
[Moto G5 Plus Guides, News, & Discussion] MrBelter:
To be honest mate i don't think they give a flying funk, they seem to thing selling handsets is the way forward while providing only limited support.
[Moto G5 Plus Guides, News, & Discussion] echo92:
Okay, I had a look in the NPNS25.137.33-5 zip that Q9Nap linked and there's an OEM image in the zip. I've uploaded the OEM image for NPNS25.137-33-5 to: https://drive.google.com/drive/folders/0B-GUyOfb8OgzaER3Vjk4VXlHcVk?usp=sharing

oem.img

Source: POTTER_NPNS25.137-33-5_cid50_subsidy-DEFAULT_regulatory-DEFAULT_CFC.xml from Motorola Firmware Team (AFH) as linked above

MD5: 46f149da4a8311556e623efb5c415d69

Size: 73.8 MB.

You may be able to flash it in fastboot with:

fastboot flash oem oem.img

Credit to: https://xdaforums.com/g5-plus/how-to/lock-bootloader-moto-g5-plus-indian-t3638835

Failing that, you may have to flash the entire stock ROM, which as you pointed out may result in you losing data.

A few things I'd like to add:

I agree that the OTA is a collection of patches (and generally not full files, that's the role of the fastboot ROMs), thus necessitating that the OTA verifies at least your system, OEM, boot kernel and other partitions to ensure they've not been modified by TWRP, still have their read-only status and are stock. Sometimes the OTA does not carry images of recovery or logo.bin however, relying on the partitions on your device having the stock images flashed and of the same patch level and thus applying the patches to your existing partitions. This, in the case, for example where you have flashed a custom logo.bin (which a normal TWRP backup does not have, but you might have it via dd), you'd have to reflash that via fastboot with the stock ROM.

Using OTA updates should be safe as long as your device is on the same patch level. A full OTA (in this, I mean a fastboot flash of the updated stock ROM) may be safer if you've downgraded in the past (e.g. so your bootloader and system are of different patch levels), else taking an OTA is risky and may lead to a hard brick (such as those downgrading from NPNS25.137-33-5 and flashing NPN25.137-67 via OTA). Curiously, the OTA does not appear to check if your bootloader is the same patch level as your system, and thus, at least looking at the updater script, patches assuming your bootloader is at the same patch level. Of course, that may not be the case and could hard brick your device.
[Moto G5 Plus Guides, News, & Discussion] manos78:
Thank you [MENTION=7970352]echo92[/MENTION] for your interest! :highfive:

Belive me, "flash oem oem.img" is what I did as soon as I downloaded that rom. However, this rom isn't the STOCK ROM for RETEU. As a result, I can't pass the OEM check of the OTA as the

filesystem

isn't the same.

I hope that some user wit stock RETEU and 137-33-5 share his oem.img.

Regards.
[Moto G5 Plus Guides, News, & Discussion] manos78:
It depends! Did you make a backup before you tried Lineage?

If you have a TWRP backup, and it includes the OEM partition, then please share this part.

And if you didn't make a backup, it's still possible that the OEM hasn't been modified.

Regards!
[Moto G5 Plus Guides, News, & Discussion] rmajc007:
Yes, of course I made the backup before trying Lineage. I have used it to revert back to stock.

I've got TWRP backup, but it includes only system, system image, data, cache, boot, recovery, efs and logo partitions. The same partitions are available for backup in TWRP. Unfortunatelly there's no sign of OEM partition... No idea... :eek:
[Moto G5 Plus Guides, News, & Discussion] manos78:
Yes! This is my fault too! Only after doing the OTA upgrade I do the backup of the OEM partition, and after downgrade I have lost my OEM stock partition.

So, this is the key question:

found a stock OEM partition of RETEU NPNS25.137-33-5

.
[Moto G5 Plus Guides, News, & Discussion] alvarorojas4:
I just got an update today on retla software channel, I was on January too.

Hope they release it for your software channel soon.

( I've got May patch)
[Moto G5 Plus Guides, News, & Discussion] Q9Nap:
That is the build you wanted, right?

Don't flash gpt or bootloader and you'll be fine.
[Moto G5 Plus Guides, News, & Discussion] manos78:
Hi [MENTION=1567974]Q9Nap[/MENTION],

No, I remark that this isn't! Why do I claim this?

Because I downgraded from NPNS25-137-33-11 to NPNS25-137-33-5 using my dump backups. And now the OTA for up from "-5" to "-11" fails checking the OEM partition. I flashed two different OEM partitions for "-5" and both are different (but valid) and both fails the check of the OTA.

So, the conclusion is: the OEM partition for RETEU NPNS25-137-33-5 is different than the one inside this version.

Please,

stop to concluding that all RET versions are equal!

They aren't! And that's especially true in the OEM partition which is different from one version to another.

So if you want to contribute, please share an OEM partition backup of version

RETEU

NPNS25-137-33-5.

Thank you! :highfive:
[Moto G5 Plus Guides, News, & Discussion] echo92:
I'm super confused about what happened to your device now.

1)You were on NPN25.137-33 before, and then used the official OTA to update to NPNS25.137-33-5?

2)Then, you installed the NPNS25.137-33-11 OTA update, but something failed (what failed, I don't see in your posts what failed), correct?

3)What's your 'fastboot getvar all' data saying?

4)Then you used your TWRP dd copies to re-flash the partitions (though if your device has formally updated, then your bootloader/GPT would be on NPNS25.137-33-11, but your system is NPNS25.137-33-5, a risky combination). Now, when you try to update, either your device claims there is no update or fails on the OEM partition.

If you did formally update to NPNS25.137-33-11, then you've rolled back to the previous build. If so, you know how risky that can be, and I'd be suggesting to wait for the fastboot NPNS25.137-33-11 stock ROM to re-flash your device, bringing it to the same patch level (of course, wiping out TWRP and root.

Have you tried flashing the NPNS25.137-33-5 stock ROM (without GPT/bootloader) as suggested above or are you concerned that this is not for retEU devices? I'm thinking whether you are better off with a completely clean start, rather than trying to fix the mismatch and possibly setting up more issues in the future. Again, this would remove root and TWRP completely. Though risky, if you're able to accept the OTA update again, the update may simply flash the same GPT/bootloader versions to your device.
[Moto G5 Plus Guides, News, & Discussion] manos78:
OK, let's clear it up then.

- My device is XT1685 RETEU.

- I started with the version previous to NPNS25.137-33-5 (I don't remember the version; I don't care!).

- After I do the "incremental OTA" (aka downloaded OTA) to NPNS25.137-33-5.

- At this point I created a dump of System, Boot, Recovery, Logo and EFS (without flashing TWRP, but with "fastboot boot twrp.bin").

- Then I rooted and flashed a custom kernel, replacing/patching BOOT, RECOVERY and LOGO (not SYSTEM and OEM).

I feel all it's clear until here. Right? :good:

So, weeks after doing that I received the "incremental OTA" to NPNS25.137-33-11. Then I started to write a guide for "OTA update with rooted devices". And all is going right, except one minor issue (although easy to fix). Then I made a downgrade to "re-check" the process and write a safe guide... but then

I realized I hadn't made a backup of the OEM partition

(who cares about this partition?). So, my "downgrade" has only partial. After I discovered that the problem is the OEM partition; so I reflashed some OEM.imgs from different "full OTAs". And the result is: although the system is running, after redownload the "incremental OTA" to NPNS25.137-33-11 the OTA fails when it checks the OEM partition... and it only fails in this check.

The conclusion is then very clear: each Retail version has a different OEM partition. And if you lost your OEM then you can't apply "incremental OTAs".

And regarding why I not tried to flashing the NPNS25.137-33-5 'stock' ROM the reason is obvious: Because is not for RETEU! I confirm that flashing the OEM partition. It's different!

It's more clear now? :angel:
[Moto G5 Plus Guides, News, & Discussion] Q9Nap:
The oem partition gets corrupted somehow when you try to back it up, so I'd be willing to bet that your dump backups are no good. Try mounting them as ext4 in linux.

NPNS25-137-33-5 is exactly the same build regardless of region; I have compared fastboots with identical builds and different regions, and they ARE identical, including oem partition.

I linked you to the OFFICIAL fastboot file for the build you requested (and you're doubting its authenticity?)

I created a thread including all the latest OTAs in a safe, flashable format, which solves virtually any issues that can arise from upgrading and downgrading.

If I want to contribute? Whatever.
[Moto G5 Plus Guides, News, & Discussion] manos78:
Thank you, [MENTION=1567974]Q9Nap[/MENTION] for your support! :highfive:

This isn't needed! I don't have an OEM "backup" of version NPNS25-137-33-5 (this is the problem!).

And I tested 1 dump of one user, and 2 "official stocks" with "fastboot flash oem oem.img". None of them pass the OEM partition test when applying the OTA.

With the maximum respect, I have to say that my opinion is different. I'd prefer to be wrong, but at the moment I think OEM partitions are different. :angel:

I don't doubt that! And thank you for your effort! ;)

I only say that I feel that this assumption: "identical builds for different regions" is false.

One way to solve the question is that someone with NPNS25-137-33-5 for RETEU shares their OEM.img.

:fingers-crossed: