yashsingh1/xdaforums huggingface dataset:
[Moto G4 Plus Guides, News, & Discussion] anupchopra:
please help to install stock ROM

i install Lineage OS on my Moto G4 Plus, now I want to install stock ROM (default Motorola Moto G4 Plus Rom), i use above process but unable to install stock ROM on Lineage OS, Please HELP
[Moto G4 Plus Guides, News, & Discussion] ksamm97:
Tried locking Nougat stock firmware but getting these errors and can't install nougat.

Check the attachted file below
[Moto G4 Plus Guides, News, & Discussion] echo92:
Okay, can you confirm you're flashing the latest stock ROM onto your device (in one of the .XML files in the fastboot ROM there should be a build version), is this NPJS25.93-14.4, March build?

Also, can you boot into your bootloader, plug your device to your computer and in the adb terminal, type 'fastboot getvar all' without the quotes and post the output here please?
[Moto G4 Plus Guides, News, & Discussion] ksamm97:
What is this command for -"fastboot getvar all"

And i was flashing Software version- "athene-user 7.0 NPJ25.93-11 12 release-keysM8952_70030.25.03.60R"

File- XT1624-XT1643_ATHENE_NPJ25.93-11_cid50_subsidy-DEFAULT_regulatory-DEFAULT_CFC.zip

And i flashed this firmware earlier and i was working.
[Moto G4 Plus Guides, News, & Discussion] echo92:
That command lists some technical information about your device, what model, the latest firmware flashed onto your device, radios (you may wish to blank out your serial numbers) etc.

Anyhow, the fact you're using NPJ25.93-11 firmware seems to be a reason you're having errors. As I mentioned above, you can only lock with firmware of the same build or newer than the firmware on your device. It may be likely that your device was updated to the stock NPJ25.93-14 (Dec 2016 security update) or NPJS25.93-14.4 (March 2017 update), in which case the Nougat firmware you have will not lock your device (but without the 'fastboot getvar info' output, I cannot confirm). Thus, as I suggested earlier, try flashing the March 2017 fastboot ROM.

Also, did you boot into the stock ROM, then toggle OEM unlocking (under Settings>Developer Options) and try relocking again as I suggested above?
[Moto G4 Plus Guides, News, & Discussion] abhi212b:
Brother, We all can read in small Font size too! :P

Instead of posting this.. please let us know the error you are getting! :confused:
[Moto G4 Plus Guides, News, & Discussion] ksamm97:
I was on NPJS25.93-14.4

And I turn on OEM unlocking in the Developer mode.

I used that command see below

E:\mob devs\adb>fastboot getvar all
< waiting for device >
(bootloader) version: 0.5
(bootloader) version-bootloader: moto-msm8952-B0.0E(*)
(bootloader) product: athene_16mp
(bootloader) board: athene_16mp
(bootloader) secure: yes
(bootloader) hwrev: P2A
(bootloader) radio: 4
(bootloader) storage-type: emmc
(bootloader) emmc: 32GB SKHYNIX HBG4a2 RV=08 PV=E4 FV=00000000000000E4
(bootloader) ram: 3GB SKHYNIX LP3 DIE=8Gb M5=06 M6=03 M7=00 M8=5F
(bootloader) cpu: MSM8952
(bootloader) serialno: *************
(bootloader) cid: 0x0032
(bootloader) channelid: 0xc0
(bootloader) uid: C073CE0000000000000000000000
(bootloader) securestate: flashing_unlocked
(bootloader) iswarrantyvoid: yes
(bootloader) max-download-size: 536870912
(bootloader) reason: Volume down key pressed
(bootloader) imei: ***************
(bootloader) meid:
(bootloader) date: 06-30-2016
(bootloader) sku: XT1643
(bootloader) battid: SNN5966A
(bootloader) iccid:
(bootloader) cust_md5:
(bootloader) max-sparse-size: 268435456
(bootloader) current-time: "Sun May 15 3:47:20 UTC 2016"
(bootloader) ro.build.fingerprint[0]: motorola/athene_f/athene_f:6.0.1/M
(bootloader) ro.build.fingerprint[1]: PJ24.139-63/64:user/release-keys
(bootloader) ro.build.version.full[0]: Blur_Version.24.31.64.athene.reta
(bootloader) ro.build.version.full[1]: il.en.US
(bootloader) ro.build.version.qcom: LA.BR.1.3.3-02720-8976.0
(bootloader) version-baseband[0]: M8952_70009.08.03.48R ATHENE_INDIA_DSD
(bootloader) version-baseband[1]: S_CUST
(bootloader) kernel.version[0]: Linux version 3.10.84-g061c37c (hudsoncm
(bootloader) kernel.version[1]: @ilclbld87) (gcc version 4.9.x-google 20
(bootloader) kernel.version[2]: 140827 (prerelease) (GCC) ) #1 SMP PREEM
(bootloader) kernel.version[3]: PT Thu Aug 4 19:33:05 CDT 2016
(bootloader) sbl1.git: git=MBM-NG-VB0.0E-0-g83950b7
(bootloader) rpm.git: git=1dc910e
(bootloader) tz.git: git=9fa1804
(bootloader) hyp.git: git=9fa1804
(bootloader) keymaster.git: git=9fa1804
(bootloader) cmnlib.git: git=9fa1804
(bootloader) aboot.git: git=MBM-NG-VB0.0E-0-g4986429
(bootloader) qe: qe 0/0
(bootloader) frp-state: no protection (75)
(bootloader) ro.carrier: retin
all: listed above
finished. total time: 0.384s
[Moto G4 Plus Guides, News, & Discussion] echo92:
Thanks for the info. As you've now mentioned you previously had NPJS25.93-14.4, then you must flash that build or newer to re-lock your device. https://xdaforums.com/moto-g4-plus/how-to/stock-rom-npjs25-93-14-4-march-1-t3608138 for the stock fastboot NPJS25.93-14.4 ROM. Yes, it's a big download, it's the only ROM we've got new enough that may work in locking your device.
[Moto G4 Plus Guides, News, & Discussion] ksamm97:
What did you get from that command? :confused:
[Moto G4 Plus Guides, News, & Discussion] echo92:
Hmm, not as much as I hoped - it showed you downgraded your system to Marshmallow (and from the looks of it, your bootloader got downgraded too, possibly showing a modified status?). Unfortunately, it didn't show what Nougat firmware you previously had on your system before flashing the MM firmware.
[Moto G4 Plus Guides, News, & Discussion] ksamm97:
But why i can't able to flash that nougat firmware.

and i am unable to flash twrp. :confused:
[Moto G4 Plus Guides, News, & Discussion] echo92:
Your bootloader is still unlocked then, if you can flash TWRP.

Did you flash the March 2017 fastboot ROM (NPJS25.93-14-4) https://xdaforums.com/moto-g4-plus/how-to/stock-rom-npjs25-93-14-4-march-1-t3608138 ?
[Moto G4 Plus Guides, News, & Discussion] ksamm97:
Bro i already posted i can't flash nougat firmware that i have. when i posted that .txt file of error. And i am unable to flash twrp :crying:
[Moto G4 Plus Guides, News, & Discussion] echo92:
Okay, I thought from your post you had only flashed the 93-11 nougat stock firmware (the one you mentioned you had), which wouldn't flash because your device firmware (at least some of it) is too new for that, which is why I was asking if you tried with the latest firmware that we have. So that we can see if those errors still persist with the latest March fastboot ROM.

What error are you getting with TWRP?
[Moto G4 Plus Guides, News, & Discussion] deathnote55:
whats the size of the stock rom file is it 1.1gb ?
[Moto G4 Plus Guides, News, & Discussion] echo92:
It's about that, expanding to 2+ GB once you've unpacked the file.
[Moto G4 Plus Guides, News, & Discussion] marshmallowuser07:
bootloader

bro i am having problem in relocking bootloader, i have xt1643 please help me.
[Moto G4 Plus Guides, News, & Discussion] echo92:
What issues are you having with locking your bootloader?

Bear in mind you need a stock firmware of the same build or newer than the firmware that was previously on your device to lock. What firmware did you have?
[Moto G4 Plus Guides, News, & Discussion] karthikjilla:
an ota came to my mobile after hard reset, i updated it. then my moto g4 plus started to reboot,then the update is finished,after that i have waited about 10 minutes to reboot on its own but my mobile dosen`t seems to be rebooting ,i was in panic state,while download the system update charge was around 98%,. then i tried to hold power button for 10 sec no response, then i tried 20sec,1,mts,5,mts,10 mts but nothing happened, then i tried to reboot into recovery mode that is also not working , then i connect my turbo charge ,i have seen led light was blinking 2sec once while connected to charger,while charging also i have tried to power on in the mobile as the same before connected to charger. but nothing is happening to me,i am very my worried about my device.please help me to fix me. i dont have money to invest in new mobile and even i dont have money to change motherboard please help me!!!
[Moto G4 Plus Guides, News, & Discussion] rahuldholpuria:
It doesn't lock the bootloder

Says invalid sign
[Moto G4 Plus Guides, News, & Discussion] echo92:
This firmware is for Marshmallow (MPJ24.139-63), if you're on Nougat/were on Nougat, it won't work as your bootloader is newer. Use a Nougat stock firmware (they're signed too) to re-lock, especially if you're on the June 2017 (NPJS25.93-14-8) update. Here's the June fastboot ROM: https://xdaforums.com/moto-g4-plus/how-to/stock-rom-npjs25-93-14-4-march-1-t3608138

If you try to use older firmware on the June update then you will hard brick your device, same if you try to downgrade your device from the June update and take an OTA.

---------- Post added at 11:55 AM ---------- Previous post was at 11:52 AM ----------

Can you describe what happened to your device before the update was installed (e.g. what build were you on, did you install the June 2017 update at any point)?

You may wish to try this blankflash: https://xdaforums.com/showpost.php?p=71405834&postcount=23 but it may not work for newer firmwares (e.g. may not work for March 2017, does not appear to work for June 2017)
[Moto G4 Plus Guides, News, & Discussion] aakashkaushik04:
nothing happened

i did everything as mentioned but when it booted up it was still on the invicta os. what should i do now. please reply fast. i have the model XT1643
[Moto G4 Plus Guides, News, & Discussion] echo92:
What are you trying to do? Are you trying to revert back to stock or lock your bootloader?

This is the Marshmallow stock ROM though, if you were on stock Nougat prior to flashing Invicta, this won't work for re-locking your bootloader. You'll need to flash the June 2017 fastboot ROM (with fastboot, so you'll need a computer): https://xdaforums.com/moto-g4-plus/how-to/stock-rom-npjs25-93-14-4-march-1-t3608138
[Moto G4 Plus Guides, News, & Discussion] VIGNESH.B.R:
Downgrade to marshmellow

By doing this does my phone bootloader gets locked
[Moto G4 Plus Guides, News, & Discussion] echo92:
No, you cannot downgrade and re-lock your bootloader - the only way to re-lock your bootloader is by using the latest fastboot ROM to lock (which of writing is the June 2017 fastboot ROM).

However, if you're choosing to downgrade from Nougat to Marshmallow, be very careful. Especially if you've updated to the March or June 2017 Nougat updates, downgrading is very risky and you run the risk of hard bricking your device.

You may be able to downgrade without flashing GPT/bootloader, but if you were on March/June 2017 Nougat, do not accept or install OTA updates. You will run a very high chance of making your device inoperable (and though we've got a blank flash to rescue your device, you may lose data in the process).
[Moto G4 Plus Guides, News, & Discussion] VIGNESH.B.R:
Downgrade to marshmellow (moto g4 plus)

So my Android patch level is June 2017,so should I give it to authorized service center for downgrading my mobile to marshmellow
[Moto G4 Plus Guides, News, & Discussion] baunthiyal:
I downgraded my device using the firmware provided. It booted just fine. Now I need to test it.

As suggested by [MENTION=7970352]echo92[/MENTION] and countless others, we are NOT supposed to flash gpt and bootloader when coming from newer builds.

PS - My reason for downgrading was to use the mirror link feature of my car's stereo which doesn't work with Nougat for some reason. :P
[Moto G4 Plus Guides, News, & Discussion] ksamm97:
see attached img
[Moto G4 Plus Guides, News, & Discussion] echo92:
That's a normal error when you've flashed TWRP (as it's not signed), once you've flashed and see the [okay] confirmation, reboot to recovery and TWRP should stick.

---------- Post added at 01:07 PM ---------- Previous post was at 01:03 PM ----------

Just as an additional warning for anyone else trying this, once you've downgraded, do not accept or install OTA updates. Especially if you've downgraded from March or June 2017 stock Nougat, attempting to take an OTA is likely to hard brick your device. If you want to update, use the June 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] ksamm97:
No bro its not installing
[Moto G4 Plus Guides, News, & Discussion] echo92:
Okay, as it's been a while, might need to recap:

What stock ROM do you have flashed at this moment?

Which TWRP did you download (and did it say athene in the filename)?

How are you checking it's not installing? From the message you posted, it's suggesting it's flashed. When you reboot to recovery straight afterwards (do not boot to system), does it come up with TWRP?

If not, are you able to boot into TWRP using 'fastboot boot <name of TWRP file>'? You need to have your device in bootloader and execute that command in the adb terminal.
[Moto G4 Plus Guides, News, & Discussion] ksamm97:
yes its booting in twrp.
[Moto G4 Plus Guides, News, & Discussion] echo92:
Okay, and would you be willing to answer the other questions I asked?

Are you able to flash anything in the booted TWRP?
[Moto G4 Plus Guides, News, & Discussion] ksamm97:
I didn't tried.
[Moto G4 Plus Guides, News, & Discussion] Jayesh143:
This is also Relock The Boot Loader ?

I will Try Many Times but Can't Relock the bootloader

give me warning message with (ID: Bad Key)

Plzzzz Help!!

model no is xt1643

current os is 7.0
[Moto G4 Plus Guides, News, & Discussion] echo92:
If you're using this ROM, this ROM is a Marshmallow (6.0.1) stock ROM. You cannot re-lock a device running Nougat (7.0) or with a bootloader updated to Nougat with this ROM. Only stock ROMs of the same patch level or newer than your bootloader will work.

Your best bet is to re-lock using the June 2017 Nougat 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] krishna7777777:
im getting this.....

Security version downgrade

Image primary_gpt failed validation

Preflash validation failed

pls help meeeeeeeeee

---------- Post added at 11:00 AM ---------- Previous post was at 10:19 AM ----------

C:\Program Files\Minimal ADB an

target reported max download si

sending 'partition' (32 KB)...

OKAY [ 0.007s]

writing 'partition'...

(bootloader) Security version downgrade

(bootloader) Image primary_gpt failed validation

(bootloader) Preflash validation failed

FAILED (remote failure)

finished. total time: 0.065s
[Moto G4 Plus Guides, News, & Discussion] echo92:
This stock ROM is for Marshmallow (6.0.1), if you're attempting to flash this on a device running Nougat (7.0), then you'll get the above error. If you're simply wishing to revert back to stock ROM, then the best bet is to flash the June 2017 Nougat fastboot ROM. https://xdaforums.com/moto-g4-plus/how-to/stock-rom-npjs25-93-14-4-march-1-t3608138

If you still wish to downgrade to Marshmallow (and it's very risky, and may hard brick your device), you'll need to unlock your bootloader and also ensure you do not flash GPT/bootloader. If you do downgrade, do not accept any OTA updates, and do not forget that! Forgetting that you cannot update via OTA may hard brick your device.
[Moto G4 Plus Guides, News, & Discussion] aakashkaushik04:
I need help

I accepted the ota to upgrade it to 7.0 and now i am stuck my device is just a black box what should i do now. Please help ASAP..!!!
[Moto G4 Plus Guides, News, & Discussion] echo92:
Was this following a downgrade from Nougat to Marshmallow?

If so, you'll likely need to follow this guide to restore your device:https://xdaforums.com/moto-g4-plus/how-to/moto-g4-plus-hardbrick-solved-guide-t3657761

Incidentally, it's very risky now to downgrade devices, because OTAs can corrupt your bootloader if you're overwriting a newer bootloader with an older OTA.
[Moto G4 Plus Guides, News, & Discussion] aakashkaushik04:
What i actually did

I was having invicta (android n 7.1.2) os and then i downgraded it to 6.0 and then got an ota and updated it. Will the process in the link still work?

Thank you.!
[Moto G4 Plus Guides, News, & Discussion] echo92:
Invicta shouldn't affect your device in this way (though it's 7.1.2, Invicta and other custom ROMs only should touch your system and kernel), it's your stock firmware that you had previously that is causing you the issue, most likely.

If you had the March 2017 or June 2017 stock firmware flashed previously, then by downgrading to 6.0 and taking the update, you've likely corrupted your bootloader (since stock OTA updates can interact with your bootloader and underlying firmware). You may try holding down the power button to force a hard shutdown, but from what you've described, I'm hoping the procedure will work for you. If not, then the only other resolutions would be a service centre visit, to replace the motherboard (expensive) or to replace your device with a new one. You may be lucky this time...
[Moto G4 Plus Guides, News, & Discussion] kv2810:
Whenever I try to flash the rom it says remote failure what should i do?
[Moto G4 Plus Guides, News, & Discussion] echo92:
At what step does it say 'remote failure', is this with flashing the bootloader?

Do you have a locked or unlocked bootloader, and what stock Motorolafirmware do you have on your device?
[Moto G4 Plus Guides, News, & Discussion] CMKdaGreat:
I'm on stock rom and after the latest update, bluetooth is not getting turned on. Someone help fix it pls
[Moto G4 Plus Guides, News, & Discussion] echo92:
What device do you have and which update did you flash? Do you have your other radios available and is your baseband/IMEI still listed on your device?
[Moto G4 Plus Guides, News, & Discussion] pradeep@123:
update of sept 1 ota

i want the stock zip file of ota update of septamber 1 2017 for xt 1643 moto indian verient nougat thank you
[Moto G4 Plus Guides, News, & Discussion] echo92:
Link for the OTA update for Sept 1 stock patch - https://xdaforums.com/moto-g4-plus/how-to/captured-ota-september-security-patch-t3680367 Requires NPJS25.93-14-8 (June 2017 retail, no modifications and fully flashed)

Alternatively, the fastboot stock ROM is here: https://xdaforums.com/moto-g4-plus/how-to/stock-rom-npjs25-93-14-4-march-1-t3608138

After you flash either of these (and this applies to the June 2017 stock patch too), you cannot safely downgrade with stock ROMs and accept OTA updates.
[Moto G4 Plus Guides, News, & Discussion] CMKdaGreat:
I use moto g4 plus, I flashed the latest update(non rooted with no recovery installed) and yeah I can make calls so imei is present
[Moto G4 Plus Guides, News, & Discussion] echo92:
Looks like you're trying to relock your bootloader and flash a older stock ROM that what's currently on your device. You are only able to relock with a stock firmware of the same patch level or newer than your bootloader. The firmware in this thread is for devices that have only been updated to stock Marshmallow and not been updated to stock Nougat. It appears your device may have been updated to stock Nougat, hence the failures.

The latest stock ROM we have available is the September 2017 stock ROM, Nougat v7.0 (NPJS25.93-14-10) here: https://xdaforums.com/moto-g4-plus/how-to/stock-rom-npjs25-93-14-4-march-1-t3608138 Try this to relock your bootloader.

Bear in mind that relocking your bootloader will not restore your warranty, nor permit you to downgrade or flash any custom recovery/kernel/root anymore.
[Moto G4 Plus Guides, News, & Discussion] kanagavel pandiyan:
Notification tone not working

After flashing in my g4 notification tones are not working. i checked in setting it's not mute. i try to change default tone to other this also not working. any one suggest me to fix this:confused:
[Moto G4 Plus Guides, News, & Discussion] akshayanarse08:
How To Stop Problem Having Ghost Touch That Mobile Will Be Automatically Touches Anywhere And Open Files Apps And All..

Give Me the Proper Solution On It.....Please
[Moto G4 Plus Guides, News, & Discussion] smdv123:
I'm now currently in nougat stock rom.. xt1643 build npj25.93-14.10

Can i downgrade to marshmallow using this ?
[Moto G4 Plus Guides, News, & Discussion] echo92:
Although you can downgrade, I would personally advise against it unless you do not accept OTA updates.

By downgrading from Nougat to marshmallow, you'll have a marshmallow system but a Nougat bootloader. You cannot downgrade more recent Nougat bootloaders. Taking an OTA would likely corrupt your bootloader, leading to a hard brick. Therefore, only downgrade if you do not accept OTA updates. If you think you'll forget this, do not downgrade.

Furthermore, you'd likely have to erase your data and have an unlocked bootloader, so you'd have no warranty left.
[Moto G4 Plus Guides, News, & Discussion] smdv123:
Should i omit the command " fastboot flash bootloader " ?

Can i upgrade to nougat again ?

What happens when i downgrade the bootloader. ( Some one in op told that he had downgraded.)

What is hard brick... If it happens , how to recover from it ?

Thanks in advance :o
[Moto G4 Plus Guides, News, & Discussion] echo92:
1) If you really want to downgrade, you'll want to omit the flash GPT and flash bootloader commands.

2)To update to Nougat, you have to flash the latest stock ROM. As I mentioned above, DO NOT use OTA updates if you've downgraded.

3)Newer bootloaders cannot be downgraded. As you've updated to NPJS25.93-14-10 (September 2017 patch), your bootloader will block any attempts to downgrade. That ability to downgrade your bootloader was when bootloaders were not as strict. I would strongly not recommend attempts to downgrade your bootloader.

4)If you take the OTA whilst downgraded with a newer bootloader, the older OTA may overwrite parts of your newer bootloader, corrupting your device and preventing your device from booting at all. As the bootloader, a key part of your device firmware, is corrupted, you will not be able to use your device without repairing the bootloader; simply turning it on and off/reflashing the firmware will not work. Furthermore, as the bootloader is damaged, you may not be able to communicate with the device, hence a hard brick (a damaged device that you cannot easily recover from). So no access to your data, phone calls, whatsoever. Your device is no longer functional.

Luckily, if your device is hard bricked, we do have a blankflash to help repair the bootloader. I would regard this as a method of last resort:https://xdaforums.com/moto-g4-plus/how-to/moto-g4-plus-hardbrick-solved-guide-t3657761 Motorola will not assist or ask you to pay for a motherboard repair (around about 70-80% of the original device cost) if we did not have a working blankflash.
[Moto G4 Plus Guides, News, & Discussion] trendchanger:
Guys please confirm i want to just flash latest stock rom on my unrooted phone..

Can i download flashable zip and go into my stock recovery clear data and flash fresh firmware??????
[Moto G4 Plus Guides, News, & Discussion] strongst:
In this thread you'll find not the latest stock rom available.

The latest ist nougat 7.0 with September security patch: https://xdaforums.com/moto-g4-plus/how-to/stock-rom-npjs25-93-14-4-march-1-t3608138

There's no need to wipe data before flashing as the procedure does it automatically. Also you need to flash it with the fastboot method mentioned in instructions! You can't flash it with stick recovery as it's not a flashable zip. You need to extract that zip, but it's mentioned in the instructions. Please read them in the linked post carefully!
[Moto G4 Plus Guides, News, & Discussion] trendchanger:
Can anybody make availbale flashable zip
[Moto G4 Plus Guides, News, & Discussion] saurabh00721:
Device not found-

My device enters into bootloader mode when i type command adb reboot bootloader but when i type fastboot devices then it doesn't shows a serial no. And also when i type adb reboot it says device not found