yashsingh1/xdaforums huggingface dataset:
[Moto G4 Plus Guides, News, & Discussion] echo92:
In addition to strongst's questions, the OEM_locked status appears to be normal after using a blankflash. You need to flash the correct, newest stock ROM, for your device. Simply flashing the OEM partition won't solve this (and the OEM partition, as I understand it, is not related to OEM locking, which is to do with the bootloader).

Again, please answer strongst's questions so we can better help you.
[Moto G4 Plus Guides, News, & Discussion] Sky Sonu:
After updating to 7.0 the mobile bricks
[Moto G4 Plus Guides, News, & Discussion] echo92:
Can you describe what happened, please, and what device you have, so we can help you?

Did you flash stock marshmallow and then attempt to update via OTA?
[Moto G4 Plus Guides, News, & Discussion] Sky Sonu:
Ha yes.... please help me out
[Moto G4 Plus Guides, News, & Discussion] echo92:
I see that you've posted here - https://xdaforums.com/moto-g4-plus/how-to/moto-g4-plus-hardbrick-solved-guide-t3657761/ which would be the natural post to go to for unbrick help.

Please mention what error you're facing with the stock ROM flash as requested in that thread, we can't help without specific information. This could be a screenshot or a copy paste, with accompanying details on what you've done so far.

Also, if you get your device working again, please do not downgrade your stock ROM firmware, or if you do, do not use OTA updates. Only update with a full stock ROM flash.
[Moto G4 Plus Guides, News, & Discussion] biazoto:
based on what he said, I believe the same "problem" that occurred to me occurred. for lack of information (or inattention), I once installed ROM stock 6.0 and upgraded via OTA, but did not know about the bootloader version update either. it happened that after this update, my device died too and, luckily, the warranty covered "the damages". apparently, the same thing happened with it when it says "after upgrading to 7.0, my device brick". It occurred with me in middle of last year
[Moto G4 Plus Guides, News, & Discussion] echo92:
Yup, that's a common, if perhaps the most frequent, source of hard bricking a Moto device (and as I understand it, it happens with other manufacturers too). It's been particularly common after the NPJS25.93-14-8 June 2017 update (saw a lot of bricked devices then), but could occur with downgrading from any firmware update. The issue appears to represent itself the same way whether it was a Moto X, Moto Z or Moto G.

Luckily you got your warranty to cover the damages, others were not so lucky until we had this B1:06 blankflash leaked (Motorola does not officially release these, so we're very lucky to have them): https://xdaforums.com/moto-g4-plus/how-to/moto-g4-plus-hardbrick-solved-guide-t3657761 However, as Motorola updates our devices (to including Oreo at some point), this blankflash may not work as the bootloaders become too new.

I think the core lesson to take away from all this is do not downgrade stock firmware, or if you do, do not use OTA updates whatsoever, only flash the latest stock firmware for your device/region to update.
[Moto G4 Plus Guides, News, & Discussion] biazoto:
was exactly that .. and in desperation, the first thing I did was call the tour .. after my device came back, I found out about the blakflash
[Moto G4 Plus Guides, News, & Discussion] hash121:
But It Didn't Removed The Google Account Protection Or Frp.

My Purpose To Flash Was To Remove Frp Lock.

:(

Please Help
[Moto G4 Plus Guides, News, & Discussion] DhirajKale789:
Does this firmware support xt1624 ?
[Moto G4 Plus Guides, News, & Discussion] Joe2090:
Hi everybody! Can I flash this stock rom with the TWRP 3020 i have installed in my phone?

What would be the steps to follow?

Thanks in advance, Joe!!!
[Moto G4 Plus Guides, News, & Discussion] strongst:
Not, it's flashable through fastboot. It's a zip but not flashable through any twrp. You need to extract it, see op for instructions.
[Moto G4 Plus Guides, News, & Discussion] Joe2090:
Thanks for your reply!

Can I flash it with fastboot even though TWRP is installed?
[Moto G4 Plus Guides, News, & Discussion] Joe2090:
Anyway I cant flash it through fastboot because I coundt get it connected to my PC through USB, fastboot cant see the device and I cant enter the phone, it keeps going into TWRP.

Where could I get a flasable rom to do it through TWRP? And would it work if I do it on a external microSD since I cant enter the phone to copy it to the internal storage?

Thanks again!!!
[Moto G4 Plus Guides, News, & Discussion] strongst:
Make sure you bootet the device in fastboot mode with the hardware buttons and have the right drivers on your PC.
[Moto G4 Plus Guides, News, & Discussion] Joe2090:
It worked like a charm!!!:good::good::good:

It was a driver problem apparently. I just reinstalled Motorola drivers and Bingo!

I hope this problem and your solution help others in the same situasion in the future, that’s the real idea of the forum.

My endless gratitude to YOU, ____Mdd that helped me in another thread, and rajatgupta1998 for posting the guide with the new stock.

By the way It works perfectly with the XT1644

If you ever come to Argentina I would be glad to invite you a good cold beer. Though you’re being from Germany is gonna be hard to match!!!:laugh::laugh::laugh:

Thanks a lot again and best regards, take care! Joe
[Moto G4 Plus Guides, News, & Discussion] strongst:
Nice to hear. I bookmarked your post in case I'm in Argentina somedays and thirsty ;)
[Moto G4 Plus Guides, News, & Discussion] ldeveraux:
I just want to say I followed your/my advice and flashed 14.7 directly over 14.10. It booted up fine and once it settled I was able to take the OTA to 14.7-3, so now I have the December patch. I could flash Elemental, Magisk, and Xposed to get right to where I need to be! Is 14.7-3 the newest for RETUS?
[Moto G4 Plus Guides, News, & Discussion] niyas90:
Wipe everything by using the twrp before flashing via fastboot.
[Moto G4 Plus Guides, News, & Discussion] Heyner_Gomez:
Hi guys, I have a problem.

when I frame * # 06 # the sim two shows meid number and not the imei, I do not have a network, thanks in advance.

I happened after flashing this firmware.

The sim 1 if it shows the imei..
[Moto G4 Plus Guides, News, & Discussion] strongst:
Flashed the wrong firmware for your device? See Q&A section for the thread for this issue: https://xdaforums.com/moto-g4-plus/help/moto-g4-pluss-model-changed-to-g4-lost-t3496912
[Moto G4 Plus Guides, News, & Discussion] Heyner_Gomez:
Thanks I created a new thread:good:
[Moto G4 Plus Guides, News, & Discussion] avsgod21:
Is this the latest firmware if no please provide link.
[Moto G4 Plus Guides, News, & Discussion] minhajul6322:
do i need to wipe my phone to update to this rom???
[Moto G4 Plus Guides, News, & Discussion] RenePaul99:
It is
[Moto G4 Plus Guides, News, & Discussion] strongst:
The script wipes the phone if you lock the bootloader and erase userdata. If you exclude both from the script it won't wipe the entire storage.

But it's recommended to wipe!
[Moto G4 Plus Guides, News, & Discussion] solankijay01:
Urjent Required

Recovery.img For moto g4 plus model XT1643, build number NPJS25.93-14-13
[Moto G4 Plus Guides, News, & Discussion] strongst:
Just extract it from the rom zip file. Oh yes, I told you here to do so https://xdaforums.com/moto-g4-plus/help/help-thread-question-noob-friendly-t3526598/post75610980
[Moto G4 Plus Guides, News, & Discussion] minhajul6322:
this rom has lots of ads..
[Moto G4 Plus Guides, News, & Discussion] strongst:
It's the stock Motorola rom and imo it has less apps than other stock roms like Samsung, Huawei or Xiaomi...
[Moto G4 Plus Guides, News, & Discussion] minhajul6322:
yeah I know but whenever I turn on my data lots of ads pop up (without opening any app)..can u help me with this problem???
[Moto G4 Plus Guides, News, & Discussion] strongst:
What apps did you installed besides the ones coming with the rom(3rd party apps)? Normally there's no pop-up advertisements on a clean installation :rolleyes:
[Moto G4 Plus Guides, News, & Discussion] echo92:
In addition to strongst's reply, I'd probably perform a factory reset on your device anyway (though this will likely wipe your data and apps, so back up), doing anything on a device with unexpected ad popups is not wise.

As mentioned, this is a stock ROM, and as such should not have ads whatsoever from a clean install - I see from your previous posts that you may have flashed without wiping your device.
[Moto G4 Plus Guides, News, & Discussion] minhajul6322:
i have flashed as directed by senior members here...they said the process wipes the full phone..i actually flashed as said..
[Moto G4 Plus Guides, News, & Discussion] echo92:
Just to clarify, you flashed with 'fastboot erase userdata', 'fastboot erase cache' and did you use fastboot OEM lock begin?

Also, where are you seeing ads? If you were previously rooted, then flashing this will remove root, which may have removed adblocks from your browsers/other apps.
[Moto G4 Plus Guides, News, & Discussion] minhajul6322:
i didn't use fastboot OEM lock begin..i was rooted before and rooted right now also but as i said i am getting ads all the time as of before it was ad free..

---------- Post added at 04:30 PM ---------- Previous post was at 04:27 PM ----------

should i use fastboot OEM lock begin??? wouldn't it lock my.... (whatever, I am not sure of that thing). just help me...
[Moto G4 Plus Guides, News, & Discussion] echo92:
If you want to stay rooted/with TWRP, best not to use fastboot OEM lock begin, else that will lock your bootloader.

1) Can I request some information, so we can help you better?

a)What device do you have and which stock ROM did you flash, was it the stock ROM provided in the Android File Host link on the first page? What commands did you use to flash?

b)Can we see the Settings>About Phone page on your device?

c)What ads are you getting, and in which apps are you seeing them in? Was this whilst you were not rooted as well?

d)Have you tried a factory reset from within TWRP (wiping data) and/or an internal storage wipe? This is to check that you have no other apps besides the stock ones.
[Moto G4 Plus Guides, News, & Discussion] minhajul6322:
Answers to your questions...

1.a) I have Moto G4 Plus and yes the stock rom was provided in the Android File Host link on the first page.. Commands i used to flash is attached in a file I'm uploading.

b) About Phone page sample is attached.

c) I'm not sure on which app I'm getting these kind of ad..sample is attached.

d) I didn't try factory reset from within TWRP.
[Moto G4 Plus Guides, News, & Discussion] minhajul6322:
codes i uploaded does not need the last line that is given...it was to flash recovery...leave that and check the rest.
[Moto G4 Plus Guides, News, & Discussion] echo92:
Thanks for that, your commands look okay for flashing the stock ROM. Did you verify each command responded with [okay]? Looking at your about phone screen, that suggests the flash went okay.

If you've not tried a factory reset, then I would try to uninstall all the 3rd party apps you have on your device (Facebook, Whatsapp, etc), see if you still get adverts.

Also, try removing your SIM card, connect to WiFi and see if you still get adverts. If you don't, that may suggest your mobile provider could be pushing ads to your device. If you do still get adverts, then that suggests something on your device is receiving adverts. This is the first report I've seen of this stock ROM being involved in adverts and I'm curious where it's resulting from.
[Moto G4 Plus Guides, News, & Discussion] minhajul6322:
thanks for the support..i will do as said... thanks
[Moto G4 Plus Guides, News, & Discussion] vishal.mamidi:
September or Descember 2016 security patch full Stock rom

Can you please link ROM with older security patch?

Descember 2016 or September 2016
[Moto G4 Plus Guides, News, & Discussion] ____Mdd:
Downgrading can be dangerous in many ways, it's suggested to install latast firmware (given in OP) only.

Or can you tell us reason for installing it ?
[Moto G4 Plus Guides, News, & Discussion] vishal.mamidi:
For Pokémon Go spoofing

After hiding mock location, I have to root my device or else downgrade, thinking of downgrading
[Moto G4 Plus Guides, News, & Discussion] ____Mdd:
AFAIK you can not hide mock location without rooting, right ?

Is your device rooted ?

Or what method you used ?

Second, This is not goog idea to downgrade you device just for gaming purpose..

EDIT: DOWNGRADING WILL NOT HIDE MOCK LOCATION, WHO TOLD YOU THAT ???
[Moto G4 Plus Guides, News, & Discussion] vishal.mamidi:
System less root

For hiding mock location, I have to root,

With system less root i am unable to move apps to system,

App suggests me to move it to system app so that it can hide mock location,

This is my problem
[Moto G4 Plus Guides, News, & Discussion] ____Mdd:
If your device is rooted (no matter system or systemless) then you can Use any root file manager to move apk to system.

Follow this steps: get apk from this : https://play.google.com/store/apps/details?id=com.gsmartstudio.fakegps

Make folder in /system/priv-app/***

(*** = Folder name, same as apk file.)

Place apk in that folder and reboot.

Then you don't need to select mock location app in developer options.
[Moto G4 Plus Guides, News, & Discussion] echo92:
In addition to ____Mdd's posts and advice, I concur that downgrading is not a wise idea unless you know what you're doing. I see from your previous posts and remember that your device has been hard bricked before from downgrading.

If you're still choosing to downgrade to an earlier stock ROM, do not accept/use OTA updates. Only update using full fastboot stock ROMs and flashing via fastboot.
[Moto G4 Plus Guides, News, & Discussion] vishal.mamidi:
Wow, thanks bro, will try it now

---------- Post added at 02:45 PM ---------- Previous post was at 02:24 PM ----------

Haha, yes bro, that's the most frustrating situation I had,

Thinking of moving app to system through, TWRP file explorer,

And I think we have to change permissions of that apk which is moved to system, is it Chmod 644?

And

Thanks ?

---------- Post added at 02:55 PM ---------- Previous post was at 02:45 PM ----------

True bro,

Please check this out

https://source.android.com/security/bulletin/2017-03-01

Or this one

https://www.reddit.com/r/TheSilphRoad/comments/5yybey/android_security_update_closes_door_on_spoofing/
[Moto G4 Plus Guides, News, & Discussion] echo92:
As I understand it, yes, permissions of the apk moved to system should be 644. More info here: https://android.stackexchange.com/questions/180389/unable-to-install-apk-from-system-priv-app/180394
[Moto G4 Plus Guides, News, & Discussion] aman19991234:
I'm not able to lock the bootloader on my moto g4 plus with this ROM!!!!!!!!!!! ROM installed correctly but bootloader is still unlocked and I don't know why
[Moto G4 Plus Guides, News, & Discussion] echo92:
1) did your use the OEM lock begin and OEM lock commands, and did they show [okay] when you used them?

2) you may have to boot into the stock ROM, go to Settings>developer options, then toggle OEM unlocking on. (If developer options is not there, you'll need to go to settings >about phone, then tap the build number 7 times).

Once you've turned OEM unlocking on, you should be able to reboot to bootloader and reflash with the locking commands to lock your bootloader. Locking your bootloader again will not restore your warranty, and will not let you flash anything custom.
[Moto G4 Plus Guides, News, & Discussion] aman19991234:
Yes I did enable OEM unlocking in developer options but still bootloader is unlocked
[Moto G4 Plus Guides, News, & Discussion] aman19991234:
Yes I did enable OEM unlocking in developer options but bootloader is still unlocked!!!!
[Moto G4 Plus Guides, News, & Discussion] echo92:
Hmm, okay, can I see the flashing commands you're using and the output please? Are you entering the commands manually or are you using a script, and if you're using a script, which script?

Also, can I see the get var output from your device?

1) boot your device to the bootloader

2) connect to your computer via USB

3) open your ADB terminal and type 'fastboot getvar all' without quotes. Press enter.

4) paste the output here. You may wish to remove your IMEI from the output before posting, which should contain your device variables.
[Moto G4 Plus Guides, News, & Discussion] piterpack:
My cell phone is brick, I am waiting for the Amazon version for the NPJS25.93-14-13. Does anyone know anything?
[Moto G4 Plus Guides, News, & Discussion] echo92:
I've only seen the Amazon NPJ25.93-14.7 build (for Amazon, but for US devices) which is the September 2017 security patch. I've not seen any other variants nor any newer (NPJ25.93-14.7-3 is the Dec 2017 update).

I didn't think NPJS25.93-14-13 was available for Amazon devices, isn't it for retail devices only?
[Moto G4 Plus Guides, News, & Discussion] piterpack:
Search on androidfilehost.com:

ATHENE_AMZ_NPJS25.93-14-4_cid50_subsidy-DEFAULT_regulatory-DEFAULT_CFC.xml.zip

(I'm a new user, I still can not put links in my messages)
[Moto G4 Plus Guides, News, & Discussion] echo92:
Yup, that was the March 2017 update for Amazon devices, then the NPJ25.93-14.5 June 2017 update, then the NPJ25.93-14.7 Sept 2017 update and now there's a NPJ25.93-14.7-3 Dec 2017 update. US and Amazon devices are on a different update stream to the rest of the world and from what I've seen, don't have NPJS25.93-14-13.

The NPJ25.93-14.5 June 2017 update is here on Motorola Firmware Team's Android File Host page: https://androidfilehost.com/?fid=817550096634798183

NPJ25.93-14.7 : https://androidfilehost.com/?fid=817906626617956922

A report from Danny1976 indicates that the Amazon US devices have been updated to NPJ25.93-14.7-3 (which there isn't a stock ROM out for yet). https://xdaforums.com/showpost.php?p=75367992&postcount=16

However, if you've got a locked bootloader, then you'd have to wait for at least the NPJ25.93-14.7-3 or later Amazon ROM to be leaked, flashing any of the above stock ROMs may not work as your bootloader may reject the flash.
[Moto G4 Plus Guides, News, & Discussion] piterpack:
In the recovery figure that is "athene 7.0 / NPJS25.93-14-13":

https://ibb.co/gCeQ0x

Try all the roms, but the RSD Lite only takes the ROM ATHENE_NPJS25.93-14-13, but it still has the same problem.The bootloader I have it locked.

So the only way to repair the cell phone is to wait for the NPJ25.93-14.7-3?

Thanks for answering my questions.
[Moto G4 Plus Guides, News, & Discussion] echo92:
If your bootloader is locked, then it'll only accept the same patch level or newer patch level of firmwares. So if you wanted to try to repair, yes - you'd have to wait for the NPJ25.93-14-7.3 Dec 2017 Amazon specific stock ROM or newer Amazon specific stock ROM. As you've got an Amazon device, the retail NPJS25.93-14-13 firmware won't work (as you've found out).

If that doesn't work, you may have to send your device to Amazon/Motorola for repair.
[Moto G4 Plus Guides, News, & Discussion] dsbalu:
I'm on Custom ROM RR 5.8.5 can i just follow the above procedure or anything else is required
[Moto G4 Plus Guides, News, & Discussion] kakukkmarci:
srry
[Moto G4 Plus Guides, News, & Discussion] Danny1976:
echo92, I am trying to relock my bootloader. The firmware version is the NPJ25.93-14-7.3 Dec 2017 Amazon. I tried using the ATHENE_AMZ_NPJ25.93-14.7 to relock the phone, but it gives me:

(bootloader) Security version downgrade

(bootloader) Image primary_gpt failed validation

(bootloader) Preflash validation failed

If I am correct the B1.06 was the same on the NPJ25.93-14.7 as the NPJ25.93-14-7.3 If its the same bootloader, I should be able to relock the bootloader, right?
[Moto G4 Plus Guides, News, & Discussion] echo92:
1)If the bootloaders are the same between builds, then in theory, yes, you should be able to re-lock the bootloader. However, we've seen with the June 2017 and September 2017 firmwares that is not the case - both are B1:06, but appears that the June 2017 stock ROM will not lock a September 2017 bootloader. Evidently, though both are the same build numbers, there are enough differences for them to be different bootloader patch levels (which isn't helpful, Motorola...)

2)Can you boot to the bootloader and check what bootloader version you have please? For the retail December 2017 NPJS25.93-14-13 firmware, the bootloader is updated to B1:07. I'm not sure if the Amazon Dec 2017 NPJ25.93-14.7-3 update performs the same update. If it does, then you'd have to wait for the NPJ25.93-14.7-3 or newer Amazon firmware to appear - as you've found out, re-locking a bootloader with older firmware is rejected (with a security downgrade/pre-flash validation error). Only the same firmware patch level or newer will re-lock a bootloader.

Hopefully you can find the Amazon firmware soon!
[Moto G4 Plus Guides, News, & Discussion] Damicol:
Ey guys! I need help, actually iam on oreo 8.1 (RR v6.0.0.20180210 64bits) with the last TWRP on XT1641.. It is great, but i think the camera on the stock firmware is by far better . Can i downgrade directly to the stock firmware? Because i was reading that they are problems and bricks (with the gpt.bin for example).

And if this is possible, what firmware stock is from argentina? and if its possible to get OTA when i came back.

Thanks!!!
[Moto G4 Plus Guides, News, & Discussion] echo92:
Provided you flash the stock firmware that is the same or newer than what was on your device before you flashed TWRP/RR, you should be okay. The issues users seem to face when reverting back to stock include:

1)Flashing the incorrect build for your device or region - less frequent now that Motorola has only 2 or so builds for our devices.

2)Flashing older stock firmware (by old, I mean older than the existing stock firmware on your device), then attempting to take OTA updates, which hard brick their device. It seems this is due to the OTA corrupting your bootloader in the process. Note that custom ROM security patch levels don't usually matter in this regard, since custom ROMs only flash to your system partition. However, stock ROMs do matter as they affect the underlying firmware, hence why it's important to only flash the same or newer stock firmware as what was previously on your device.

The NPJS25.93-14-13 firmware is the newest retail India, Brazil and EU firmware for our devices, so 2) is not likely to happen. However, I do not know if this is the correct build for retAR devices - there have been reports that this firmware flashes okay. However, flashing this firmware may leave you on the wrong build for your software channel and thus ineligible for OTA updates. Perhaps someone receiving retAR OTA updates can confirm what OTA build they received.

Alternatively, if you wish to revert to near stock but not have to worry about the GPT/bootloader (or you don't want to use fastboot), you could try the stock ROM TWRP flashables - these generally only have the system partition and are flashable in TWRP, though cannot receive/use OTA updates. That way, you'll keep TWRP but still should be able to use the stock camera - you may have to flash a 32 bit TWRP for best results however. These TWRP flashables should also leave your underlying stock firmware alone so less chance of bricks and leave you in a position to flash the correct stock ROM build for retAR when confirmation arrives.

https://xdaforums.com/moto-g4-plus/development/rom-modified-stock-jx-s-mea-maxima-est-t3729726 for the Mea Maxima stock ROM flashable.

https://xdaforums.com/moto-g4-plus/development/rom-npjs25-93-14-4-deodexed-debloated-t3587180 for Revivor 3.0

Those are a couple of examples, have a look in the custom ROMs section for more: https://xdaforums.com/moto-g4-plus/development/