• Introducing XDA Computing: Discussion zones for Hardware, Software, and more!    Check it out!

Stock N/O Firmware [Apr 01/Dec 01 Security Patch][fastboot][7.0/8.1]

Search This thread

rajatgupta1998

Senior Member
Jan 12, 2015
1,122
3,502
23
Shimla
Moto G4 Plus
OnePlus 6
Disclaimer: I am not responsible for anything that happens as a result of flashing these files.

Latest Build Nougat:NPJS25.93-14-18 Tested on: All retail variants: XT1621, XT1622, XT1640, XT1641, XT1642, XT1643, XT1644
Latest Build Oreo: OPJ28.111-22-1 Tested on: All retail variants: XT1621, XT1622, XT1640, XT1641, XT1642, XT1643, XT1644

Note: Motorola doesn't allow downgrading so once u flash O via OTA/Fastboot it isn't recommended to go back to N or any older build than OPJ28.111-22 .

Downloads:
Stock N: ATHENE_NPJS25.93-14-18_cid50_subsidy-DEFAULT_regulatory-DEFAULT_CFC.xml.zip
Stock O: ATHENE_OPJ28.111-22-1_cid50_subsidy-DEFAULT_regulatory-DEFAULT_CFC.xml.zip


Note: If you're looking for a TWRP flashable version instead, please download that zip from the thread below, thanks to @Jleeblanch for providing this zip. Keep in mind that you can't take OTAs on this version as you'll be having TWRP and these zips don't upgrade your bootloader/gpt.

[ROM] TWRP Flashable Stock Firmware [7.0][8.1.0]

Procedure:

You must already have ADB and fastboot setup, check here if you haven't already as using adb/fastboot isn't within the scope of this thread.
How to Install ADB on Windows, macOS, and Linux

1. Download the file and extract the zip archive
2. Extract all the files to your fastboot folder. (Not needed if you have adb and fastboot added to the path, if you want to know how to do this, check this guide: How to Use ADB or Fastboot From Any Directory on your Windows/Linux PC)
3. Restart the device in fastboot/bootloader mode and connect to your PC.
4. Make sure the system detects the device in fastboot mode, to verify this your command window/terminal shows a serial number when you type:
Code:
fastboot devices

5. Use the following commands now or you can use the flash scripts provided as attachments to this post:

NOTE: SKIP the oem lock begin and the oem lock commands if you dont want to lock your bootloader

Linux users will need to change the extension to .sh and add sudo before each command or directly run it as a root user .

To simply flash, run the "OEM Flash" file; to lock the bootloader, run "OEM Lock" file.

Manual method:

Code:
fastboot oem lock begin
fastboot oem lock begin
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 erase userdata
fastboot erase customize (optional: will erase any customizations if ordered through motomaker)
fastboot erase clogo (optional: will erase the custom boot logo if ordered through motomaker)
fastboot oem lock
fastboot reboot


Note: Many people have reported than flashing stock ROM after flashing a 64 bit Pie custom ROM leads to loss of IMEI. Just in case this happens to you, the fix has been made available by @Heeth21 . Also, some people suffer from having messed up Baseband, fingerprint detection or wrong IMEIs. Checkout both the threads here:

[Guide] [XT16XX] [Solve] Moto G4/Plus IMEI=0 issue.


[Guide] [XT16XX] [Solve] G4+ Baseband/Network/Volte issue, Lost 1 IMEI & fingerprint


For someone who has hardbricked his device , please refer to the following thread to get the raw bootloader and partition table and then flash the ROM as mentioned above.

[GUIDE] Moto G4 Plus HardBrick SOLVED - ULTIMATE UNBRICKING GUIDE


Credits:
TeamReviver
Motorola Mobility LLC
Android File Host
XDA-Developers
 

Attachments

  • flash-script.zip
    638 bytes · Views: 49,320
Last edited:

moonlightdrive

Senior Member
Oct 5, 2015
279
210
Argentina
Thanks OP, i have a question, i am right now using NPJ25.93-11 from november 2016 on my XT1641. Can i just enter those commands:

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

without loose any data? thanks in advance.
 

echo92

Senior Member
Jan 1, 2017
3,732
1,989
Plymouth
Thanks OP, i have a question, i am right now using NPJ25.93-11 from november 2016 on my XT1641. Can i just enter those commands:



without loose any data? thanks in advance.

Those commands look okay - as always, try to back up your data as much as you can before flashing, in case you have to factory reset your device. I personally would also include 'fastboot erase cache' as a command (without the quotes), to wipe your cache, which shouldn't affect your data. You may experience a longer initial boot time as your system rebuilds the cache.

It's up to you if you wish to flash and update your gpt and bootloader as well - I don't know if not updating to the latest bootloader and gpt may affect future updates.
 

moonlightdrive

Senior Member
Oct 5, 2015
279
210
Argentina
Those commands look okay - as always, try to back up your data as much as you can before flashing, in case you have to factory reset your device. I personally would also include 'fastboot erase cache' as a command (without the quotes), to wipe your cache, which shouldn't affect your data. You may experience a longer initial boot time as your system rebuilds the cache.

It's up to you if you wish to flash and update your gpt and bootloader as well - I don't know if not updating to the latest bootloader and gpt may affect future updates.

Thank you for your complete answer:good:. I will take your suggestion of wiping cache.
 

echo92

Senior Member
Jan 1, 2017
3,732
1,989
Plymouth
Thank you for your complete answer:good:. I will take your suggestion of wiping cache.

Good luck with flashing - also, might be worth flashing the logo.bin too, so your flashing list would look more like (if including the gpt and bootloader):

Code:
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
 
Last edited:

moonlightdrive

Senior Member
Oct 5, 2015
279
210
Argentina
Thanks OP, i have a question, i am right now using NPJ25.93-11 from november 2016 on my XT1641. Can i just enter those commands:



without loose any data? thanks in advance.

EDIT:


I report that it works perfectly (without loss of data).

---------- Post added at 02:36 PM ---------- Previous post was at 02:34 PM ----------

Good luck with flashing - also, might be worth flashing the logo.bin too, so your flashing list would look more like (if including the gpt and bootloader):

Code:
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

I just finished the flashing process, and it's all ok, everything works good now. thanks for helping me!:)
 

rajatgupta1998

Senior Member
Jan 12, 2015
1,122
3,502
23
Shimla
Moto G4 Plus
OnePlus 6
EDIT:

I report that it works perfectly (without loss of data).

---------- Post added at 02:36 PM ---------- Previous post was at 02:34 PM ----------

Good luck with flashing - also, might be worth flashing the logo.bin too, so your flashing list would look more like (if including the gpt and bootloader):



I just finished the flashing process, and it's all ok, everything works good now. thanks for helping me!:)
Cool, will add it to the OP that it works fine on xt1641
 

flroots

Senior Member
Sep 12, 2012
425
28
How does one know which variants the referenced stock ROM applies to? I'm supposing it's any phone that lists NPJS25.93-14-4 under build number. Also, is this an official build direct from Motorola?
 

rajatgupta1998

Senior Member
Jan 12, 2015
1,122
3,502
23
Shimla
Moto G4 Plus
OnePlus 6
How does one know which variants the referenced stock ROM applies to? I'm supposing it's any phone that lists NPJS25.93-14-4 under build number. Also, is this an official build direct from Motorola?

Yes the ROM is officially signed by moto. Initial upload was done by the Moto Firmware team. It is confirmed to work on XT1641 and XT1643. Just like the Dec 1 Security firmware, this should probably work on the xt164* devices, as long they are retail versions. :good:
I will ask more people to try the same. :good:
 

felipemorais_

Member
Dec 10, 2014
11
6
Yes the ROM is officially signed by moto. Initial upload was done by the Moto Firmware team. It is confirmed to work on XT1641 and XT1643. Just like the Dec 1 Security firmware, this should probably work on the xt164* devices, as long they are retail versions. :good:
I will ask more people to try the same. :good:

Can confirm it works on XT1640
 

ivan290

Senior Member
May 9, 2012
628
152
www.youtube.com
Anyone try it on xt1621?

Enviado desde donde estoy ahora. ¿Que esperabas?

I dit, it works fine!

---------- Post added at 05:32 PM ---------- Previous post was at 05:31 PM ----------

It is laggy, am i the only one?????
It only happens when i flash the firmware from PC!
When i install marshmallow and i updated to Nougat it worked so smooth. What could be the problem?
 

gutosilva

Senior Member
Mar 11, 2016
65
5
Is this rom compatible with XT1626? If yes: can anyone share a screenshot with system infos? Thanks in advance.
 

Top Liked Posts

  • There are no posts matching your filters.
  • 164
    Disclaimer: I am not responsible for anything that happens as a result of flashing these files.

    Latest Build Nougat:NPJS25.93-14-18 Tested on: All retail variants: XT1621, XT1622, XT1640, XT1641, XT1642, XT1643, XT1644
    Latest Build Oreo: OPJ28.111-22-1 Tested on: All retail variants: XT1621, XT1622, XT1640, XT1641, XT1642, XT1643, XT1644

    Note: Motorola doesn't allow downgrading so once u flash O via OTA/Fastboot it isn't recommended to go back to N or any older build than OPJ28.111-22 .

    Downloads:
    Stock N: ATHENE_NPJS25.93-14-18_cid50_subsidy-DEFAULT_regulatory-DEFAULT_CFC.xml.zip
    Stock O: ATHENE_OPJ28.111-22-1_cid50_subsidy-DEFAULT_regulatory-DEFAULT_CFC.xml.zip


    Note: If you're looking for a TWRP flashable version instead, please download that zip from the thread below, thanks to @Jleeblanch for providing this zip. Keep in mind that you can't take OTAs on this version as you'll be having TWRP and these zips don't upgrade your bootloader/gpt.

    [ROM] TWRP Flashable Stock Firmware [7.0][8.1.0]

    Procedure:

    You must already have ADB and fastboot setup, check here if you haven't already as using adb/fastboot isn't within the scope of this thread.
    How to Install ADB on Windows, macOS, and Linux

    1. Download the file and extract the zip archive
    2. Extract all the files to your fastboot folder. (Not needed if you have adb and fastboot added to the path, if you want to know how to do this, check this guide: How to Use ADB or Fastboot From Any Directory on your Windows/Linux PC)
    3. Restart the device in fastboot/bootloader mode and connect to your PC.
    4. Make sure the system detects the device in fastboot mode, to verify this your command window/terminal shows a serial number when you type:
    Code:
    fastboot devices

    5. Use the following commands now or you can use the flash scripts provided as attachments to this post:

    NOTE: SKIP the oem lock begin and the oem lock commands if you dont want to lock your bootloader

    Linux users will need to change the extension to .sh and add sudo before each command or directly run it as a root user .

    To simply flash, run the "OEM Flash" file; to lock the bootloader, run "OEM Lock" file.

    Manual method:

    Code:
    fastboot oem lock begin
    fastboot oem lock begin
    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 erase userdata
    fastboot erase customize (optional: will erase any customizations if ordered through motomaker)
    fastboot erase clogo (optional: will erase the custom boot logo if ordered through motomaker)
    fastboot oem lock
    fastboot reboot


    Note: Many people have reported than flashing stock ROM after flashing a 64 bit Pie custom ROM leads to loss of IMEI. Just in case this happens to you, the fix has been made available by @Heeth21 . Also, some people suffer from having messed up Baseband, fingerprint detection or wrong IMEIs. Checkout both the threads here:

    [Guide] [XT16XX] [Solve] Moto G4/Plus IMEI=0 issue.


    [Guide] [XT16XX] [Solve] G4+ Baseband/Network/Volte issue, Lost 1 IMEI & fingerprint


    For someone who has hardbricked his device , please refer to the following thread to get the raw bootloader and partition table and then flash the ROM as mentioned above.

    [GUIDE] Moto G4 Plus HardBrick SOLVED - ULTIMATE UNBRICKING GUIDE


    Credits:
    TeamReviver
    Motorola Mobility LLC
    Android File Host
    XDA-Developers
    21
    Great news, fastboot flashable firmware of stock Oreo 8.1 build OPJ28.111-22 is now available. The flashing instructions are same just like for 7.0, and are available in the OP of the thread.

    Note: Tested on 1643 Model for now, other people can experiment.

    Downloads:
    ATHENE_OPJ28.111-22_cid50_subsidy-DEFAULT_regulatory-DEFAULT_CFC.xml.zip

    MD5: 3380255b16d4f7c96517f1c4bd7e6604
    SHA1: d988e30e7d719b4a952c4c89b50718eb8e9e539e

    Also, I will be sharing a newer blankflash zip soon, so those who have hard-bricked their devices can recover them now, will update accordingly ;)

    Edit 04.15 PM IST:
    Here's a new blankflash file from OPJ28.72 build, this should work on OPJ28.111-22 as the bootloader version is same.
    Obviously I can't test it since I haven't bricked my phone. Any other news shall be given out whenever it appears.

    Download:
    blankflash_athene_8.1.0_OPJ28.72.zip
    MD5: ada83fc6809218084739ca0cc87c9f4a

    @strongst @IronTechmonkey @echo92 please help out the community as before! Respect to you all for your activity on XDA :)
    9
    Update

    The NPJS25.93-14-18 firmware with April 01 2018 Security Patch has been tested enough on all the available retail models of Moto G4&Plus, so the thread OP and title have been updated accordingly. I have moved from Android File Host to SourceForge for better availability of download mirrors. Do not mirror files unnecessarily as it creates confusion for all.
    Direct download link:
    Sourceforge
    9
    Someone uploaded fastboot flashable ROM (NPJS93-14-13) here: https://androidfilehost.com/?fid=745849072291698466