yashsingh1/xdaforums huggingface dataset:
[Moto G4 Plus Guides, News, & Discussion] rajatgupta1998:
The subject though :confused: . Try flashing this stock ROM if you haven't already updated to NPJS25.93-14-8 (June 1 Security).

The behavior is totally weird. If flashing stock ROM doesn't help, you might want to visit the service center. :good:
[Moto G4 Plus Guides, News, & Discussion] SampleMan:
Hi i'm only beginner, so i have Moto G4 Plus XT1642 and installed XenonHD rom on it. I had Marshmellow Stock and after it i installed LineageOS Nougat via TWRP and now i have XenonHD Nougat. And now i have one question can i flash this rom only for Modem, because my fingerprint verification and WiFi started lag. Thanks for answer!:D
[Moto G4 Plus Guides, News, & Discussion] echo92:
Hmm, you could try to download the modem from the NPJS25.93-14-4 TWRP thread (here https://xdaforums.com/moto-g4-plus/how-to/fxz-flashable-stock-npjs25-93-14-4-t3623010) and flash it in TWRP. This should update your modem to a Nougat modem.

If it doesn't work, I'm not sure if you can simply flash the modem from this stock ROM. You may have to flash the stock ROM to bring your device firmware up to Nougat, then reflash TWRP and Xenon.

Of course, flashing the stock ROM (without using the locking commands, as your bootloader may stay unlocked) may wipe your device clean - backup all your data and keep it off your internal storage until you're done with the flash.
[Moto G4 Plus Guides, News, & Discussion] SampleMan:
Thanks I will try when I will be at home:good:
[Moto G4 Plus Guides, News, & Discussion] SampleMan:
Thank you so much it's worked with the TWRP modem.:)
[Moto G4 Plus Guides, News, & Discussion] andres88_:
Has anyone got the June security parch update??
[Moto G4 Plus Guides, News, & Discussion] Ludvbal:
Hi

Yes you can download the ota on my mega here

https://mega.nz/#F!V1Y02agL!GZeMIM_Xa-cVK93WL0oFLg

Envoyé de mon Moto G (4) en utilisant Tapatalk
[Moto G4 Plus Guides, News, & Discussion] echo92:
Given it's official stock firmware from Motorola, it should work (and besides, from your other post, you already updated to the same version via OTA). If it wasn't stock firmware, it wouldn't flash on locked or unlocked bootloaders with stock recovery, given it wouldn't have the right cryptographic keys to be accepted.

However, it's your device, your choice to flash this.

Also, please don't quote the entire opening post if possible...
[Moto G4 Plus Guides, News, & Discussion] DennisJKA:
This helped me relocking my bootloader, thanks!

One thing I've been wondering though is, why my phone still first boots into fastboot mode. I then have to manually select start to boot it up properly. I thought locking the bootloader would get rid of that. How, if it's possible at all, can I make my phone boot directly into Android?

//EDIT: fastboot oem fb_mode_clear fixed it. Should've searched before asking xD
[Moto G4 Plus Guides, News, & Discussion] shasrahman:
can someone please provide me any link to download this NPJS25.93-14-8 whole fiastboot firmware image. i want to flash my moto g4 plus xt1643. but i cant find this NPJS25.93-14-8 firmware image. when i try to flash my device with the old NPJS25.93-14-4 ( MARCH SECURITY PATCH FIRMWARE) it says failed to downgrade the gpt and partition. that is why i want the new firmware image. please someone help me
[Moto G4 Plus Guides, News, & Discussion] echo92:
As tywinlannister7 mentioned to you in the other thread, it's not out yet.

I have no idea when it'll be released - when the June fastboot firmware is released, there'll be a post in the Guides section. You could also check the Motorola Firmware Team's AFH list for when they have the fastboot firmware. https://www.androidfilehost.com/?a=show&w=files&flid=72578

What are you trying to do? Also, attempting to downgrade the GPT and bootloader seems to be a good way to brick your device on the June update. Please don't downgrade if you can... I do not know if you can downgrade without flashing your GPT/bootloader, but if you do, do not accept OTA updates.
[Moto G4 Plus Guides, News, & Discussion] shasrahman:
actually i've just rooted my device and installed lineageos 14.1 but it turns out that i do not want to be on any custom rom. i just want to be on stock motorola firmware. that is why i want to flash my device with official motorola firmware. but the problem is that when i was rooting my device, it was on the latest firmware NPJS25.93-14-8 ( june security patch ). in order to flash it again i need this firmware image. i have tried flashing by NPJS25.93-14-4 ( march security patch) but it is not possible to downgrade the bootloader. that is why i really want this NPJS25.93-14-8 firmware image in order to flash my device.
[Moto G4 Plus Guides, News, & Discussion] echo92:
Ah, and you don't have a TWRP backup of the stock ROM before you flashing LineageOS?

I do not know if this will work on the June update (should do, however), if you still have TWRP on your device, then you could flash the March 2017 stock ROM TWRP flashable: https://xdaforums.com/moto-g4-plus/how-to/fxz-flashable-stock-npjs25-93-14-4-t3623010/post73085803 This won't affect your GPT, bootloader or modems.

Again, I do not know if you could flash the stock fastboot ROM without flashing the GPT/bootloader partitions, or whether fastboot would block the downgrade. If it is possible, then you'd want to avoid accepting the June OTA as it could brick your device.

Probably the safest thing however is to wait for the June fastboot ROM to arrive.
[Moto G4 Plus Guides, News, & Discussion] shasrahman:
Thanks man. I think you are right. I should wait for the june security patch firmware image. Do you have any idea about when it is going to be available?
[Moto G4 Plus Guides, News, & Discussion] rajatgupta1998:
Update

New fastboot firmware for June 1 Security is now available.

Download:

Thanks to [MENTION=5544372]DilanF98[/MENTION] and Fernando Stalter for the news regarding the availability of the firmware.

Thanks to Rutwik Patel , [MENTION=7568614]lCrD512[/MENTION] and Vivek for their efforts :p
[Moto G4 Plus Guides, News, & Discussion] lCrD512:
NPJS25.93-14-8 June stock images

https://www.androidfilehost.com/?fid=889764386195918131
[Moto G4 Plus Guides, News, & Discussion] thorin0815:
Is this the same firmware which produced problems with tywinlannister7 phone?
[Moto G4 Plus Guides, News, & Discussion] lCrD512:
I have flashed this on my device G4 Plus XT1643. No issues everything was fine.
[Moto G4 Plus Guides, News, & Discussion] echo92:
By the way, if you've formally updated to NPJS25.93-14-8 (June 2017 security update), it appears highly inadvisable to flash a bootloader/GPT from an older stock ROM, for example if you were reverting back to stock from a custom ROM (though fastboot should stop you from flashing an older bootloader/GPT). Also, it appears that downgrading from the June update (without flashing GPT/bootloader) and then attempting to update via OTA is also highly inadvisable. Both scenarios appear to be creating hard bricks which our current blankflash cannot recover from - before, we could get away with it, now, it appears downgrading is rather risky. Be aware.
[Moto G4 Plus Guides, News, & Discussion] HueyT:
If u like to play with custom ROMs, I'd skip 6/17 stock ROM and stay on 3/17 stock ROM.

If u want to stay stock and not flash back and forth, then go ahead and use 6/17 stock rom
[Moto G4 Plus Guides, News, & Discussion] kevinarol:
Cool!! Thanks for the file, I will download for backup :highfive:
[Moto G4 Plus Guides, News, & Discussion] peladoro:
Just a question... I successfully updated to 14-8 with updated bootloader I've a backup on twrp but if I desire I can fastboot this without issue since I'm on 1-06 bootloader...
[Moto G4 Plus Guides, News, & Discussion] sujeet_kumar:
Is it with June 1 Security Patch ?

Is it with June 1 Security Patch ?

Because with march security patch on moto g4 plus I have build no. NPJS25.93-14-4 4, which stock rom available on xda-froum is not officially signed.

And you said its the June 01 security patch then

1. why same build number as of march security patch and

2. this thread is created in may,then how it is possible that it has June 01 security patch ?

I am on June 01 Security Patch with build number NPJS25.93-14-8.
[Moto G4 Plus Guides, News, & Discussion] peladoro:
Lol ??? 14-4+4=14-8
[Moto G4 Plus Guides, News, & Discussion] justbfree:
So if I flash 6/17 stock rom I won't be able to use custom roms afterwards?
[Moto G4 Plus Guides, News, & Discussion] HueyT:
High brick risk to downgrade to older stock or custom ROMs
[Moto G4 Plus Guides, News, & Discussion] justbfree:
Is stock rom better than custom roms? I never really used the stock rom actually... I flashed a custom on the very first day I bought the phone :)
[Moto G4 Plus Guides, News, & Discussion] HueyT:
I like both so I'm staying on 3/17 Nougat base. Stock gives me more reliable LTE for Verizon than custom
[Moto G4 Plus Guides, News, & Discussion] echo92:
If you're on the June 2017 update and want to use a custom ROM, perhaps it's wise to make a TWRP backup of your stock ROM before flashing the custom ROM. That way, instead of having to flash a stock ROM via fastboot, you could revert to your stock TWRP backup, then flash a stock recovery (and logo/boot images if need be) from the June fastboot ROM. Now, you've reverted back to stock without having to flash an older firmware via fastboot (which is the risky bit)
[Moto G4 Plus Guides, News, & Discussion] HueyT:
Which exact partitions are bricking people on this latest June stock rom?

I don't think people realize the xtra partitions that FASTBOOT flashes onto the phone compared to TWRP. Flashing \system, \data, \boot, \FSG, \Persistent via TWRP rarely causes hard brick. Fastboot flashing can mess up your partitions, IMEI, etc. I use fastboot to restore stock as last resort. It's much safer to use TWRP to flash, backup, restore roms.

Here is a link that explains the different partitions in TWRP and in FASTBOOT flashing:

https://xdaforums.com/moto-g/general/motorola-moto-g-partitions-explained-t3418644
[Moto G4 Plus Guides, News, & Discussion] rybshik:
So it works on Athene XT1625 Moto G4 (without "Plus")? Sorry for my OCD :)

twrp-3.1.1-0-athene.img or twrp-3.1.1-athene_shreps.img

Which one do you use?
[Moto G4 Plus Guides, News, & Discussion] echo92:
From what I've observed, the likely culprits seem to be either the GPT or bootloader partitions (or both) that are included with the June update. The bricking incidents I've been tracking appear to have involved a full firmware downgrade (including bootloader/GPT), or alternatively downgrading without touching GPT/bootloader (which does not appear to brick, from the few reports I've seen), then accepting an OTA (which does brick).

Seems to have echoes of what happened when users flashed the Lollipop soak test and attempted to downgrade.... https://xdaforums.com/moto-x-2014/general/warning-downgrade-bootloader-partition-t3105147)

As you mentioned, TWRP only backs up and restores a limited (though all useful and relevant) number of partitions, seems to make a copy of the partitions themselves (as an aside, I wonder why the stock recovery can't back up in a similar fashion?). Thus, a TWRP restore should be a genuine copy of your device when the backup was taken. I've just restored my TWRP backup of the stock June ROM (made in TWRP 3.1.1 shrep's version) from AOSPExtended 4.4 to the stock NPJS25.93-14-8 and it looks to be running okay.

Furthermore, TWRP doesn't seem able to see/flash the bootloader/GPT, whereas fastboot certainly has access to those partitions and more, making fastboot a more powerful tool, but more dangerous too. That being said, the fastboot firmware images generally should be safe to flash for updating/flashing on the same ROM, though as both you and I have mentioned, using fastboot firmware to downgrade is seriously not recommended when the June update is involved...
[Moto G4 Plus Guides, News, & Discussion] rybshik:
not necessarily . OTA updates are very picky (probably, for a good reason) and check many fine and minor ROM details including if the system image was previously mounted read-only or not
[Moto G4 Plus Guides, News, & Discussion] echo92:
That's a fair point - as I understand it, TWRP takes a partition level copy of those partitions as a backup. Of course, it doesn't know what alterations may have occurred on those partitions prior to the backup. OTAs, especially the last one, appeared to be patches rather than full files (and probably do a signature verification of the partitions

As for your other questions, I've not seen any reports of the XT1625 being flashed with the June fastboot ROM yet, so it's up to you if you wish to try and report back. Given it's a Motorola stock ROM, it should work, but ensure you back up your data first and move it off your device. Up to you if you choose to re-lock your bootloader or not.

Of course, if you flash this fastboot ROM, it'll remove TWRP and root from your device. You may be able to avoid a wipe of your data by omitting these fastboot commands:

fastboot erase userdata
fastboot erase customize
fastboot erase clogo

But be prepared to perform a factory reset if your system is not stable.
[Moto G4 Plus Guides, News, & Discussion] alejo.z:
Thanks! working fine on XT1621 :highfive:
[Moto G4 Plus Guides, News, & Discussion] rajatgupta1998:
I had earlier created this thread for the March firmware. And now updated it with the June firmware. The end of OP shows the last updated date/time [emoji57][emoji58]
[Moto G4 Plus Guides, News, & Discussion] :
Here is my bottom line noob question: I am most interested in flashing the June 1 update because it has a more secure bootloader, so if I flash it at all, it will be via fastboot so the bootloader is the latest. I will then flash the sheep's 3.1.1 TWRP and make a backup. If I am understanding what I am reading correctly, as long as I flash a ROM is a post-June security patch, there should not be an issue. The trouble is with downgrading. Thanks in advance for confirming...
[Moto G4 Plus Guides, News, & Discussion] echo92:
1)Yes, you'll be flashing this June stock update with fastboot.

2)Don't forget in order to flash TWRP/any custom recovery/ROM, you'll need an unlocked bootloader (which voids your remaining warranty and wipes your device in the process). If you've already unlocked your bootloader, then you could choose to boot into TWRP rather than flash TWRP, so your stock recovery is still in place.

3)Yes, the trouble has been with downgrading with stock (Motorola) ROMs from the June stock update. I have seen reports that users have been able to downgrade without flashing the GPT/bootloader, but it's risky. Once you're on the June update, it seems that June stock ROMs and above are safest for flashing. Custom ROMs do not appear to be affected by this requirement (since they don't affect the bootloader/GPT), but the newer the custom ROM, the better for bug fixes and features.
[Moto G4 Plus Guides, News, & Discussion] :
Thank you...I see you are all over this!
[Moto G4 Plus Guides, News, & Discussion] jyoti.id:
I read all the comments! I understand that if I flash the latest update it will be risky to DOWNGRADE! Here is my question! Is it also risky if I flash the Exact Same Latest June Firmware (means NO DOWNGRADING "Theoritically") whenever i need to go back to Stock? Though I hardly use stock, I use custom roms most of the time!
[Moto G4 Plus Guides, News, & Discussion] lCrD512:
For me downgrading has always been risky. Flashing latest firmware is safe but if you wish to stay on current firmware its better not to upgrade than upgrading and downgrading back.
[Moto G4 Plus Guides, News, & Discussion] peladoro:
Hey! I was on my carrier's ota for 14-4...had to fastboot to completely return to stock (14-4) then used the file to update to 14-8 provided in other thread. I was on lineage and yesterday used the full 14-8 provided here to return to stock...so all good
[Moto G4 Plus Guides, News, & Discussion] drmuruga:
Upgrade to june security patch version itself brick G4 plus ?

Or after upgrade,

1) downgrade to previous version is bricking ?

2)If I flash custom roms of latest security patch also brick ?

3)Or if I reflash June security patch rom via fastboot can brick ?

4)If I never flash older version stock , there will be no hard brick ?
[Moto G4 Plus Guides, News, & Discussion] echo92:
If you're updating from the March update (or older) and not previously been on the June update, the OTA and/or the fastboot shouldn't brick your device.

1)Yes - if you were on the June update and attempted to flash the previous stock ROMs (March 2017 or earlier), with flashing GPT/bootloader, then a brick occurred. Other incidents I've noted have involved flashing December 2016 or earlier stock ROMs (without flashing GPT/bootloader), then taking the OTA (e.g. from the December 2016 to March 2017 patch), and the OTA's caused a brick. I have seen one instance of someone downgrading to the March 2017 update, then taking the June OTA, but I don't know if they were on the June update previously (https://xdaforums.com/showpost.php?p=73201148&postcount=111). If you do choose to downgrade without flashing GPT/bootloader, generally do not accept OTAs if you can

2)Custom ROMs shouldn't brick your device, they shouldn't touch your GPT/bootloader (which seems to be the culprits) or your device's firmware. I imagine you could use a custom ROM with an older security patch than June, though best to be on the latest one you can. Before flashing a custom ROM, try to make a backup of your stock ROM in TWRP, so that you can restore back to the stock ROM if you wish.

3)Shouldn't brick, since you're flashing the same signed, Motorola, firmware onto your device, though as with flashing anything to your firmware, be careful and ensure you take your time to flash (and ensure you're flashing the right firmware too...)

4)For now, that seems to be the case yes - we'll have to see what happens when future firmware is released if downgrading is less risky.

In other words, don't downgrade stock ROMs from the June update and you'll be okay :)
[Moto G4 Plus Guides, News, & Discussion] drmuruga:
GREAT. Your answer must clear everybody's doubt about flashing latast firmware, atleast for me. Thank you so much.
[Moto G4 Plus Guides, News, & Discussion] jyoti.id:
So it means: IF - Im On June Update, Needed To Go Back To Stock, Flashed The "June Update Fastboot". It Should Not Brick. Right?
[Moto G4 Plus Guides, News, & Discussion] drdd1979:
usb port doesnt work

usb port doesnt work, What I can do?
[Moto G4 Plus Guides, News, & Discussion] drmuruga:
Yes, shouldn't brick. I flashed latest firmware and twrp then some custom ROMs dualboot patcher then again fastboot flash latest firmware boot with no problem. If any problem , that will be due to flashing previous firmware ( downgrading) not by flashing latest.
[Moto G4 Plus Guides, News, & Discussion] rybshik:
So, to temporary come back to stock firmware (as I highlighted in red) to do one-time OTA , it's NOT sufficient just to do TWRP restore (of the backup of that stock firmware)? It must only be done via fastboot flashing the actual stock (manufacturer) firmware zip? Correct?

I mean the TWRP restored one will NOT be eligible for OTA because the system (read-only) partition has been flagged as accessed/mounted for writing.
[Moto G4 Plus Guides, News, & Discussion] drmuruga:
yes.
[Moto G4 Plus Guides, News, & Discussion] rybshik:
Thank you! Good to know.

If I am not mistaken, FlashFire backup/restore with option RAW will (possibly) achieve that, too
[Moto G4 Plus Guides, News, & Discussion] Khan_007:
please help me

Hello everyone I'm new here .. i want some help.. recently i have rooted my Moto g4 plus XT1643 using elemental X kernel and TWRP recovery and after that this june security update came. I don't know how to manually flash updates after rooting.. I'm still on my stock ROM Except for kernel and Recovery which i have changed for rooting my device .. so now please tell me the procedure of flashing any latest updates manually .. and can i flash updates with different ROM or Kernel etc.. Thanks...
[Moto G4 Plus Guides, News, & Discussion] HueyT:
Stay on March security version (14-4) to prevent bricking if u want to go back and forth between old and new roms. June version (14-8) has high noob brick risk. Fastboot flashing is how u restore to full stock (skip recovery flashing to keep twrp). It's much safer to flash custom roms with TWRP than fastboot flashing stock roms
[Moto G4 Plus Guides, News, & Discussion] ozgurubuntu:
Pls release twrp version :(
[Moto G4 Plus Guides, News, & Discussion] rybshik:
what's wrong with 'twrp-3.1.1-athene_shreps.img'?
[Moto G4 Plus Guides, News, & Discussion] echo92:
Think they might be asking for a TWRP flashable of the NPJS25.93-14-8 update, rather than the TWRP (as an aside, shreps' TWRP works well :))
[Moto G4 Plus Guides, News, & Discussion] ozgurubuntu:
Yes sorry for my poor English :)
[Moto G4 Plus Guides, News, & Discussion] Khan_007:
Sorry I mean to say that can i able to flash the latest OTA's while on stock ROM with Elemental X Kernel,, Except the stock kernel ? Is there any problem to flash the OTA's with custom kernel ? Thanks...
[Moto G4 Plus Guides, News, & Discussion] dhyamato:
Just wondering if the instructions to flash this June security patch/update via fastboot/adb can be used on a stock and locked bootloader on my xt1644? It's currently running the NPJS25.93-14-4 build., March 1, 2017 security patch.
[Moto G4 Plus Guides, News, & Discussion] echo92:
Yes, the fastboot commands listed on the first post are valid for updating on a locked bootloader. Be aware that those commands will wipe your device, so back up your files and keep them off your device until you are finished. You may wish to follow these commands which should update your device and preserve your data (though back up and be prepared to wipe your device should your system become unstable)

The following commands have userdata, customise and clogo wiping removed - you could edit the OEM flash script in the first post to have those commands removed (and match the list below).

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 flash modem NON-HLOS.bin
fastboot erase modemst1
fastboot erase modemst2
fastboot flash fsg fsg.mbn
fastboot erase cache
fastboot reboot

As an aside, once you have formally updated to the June update, if you decide to unlock and flash custom ROMs in the future, ensure that if you decide to return to stock you flash only the June stock ROM or newer.

---------- Post added at 12:24 PM ---------- Previous post was at 12:18 PM ----------

OTAs will not flash on a modified system, they will only flash onto a device with a stock kernel, stock system and stock recovery (I recently read that enabling TWRP's allow system modifications also may prevent OTAs from updating).

You'll be able to download the OTA, but the OTA will either hang TWRP or fail to flash as the signature checks aren't verified. Easiest way to update in that case would be to flash this fastboot ROM (the other way is to flash the March fastboot ROM and then take the OTA).
[Moto G4 Plus Guides, News, & Discussion] dhyamato:
Awesome! Thank you for the confirmation.

Much appreciated.