yashsingh1/xdaforums huggingface dataset:
[Moto G4 Plus Guides, News, & Discussion] echo92:
Hmm, sounds like you've got either a system partition with read-write access (modified by TWRP?) which the OTA doesn't like, the system partition must be read-only. Do you have a clean (no traces of root) stock kernel and stock logo.bin as well, and is the stock recovery from the same firmware as you have? Is your OEM partition also untouched (no debloating)?

You could flash this stock ROM if it's still available, though it is very old (Nov 2016 security patch) and also only flashable on Indian XT1643 devices, since this build was released only in India if I recall. Most other regions got the NPJ25.93-14 build (again, very old at Dec 2016 security patch). Provided you have not flashed stock Nougat previously, you should be okay to flash this firmware and update via OTA, but I would recommend you directly flash to a much newer firmware. If you have an Indian, Brazil or EU device, you could flash the NPJS25.93-14-13 Dec 2017 security patch firmware: https://xdaforums.com/moto-g4-plus/how-to/stock-rom-npjs25-93-14-4-march-1-t3608138

You can in theory omit the 'fastboot erase userdata' commands to try to keep your data, but back up anyway. Also, you do not need to use the fastboot OEM lock begin commands if you do not wish to re-lock your bootloader.

However, bear in mind that if you formally update to stock Nougat, if you decide to downgrade to stock Marshmallow, please do not use OTA updates on a device with downgraded stock firmware - else you may hard brick your device. Also, on stock Nougat, you require a custom kernel to root your device, if you attempt to root on the stock kernel (as you used to be able to do in stock Marshmallow) you may soft bootloop. Under stock Nougat, please flash/boot TWRP, then backup, then flash a custom kernel like ElementalX, then root with magisk or SuperSU.
[Moto G4 Plus Guides, News, & Discussion] Dangerous008:
I havent made any changes to my system partition using TWRP or anything (not that good at all this stuff to mess with such things TBH :D ) as far as the kernel and logo.bin I have no idea about it ( I did install BusyBox and Xposed framework though) and dont think I changed my OEM partition (not on purpose anyway).

I do have the Indian version of the Moto G4+ XT1643. As you said ill try to flash the newer version directly and see if that works. I do have a backup of my data but dont care about it too much (nothing that important ). I do not want to lock my bootloader as I wish to root it again so I'll skip that step and root it with the method you suggested. My main concern is that previously I flashed a XT1643 stock ROm that caused my phone to show invalid IMEI number and disable all cellular functions WiFi etc so not sure about that.
[Moto G4 Plus Guides, News, & Discussion] JulianCox:
what if i don't use bat file from zip, and instead of it, use cmd console with fastboot commands?
[Moto G4 Plus Guides, News, & Discussion] sakhura:
That's not a problem I have been using this firmware for two days now and I have not faced any problems the bad id is a normal message when you install stock ROM on unlocked bootloader
[Moto G4 Plus Guides, News, & Discussion] daeshawn:
Thx for the quick reply
[Moto G4 Plus Guides, News, & Discussion] tnmsrkr:
relock bootloader??

does it relock bootloader >??? xt1643 indian..
[Moto G4 Plus Guides, News, & Discussion] sakhura:
No it doesn't unlock or relock the bootloader.
[Moto G4 Plus Guides, News, & Discussion] darkequitus:
I tried this on my XT1644 USA model; from stock. It works perfectly also
[Moto G4 Plus Guides, News, & Discussion] sam sundar:
It can be downloaded In a tab too , that doesn't matter .. but u got to copy the file to Ur pc and extract it along with the other application (RLDlite I guess ) , extract the rar file and connect Ur phone in fastboot mode (power off , them volume down + power ) and Open the RLD app in pc and select the flashable.xml and press start ... That's it ... Pretty easy !
[Moto G4 Plus Guides, News, & Discussion] daeshawn:
Thank you OP for this. Flashed using fastboot method no issues. I have an unlocked bootloader so i'm already used to the warning screen. i'll research if i can bypass with that method somewhere in the forum lol
[Moto G4 Plus Guides, News, & Discussion] MKD73:
Ok so just to let people know me being the risk taker tried both methods on a basic Moto G4 XT1622 16GB all works fine the only difference i can see is in hardware information in menu the Version has changed from p2a to PVTB not sure if this is significant but everything is working
[Moto G4 Plus Guides, News, & Discussion] bobthesalesclerk:
So if im currently on CM14 and don't have a stock recovery I can flash this file using the updated flashall script? I was just about to downgrade to MM so I could flash this but if I can save a step that would be great.
[Moto G4 Plus Guides, News, & Discussion] lukasth:
Worked very well for me, thanks a lot.
[Moto G4 Plus Guides, News, & Discussion] mattardz:
Encountered one error when trying to run flashall.bat:

Resolved by ensuring that all the files from the rar are extracted into the root fastboot folder, not in a subfolder or someplace else.

Smooth sailing after that on USA XT1644
[Moto G4 Plus Guides, News, & Discussion] lapocha5:
Thanks!!!, can you upload it somewhere else?, the download speed is ****
[Moto G4 Plus Guides, News, & Discussion] GsKill:
I have an xt1641 with MPJ24.139-23.1 this firm works fine on my device?
[Moto G4 Plus Guides, News, & Discussion] tandon.ayush:
Does it work on 1643 Indian variant NPJ 25.75-2?
[Moto G4 Plus Guides, News, & Discussion] daeshawn:
Yes it will. I was running that on mine. I used the fastboot method. Procedure is nice and smooth.

The "flashall.bat" takes care of everything. Lol my 2 yr old daughter could do it.
[Moto G4 Plus Guides, News, & Discussion] daverobinson88:
Thanks to OP for posting, but please if you can change the storage location to something better. Like google drive or mega. The DL speed is so slow. Gonna try it out of my XT1625 and see if it works, worst case back to Lineage OS.

Edit:

So far its running fine. The moto boot thing is annoying to be honest but its what it is. I will update after using a couple days. I can also upload the rar if someone wants it for faster speeds. Fastboot method batch file worked fine.
[Moto G4 Plus Guides, News, & Discussion] sumeet_on_line:
Yes..i have updated my 1643 indian variant ..from soak test build to offical one..
[Moto G4 Plus Guides, News, & Discussion] sam sundar:
Yes , just flash it and it will replace your recovery with stock !

---------- Post added at 02:53 AM ---------- Previous post was at 02:51 AM ----------

It's because the link was uploaded by Lenovo forum Russia , and the thread holder just shared it . If u feel , u could upload to some drive (G drive maybe ) and share it with thread holder , so he could add it to the first post !
[Moto G4 Plus Guides, News, & Discussion] lapocha5:
Hiii how can you manage to make it work?, cant do it, i install the drivers and all the programs.

Dunno what to do know.
[Moto G4 Plus Guides, News, & Discussion] Keon24:
Into the unknown

I'm also going to try it out on my XT1625 Amazon prime deal variant and see how it runs. Luckily I was able to get my bootloader unlocked so full back up will be done before proceeding. I'll report my results later. Fingers crossed.
[Moto G4 Plus Guides, News, & Discussion] mahesvr:
No issue go for it
[Moto G4 Plus Guides, News, & Discussion] hacker1911:
Um uuuhh..

Root available on this official stock??
[Moto G4 Plus Guides, News, & Discussion] sakhura:
Yes
[Moto G4 Plus Guides, News, & Discussion] sakhura:
Yes it does work on Xt1643
[Moto G4 Plus Guides, News, & Discussion] sakhura:
Please upload the file to a better Server and give the link to me if you can I'll update the post
[Moto G4 Plus Guides, News, & Discussion] geovision:
Model XT1642, Greece! Everything works as expected. Thank you very much for your work!
[Moto G4 Plus Guides, News, & Discussion] Youssefous:
So I've read some conflicting posts, but will this work on the XT1644, in the United States? Some people said the soak tests worked fine on that, some said they didn't. As a result, I'm not sure if this final update will work on the 1644.
[Moto G4 Plus Guides, News, & Discussion] sam sundar:
It will and it should work !
[Moto G4 Plus Guides, News, & Discussion] snd team:
https://xdaforums.com/showpost.php?p=70383231&postcount=10

flashing procedure and relock the bootloader
[Moto G4 Plus Guides, News, & Discussion] zavieir:
Working fine on XT1621 moto G4 normal.

I was on MIUI 8 MM based and it took 5 minutes or less to flash. Thanks!

There is not root for this version yet right?

Let's see how it works!

[IMG="Android 7.0 on XT1621"]http://i.imgur.com/gMnaL7D.png[/IMG]
[Moto G4 Plus Guides, News, & Discussion] bobthesalesclerk:
Worked perfectly on xt1625 already running CM14.
[Moto G4 Plus Guides, News, & Discussion] akshaykatoch:
My moto is on latest marshmallow build + unlock bootloader with modifications (root+xposed+busybox)

Can this method works for me? Without wipe data and cache
[Moto G4 Plus Guides, News, & Discussion] sam sundar:
Yes just flash it ! U r good to go , and looks like u could lock Ur bootloader too !
[Moto G4 Plus Guides, News, & Discussion] akshaykatoch:
Any way to prevent the relock of bootloader?
[Moto G4 Plus Guides, News, & Discussion] sam sundar:
It won't lock your bootloader automatically , there is another three lines of code for that !
[Moto G4 Plus Guides, News, & Discussion] akshaykatoch:
Trying to download file, but it can't. Please uplaod in other hosting, if available.
[Moto G4 Plus Guides, News, & Discussion] rajatkumar2910:
Simply go to care office and get it done for free...i did the same
[Moto G4 Plus Guides, News, & Discussion] sakhura:
IF You Can Wait For Some time I'll upload the twrp backup then you can restore directly without flashing
[Moto G4 Plus Guides, News, & Discussion] Arivendu:
This is the default behaviour with unlocked bootloader. If you read the bottom line on your bootloader screen, it says "device will boot after 5 seconds"
[Moto G4 Plus Guides, News, & Discussion] steven3804:
Hello,

Thanks for this tutorial, after the flash is what I could install the official OTA of motorola in the future? thank you !
[Moto G4 Plus Guides, News, & Discussion] douglasroos:
I've read the OP and I still have the doubt if I can update my phone without losing my data.
[Moto G4 Plus Guides, News, & Discussion] sachin09:
after flashing this firmware via cmd my device always boot into bootloader mode. please help
[Moto G4 Plus Guides, News, & Discussion] sakhura:
Yes you will receive future Ota updates
[Moto G4 Plus Guides, News, & Discussion] sakhura:
If you use the default flash all script in the zip file it you data won't be lost but if you download and install the modified flashall script which is in the download section below your data will be wiped
[Moto G4 Plus Guides, News, & Discussion] steven3804:
Thank you :)
[Moto G4 Plus Guides, News, & Discussion] derausgewanderte:
Ok, I am almost convinced to try this on my stock USA XT1644. I see others have done it. Somebody wrote in this thread that the version changed from p2a to PVTB. Looks like they are close for OTA for the rest of the world.

just extra cautious.
[Moto G4 Plus Guides, News, & Discussion] gohain:
will it work on Moto G4 XT1624??
[Moto G4 Plus Guides, News, & Discussion] sakhura:
There are some people who have tried it and it works but since this is for the G4 plus try it at your own Risk
[Moto G4 Plus Guides, News, & Discussion] gohain:
Okk thnk you...
[Moto G4 Plus Guides, News, & Discussion] smithersjoe:
Worked for USA XT1644

I have a USA XT1644 (retus) and I followed the instructions using the fastboot method. Installed fine and seems to work. Screenshots of settings screen:

[IMG="Top"]https://c3.staticflickr.com/1/489/32084581586_c091a753dc.jpg[/IMG]

[IMG="Bottom"]https://c5.staticflickr.com/1/520/32084581676_2a7c771813.jpg[/IMG]

My hardware version went from P2A to PVTW in the settings display:

[IMG="Hardware"]https://c8.staticflickr.com/1/280/32123754735_918196c9b0.jpg[/IMG]

However, it still shows as P2A in fastboot getvar all:

[IMG="Fastboot"]https://c2.staticflickr.com/1/262/32005485281_28cdf0249f.jpg[/IMG]

I'm not noticing any problems so far.
[Moto G4 Plus Guides, News, & Discussion] derausgewanderte:
extremely helpful. Thank you!
[Moto G4 Plus Guides, News, & Discussion] daverobinson88:
Sorry I didn't get a chance to upload it to Google drive last night. Kinda got busy and didn't have the time. I will try and upload it tonight. I really wouldn't trust the TWRP backup as an install method, it's just safer to do it through fastboot. So far been using the phone all day today as usual. Seems fine under normal daily use. I can say for some reason the weather channel widget does not work keeps crashing. Worked every other time. Also the CPU shows itself at 1.52ghz across all cores instead of clocked down for the last 4. I have a regular G4 16GB XT1625 retail non Amazon.
[Moto G4 Plus Guides, News, & Discussion] simosimi:
I've just flashed on XT1622 Moto G4 EU and it is booting.

I'll update this post once is booted and started. You can insert xt1622 in OP, because i've just tested it!

UPDATE --> Phone works just fine. Thanks for sharing this Guide! All owners of MOTOG 162x can flash this with no problem, or at least this is what i think. Hope this can be usefull!
[Moto G4 Plus Guides, News, & Discussion] skooter32:
A can confirm also working on xt1622 just need root for 93-11 build.
[Moto G4 Plus Guides, News, & Discussion] KiiKeEp:
Can you tell for which device it's originally this ROM created for?
[Moto G4 Plus Guides, News, & Discussion] kushu:
i think is an worldwide ota
[Moto G4 Plus Guides, News, & Discussion] sakhura:
Its originally for the G4 Plus that's the reason the Hardware Version gets changed when you flash this on a Normal G4
[Moto G4 Plus Guides, News, & Discussion] lapocha5:
cant make it work, i reinstalled the drivers, i downloaded the rom 2 times, too bad,
[Moto G4 Plus Guides, News, & Discussion] trsix:
Explain

Where is tHE FAILURE EXACTLY?
[Moto G4 Plus Guides, News, & Discussion] lapocha5:
Well i dont Speak English but i van Say that the PC doesnt reconiced the fastboot mode, when i try yo.update the driver wont update
[Moto G4 Plus Guides, News, & Discussion] myk.robinson:
I run Linux. I have not downloaded the files yet and may find my answer after downloading...

I assume I can view the contents of the batch file and just run the commands manually? I have adb, fastboot, mfastboot and all the necessary Android components on my Linux laptop, but needless to say, I cannot run a Windows .bat file without installing wine or something.

Thanks
[Moto G4 Plus Guides, News, & Discussion] arc4d14n:
Not exactly, I own a G4 Plus and it's hardare code also was p2a and it changed to PVTB.... I'm guessing the difference it's the variant (XT1641 RetMX version here), nevertheless the bootloader reports the correct version (p2a)

The package includes a linux script.... flashall.sh but yes you can flash manually
[Moto G4 Plus Guides, News, & Discussion] trsix:
Maybe delete the motorola device manager and download it again?
[Moto G4 Plus Guides, News, & Discussion] sam sundar:
Yes u could as this is the latest firmware by Moto Lenovo Russia ! Those ppl will have the firmware , coz if any phone has any problem after the nougat , they will flash the firmware .. and this got leaked !
[Moto G4 Plus Guides, News, & Discussion] lapocha5:
done it, also deleted the driver and installed it a few times, im really tired of trying this, ill wait the ota, maybe 2 months more to get it? LOL
[Moto G4 Plus Guides, News, & Discussion] derausgewanderte:
worked like a charm on stock USA XT1644 (retus).

thank you
[Moto G4 Plus Guides, News, & Discussion] ivan290:
How can i relock the bootloader with the files in this post?????
[Moto G4 Plus Guides, News, & Discussion] syedhmed:
I can make a google drive mirror if the OP doesn't mind.
[Moto G4 Plus Guides, News, & Discussion] sakhura:
Your Main Problem is That you have not Copied all the files from the zip into the fastboot please copy all the files including all the folders which are in the zip in the fastboot folder and then it should work :good:
[Moto G4 Plus Guides, News, & Discussion] sakhura:
Sure you can give me the link I'll Update it in the OP
[Moto G4 Plus Guides, News, & Discussion] rocksolidnsg:
Great job

very good job working great on indian handset thanks once again for saving life of moto g4 plus :)
[Moto G4 Plus Guides, News, & Discussion] syedhmed:
https://drive.google.com/open?id=0B6p8Tmv1c70uUnU4RTdzbC1TTWs

Here's the Google drive mirror,I unpacked,added google's new adb and fastboot tools and repacked it.
[Moto G4 Plus Guides, News, & Discussion] Samerhk:
Can i try this if my bootloader is locked? or do i have to unlocked it before?
[Moto G4 Plus Guides, News, & Discussion] sakhura:
Yes you can use it with locked bootloader
[Moto G4 Plus Guides, News, & Discussion] Samerhk:
hey, i have the same phone and i was thinking about using this firmware but im worry about that 1.5ghz across all cores instead of having last 4 down. Does that cause overheat and battery issues?
[Moto G4 Plus Guides, News, & Discussion] manjeetexplorer:
Can you upload screenshot please..
[Moto G4 Plus Guides, News, & Discussion] lapocha5:
Thank you for your answer, dont know what i have to do, IM trying to use the fastboot metod, where i can find that folder? Thanks
[Moto G4 Plus Guides, News, & Discussion] omky_b4u:
Very slow

Both the links are very slow working, is it my end problem? Or others r also facing same.

First time download, went upto 58% & then automatically started from 0, then 17%, again 0%, then 88%, again 0%.

Please anyone upload fast download link(Google drive is also not working).

I am very excited to flash this.
[Moto G4 Plus Guides, News, & Discussion] gokulkishor:
An not able to flash the firmware the software is not detecting my phone what should I do
[Moto G4 Plus Guides, News, & Discussion] sakhura:
Try fastboot Method
[Moto G4 Plus Guides, News, & Discussion] sakhura:
Yes you will get. :good:
[Moto G4 Plus Guides, News, & Discussion] sam sundar:
If ever u didn't get , u can flash the ota zip via recovery as all of them are on this same build !
[Moto G4 Plus Guides, News, & Discussion] a-2-k:
The cloud file size (976mb) & google drive file size (894mb)

What's the difference between those file..... Is this same file.
[Moto G4 Plus Guides, News, & Discussion] sakhura:
Its been repacked by the person who has uploaded it
[Moto G4 Plus Guides, News, & Discussion] richardrs123:
Would this change my Retgb to Retin ??

If I flash
[Moto G4 Plus Guides, News, & Discussion] manjeetexplorer:
Can someone tell me is it working perfect on XT-1643 with indian flavour or not
[Moto G4 Plus Guides, News, & Discussion] sam sundar:
Ofcourse , this is for XT-1643 only !
[Moto G4 Plus Guides, News, & Discussion] manjeetexplorer:
Please upload a pic of details i just want to see the baseband details.
[Moto G4 Plus Guides, News, & Discussion] ASB41:
Those two download links in OP showing two different files.. Names are different & file sizes are different too..

are those files are same or different??
[Moto G4 Plus Guides, News, & Discussion] lerg96:
Hi it will work in XT1625 Amazon Prime? I have my bootloader locked, please. Let me know
[Moto G4 Plus Guides, News, & Discussion] ivan290:
Ey something strange happened.

Is the logo.bin file in this firmware the original one?

Because

I had unlocked bootloader

I relocked the bootloader and flashed nougat through fastboot and this firmware(bootloader alert was there)

I flashed this firmware with the flashall file

And now, the bootloader alert disappeared and my phone looks like a never modified phone

How can you explain that? The bootloader alert should be there right?
[Moto G4 Plus Guides, News, & Discussion] dsmid:
I suppose the flashall script took care of restoring your logo partition to locked condition (due to your bootloader being locked) ...

BTW the script (at least the Linux variant) looks like a professionally created catch-all tool, I suppose that's what Motorola customer care uses to flash phones.
[Moto G4 Plus Guides, News, & Discussion] ivan290:
Yes I thought the same

Very nice to have than choice
[Moto G4 Plus Guides, News, & Discussion] vineetk18:
It worked for me.. Thanks a lot
[Moto G4 Plus Guides, News, & Discussion] sakhura:
Yes its the same file but the person who has uploaded it has Repacked it hence it has a different Name and File Size. :good:
[Moto G4 Plus Guides, News, & Discussion] steven3804:
Is it possible to return to 6.0 without unlocking the bootloader?
[Moto G4 Plus Guides, News, & Discussion] lerg96:
I try to flash my Motorola XT1625 Amazon Prime bootloader locked. Can't start. "WE HAVE DETECTED AN ATTEMPT TO FLASH UNAUTHORIZED SH ON YOUR DEVICE. CONTACT CUSTOMER SERVICE FOR ASSISTANCE"

[IMG="Fail at the end"]http://pokit.org/get/img/5a46ededf4cb91926fd9ed7eea062b9e.png[/IMG]

Well, i will have to find something to go back to my android 6.0 hahaha
[Moto G4 Plus Guides, News, & Discussion] optionalmgrr.la:
flashall works on unlocked and rooted stock rom

now await permanent boot

thx!
[Moto G4 Plus Guides, News, & Discussion] ThaRandomAndroid:
Someone who has the xt1641 model with retmx and has flashed nougat, how is the performance of this? :confused:
[Moto G4 Plus Guides, News, & Discussion] sakhura:
Xt1641 has been confirmed as working by many users :good:
[Moto G4 Plus Guides, News, & Discussion] arc4d14n:
Pretty good, in my particular case, only notification sounds are way too low.... but except for this it's really smooth
[Moto G4 Plus Guides, News, & Discussion] puertagustavo99:
Is there any way to remove the download and upload indicators in the WiFi icon?
[Moto G4 Plus Guides, News, & Discussion] :
Is this the g4 plus or non plus variant
[Moto G4 Plus Guides, News, & Discussion] sam sundar:
U can remove the WiFi indicator by unlocking "system UI Tuner"( pull down notification bar , long press the settings icon in notification bar for 10 secs , voila system UI tuner is unlocked) and in system UI tuner menu , from status bar u can disable the WiFi icon !
[Moto G4 Plus Guides, News, & Discussion] ThaRandomAndroid:
I can keep my data or should I do wipes?
[Moto G4 Plus Guides, News, & Discussion] nykola5:
Help¡

I just updated and I pass the same bug that with the retail, music step both in internal and external memory and I do not recognize all the music (24 to be excused) in the player Blackplayer does not play it and in the others, but Not with the names that I have it, let me edit them, someone happens to you and there is a solution? :crying:
[Moto G4 Plus Guides, News, & Discussion] puertagustavo99:
Thank you. But I was wondering if one can remove the arrows inside the WiFi icon. They weren't there in 6.0.1 but they are in 7.0. Any way to remove it?
[Moto G4 Plus Guides, News, & Discussion] arc4d14n:
You can keep them, but it's always recommended to wipe, I did it that way
[Moto G4 Plus Guides, News, & Discussion] sam sundar:
Nah u can't ..
[Moto G4 Plus Guides, News, & Discussion] sam sundar:
Here you go !
[Moto G4 Plus Guides, News, & Discussion] pablotnt:
Work perfect for me. XT 1641 latam.

Thanks!
[Moto G4 Plus Guides, News, & Discussion] sakhura:
That's a known problem in Nougat the Notification Sounds are Low
[Moto G4 Plus Guides, News, & Discussion] ensechmau5:
XT1621

Works on Moto XT1621? I'am from México:D
[Moto G4 Plus Guides, News, & Discussion] jyoti.id:
If i flash this the normal way, i mean the way we flashed the stock mm? My bootloader is unlocked already so no issue, just wanna know if it works or not! :)
[Moto G4 Plus Guides, News, & Discussion] sam sundar:
It works ... Even if u r one custom ROM , it just flashes the rar and replaces every system files !
[Moto G4 Plus Guides, News, & Discussion] sakhura:
It doesn't work the normal way. :good: