yashsingh1/xdaforums huggingface dataset:
[Moto G5 Plus Guides, News, & Discussion] deivid1310:
ola

---------- Post added at 12:48 AM ---------- Previous post was at 12:39 AM ----------

ola estou com um grande proble no meu mto g5plus .

ele reiniciou sozinho e apareceu na tela a mensagem de bootloader desbloqueado mas em vermelho nao em laranja como o normal

ai ele derepente tam bem apareceu com a mensagem de status modificado e agora ele esta reiniciando sozinho e travando a todo momento

esta quase impossivel usar . entao eu desbloquei o bootloader e a mensagem ficou laranja ai eu ia istalar uma cutom rom so que nao consigo instalar nada ele dis que a imagem nao e assinada . ai fui ver o bootloader nao esta desbloqueado mas diz que esta .. aguem tem alguma solucao queria uma ajuda pois ja tentei de td e nada nada adianta ALGUMA SOLUÇÃO
[Moto G5 Plus Guides, News, & Discussion] drakull:
My device is the brazilian/LATAM version (XT1683) so I had to use another version, downloaded from the motorola's site: https://rsdsecure-cloud.motorola.co...ubsidy-DEFAULT_regulatory-DEFAULT_CFC.xml.zip

Aside from it, I followed your steps and for the first time I was able to relock my bootloader. Thanks a lot!
[Moto G5 Plus Guides, News, & Discussion] debayandp:
Help!

fastboot erase customize

fastboot erase clogo

Failed.

Now, my phone reboots - shows 'Erasing', then again reboots. This keeps on repeating. XT1686 Indian Variant.
[Moto G5 Plus Guides, News, & Discussion] acejavelin:
The retail G5 doesn't have a customize or clogo partition... A failure on those partitions is normal.
[Moto G5 Plus Guides, News, & Discussion] debayandp:
Hey thanks.

So, The 'Erasing' part is normal?

Should I flash it once more without these 2 commands?
[Moto G5 Plus Guides, News, & Discussion] acejavelin:
Normal, and you don't need to reflash anything.
[Moto G5 Plus Guides, News, & Discussion] debayandp:
Thanks again,!
[Moto G5 Plus Guides, News, & Discussion] prokaryotic cell:
Hey, I have the same device as you and was looking everywhere for this stock firmware. Can I ask where did you find it? How are you sure this file is specific to the XT1683 - does it come with the digital TV app? Thanks.
[Moto G5 Plus Guides, News, & Discussion] thispdxgirl:
Not working

I have a semi-bricked G5 Plus. It's the Mexican XT1681. I downloaded the correct drivers and followed instructions, and it just boots to TWRP. I get a lot of error messages: "cannot load; no errors". Please help! Thank you!
[Moto G5 Plus Guides, News, & Discussion] ourtechies:
i have tried this method but its not working in lobked bootloader phones so after searching a lot i found this method to flash stock rom in moto g5 plus with locked bootloader

https://animetrick.com/flash-stock-rom-moto-g5-plus-locked-bootloader-2018/
[Moto G5 Plus Guides, News, & Discussion] Stifmeister11:
Can i just flash the stock rom with twrp is that possible? Sorry for my noob question
[Moto G5 Plus Guides, News, & Discussion] padrepeli:
OTA

I will receive OTA update to the latest version with this method?
[Moto G5 Plus Guides, News, & Discussion] Rakesh1b:
it is not possible to restore to stock if you had really hardbricked your device if its a softbrick you can may be you didnot loose your bootloader so its a soft brick and not hardbrick
[Moto G5 Plus Guides, News, & Discussion] reCoded:
Has anyone been able to update their OS when using this method?
[Moto G5 Plus Guides, News, & Discussion] mikedolo:
my device is rooted. if i go back to stock rom. do i have to relock my bootloader to get updates. i just wanna know what i have to do to get ota updates or do i have to flash roms manually???? thanks in advance
[Moto G5 Plus Guides, News, & Discussion] dunderball:
Hey all. I followed the instructions in the original post, but bypassed the 'fastboot erase' commands at the end of it, along with re-locking the bootloader. I'm able to take the OTA and then I will reflash Magisk after that. Thanks all.
[Moto G5 Plus Guides, News, & Discussion] pnw3sixty:
Thanks. Worked for using the 'potter' 64GB/4GB RAM version, US, non-Amazon version.

Used a more recent version, POTTER_NPN25.137-92_cid50_subsidy-DEFAULT_regulatory-DEFAULT_CFC.xml, which worked as well.

So both the Stock ROM install and bootloader locked worked for me. Thanks OP.
[Moto G5 Plus Guides, News, & Discussion] jpavanaryan:
This helped me. Thanks
[Moto G5 Plus Guides, News, & Discussion] irfanalinawaz:
D:\potter\POTTER_RETAIL_7.0_NPN25.137-92_cid50_subsidy-DEFAULT_regulatory-DEFAULT_CFC.xml\Minimal ADB and Fastboot>fastboot oem fb_mode_set

(bootloader) slot-count: not found

(bootloader) slot-suffixes: not found

(bootloader) slot-suffixes: not found

...

OKAY [ 0.173s]

finished. total time: 0.175s getting error like that, I am on twrp with aosp extended oreo rom, please help, I have Indian Moto G5 plus and want to go back to stock rom and lock bootloader. And again in all commands getting failed.
[Moto G5 Plus Guides, News, & Discussion] Wolfcity:
If you worry about these three lines:

(bootloader) slot-count: not found
(bootloader) slot-suffixes: not found
(bootloader) slot-suffixes

They seem to be quite normal when using latest Minimal adb & fastboot, I get them too when starting a fastboot command but every following command is executed and ROM/boot.img/recovery.img or whatever is flashed.

I don't know why your commands fail but it's not because of this bootloader reports.
[Moto G5 Plus Guides, News, & Discussion] echo92:
I recall reading those slot counts and suffixes are for A/B partitioned devices (e.g the pixels, Moto X4) so detecting which set of partitions to flash to. As Moto G5 plus devices (and many others) don't have this partition system, I think those messages are safe to ignore.

As nice as it'd be to have background updating of stock firmware via OTA, having two sets of partitions uses a lot of internal storage space, not to mention requiring a device properly formatted and firmwares that expect such a system.

EDIT Google's documentation on A/B updates https://source.android.com/devices/tech/ota/ab/ https://source.android.com/devices/tech/ota/ab/ab_implement
[Moto G5 Plus Guides, News, & Discussion] Wolfcity:
Thanks for the explanation, I was a bit nervous as I read these messages the first time after I relocked my bootloader. I googled but the only thing I found was that other users had them too and everything was working fine though.

Counting slots makes sense regarding devices having more than one.

Very useful information.
[Moto G5 Plus Guides, News, & Discussion] bird412:
i did this with the firmware file in the op, and it worked, but i now have no verizon service. im on the us variant, 4/64 gb version. anyone know a fix?
[Moto G5 Plus Guides, News, & Discussion] gumpysitruc@gmail.com:
Is your IMEI 0? If so, then restore your efs partition, if you backed it up.
[Moto G5 Plus Guides, News, & Discussion] bird412:
Like an idiot I didn't back anything up... But my IMEI is 0
[Moto G5 Plus Guides, News, & Discussion] gumpysitruc@gmail.com:
then you will have to reflash one of the oreo roms, boot up and get your signal. Then in TWRP back up your efs partition, save it, and then go through the reverting to stock process again. After booting this time, go back into recovery and restore your efs partition.
[Moto G5 Plus Guides, News, & Discussion] bird412:
Thank you sir I'll be trying this out soon
[Moto G5 Plus Guides, News, & Discussion] bird412:
you are a god, i cannot thank you enough!
[Moto G5 Plus Guides, News, & Discussion] skmaiyad:
Hey, have you got network in you mobile after it.? and also volte service.?
[Moto G5 Plus Guides, News, & Discussion] bird412:
apparently I only have 3g, no lte at the moment
[Moto G5 Plus Guides, News, & Discussion] bird412:
i had lte when i flashed the oreo rom to save my efs partition, and then 3g when i flashed the efs on stock. i am back on omnirom 8.1 and i only have 3g now...

does anyone know how to fix this?
[Moto G5 Plus Guides, News, & Discussion] skmaiyad:
No, right now you can't. i am facing same problem and now we have to wait for official oreo release then after it will work.
[Moto G5 Plus Guides, News, & Discussion] bird412:
i dont want to come off as an asshole but how do you know an official oreo release will work? also is there any word on when its coming?
[Moto G5 Plus Guides, News, & Discussion] skmaiyad:
https://xdaforums.com/g5-plus/how-to/lock-bootloader-moto-g5-plus-indian-t3638835/page13

read reply on my post.
[Moto G5 Plus Guides, News, & Discussion] 05Glide:
FYI,

Moto G5+

I had a rooted stock 7.0 with TWRP, no problems.

I just kept ignoring the nag about Motorola security update.

Last night there was no option to "Remind Me Later", just "Thanks I'm In".

I backed-out and went to my home screen The End. . . well almost.

This morning, the phone would only boot back to TWRP recovery.

It sure looks like the update installed without my accepting it.

I'd been trying for hours trying to get it back, but things only got worse to the point where most apps wouldn't work, couldn't make calls or text and the "Home" button wouldn't even function..

The OP got my phone to at least work.

Thank You,
[Moto G5 Plus Guides, News, & Discussion] Venkat1002:
thanks

my phone imei no. got erased and my phone does not detect sim cards please suggest a fix

more over I could not flash twrp in my phone
[Moto G5 Plus Guides, News, & Discussion] SD008:
I need to relock the bootloader, but the fastboot oem lock command doesn't work saying

C:\G5>fastboot oem lock

...

(bootloader) Check 'Allow OEM Unlock' in Android Settings > Developer

(bootloader) Options

OKAY [ 0.002s]

finished. total time: 0.003s

But that option is greyed out. I'm on POTTER_NPN25.137-92 Stock ROM with unlocked bootloader (XT1686).

Please help!
[Moto G5 Plus Guides, News, & Discussion] Venkat1002:
I also tried to do that but later I came to know that while relocking the phone it may get bricked up

If u are in stock rom , you dont worry of android updates

is there any specific reason for relocking?
[Moto G5 Plus Guides, News, & Discussion] SD008:
Yes, I need to sell it to someone and he has requested me to lock the bootloader. I know there are no ill effects of it being unlocked since warranty is already void, but the buyer is very rigid and says he wouldn't buy it w/o a locked bootloader and official start-up logo.

Is there no other way of checking the OEM unlock option? I've tried both my stock rom and a debloated flashable stock based rom. OEM unlock is greyed out in both.
[Moto G5 Plus Guides, News, & Discussion] Venkat1002:
I am also having the same problem have u changed the boot logo atleast
[Moto G5 Plus Guides, News, & Discussion] SD008:
Yeah, but the official.logo doesn't completely mask the 'bad key' writing I get when booting. White background logos do it, but the guy wants the orange and blue official logo.
[Moto G5 Plus Guides, News, & Discussion] Venkat1002:
well the " id: bad key" does not gets off as I think it is motorola's new policy of identifying devices

I earlier had "id:N/A" but after installing original stock rom fro moto service centre it changed to "id : bad key "
[Moto G5 Plus Guides, News, & Discussion] SD008:
I think I read somewhere that it goes away after a successful relock.
[Moto G5 Plus Guides, News, & Discussion] Venkat1002:
adb reboot bootloader(optional)

fastboot devices

fastboot oem lock

fastboot oem lock

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 boot boot.img

fastboot oem lock

this is the script for relocking bootloader just copy and paste it

all the very best

disclaimer :

I am not responsible for bricked devices
[Moto G5 Plus Guides, News, & Discussion] SD008:
Of course I already tried that since this is posted in the OP as well as many other threads. But while the flashing goes OK, the locking doesn't and instead displays the following message:

C:\G5>fastboot oem lock

...

(bootloader) Check 'Allow OEM Unlock' in Android Settings > Developer

(bootloader) Options

OKAY [ 0.002s]

finished. total time: 0.003s

My problem is that the Allow OEM Unlock option is greyed out. I'm on POTTER_NPN25.137-92 Stock ROM with unlocked bootloader (XT1686).
[Moto G5 Plus Guides, News, & Discussion] Venkat1002:
execute the commands then once again flash the stock rom
[Moto G5 Plus Guides, News, & Discussion] SD008:
IIRC that's what I did, but I may be wrong. I don't have access to my PC right now, but I'll be sure to try this tomorrow or on Sunday. Anyway, thanks for all the help :)
[Moto G5 Plus Guides, News, & Discussion] Wolfcity:
The greyed out OEM unlock switch is probably because your data partition is decrypted. If you flash your recent stock ROM the data partition gets force encrypted again and the button should be usable again after locking the BL.
[Moto G5 Plus Guides, News, & Discussion] SD008:
Of course I had flashed a stock before I even began the locking process, and tge data partition was encrypted. What I actually needed was Magisk. Flashing TWRP and then Magisk allowed me to toggle the disabled OEM unlock switch.

I'm now successfully re-locked.
[Moto G5 Plus Guides, News, & Discussion] Venkat1002:
but the boot logo is still there it seems
[Moto G5 Plus Guides, News, & Discussion] SD008:
Nope, as I expected the boot logo is back to being how it was when I first bought the phone (light blue/orange logo and no 'n/a' or 'bad key' overlay).
[Moto G5 Plus Guides, News, & Discussion] Venkat1002:
for me it stays as earlier
[Moto G5 Plus Guides, News, & Discussion] sednafx:
Are you able to restore the EFS partition and still successfully install OTAs?

Processes tried:

Step 1. Flash factory image (which is the same version I had when I tested customs) via fastboot.

Option 1

Step 2. Leave the IMEI as 0 and have working OTAs.

Option 2

Step 2. Restore EFS and Persist. Restores IMEI.

Step 3. Download OTA, attempts to install but fails.

Option 3

Step 2. Restore EFS Only. Restores IMEI.

Step 3. Download OTA, attempts to install but fails.

Respectfully asking the community's experiences with restoring IMEI while maintaining OTA installs.

EDIT: Grammatical changes.
[Moto G5 Plus Guides, News, & Discussion] Venkat1002:
As of now I am able to receive all the security patch updates waiting for oreo which must be available before october of this year:cowboy:
[Moto G5 Plus Guides, News, & Discussion] Harshil1999:
imei = 0

I have flashed all the oreo roms but no one is showing me signal and the imei is 0 .

Pls help me out.

Thanks in advance.
[Moto G5 Plus Guides, News, & Discussion] mofazar:
I have XT1687 I think it's CIDnum is 12 "cid: 0x0012" Where can I found this firmware
[Moto G5 Plus Guides, News, & Discussion] Wolfcity:
Mainly it's important which firmware you are running, for example NPNS25.137-33 / 33-5 / 33-11 or newer ones like 93 / 93-08 / 93-10 / 93-14 (reteu, retus) or 92 / 92-08 / 92-10 (retin, retbra).

You find the Build Nr in Setting-About phone.
[Moto G5 Plus Guides, News, & Discussion] lukis2000:
Thank you very much! Everything works! :D :)

I would like to suggest to add to

"Step 1: Download your potter rom from the following link"

information that versions of roms are different and they depend on region of distribution. Often u can check your original version on rom by typing

fastboot getvar all

and searching for "fingerprint" var or sth like this. E.g. in my PL version of phone stock ROM was "S25.137-93-10", and from what I found out it is compatible with all reteu distribution. I downloaded the NPNS25.137-93-10 version and it works fine :good:

Good job!
[Moto G5 Plus Guides, News, & Discussion] thunderCATUPIRY:
ROM Brazil

Hey man, can you send a new like for the Braziliam ROM (XT1683)? (the one you sent is not working anymore) :(
[Moto G5 Plus Guides, News, & Discussion] echo92:
For Brazil/India stock ROMs, you'll want the NPN25.137-92 series of firmwares. You can download the NPNS25.137-92-10 April 2018 security patch firmware or the NPNS25.137-92-14 June 2018 security patch firmware from here: https://mirrors.lolinet.com/firmware/moto/potter/official/RETAIL/
[Moto G5 Plus Guides, News, & Discussion] thunderCATUPIRY:
Updates?

Hey man, did you get any updates on this? I was using a Oreo ROM on my XT1683 and follow the entire process, everything is working except I don't have signal (it detects the card but no networks).

If so, can you guide me in the steps you used to fix it? Right now mine is 1 step after running all the fastboot commands and bootloader is locked.

:crying:
[Moto G5 Plus Guides, News, & Discussion] Tech_Savvy:
[MENTION=6594044]rishivg[/MENTION] Hi i want to return to stock and relocking bootloader. i was wondering if this is normal when i flash the stock firmware..when flash boot it say flash boot it say Image signed with key bad key....and when starting up it the bootloader unlock warning comes up and under "id" it says bad key......can i trust relocking the bootloader? is it normal?

(bootloader) slot-count: not found

(bootloader) slot-suffixes: not found

(bootloader) slot-suffixes: not found

(bootloader) has-slot:boot: not found

target reported max download size of 536870912 bytes

sending 'boot' (16384 KB)...

OKAY [ 0.414s]

writing 'boot'...

(bootloader) Image signed with key bad key

OKAY [ 0.441s]

finished. total time: 0.857s
[Moto G5 Plus Guides, News, & Discussion] ajayjnrdn:
Thanks a lot.....i was able to relock boot loader and install the stock rom(version 137.92.14). However i do have a few doubts:

1.I cannot erase clogo and u customize, it's showing that access is denied. I chose to ignore that. Should i be worried?

2.on first try I managed to erase my imei and loose signal like most people here, i searched the forum and tried out the "flashing pixel experience" and reflashing stock without erasing modemst1 2 and got my imei back. I am getting 3g and 4g now, even volte but it's not showing as "volte" anymore and the option of "advanced lte" has gone from sim settings, although i do get volte signal. Again, should i be worried?
[Moto G5 Plus Guides, News, & Discussion] NZedPred:
Follow this thread:

https://xdaforums.com/g5-plus/how-to/fix-persist-resolve-imei0-explanation-t3825147

The issue it talks about will also resolve Volte, as long as you have your own persist still...
[Moto G5 Plus Guides, News, & Discussion] Kriscraft26:
help im stuck on a boot loop of erasing what should I do?
[Moto G5 Plus Guides, News, & Discussion] jmjohnson:
Thanks!!

Worked like a charm! You rock dude! Thanks for the assistance.

For others looking at this post, the original error I was getting is "kernel failed to load." When I tried installing any zip files, my phone didn't have a /cache file. After running these commands, my phone booted up again!
[Moto G5 Plus Guides, News, & Discussion] Naromus:
Thank you so much! it brought back my Moto G3 from a hard brick, of course I had to get a proper stock rom, but the process was the same!
[Moto G5 Plus Guides, News, & Discussion] Dhirajd:
Hey guys pls help me

After hardbricking my potter i flashed blankflash file successfully but their is no dummy bootloader on screen as my my device was shown as fastboot device on pc
[Moto G5 Plus Guides, News, & Discussion] skjaved633:
for this 'XT1672_POTTER_RETAIL_8.1.0_OPS28.85-13_cid50_subsidy-DEFAULT_regulatory-DEFAULT_CFC.xml.zip' will all command change or i can still use all of those commands to do the process
[Moto G5 Plus Guides, News, & Discussion] IGorMcLven:
In these firmware the codename is incorrect, but flash working fine in xt1681.

I recommend that you skip the bootloader command.

You need type extra command "fastboot flash system system.img_sparsechunk.8".

I have not tried to lock the bootloader, so I do not know if this image has the ability to do it. Sorry :c.
[Moto G5 Plus Guides, News, & Discussion] schleima:
I'm a bit confused-- are these stock images model specific?

Why did you choose "NPNS25.137-33-5_cid50" out of the (now) 12 options on the list? Was it just that that option was the most current rom at the time you posted this?

Does anyone know which of these roms to download for XT1687, or does it not matter?

Mine is a US edition.

Thanks

---------- Post added at 08:47 PM ---------- Previous post was at 08:32 PM ----------

Just came across this after asking my prior question.

My "fingerprint" is NPN25.137-33/35. The closest I found to download is NPN25.137-33. Downloading it now, and will attempt to install-- thanks very much for this clarification.
[Moto G5 Plus Guides, News, & Discussion] skjaved633:
Thank you for your opinion on that

I have successfully unbricked my moto g5 plus

And when i try to lock bootloader it shows 'still need signed image to o oem lock'

Now i am facing a problem whenever i power on my device it boot up in recovery and from there i have goto bootloader and start the device so can bypass this recovery state please help me to do this at least a solution to relock the bootloader
[Moto G5 Plus Guides, News, & Discussion] IGorMcLven:
Remember to backUp the persist partition and the EFS partition. If you do not, it is very likely that they will get imei 0.

First try using the OP's post commands. but without executing the following:

fastboot erase modemst1

fastboot erase modemst2

In case of having problems execute the commands, but make sure you have a backup.

---------- Post added at 04:10 AM ---------- Previous post was at 04:04 AM ----------

It may be by not flashing the bootloader, but if you do, you will not be able to go back to Nogaut, proceed with caution.

When you were in the fastboot putting the commands you should have obtained "signature not verified" or something like that, I do not remember. This may be because of the different bootloader or because this version of Oreo is a pre-release (it is not certified by Play Protect either). then try a version of Nogaut, but proceed with the precautions you post above, or try using the Bootloader included in the rom, in the same way take your precautions.
[Moto G5 Plus Guides, News, & Discussion] sanads:
i lost my imie

imie now 00

what should i do???
[Moto G5 Plus Guides, News, & Discussion] Wolfcity:
You don't explain how you lost it.

Here's a thread about it:

https://xdaforums.com/g5-plus/how-to/fix-persist-resolve-imei0-explanation-t3825147
[Moto G5 Plus Guides, News, & Discussion] IGorMcLven:
Damn but what did I tell you?

Now turn to a oreo ROM or follow the [MENTION=7346927]NZedPred[/MENTION] guide, in this same forum.
[Moto G5 Plus Guides, News, & Discussion] dritank:
Hello guys, can someone please tell me which Stock version is for my phone { MotoG5 Plus XT1685 reteu} I don't know who's the one. Right now I'm in rooted phone mode with Pixel Experience and Magisk
[Moto G5 Plus Guides, News, & Discussion] Wolfcity:
The latest one is NPNS25-137-93-14 at the moment. In the RETUS channel there's a new one named NPNS25-137-93-18 but you should be good to go with 93-14. Hopefully you have a backup of efs and persist because there's a high risk to lose your IMEI/volte/4g.(check the threads).

At any rate make a backup of these files while on pixel experience.
[Moto G5 Plus Guides, News, & Discussion] dritank:
Thank you

I just did a full backup of all of them. Hopefully it will not loose them
[Moto G5 Plus Guides, News, & Discussion] vonwap:
Please specify your country of origin. Is this for North America?
[Moto G5 Plus Guides, News, & Discussion] pilot03:
I have a US unlocked XT1687 retus that I just flashed with NPNS25.1.37-93-18

Is that a correct build for the model??
[Moto G5 Plus Guides, News, & Discussion] Wolfcity:
For RETUS yes, the NPNS25.1.37-93-18 has been rolled out in the US until now. Is everything working?