yashsingh1/xdaforums huggingface dataset:
[Moto G4 Plus Guides, News, & Discussion] echo92:
If you simply want to repair your device, and your device is on the latest NPJS25.93-14-18 firmware, you could try the following fastboot commands. These commands won't flash the whole firmware, should keep your data intact and not re-lock your bootloader. As with any flash, please make sure you have a backup of your data/important files are backed up off your internal storage via TWRP in case you have to factory reset:

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 reboot

Of course, this will replace TWRP and root and ElementalX (if you have them), but once your device is booting again, you can quickly re-flash them (after taking a backup in TWRP this time...)
[Moto G4 Plus Guides, News, & Discussion] shilagh:
[MENTION=7970352]echo92[/MENTION] bro, what if I accidentally relock the bootloader should I request bootloader unlocking key once again from Motorola
[Moto G4 Plus Guides, News, & Discussion] restodo:
My phone ask me to update to NPJS25.93-14-8.1-6

Hi,

I follow all the steps from post#1 and everthing went smooth, my phone now has a stock ROM.

The problem I have is Android is asking me to install update NPJS25.93-14-8.1-6

The stock ROM is NPJS25.93-14-18 then I understand that the update is not necessary but I don't know how to remove and Android don't ask me again.

Help is welcome!
[Moto G4 Plus Guides, News, & Discussion] shilagh:
What I meant is I want a flashable zip aka backup of stock rom like this one https://xdaforums.com/moto-g4-plus/development/rom-npjs25-93-14-4-deodexed-debloated-t3587180/page3

Look at the post 24 or 23 by [MENTION=6324159]rajatgupta1998[/MENTION] he provided the unmodified twrp flashable zip of stock rom

Note:::i don't want to relock bootloader
[Moto G4 Plus Guides, News, & Discussion] echo92:
Provided nothing has changed when you requested your unlock key before, the unlock key you got previously should work. If you've had your motherboard changed or your software channel/CID is no longer reported, then the unlock key may not work.

Easiest way to check is to use the key as before. Be warned that both re-locking and unlocking your bootloader will fully wipe your device and possibly your SD card if you have a SD card mounted as adopted storage. Please back up fully before attempting to flash.

---------- Post added at 04:06 PM ---------- Previous post was at 04:00 PM ----------

You could wait for someone to provide you with a stock TWRP backup. However, the commands I provided do not re-lock the bootloader at all - they shouldn't even wipe your data. You should be able to flash via fastboot those partitions, which should then get your device booting. Afterwards, you can quickly flash/boot TWRP onto your device, backup in TWRP and then flash a custom kernel/re-root.

Up to you whichever you choose.

---------- Post added at 04:10 PM ---------- Previous post was at 04:06 PM ----------

Hmm, we've seen this happen with a few users, where flashing the NPJS25.93-14-18 stock ROM would go well, then afterwards they mysteriously got a prompt for an older security update. Is this the Feb 2018 security patch (I'm guessing for Chile or South America?)

I would suggest not installing the update. If you are rooted or have an unlocked bootloader, you could try to disable the Motorola updater to stop nagging you. https://xdaforums.com/moto-g4-plus/help/how-disable-notification-update-t3459587
[Moto G4 Plus Guides, News, & Discussion] restodo:
Yes, I'm from Argentina.

My phone is not root and the bootloader was locked after procedure. I've tried to install the update but when phone boots to continue installing shows an android icon Error. Surely because it's security Feb 2018 and installed Rom has April 2018.

Then I'll try to disable the updater until a security update newer than April comes.

Thanks anyway!

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

I couldn't stop the update service because my phone is not rooted anymore.

If I make all procedure again but with this ATHENE_NPJS25.93-14-4 that is available to download will make the job?

I mean that after installed, the security update from Feb 2018 will install.
[Moto G4 Plus Guides, News, & Discussion] shilagh:
[MENTION=7970352]echo92[/MENTION] bro can you please provide me twrp flashable zip of stock rom. Because it's urgent

Anyway thank you for many information you provided in the above post

Have a nice day bro...
[Moto G4 Plus Guides, News, & Discussion] restodo:
[MENTION=7970352]echo92[/MENTION] I finally could stop Motorola update service using:

cmd appops set com.motorola.ccc.ota RUN_IN_BACKGROUND ignore

https://www.xda-developers.com/freeze-app-background-processes-without-root-android-nougat/
[Moto G4 Plus Guides, News, & Discussion] echo92:
Unfortunately I don't have TWRP on my device - using this tutorial I've re-locked my bootloader, and I don't forsee unlocking it anytime soon.

You'd have to wait for someone else to provide you with a stock TWRP backup or partial flash your device as I describe previously.

---------- Post added at 05:53 PM ---------- Previous post was at 05:50 PM ----------

Nicely done, hopefully it persists through reboots. As you've flashed the NPJS25.93-14-18 firmware, I'd be cautious in downgrading back to NPJS25.93-14.4 (March 2017 security patch); taking OTA updates when you've downgraded so far compared to the newest firmware on your device is risky and may hard brick your device.
[Moto G4 Plus Guides, News, & Discussion] restodo:
Yes, persists after reboots.

With this command you can check the application state and stills in "ignore"

cmd appops get com.motorola.ccc.ota RUN_IN_BACKGROUND
[Moto G4 Plus Guides, News, & Discussion] rabidelmo:
Would this work on the Canadian version of moto g4 plus

Cause I've run one like this before and now I have no recovery installed at all but the os works perfectly
[Moto G4 Plus Guides, News, & Discussion] echo92:
I think I've seen some Canadian users flash this firmware without issue onto their devices.

Regarding recovery, how are you determining you have no recovery? If you boot to recovery, do you see the 'No Command' screen with a green Android on its side?
[Moto G4 Plus Guides, News, & Discussion] rabidelmo:
First ty for your answer and yea I get that instead of recovery and can't do anything but reboot
[Moto G4 Plus Guides, News, & Discussion] shilagh:
Bro can you please pass down the latest boot.IMG please

Under my current circumstances I cannot download the whole firmware

Please pass down the latest boot.img
[Moto G4 Plus Guides, News, & Discussion] echo92:
If you're in that screen, try pressing and holding the power button, then tap the Volume up key. Release both buttons and that should get you into the stock recovery (that no command screen is the stock recovery).

If you boot to that screen and don't do anything, it should auto-reboot anyway.

---------- Post added at 01:42 PM ---------- Previous post was at 01:38 PM ----------

https://drive.google.com/open?id=14HhZ1FpzyX9V12XCVXBvE34AtWYP575f For the NPJS25.93-14-18 stock kernel (not rooted, hudsoncm).
[Moto G4 Plus Guides, News, & Discussion] shilagh:
Bro I need a flashable zip . when I download this file it is geeting saved xyz.bin (need latest boot.IMG)

Edit::got it used chrome for downloading

thanks for your response bro
[Moto G4 Plus Guides, News, & Discussion] echo92:
How are you trying to flash this?

If you're flashing in TWRP, does the image work if you boot to TWRP, go to Install, then tap 'Install Image', then select the boot.img, then target it to your boot partition?

I don't know what you mean by ' im geeting saved xyz.bin'?
[Moto G4 Plus Guides, News, & Discussion] rabidelmo:
Just wanna say ty very much echo worked like a charm
[Moto G4 Plus Guides, News, & Discussion] vlrgamaley:
hello everyone. i have rr 7.1.2 with Elemetal kernel and want to back to stock. should i install the stock boot.img before attempting to flash stock zip? sry for my bad english
[Moto G4 Plus Guides, News, & Discussion] ____Mdd:
That's not flashable zip,

You need to extract it and flash with fastboot commands as stated in OP...

Also it contains stock boot.img in zip, no need to flash before flashing, just follow OP..

NOTE: take backup of internal storage and then proceed...
[Moto G4 Plus Guides, News, & Discussion] Vs1607:
Hello sir... Could you provide me with factory fasboot rom where we get programutags.bat script coz I need to reprogram my modem for Indian variant .... Which I've accidentally changed to European variant ..
[Moto G4 Plus Guides, News, & Discussion] rybshik:
The latest stock firmware NPJS25.93-14-18 for XT1625 USA comes with baseband M8952_70030.25.03.62.02R, which has problems with WifI connectivity.

Is there any way to get baseband M8952_70030.25.03.64.01R of build NPJS25.93-14-7-8?

Can I downgrade NPJS25.93-14-18 to older firmware? Which one?
[Moto G4 Plus Guides, News, & Discussion] echo92:
I've not seen a modem uploaded from the US variants of the G4 Plus, there may be a flashable file around though.

If you wish to try to downgrade, the latest US firmware that has been leaked is the Sept 2017 NPJ25.93-14.7 firmware: https://androidfilehost.com/?fid=817906626617945295 I've not seen any newer US retail firmwares.

Others have downgraded from the Feb 2018 retail firmware to the US Sept 2017 firmware without issue https://xdaforums.com/showpost.php?p=76081679&postcount=110 but I do not know if this can work with the April 2018 retail firmware as I do not have a US device. Up to you if you wish to try.
[Moto G4 Plus Guides, News, & Discussion] rybshik:
What about firmwares XT1625_ATHENE_AMZ_7.0_NPJ25.93-14.7

and ATHENE_NPJS25.93-14-15?
[Moto G4 Plus Guides, News, & Discussion] echo92:
XT1625_ATHENE_AMZ_7.0_NPJ25.93-14.7 is for Amazon Prime devices only - you'll know by the amz software channel on your device.

ATHENE_NPJS25.93-14-15 is the Feb 2018 security patch retail firmware, for EU/UK/Brazil and India regions, amongst others. That firmware is not for US retail devices (even if it flashes) - it's got the same baseband as you're reportedly having issues with. The equivalent US firmware is NPJS25.93-14.7-5 which we don't have leaked.
[Moto G4 Plus Guides, News, & Discussion] rybshik:
Successful downgrade: NPJS25.93-14-18 to NPJ25.93-14.7 on XT1625 US

I have successfully downgraded from the latest firmware NPJS25.93-14-18 (bootloader: B1.07) to NPJ25.93-14.7 (bootloader: B1.06). Straightforward flashing with fastboot.

Then, subsequent OTAs:

NPJ25.93-14.7 => NPJ25.93-14.7-3 => NPJ25.93-14.7-5 => NPJ25.93-14.7-8

ATHENE_NPJ25.93-14.7

Security patch September 1, 2017

M8952_70030.25.03.64R Athene_RetUSA_Cust

BL: B1.06, sha-0edfb0d, 2017-06-01

git=MBM-NG-VB1.06-0-g0edfb0d

fingerprint: motorola/athene/athene:7.0/NPJ25.93-14.7/7

Blur_Version.25.241.7.athene.retail.en.US

NPJ25.93-14.7-3 OTA

Security patch December 1, 2017

M8952_70030.25.03.64R Athene_RetUSA_Cust

NPJ25.93-14.7-5 OTA

Security patch February 1, 2018

M8952_70030.25.03.64.01R Athene_RetUSA_Cust

BL: B1.07(sha-f9b89ba)

git=MBM-NG-VB1.07-0-gf9b89ba

NPJS25.93-14-7-8 OTA

Android security patch: April 1,2018

Kernel ver: March 28, 2018

bootloader: moto-msm8952-B1.07

baseband: M8952_70030.25.03.64.01R ATHENE_RETUSA_CUST
[Moto G4 Plus Guides, News, & Discussion] shilagh:
Doubt regarding the warning message

Hi xdains, can someone here can help me figure out that when I relocked the bootloader of my moto g4 plus the warning msg still persists why it is so ,and I too have a doubt that my bootloader is either locked or not but twrp recovery has disappeared and stock recovery installed

Next is why the play store shows device not certified even after locking bootloader

Any help is appreciated . Hope we get official Oreo update from moto cheers:fingers-crossed:

Well good luck xdains have a nice day
[Moto G4 Plus Guides, News, & Discussion] shilagh:
1-Does relocking the bootloader remove warning message

2-how about safety net?

3-can you please share a photo of how a bootloader look after relocking bootloader (in my case it shows flashing unlocked,safetynet failed,warning message still persists)
[Moto G4 Plus Guides, News, & Discussion] echo92:
1) If you've successfully re-locked your bootloader, you should see no warning message. You should jump straight to the Motorola logo on the blue screen.

2)Safetynet should be intact as you have a locked bootloader and recognised stock ROM.

3)You should see OEM_locked on the bootloader screen similar to this: https://goo.gl/images/jHyywh

What you've mentioned suggests you have not been able to re-lock your bootloader. Have you checked that OEM unlocking is toggled on in Settings>Developer Options?

Furthermore, are you using the script to re-lock or are you manually flashing the commands? Do you see all the commands proceed with an OKAY? I've managed to re-lock the bootloader on my XT1642 with this firmware, though I manually flashed each command (copy paste into the ADB terminal) to check each stage was successful.
[Moto G4 Plus Guides, News, & Discussion] shilagh:
Thanks bro for this great information.probably I forgot to lock OEM

1-can I again use this ROM to lock the OEM ,or is there any problem

2-whether I would be able to take official updates from Motorola with unlocked bootloader+stock recovery

Once again thanks bro.have a nice day
[Moto G4 Plus Guides, News, & Discussion] echo92:
1)There shouldn't be any problem - I used this stock ROM to re-lock my bootloader, and then unlocked the bootloader again with the original unlock key. As always, locking and unlocking the bootloader will both erase your device.

2)OTA updates do not appear to check if your bootloader is locked or unlocked. What you will need is a fully stock system - stock system, kernel, OEM, recovery and no modifications (even changing the system read-only status or debloating your device may stop OTA updates from working). If you're wanting to revert back to stock for the Oreo OTA and you are already on the NPJS25.93-14-18 firmware, you could keep a copy of this firmware around, then re-flash the firmware with the following fastboot commands - these commands will not re-lock your bootloader and should keep your data, but you will want to back up regardless.

fastboot flash partition gpt.bin
fastboot flash bootloader bootloader.img
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 reboot
[Moto G4 Plus Guides, News, & Discussion] shilagh:
Whether can i lock the bootloader just by typing fastboot flashing lock without the need of full stock ROM file
[Moto G4 Plus Guides, News, & Discussion] echo92:
I would not recommend it. Though you could use the OEM locking commands (I'm not sure if fastboot flashing lock works for our device, also not sure where you got it from), i.e. the 2 initial OEM lock begin commands and the last OEM lock command, if you have any modifications to your device's firmware, you may brick your device. This is likely because a locked bootloader is much stricter about firmware integrity - on boot, the bootloader checks key partitions such as your kernel, recovery, system and other partitions to verify they are completely unmodified. If you don't flash a fresh copy of the firmware, you run the risk of your device failing these checks and you bricking your device. Though the file is big, I would recommend you follow all the commands, including re-flashing the firmware, unless you are completely certain your firmware is clean. Besides, this firmware is what keeps your device running, surely it'd be best to do everything properly to make sure your device still operates well?
[Moto G4 Plus Guides, News, & Discussion] rybshik:
NPJS25.93-14-18 Telus Canada

The issue is minor - the newest firmware seems to be not friendly to the (outdated) WEP WiFi protocol, switching to the WPA protocol solves the problem.

I got an XT1641 from Ebay.ca, the seller cells locally in Canada.

The phone did automatic OTA update to NPJS25.93-14-18 and shows channel tkpca (Telus Canada). So it should be good for Canada/USA.

I am not sure whether it's the same firmware as the leaked one for EU/UK/Brazil, though.

NPJS25.93-14-18

Security patch April 1, 2017

BL: B1.07 (sha-f9b89ba, 2017-11-07)

baseband: M8952_70030.25.03.62.02R ATHENE_LATAM_CUST

build.fingerprint: motorola/athene_f/athene_f:7.0/NPJS25.93-14-18/3

Blur_Version.25.236.3.athene.retail.en.US

software channel: tkpca (Telus Canada)
[Moto G4 Plus Guides, News, & Discussion] shilagh:
Thanks a lot bro all doubt regarding flashing stock rom are clear now

Well I get to know about the code (fastboot flashing lock) from pixel device. As you mentioned above the stock rom should be clean and free from any modifications in pixel device too

The Reason behind relocking bootloader is that moto g5/+/s got soak test of Oreo. now it is the turn of moto g4+ lineup hope we get official Oreo from moto cheers:fingers-crossed:
[Moto G4 Plus Guides, News, & Discussion] echo92:
Yeah, I'm not sure if that fastboot flashing lock command works on our devices - you're better using the OEM lock commands.

You do not need to re-lock your bootloader to prepare for Oreo whenever it arrives - so long as your device is running a stock, clean ROM, formally updated to the latest stock ROM available (which of writing is the April 2018 security patch firmware), you should get Oreo OTAs without issue. OTA updates do not care about unlocked or locked bootloader status.
[Moto G4 Plus Guides, News, & Discussion] kman46:
I flashed this ROM on my xt1643 model with stock recovery without locking bootloader. now when I try to flash twrp it gives me following error. Help !!!
[Moto G4 Plus Guides, News, & Discussion] strongst:
Fastboot boot twrp.img

???

Why you doing this?
[Moto G4 Plus Guides, News, & Discussion] shilagh:
Bro what about recovery ,bootloader,modem partition will they update to latest one when I update to the latest OTA firmware or they remain untouched.
[Moto G4 Plus Guides, News, & Discussion] strongst:
They will be updated if needed, especially modem. Recovery maybe and bootloader too.

Edit: typo corrected model=modem and not=too :D
[Moto G4 Plus Guides, News, & Discussion] echo92:
Just a slight correction to strongst's reply above, the OTA should update your bootloader, the script with the OTA will flash whatever bootloader the OTA has included. Thus, if you update, be very careful if you choose to downgrade and take ota updates.

---------- Post added at 09:56 PM ---------- Previous post was at 09:53 PM ----------

What TWRP are you attempting to flash and when you flashed this stock firmware, did you perform a full flash, with all commands?

Try another USB port and ensure you're using the original USB cable or a high quality data cable.
[Moto G4 Plus Guides, News, & Discussion] strongst:
Thanks for the heads up echo92 :good: corrected the typos above cause the post didn't make sense before, need to go to bed now :rolleyes:
[Moto G4 Plus Guides, News, & Discussion] Gaminwarrior:
Software update

Okay so as this firmware is singed by Motorola I am curious to know that after flashing this (whichi I have already flashed on my XT1643) will I get ota updates and while flashing I have already locked my oem so back to the point if get ota updates so can I just simply download them and install or would it be recommended to download the zip file of it and flash it with the same procedure using fastboot over this firmware:rolleyes::confused:
[Moto G4 Plus Guides, News, & Discussion] echo92:
1)If you've flashed NPJS25.93-14-18 onto your XT1643, you should get the Oreo OTA update whenever Motorola gets round to our device.

2)You should receive OTA updates direct to your device. As an aside, you do not need to have a locked bootloader to receive OTA updates - the main requirement is having the correct firmware build for your software channel (which NPJS25.93-14-18 is for retin, amongst other channels). However, a locked bootloader is useful as you cannot have mismatched bootloader and firmware with a locked bootloader - such a mismatch has been problematic for using OTA updates, to the point it's hard bricked devices with unlocked bootloaderst that have downgraded their firmware and used OTA updates.

3)If you wanted to flash an OTA from XDA or perhaps the leaked soak test OTA whenever that may arrive, you would have to flash this via stock recovery - OTA updates are not flashable via fastboot.
[Moto G4 Plus Guides, News, & Discussion] ____Mdd:
It depends on software channel of your device,

What's your device's software channel ?

Firmware in OP is for Indian, Brazil and mostly Asian countries, but it can work on most/all retail devices of different regions too, but can break software updates on other regions..
[Moto G4 Plus Guides, News, & Discussion] rybshik:
Do you imply that modem/radios are essentially the same and all frequency bands (including those for other regions) are available in the firmware? What about LTE bands, for example
[Moto G4 Plus Guides, News, & Discussion] Gaminwarrior:
Software channel

I have retin software channel
[Moto G4 Plus Guides, News, & Discussion] ____Mdd:
I have searched most keywords in TWRP backup of 'Firmware' (it's Modem) using Hex Viewer.

I got every region/country in it.

Ican confirm it contains files of other regions too, that's why it works fine on every device.. Same with FSG, it also has same result..

---------- Post added at 10:20 AM ---------- Previous post was at 09:33 AM ----------

Yes, this firmware is meant for Indian devices, you will have updates when available..
[Moto G4 Plus Guides, News, & Discussion] StevePC:
a million thanks

Came across this thread after much searching and frustration after bricking my Moto G4 XT1622. I'd never had such a bad hard brick before - it wouldn't even turn on. Managed to get to bootloader after using blankflash (thanks to Outfield303) and then managed to find this thread and flashed the NPJS25.93.14.18 build. Much relieved so many, many thanks to ratagupta1998. :):):):)
[Moto G4 Plus Guides, News, & Discussion] kman46:
I tried fastboot flash recovery twrp.img but it didn't work so tried booting into recovery still didn't work

---------- Post added at 05:38 PM ---------- Previous post was at 05:35 PM ----------

I tried the latest twrp version available and also the previous version didn't work for me. Yes I did full flash without locking the bootloader commands. After rebooting atleast 3 times I tried flashing twrp as that ghost screen is annoying AF. I used the best cable I had will try again with the original cable.
[Moto G4 Plus Guides, News, & Discussion] Gaminwarrior:
OKAY THANKS SO NOW MOTOROLA HAS STARTED LOOKING FOR PARTICIPANTS WHO CAN COME IN MOTOROLA FEEDBACK NETWORK AND DOWNLOAD THE BETA OREO FOR MOTO G4 PLUS SO CAN I JOIN IT AND DOWNLOAD THE SOAK TEST AND TEST IT WITHOUT ANY PROBLEMS:cool: