yashsingh1/xdaforums huggingface dataset:
[Moto G4 Plus Guides, News, & Discussion] echo92:
If your bootloader is B1.00, you should be okay flashing either this ROM (Dec 2016) or the March 2017 fastboot ROM - personally, I'd probably suggest the March 2017 ROM as that'll bring you up to date without having to flash OTA updates :) It's up to you, ultimately - both guides should work (they're effectively the same, apart from different fastboot ROMs). You should be able to use this guide without problems - flash as directed with the GPT and bootloader options, and then just flash the OTA update to the March 2017 update when that arrives.

If you run into problems, try reflashing the stock ROM, and if you run into an error, post it here and we'll try to get to you as soon as possible. Generally, fastboot ROMs should be stable enough to flash without issue, just ensure you have plenty of time to flash your device.
[Moto G4 Plus Guides, News, & Discussion] Smit01:
Perfect replies ! Thanks a lot !
[Moto G4 Plus Guides, News, & Discussion] Smit01:
Just one last question,

Since i have the old bootloader, i don't need any change in script to flash the March 2017 update right? Just open the script according to the guide and wait till it is done. Sorry for asking too much, again don't want to mess up my phone.
[Moto G4 Plus Guides, News, & Discussion] echo92:
Yes, should be just flash as described, since the update should update your bootloader at the same time. Just check which script you're using, one will relock your bootloader, (OEM lock, I believe, is the name) the OEM flash script won't relock your bootloader. Up to you which one you choose (though if you relock, then want to unlock your bootloader in the future, you'll have to wipe your device when unlocking).

EDIT - I used the OEM flash script with the NPJS25.93-14.4 ROM to revert from RR successfully (I was on the NPJ25.93-14 ROM previously, this one, with B1.03 bootloader) and it's running well :)
[Moto G4 Plus Guides, News, & Discussion] Tyrog07:
Can rom mentioned in article for Moto g4 plus be used on Moto g4 xt 1624?
[Moto G4 Plus Guides, News, & Discussion] echo92:
Though there's no reports for XT1624 devices from a search, this fastboot ROM should flash without issue as it appears to be a Motorola sourced ROM. Additionally, there are plenty of G4 devices being flashed okay, including XT1622 and XT1625, so it should flash.

As always, back up your data as a precaution and keep that data backup off your device until you're done.

You may also wish to look into flashing the more recent fastboot ROM (with the march security patch)

https://xdaforums.com/moto-g4-plus/how-to/stock-rom-npjs25-93-14-4-march-1-t3608138
[Moto G4 Plus Guides, News, & Discussion] Tyrog07:
Worked on xt1624. Thanks.
[Moto G4 Plus Guides, News, & Discussion] Smit01:
Hello , i have installed stock rom without any issues , but can i remove that unlocked bootloader message with this thread ?

https://xdaforums.com/moto-g4-plus/how-to/guide-newbie-resource-thread-t3386584

i thought that message wont appear when the stock rom is flashed.
[Moto G4 Plus Guides, News, & Discussion] echo92:
Ah, nice work on re-flashing the stock ROM. :)

That message, unfortunately, will still be present on unlocked bootloaders unless you re-lock your device or hide the warning with a custom logo.bin (the latter option is what I think you're going for by linking the guide :)).

1) If you want to re-lock your bootloader (if you see yourself staying on stock for the future), you could re-flash the stock ROM, this time with the OEM lock script. I note some users have been able to simply re-lock their device by executing the lock commands

fastboot oem lock begin
fastboot oem lock begin
fastboot oem lock
fastboot reboot

Of course either method will wipe your device again, and the lock commands by themselves may not work without a full flash (may complain of needing a signed image).

2)If you're wanting to leave your bootloader unlocked, and just want to hide the warning, that part of the guide will work by just flashing an image over the top of the warning message. You'll still have to wait out the 5-10 sec duration, but it'll at least look nicer! :)

There's also these threads for other logo.bin files (flashable in the same way as the guide) you could flash if you wanted something different: https://xdaforums.com/moto-g4-plus/themes/customized-logo-t3451349 https://xdaforums.com/moto-g4-plus/themes/bootlogo-dev-edition-black-n-removed-t3609835 https://xdaforums.com/moto-g4-plus/themes/splash-screen-stark-sigil-game-thrones-t3562019 or if you want to try your hand at making them: https://xdaforums.com/moto-g4-plus/themes/guide-t3588090
[Moto G4 Plus Guides, News, & Discussion] Smit01:
I used OEM lock bat file to flash the ROM still it didn't lock the bootloader, and I'm sure that I used OEM lock file :( Seems like I'll have to flash the whole ROM again manually which is I'm not good at.

My main purpose after this is to visit the service centre , Will it be ok if I just hide that warning message? Visiting them due to extreme level of ghost touch issues.

Edit : The warning screen says ID : bad key

I think it used to show something else before. Also I think I have heard that It may show bootloader status modified until I receive an official update. Still im not sure.
[Moto G4 Plus Guides, News, & Discussion] echo92:
You could try re-locking with the March 2017 fastboot ROM instead (https://xdaforums.com/moto-g4-plus/how-to/stock-rom-npjs25-93-14-4-march-1-t3608138) - perhaps try using the re-locking script.

One thing to try, before you re-flash - try toggling the OEM unlock under Settings>Developer Options - I've noted that, if turned off, may stop you from re-locking your device. Then try flashing with the Dec 2016 update that you've got using the OEM lock script again.

Depends on how diligent the service centre is, to be honest, and now our devices are at their 1 year mark (so some will be coming out of warranty), they may be more stringent. I'd probably see if you can properly relock your device (though the centre may check your IMEI with Motorola anyway - but given it's a common hardware issue I hope they'll fix it for you free of charge).
[Moto G4 Plus Guides, News, & Discussion] Smit01:
I have flashed March 2017 security update ROM , didn't try 2016 ROM. So my next step should be check settings and again try to flash the rom , Is it ok for me to try lock oem.bat file again this time or instert commands manually ? Thanks for the reply.
[Moto G4 Plus Guides, News, & Discussion] echo92:
Ah, cool - yep, should be okay to try the oem_lock.bat again, the one thing going for manual commands is that you can see the output (rather than the script whizzing by :)) Try with that OEM lock toggle in the other position and see how you get on.
[Moto G4 Plus Guides, News, & Discussion] Smit01:
Will i be able to flash OTP received by stock rom if i keep my bootloader unlocked as it is right now?
[Moto G4 Plus Guides, News, & Discussion] echo92:
Yup, OTAs should be happy with an unlocked bootloader too, just need a stock recovery, system and kernel :)
[Moto G4 Plus Guides, News, & Discussion] Epiklyepik:
Just for clarification, how do I run the oem lock.bat file. Do I open CMD and then type the flash oem lock.bat or do I just double click on the extracted file from my file manager and then it will automatically open CMD and start flashing?

Pls explain that steps in extreme details
[Moto G4 Plus Guides, News, & Discussion] rajatgupta1998:
Bat files are designed to do all the manual commands automatically. So yes, just run the file by double clicking it. It will open the CMD and do the things automatically.
[Moto G4 Plus Guides, News, & Discussion] Cyberman5145:
Hi,

Can anyone confirm if this works on xt1643 Indian model?
[Moto G4 Plus Guides, News, & Discussion] echo92:
Should do, a search showed plenty of XT1643 users updating with the build. You might want to look into flashing the newer March 2017 fastboot ROM https://xdaforums.com/moto-g4-plus/how-to/stock-rom-npjs25-93-14-4-march-1-t3608138
[Moto G4 Plus Guides, News, & Discussion] sujeet_kumar:
Unable to re-lock bootloader

Unable to re-lock bootloader of Moto G4 Plus having June 2017 security patch and Build No.- NPJS25.93-14-8.

So please update new methods.

Also please share Signed Stock Rom or ROM used in Moto Service Centre.
[Moto G4 Plus Guides, News, & Discussion] echo92:
Currently, if you're on the June 2017 security patch, you cannot re-lock your bootloader, until we get the NPJS25.93-14-8 stock fastboot ROM (which is not released yet, and there is no ETA).

You'll have to wait until we have access to that stock ROM, as only ROMs of the same build or newer than your existing firmware can re-lock your bootloader.

I would also add it is highly inadvisable to attempt to downgrade your bootloader and re-lock your bootloader with older firmware, as you may well hard brick your device.
[Moto G4 Plus Guides, News, & Discussion] Pratham Nathyal:
Don't flash the old firmware at all man. Just like echo said. I hard bricked my device for eternity.
[Moto G4 Plus Guides, News, & Discussion] sujeet_kumar:
Why I am getting errors likes (I jot this errors while flashing a new logo of moto, to hide unlock bootloader warning message)-

(bootloader) slot-count : not found;

(bootloader) slot-suffixes : not found;

(bootloader) slot-suffixes : not found;

.......

Is anything wrong with my device or any problem ?
[Moto G4 Plus Guides, News, & Discussion] echo92:
To the best of my knowledge, those messages are normal - I recall it's to due with adb updated to handle a/b partitions (such as those on the Pixel for seamless updating). Since our devices don't have a/b partitions, it can't detect a slot-count, I think.

It shouldn't affect your flashing though - just ensure that after the commands you issue you see [OKAY] to confirm a successful flash.
[Moto G4 Plus Guides, News, & Discussion] Subbareddy123:
I locked my phone but now I want to unlock it again (*bootloader)pls tell me
[Moto G4 Plus Guides, News, & Discussion] echo92:
I've already linked a post that tells you how to unlock your device again, did you read that post and are you having issues with unlocking it?
[Moto G4 Plus Guides, News, & Discussion] Subbareddy123:
Hey dev

U replied that I can unlock boot loader again and u already provided the link I'm not able to find that plz send me the link bro
[Moto G4 Plus Guides, News, & Discussion] echo92:
I'm not a dev. You can look back over your previous posts - here is the link again detailing how to unlock your bootloader.

https://xdaforums.com/showpost.php?p=67031801&postcount=2

Since you mentioned you already have the code, you follow step 3:

Ensure you have OEM unlocking turned on as described in the above link.

Reboot to the bootloader. Attach your device to your computer.

In adb, type 'fastboot oem unlock <code>', where <code> is the unlock key you should still have from Motorola.

Wait for your device to be erased.

Reboot.
[Moto G4 Plus Guides, News, & Discussion] Epiklyepik:
Just wondering, I hear rumours that g4+ will get android o update on the stock firmware.. so if I flash back to stock , can I get that update ?

Canadian version ( xt1641 )
[Moto G4 Plus Guides, News, & Discussion] vritansh:
Yes but don't flash the nougat version NPJ25.93-14.....I got my phone bricked twice because it asks for more update after flashing and bricks while updating......instead flash another version NPJ25.93-14-8 the latest one
[Moto G4 Plus Guides, News, & Discussion] Adge40:
Hi all,sorry if I've interrupted this thread,I didn't know where else to look,I couldn't find an xt1622 Q+A thread but my problem is this,I just bought this phone and unlocked the bootloader,this is my problem,when I reboot,where the 'ID N/A' is,mine says 'ID bad key',can anyone give any information on this and is it something to worry about??,I won't flash twrp until I know the bad key won't be a problem,many thanks in advance
[Moto G4 Plus Guides, News, & Discussion] echo92:
That's a normal entry when you've unlocked your bootloader - it'll show either ID bad key or ID N/A. I've noted that my device (XT1642) would say ID bad key after a fresh stock ROM flash or after unlocking, with subsequent boots saying ID N/A.

TWRP shouldn't be affected by that message - just ensure that after you've flashed TWRP (athene versions) and you see [OKAY], you reboot to recovery, else the stock recovery will overwrite TWRP. Once you've rebooted directly to recovery, you should be okay to boot as normal. Alternatively, if you wish to keep your stock recovery, then you can boot into TWRP if you so choose. We have stock fastboot ROMs for reverting back to stock however. Oh, and ignore the message when you flash TWRP that the image is unsigned or corrupted - TWRP recovery isn't cryptographically signed by OEM vendors.

If that bootloader warning screen is bugging you, you can flash a custom logo.bin (e.g. from here: https://xdaforums.com/moto-g4-plus/themes/customized-logo-t3451349 ) or you can make your own (https://xdaforums.com/moto-g4-plus/themes/guide-t3588090 )
[Moto G4 Plus Guides, News, & Discussion] Adge40:
[MENTION=7970352]echo92[/MENTION]

Thank you for the advice
[Moto G4 Plus Guides, News, & Discussion] sanjaybaidya:
Hey. I used to have volte in earlier build of stock rom, linage os, invicta, Resurrection remix. But suddenly I realized that volte is not working anymore. I flashed older builds of all the rom. But no luck. None of them bring me back the volte function. Is there any chance to get volte by flashing this?
[Moto G4 Plus Guides, News, & Discussion] strongst:
Please don't post your question more then once: https://xdaforums.com/moto-g4-plus/help/volte-t3679991
[Moto G4 Plus Guides, News, & Discussion] sanjaybaidya:
Please let me know if flashing this may help me or not..?
[Moto G4 Plus Guides, News, & Discussion] andrescm:
Are these ROM images generally "software channel-independent"?. Or are they made for specific software channels?. My XT1641's is "retla" and I wonder if I could flash this image. Searched this thread for the keyword "retla" but there's not a single mention (now there's mine LOL).

Thanks!
[Moto G4 Plus Guides, News, & Discussion] echo92:
NPJ25.93-14 should be software channel independent, as it was a firmware released to all channels if I recall, and looked to be the same build.

Any other stock ROMs may flash okay on retla devices but may cause you problems (e.g. pushing you off the update path), so do your research. As we discussed, this stock ROM should be suitable for you.
[Moto G4 Plus Guides, News, & Discussion] andrescm:
Alright, proceeding tonight!. Will do a complete wipe to avoid errors.

EDIT: Confirmed on an XT1641 retla, worked like a charm!. Since I was on stock and the patch level was December 1st 2016, I avoided reflashing the GPT partition, bootloader and modem (thanks [MENTION=7970352]echo92[/MENTION] for the tip!), thus executing this:

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 erase cache
fastboot erase userdata
fastboot erase customize
fastboot erase clogo
fastboot reboot

After the initial setup, the OTA took the wheel and updated to NPJ25.93-14-8.1 (patch level is now June 1st).
[Moto G4 Plus Guides, News, & Discussion] jdegreef:
What is the source of this rumour ?

I personally don't thing O will come to the Moto 4(+) in a near future.
[Moto G4 Plus Guides, News, & Discussion] NexxP963:
[MENTION=5504709]jdegreef[/MENTION]

Take a look at this site, especially the added text

https://blog.motorola.com/2017/09/14/say-hello-android-oreo/
[Moto G4 Plus Guides, News, & Discussion] jdegreef:
I may be stupid but the list in your link don't list Moto g4/G4+

What do you mean by added text ? I don't see any :confused:
[Moto G4 Plus Guides, News, & Discussion] NexxP963:
I meant this text/ comment/ statement following the list of devices

"Since the time of posting this, we have learned of some errors in our marketing materials around Android O upgrades for moto g4 Plus. It’s our general practice for the moto g family to get one major OS upgrade per device, so it wasn’t originally planned for Android O. But it’s important to us we keep our promises, so in addition to the N upgrade it has already received, we will be upgrading moto g4 Plus to Android O. Because this is an unplanned upgrade, it will take some time to fit into our schedule, we’ll update our software upgrade page when we have more info."
[Moto G4 Plus Guides, News, & Discussion] echo92:
In addition to the above post, this additional text was taken from a reply on the official Lenovo/Motorola forums regarding the Oreo update to the Moto G4 Plus line: https://forums.lenovo.com/t5/Moto-G...o-Android-8-Oreo-for-my-G4/m-p/3810635#M28020

Both say the same thing though - we'll get an update but might take longer than usual depending on when the engineers find the time to make Oreo for the G4 Plus.
[Moto G4 Plus Guides, News, & Discussion] jdegreef:
The important point is "This device will be upgraded to the Android 8 (Oreo) release of Android, pending partner support." I don't see that happening in a near future considering the stock rom is currently not even at 7.1.

---------- Post added at 19:40 ---------- Previous post was at 19:33 ----------

After "porting" the "OEM Flash.bat" batch file to Linux everything went smoothly on my 1642.

After flashing the stock 7.0 rom it automatically installed 3 updates up to the 20170901 security patch :o

Good job.
[Moto G4 Plus Guides, News, & Discussion] Epiklyepik:
Only one variat of the g4/g4+ will be getting 7.1 nougat... I think our update might be directly to 8.0 maybe... This is because I read somewhere only the XT1643 version is getting the 7.1. Not my version:eek:
[Moto G4 Plus Guides, News, & Discussion] jdegreef:
And not mine (1642) :(

I feel it's time to go away from stock rom and anyway my warranty is nearly over :cowboy:
[Moto G4 Plus Guides, News, & Discussion] Epiklyepik:
I'm currently on RR...great ROM...My ROM maintainer will be proud if I spread the word that the ROM is good

He'll give me chocolate:eek:
[Moto G4 Plus Guides, News, & Discussion] strongst:
You guys are getting off topic here, please read/discuss here https://xdaforums.com/moto-g4-plus/how-to/moto-g4-plus-getting-android-o-t3576948
[Moto G4 Plus Guides, News, & Discussion] echo92:
Just a heads up - now that you're updated to the 1st Sept 2017 patch, do not use this December 2016 stock ROM to revert back to stock. Flashing this and then attempting to apply OTA updates will likely cause a hard brick as your bootloader gets corrupted in the OTA updating. If you need to revert to stock, the link for the September 2017 stock ROM is here: https://xdaforums.com/moto-g4-plus/how-to/stock-rom-npjs25-93-14-4-march-1-t3608138
[Moto G4 Plus Guides, News, & Discussion] arc4d14n:
Nevermind... Please mod erase this
[Moto G4 Plus Guides, News, & Discussion] mayank.bhola1:
September patched Stock has some issue with boot and bootloader always giving bad key error
[Moto G4 Plus Guides, News, & Discussion] Epiklyepik:
I know this post is old, but what is your Canadian carrier..I also want to revert back to stock and am curious if I should run same script as you because I am also on December 1 2016
[Moto G4 Plus Guides, News, & Discussion] andrescm:
I'm not sure if you quoted the right post. I'm from Buenos Aires, Argentina. Confirm your bootloader version before proceeding but it should be OK to follow the same steps I did.
[Moto G4 Plus Guides, News, & Discussion] Epiklyepik:
Oh sorry for that...yes I did quote wrong post..but thanks for your help anyways
[Moto G4 Plus Guides, News, & Discussion] maheshhr:
OTA update Sep 2017

Hello

I have rooted my phone moto g4 plus. I am getting prompts for OTA update very often its irritating. My phone details

Moto g4 plus

XT1643

Android 7.0

1 June 2017 security patch level

Baseband version Athene_India_DSDS_CUST

Kernel version 3.10.84-ElementalX G4-1.04

Build no. NPJS25.93-14-8

TWRP recovery

SuperSU

Kindly mention the steps to update
[Moto G4 Plus Guides, News, & Discussion] strongst:
It's advisable to flash the full September security patch rom. But it will wipe your device. Ota updating can cause trouble. You can try it, but keep it in mind.
[Moto G4 Plus Guides, News, & Discussion] maheshhr:
Thanks can I unroot from SuperSU app.
[Moto G4 Plus Guides, News, & Discussion] maheshhr:
I restored backup by checking the root, recovery and data files from TWRP. Downloaded the OTA update but when I install the update its booting into TWRP recovery. The system update failed.
[Moto G4 Plus Guides, News, & Discussion] strongst:
Have a look at here https://xdaforums.com/moto-g4-plus/help/moto-g-boots-twrp-t3701768
[Moto G4 Plus Guides, News, & Discussion] Aashakmeeran:
Hi there, my device is moto g4 plus xt-1643. Will it work on this??? Because after flashing it, in about phone it shows only moto g(4) only and no network,camer and fingerprint issues are there. So that im asking??
[Moto G4 Plus Guides, News, & Discussion] raptor170:
Presuming you are still on stock rom? If you successfully unlocked the bootloader, flash twrp and try out a custom rom and see if issue persist. Sounds like a kernel issue tho
[Moto G4 Plus Guides, News, & Discussion] Aashakmeeran:
Ya sir. Got that but now the camera issue. Camera says camera is busy.and even flashlight also not working. If i install the third party application also not working. Help for this issue.
[Moto G4 Plus Guides, News, & Discussion] Epiklyepik:
Foe the camera issue, do you mean flashlight is not synced with shutter and you get very dark photos?

If so, go to apps in the settings and find camera tuner and disable it. This is not rom problem at all. There is a dedicated forum for it on lenovos websites
[Moto G4 Plus Guides, News, & Discussion] Aashakmeeran:
Noo camera is not opening

It says that camera is busy. If i install a third-party software for camera also it shows can't connect camera. For flashlight, the option is missing from quick bar present in notification. Also for flashlight, if i install a flashlight app from playstore, it says that "flashlight not detected"
[Moto G4 Plus Guides, News, & Discussion] Aashakmeeran:
Even i flashed all stock roms. And custom roms with kernals also.. same issue with all roms.also factory resetting also done multiple times. Then it shows like this. Before some days i have done frp unlock bypass. As i got from ebay seller.
[Moto G4 Plus Guides, News, & Discussion] Epiklyepik:
Have you by any chance changed something in the build.prop thingys? Any changes..the other explaination to you problem could be your camera is jammed/broken. On my Note 3, the camera got jammed and whenever I tried openning my camera i got same problem as you. When you open camera, can you hear a slight buzz of it openning?

To fix, just gently whack you phone against your knee around the camera;) not joking..it worked for me that way. Just try an impact it wothout breaking it. See if that works.

Have you tried with different roms? So is it only on stock?

Edit: also did you drop your phone recently and then it stopped or when has this started to happen. My guess is that it is your camera not the roms
[Moto G4 Plus Guides, News, & Discussion] raptor170:
Hmmm odd, i was thinking kernel issue because when i flashed a moto g4 kernel on my g4s those are the exact issues i was having (fingerprint, camera etc.) Until i reflashed the rom to restore the kernel that was with the rom. Im guessing too since no network u have no imei showing?