yashsingh1/xdaforums huggingface dataset:
[Moto G5 Plus Guides, News, & Discussion] the.MindHacker:
Hello,

Currently I am using custom ROM Resurrection remix. and it is giving me issues such as lagging and camera issues.

I need to go back to stock, My Device model is XT1686 indian variant.

Please help me with these points:

1. Which Firmware should I download

2. I dont want to re lock the boot loader I just want to flash STOCK ROM, provide me the correct commands if you have

Thanks in advance.
[Moto G5 Plus Guides, News, & Discussion] :
You can try the deodexed rom it works perfectly fine.

---------- Post added at 11:02 AM ---------- Previous post was at 11:01 AM ----------

Thanks nirbhay for this tutorial. I followed each step and got bootloader relocked as well as ota. ( Moto g5 plus indian variant)
[Moto G5 Plus Guides, News, & Discussion] anthonyqwe:
Link is not working....
[Moto G5 Plus Guides, News, & Discussion] Outfield303:
Hey OP [MENTION=5486547]Nirbhay2[/MENTION]

I have updated my moto g5 plus to NPN25.137-67(march security patch), do you have fastboot rom for this build?

I will not flash the ROM that you have given because its NPN25.137-15 and I have the newer version which is NPN25.137-67

if I flash the ROM that you've given then the GPT and boot-loader will mismatch and then IF Motorola will release new update then my device will be hardbricked

I don't want to take any risks. and lots of users have mentioned that this rom is not signed by motorola???
[Moto G5 Plus Guides, News, & Discussion] kunalchauhan1992:
I am not getting OTA updates

[MENTION=5486547]Nirbhay2[/MENTION]

I have locked the bootloader using your method, but i am not getting ota update.

I have done exactly what you said.

please help

here are the link for screen shots.

ibb.co/b1Ma4Q

ibb.co/dopTPQ
[Moto G5 Plus Guides, News, & Discussion] echo92:
Looks like you're on the wrong ROM for your region - retin if I recall uses NPN25.137-15; NPN25.137-35 is for US based devices. So you're likely not going to get OTA updates.

You may have to unlock your bootloader again and attempt to downgrade to 137-15, but I don't know if the bootloaders are similar (so you may run a low risk of bricking) or if there's a high risk of bricking. Someone with a G5 Plus would be able to comment further.
[Moto G5 Plus Guides, News, & Discussion] Canis Majoris:
I did the procedure and it worked, but...

ENGLISH (Google Translator):

I did the procedure and it worked, but not with the "brazil" ROM, I used the ROM "POTTER_RETAIL_7.0_NPNS25.137-35-5_cid50_subsidy-DEFAULT_regulatory-DEFAULT_CFC.xml.zip", because I tried the two ROMs of "Brazil "available in the link indicated, and another one I found from" brazil "also, but all fail in the question of authentication (signature). The only one that worked was this one described above.

But I'm afraid of not doing OTA updates, because I used this ROM, it follows a Print from the Smartphone. I do not understand much of these things yet, I'm new to this, and I would very much appreciate your opinion about whether OTA updates work or not. Thank you very much at all.

NOTE: my Potter is Brazilian version, 2 GB RAM 32 ROM, Digital Television and 2 SIMs.

BRAZILIAN PORTUGUESE:

Eu fiz o procedimento e deu certo, mas, não com a ROM "brazil", eu utilizei a ROM "POTTER_RETAIL_7.0_NPNS25.137-35-5_cid50_subsidy-DEFAULT_regulatory-DEFAULT_CFC.xml.zip", pois tentei as duas ROMs do "Brazil" disponiveis no link indicado, e ainda uma outra que encontrei do "brasil" tambem, porem todas falham na questão da autenticação (assinatura). A unica que funcionou foi esta descrita acima.

Porem estou com Receio de não fazer atualizações OTA, por ter utilizado esta ROM, segue uma Print do Smartphone. Eu não entendo muito ainda destas coisas, sou novo nisto, e gostaria muito da opinião de voces sobre a possibilidade de funcionar atualizações OTA ou não. desde ja grato a todos.

OBS: meu Potter é versão Brasileira, 2 GB RAM 32 ROM, Televisão Digital e 2 SIMs .

OBS2: new members there are no links to post links to post. But software channel is "retbr"
[Moto G5 Plus Guides, News, & Discussion] helix0203:
What is your bootloader version at time?
[Moto G5 Plus Guides, News, & Discussion] reuber:
Amigo, pode atualizar sem medo, fiz o lock do bootoader aqui no meu g5 plus e fica como de fabrica, o OTA funciona normal.
[Moto G5 Plus Guides, News, & Discussion] Canis Majoris:
Opa, muito Obrigado por responder, então, a questão é que eu não coloquei a LATAM , eu coloquei a dos EUA eu acho. e eu estou no Brasil e meu G5 Plus é a versão brasileira, mas agora bloqueada com a ROM que eu havia citado que não é a LATAM. o ultimo Pach de atualização dela é de 1 de maio.

Sera que mesmo assim receberei as OTAs ?

ENGLISH (google tradutor)

Oops, thank you very much for replying, so the question is I did not put the LATAM, I put the US I think. and I'm in Brazil and my G5 Plus is the Brazilian version, but now blocked with the ROM that I had quoted that is not LATAM. the last update Pach is from May 1st.

Will I still receive the OTAs?
[Moto G5 Plus Guides, News, & Discussion] reuber:
Mano tenho a ultima versão da nossa variante brasileira instalada compartilhada por um amigo no android file host com patch de agosto, para mim foi a unica rom que deu para relock bootloader, primeiro flashei a

POTTER_NPNS25.137-33-11_cid50_subsidy-DEFAULT_regulatory-DEFAULT_CFC.xml e em seguida executei os comandos para relock bootloader no inicio do post, aqui te recomendo desbloquear o bootloader novamente e passar essa rom que estou te deixando o link abaixo e refazer o processo de lock bootoader. Se deu certo para mim também vai dar pra você também.

https://rsdsecure-cloud.motorola.co...ubsidy-DEFAULT_regulatory-DEFAULT_CFC.xml.zip

https://mega.nz/#!UcpGzRYC!IHxFR7foKbAtVFCrxqJp9ODSQZmLDz2fSXQ2Qn2Io0g
[Moto G5 Plus Guides, News, & Discussion] Canis Majoris:
show meu amigo, muito obrigado.

---------- Post added at 05:47 PM ---------- Previous post was at 05:45 PM ----------

O arquivo do Mega, não esta pegando :crying:

---------- Post added at 05:48 PM ---------- Previous post was at 05:47 PM ----------

O arquivo do Mega, não esta pegando :crying:
[Moto G5 Plus Guides, News, & Discussion] reuber:
O rsd que é o primeiro link está de boa, não foi eu quem postou o arquivo mais testei agora, verdade mesmo o do mega já era, mais vai no rsd que é sucesso.
[Moto G5 Plus Guides, News, & Discussion] Canis Majoris:
Valeu cara, Ganhou um Fan
[Moto G5 Plus Guides, News, & Discussion] DarthOrus:
Worked fine, thanks.

Vlw.
[Moto G5 Plus Guides, News, & Discussion] love7731:
Guys, There was a update in my system update section. I downloaded the update and installing it. Since my phone was rooted, it automatically opened the twrp recovery(I dont know how). When i click for reboot system my recovery keeps opening. I cannot able to boot into system. I tried many videos to Flash stock rom using adb but i ended up with hard bricked. My model no is-XT1686 indian version. I didn't able to flash given Rom also. Whenever i tried to flash and reboot, my window got stuck at that 5 sec window and it keeps off and come again and again but my phone is not booting up. Anyonw please help me...
[Moto G5 Plus Guides, News, & Discussion] smitharro:
And I thought this was an English speaking forum...

Read the rules of XDA! If you can't post in English or can't read English, XDA is not the right place for you!
[Moto G5 Plus Guides, News, & Discussion] reuber:
Okay man
[Moto G5 Plus Guides, News, & Discussion] jetboss:
got to say that this works .. good guide
[Moto G5 Plus Guides, News, & Discussion] LiteSoul:
DO NOT use the NPN25.137-35 version, it will prevent you from getting the OTA update. Read the instructions carefully, use the -15 version...
[Moto G5 Plus Guides, News, & Discussion] LiteSoul:
It worked perfectly, my phone is Latin America. So I'm not sure if you want to keep this thread title: Indian variant
[Moto G5 Plus Guides, News, & Discussion] handy5876:
I bought my phone with 67 version. I flashed TWRP/rooted. Can I flash the 15 version to go back to stock ? Or will there be some partition table/bootloader mismatches which I keep reading about ?
[Moto G5 Plus Guides, News, & Discussion] PsYkOvSkY:
Which is the latest firmware for indian version...?

Nd tell me the difference between

POTTER_AMZ_7.0_NPNS25.137-35-5_cid18_subsidy-DEFAULT_regulatory-DEFAULT_CFC.xml.zip

and

POTTER_RETAIL_7.0_NPNS25.137-35-5_cid50_subsidy-DEFAULT_regulatory-DEFAULT_CFC.xml.zip
[Moto G5 Plus Guides, News, & Discussion] Anderson_ARS:
Great!
[Moto G5 Plus Guides, News, & Discussion] gatesxii:
Any similar post for moto g5 (cedric) ?

I have stock rom flashed, but I get bootloader unlocked warning page (5 seconds).

I tried oem lock - but got bad key error. Any firmware available for moto g5 (cedric) to lock bootloader ??
[Moto G5 Plus Guides, News, & Discussion] handy5876:
Solved with the new 67 firmware

https://xdaforums.com/showpost.php?p=74264016&postcount=3
[Moto G5 Plus Guides, News, & Discussion] seed_87:
Hey guys

Moto G5 Plus US, Model XT1687

Current ROM Info:

Software channel: retus

Build #:	NPN 25.137-33

Security patch:	Jan, 1 2017

Baseband:	M8953_02.03.07.06R POTTER_NA_CUST

On a whim, unlocked the bootloader. Now id like to lock it back.

I haven't updated my phone / installed any OTA's, phone keeps asking to update to NPNS25.137-33-5, haven't done it.

Does this procedure by OP [MENTION=5486547]Nirbhay2[/MENTION] work for me?

What ROM should I use?

Id like to relock the bootloader and receive OTA updates as normal on my US variant phone!

Many thanks!

Issue posted on new thread. Ignore this post!
[Moto G5 Plus Guides, News, & Discussion] seking:
I have followed this method to succefully lock my bootloader.

Very important to note.

The firmware should be relating to your region. Mine was for India. I used indian variant

The firmware version should be higher or equal in version. Otherwise phone will be bricked.

1. Downloaded my firmware POTTER_RETAIL_7.0_NPNS25.137-33-5_cid50_subsidy-DEFAULT_regulatory-DEFAULT_CFC.xml.zip

1. used the toolkit mentioned in https://xdaforums.com/g5-plus/development/toolkit-moto-g5-plus-toolkit-root-t3605203

2. Used the above toolkit to flash the stock firmware as per its instructions.

3. after rebooting go into developer options. To make developer option appear go on tapping build number. In the devloper option enable usb debugging. Also you may note that oem locking will be greyed out in developer options.

4. booted into fastboot and applied the commands as given in this thread one by one

as below:

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

5. The phone booted into stock and there was an update and accepted the update.

6. After updating this update the bootloader lock is complete. (confirmed in Fastboot screen) The software status in fastboot screen will change from modified to official

I hope this may help somebody and if i have helped you may hit thanks button

by the way latest firmware for indian variant is here. you may use it to relock without fear of downgrade brick POTTER_NPN25.137-92_cid50_subsidy-DEFAULT_regulatory-DEFAULT_CFC.xml.zip

https://androidfilehost.com/?fid=889964283620771881
[Moto G5 Plus Guides, News, & Discussion] 22sumit:
can u plz post a screenshot of the same. I also locked the bootloader using same method bu the Software Status still shows as Modified
[Moto G5 Plus Guides, News, & Discussion] seking:
.

After updating via the system update or reflashing the same firmware once more, the status will change to "Official"
[Moto G5 Plus Guides, News, & Discussion] seking:
For the information of everybody the unlock code we get from motorola is same everythime. Now i wanted to unlock my moto g5 plus again and applied for the same and got the same code. This is for your info so that one need not apply to motorola everytime. I think it is related the hardware signature of the phone(the code we extract may contain hardware information). I have already unlocked again:D
[Moto G5 Plus Guides, News, & Discussion] sharky_004:
follwed this

on last step i got error that you need signed boot.img or oem img

and when i tried turning on phone it stucked on moto logo.

please help needed.!!!

and mine is indian variant
[Moto G5 Plus Guides, News, & Discussion] gavendramit:
[MENTION=5486547]Nirbhay2[/MENTION]

I unlock my bootloader in this month only...

Which firmware file i have to download to re-lock my bootloader..???

Because there is two files with brazil in there name....

Is there bootloader version difference...??
[Moto G5 Plus Guides, News, & Discussion] Nirbhay2:
Always Use Latest version fastboot rom to lock your bootloader or else it can hardbrick your phone.
[Moto G5 Plus Guides, News, & Discussion] dBKiller:
does relock bootloader will erase all apps?
[Moto G5 Plus Guides, News, & Discussion] Vishalpatil0105:
Facing problem

Unable relock bootloader please help.

Downgraded security version

Image validation failed

Invalid image Singed

Preflash validation failed

FAILED.

THIS KIND OF ERROR ARE OCCURRED.

PLEASE HELP
[Moto G5 Plus Guides, News, & Discussion] psychopac:
Don't use lower version of stock ROM than what was last installed when you switched to custom ROM. Downgrade Moto devices is a PITA as it can also brick if done incorrectly. Always return to the same version or higher (if available)
[Moto G5 Plus Guides, News, & Discussion] pankaj1244:
After locking the bootloader do i need to reboot device once or i can simply copy and paste this commands in minimal adb command prompt ?

---------- Post added at 03:17 PM ---------- Previous post was at 03:04 PM ----------

Can we lock the bootloader with Deodexed Rom installed?
[Moto G5 Plus Guides, News, & Discussion] skmaiyad:
I can't re lock bootloader

Hi, i am trying to install stock rom and relock bootloader because after installing custom rom, i am not getting network in my device. but now after installing stock rom(see below image for version), i cant relock my bootloader. it gives me error like security downgrade issue.
[Moto G5 Plus Guides, News, & Discussion] AdityaYT:
Now all can do it

the indian variant relock is not correctly explained

You Have Explained It

Listen all

You will need the firmware which you were using before unlocking your bootloader then only you can relock it again

Now i can give it for warranty Thanks a Lot:D:D:D:D

---------- Post added at 05:35 AM ---------- Previous post was at 05:33 AM ----------

I Was Using The Nov Security Patch before unlocking my bootloader....

So I flashed the firmware with the nov security patch and voila it worked and my oem locked

my oem was not locking with the brazil one so i downloaded the npn 92 nov security patch firmware and i got my oem unlocked....
[Moto G5 Plus Guides, News, & Discussion] skmaiyad:
Can you help me where i can find stock rom with nov security patch for indian variant.?
[Moto G5 Plus Guides, News, & Discussion] aksh295:
Bro can you able to give me moto g5 plus indian varient stock recovery.img....... Extracted from stock rom.. Please bro
[Moto G5 Plus Guides, News, & Discussion] pankaj1244:
Hi i am currently running on Custom oreo Rom and i want to go back to stock completely with locked bootloader with OTA Update so can you help how to go back to stock ?

How can i flash stock rom you mentioned in thread ?

please help me....
[Moto G5 Plus Guides, News, & Discussion] aksh295:
Bro if you will revert back back to stock then you may loose the volte forever in your mobile and imei no. Zero
[Moto G5 Plus Guides, News, & Discussion] vishnuladdu:
NPN25. 137-92 is it Indian variant ..if not tell me the latest Indian variant code
[Moto G5 Plus Guides, News, & Discussion] psychopac:
It is the latest RETIN update
[Moto G5 Plus Guides, News, & Discussion] vishnuladdu:
Can you give link for fastboot flash fjles
[Moto G5 Plus Guides, News, & Discussion] echo92:
Link for NPN25.137-92: https://xdaforums.com/g5-plus/how-to/moto-g5-plus-patch-november-npn25-137-92-t3718976 For India and Latin America regions. EU, US and Asia Pacific are on NPN25.137-93.

You'll likely want to use the Android File Host link, as the first link (to Motorola Remote Software Download) is probably restricted access.

As always, reverting back to stock (especially with re-locking the bootloader) may erase your data. Re-locking your device's bootloader will not restore your warranty (unless you did not unlock your bootloader in the first place, and just want to use this stock ROM to upgrade).
[Moto G5 Plus Guides, News, & Discussion] skmaiyad:
[MENTION=8362857]aksh295[/MENTION] I lost IMEI and Volte in my device after revert back to stock. and i cant get any network in device now. so right now i am using Omni ROM in which i get network for Vodafone only. but didnt get Volte.. can you help me how can i get Volte back.?
[Moto G5 Plus Guides, News, & Discussion] anadarco7:
There is no way to get VOLTE back need to wait for Stock 8.0 rom
[Moto G5 Plus Guides, News, & Discussion] skmaiyad:
So after stock 8.0, can i get back volte ?
[Moto G5 Plus Guides, News, & Discussion] anadarco7:
Yes everyone are waiting for it
[Moto G5 Plus Guides, News, & Discussion] skmaiyad:
[MENTION=4553877]anadarco7[/MENTION] thanks for help. can you tell me that service centre of motorola can know if device is rooted or not from hardware? or that just check it from software side only.?
[Moto G5 Plus Guides, News, & Discussion] echo92:
From what others have mentioned, the service centre can input your IMEI number and check on the Motorola database whether you requested an unlock key. If you did request an unlock key, they have said your Motorola warranty is void, regardless of if your device was rooted.

They can also obtain the getvar info from your device, which would show if the device bootloader was ever unlocked (but the above check would show that too).

However, there are reports of service centres looking at the paperwork (e.g receipts for your device) and proceeding with the repair. However, I imagine that depends on the type of repair and the centre, I'm not sure how a VoLTE/IMEI issue would be resolved. You may have to pay for a repair if XDA or others can't come up with a fix.
[Moto G5 Plus Guides, News, & Discussion] skmaiyad:
[MENTION=1257480]Plymouth[/MENTION] thanks for explaination. i am just curious regarding hardware. can they know from hardware side if device is rooted or not.? because recently i went to service centre for this issue and first they checked in software but didnt get catch rooted after opening my device they told me that your device is rooted. so i am confused how can they know software side issue from the hardware.?
[Moto G5 Plus Guides, News, & Discussion] AdityaYT:
Use This

https://firmware.center/firmware/Motorola/Moto G5 Plus/Stock/
[Moto G5 Plus Guides, News, & Discussion] spagentdalecooper:
Hey there, As I've read that relocking the bootloader need the same version of the stock rom as it was at the time of unlocking. Is it true ? And If it is true then I'm on the latest version of the Indian Variant of the Moto G5 plus and I've unlocked the bootloader but I want to relock the bootloader.

My Stock Rom Build Number - NPNS25.137-92-4

So I need stock rom of this version. Please help because I don't want to hardbrick my Moto G5 Plus. My previous phone(Zenfone 2 Selfie) got hardbricked after flashing stock rom.
[Moto G5 Plus Guides, News, & Discussion] vishnuladdu:
Dont relock it ..I think we dont have perfect firmware to relock...

If you flash this rom you will lost Volte and imei

I think we need to wait for oreo update
[Moto G5 Plus Guides, News, & Discussion] spagentdalecooper:
Yes, I'm not doing anything until I get proper stock rom with proper result. For now it is unlocked and working perfectly. Warranty is void but only 20 days left for the phone to be a year old.
[Moto G5 Plus Guides, News, & Discussion] skmaiyad:
There is no issue if you install proper stock rom. i already faced this volte problem in my device right now because i didnt follow proper instructions and lack of knowledge. but if you want to install stock rom than just install that version which one was last in your device when you flash first time and it will relock your bootloader. but if you forgot your last installed(with security updated) version than dont try this.

there is no need to relock your bootloader unless you have to give to service centre or sell you device.
[Moto G5 Plus Guides, News, & Discussion] spagentdalecooper:
I know the version when I unlocked the bootloader.

which is NPNS25.137-92-4 but there is no stock rom available of this version.
[Moto G5 Plus Guides, News, & Discussion] pv.singh26:
i have downloaded brasil and also retail version but still getting error of not signed img... plz help me
[Moto G5 Plus Guides, News, & Discussion] bishal360:
Which firmware file download

Here 2 firmware file named with same Brazil! What to download 7.0 NP..../ NPN25.... Please help me :confused::confused:
[Moto G5 Plus Guides, News, & Discussion] echo92:
The 2 firmwares for Brazil may be the same - they appear to have the same build number.

However, if your device was ever on stock firmware newer than NPN25.137-15 (the Jan 2017 security patch), you cannot use this firmware to re-lock (as you always need the same or newer build of firmware to re-lock a bootloader).

Furthermore, attempting to flash this NPN25.137-15 stock ROM onto a device running (or used to run) newer stock firmware, previously installed via fastboot or stock OTA, and then using stock OTA updates has resulted in hard bricks of your device. For this reason, do not flash this stock firmware and use OTA updates to upgrade; only flash stock firmware to update if you flash this stock ROM to downgrade.

If you want to re-lock your bootloader, I think the NPNS25.137-33-11 (Aug 2017 security patch) or NPN25.137-92 (Nov 2017 security patch) should suffice, provided they're the same or newer builds as your existing stock firmware. I've not seen the NPNS25.137-92-4 firmware, only the NPNS25.137-93-4 firmware, which is not suitable for Brazil/Indian devices. Sure, you can flash it, but you may not get OTA updates from Motorola.
[Moto G5 Plus Guides, News, & Discussion] bishal360:
I have 5th February 2018 security patch level

I have 5th February 2018 security patch level, so please tell me which firmware version I download to flash stock ROM not re-lock bootloader?
[Moto G5 Plus Guides, News, & Discussion] echo92:
Are you running a custom ROM? I'm not aware of a February 2018 security patch for the stock ROM (only seen the 1st Jan 2018 patch for G5 Plus), and custom ROM patch levels do not really matter with stock ROMs. If you do have the February 2018 security patch on the stock ROM, I'd be interested in seeing a screenshot of the About Phone page showing the build.

What I would like to know is the latest stock firmware you flashed onto your device before, so we can guide you to the firmware best suited for your device and least likely to cause you issues.

If you can't remember what stock firmware build you flashed, you can get your getvar info:

1)Boot your device to the bootloader. Connect to your computer via USB cable.

2)Open the ADB terminal and type 'fastboot getvar all' without quotes. Press Enter.

3)Copy/paste the output here in a new post. You may wish to remove your IMEI.

That should tell us what the last stock firmware you flashed onto your device was.
[Moto G5 Plus Guides, News, & Discussion] bishal360:
Yes, I am using Pixel experience 8.1 Rom. And here is the screenshot.
[Moto G5 Plus Guides, News, & Discussion] vishnuladdu:
Hi bro

It's seems you have working volte ..if you flash stock ROM you will end without volte..and you will lose IMEI also