yashsingh1/xdaforums huggingface dataset:
[Moto G4 Plus Guides, News, & Discussion] xtermmin:
Try redownloading it, then rename it to just recovery.img, and then try flashing.

Additionally, try a different USB 2.0 port on your computer, as some people encounter issues when using USB 3.0 ports.
[Moto G4 Plus Guides, News, & Discussion] braun247:
Thank you for the reply.

I downloaded the file again, renamed it to recovery.img and changed the USB port (It was not on a USB 3 port, but changed it anyways) and I am still getting the same error. (see below)

C:\Root>mfastboot flash recovery recovery.img

target max-sparse-size: 256MB

sending 'recovery' (12496 KB)...

OKAY 0.399s

writing 'recovery'...

(bootloader) Image not signed or corrupt

OKAY 0.191s

finished. total time: 0.594s

Thank you again for your time and help.
[Moto G4 Plus Guides, News, & Discussion] :
I have said this already and will not keep replying for every user who has this issue. I addressed this is the same thread to 2 users already, kindly search well before you post. This is not an Error, it is just like a warning. Just flash again and reboot to recovery, TWRP will be fine. After flashing, don't reboot system, reboot to recovery.
[Moto G4 Plus Guides, News, & Discussion] runed.OS:
Sorry for taking so long. I have an XT1625 32GB moto G?. It's the amazon edition. ( The box says 'Model: 01018NAAZN'

BTW, what is the software channel for? At the moment, it is 'amz'. Could there be an automatic firmware update at some point?

Hope I helped!
[Moto G4 Plus Guides, News, & Discussion] crazyjimbo:
Still waiting for an XT1644 stock firmware build. Bought this phone today and started playing around while I was too tired, forgot to make a nandroid. So WIFI doesn't work at all now. Gonna start over! Overall though, great little phone!
[Moto G4 Plus Guides, News, & Discussion] xtermmin:
We're still trying to 100% figure it out. Even after flashing a clean stock OS (more than just flashing oem.img), it still shows up as "amz". On non-ad models, it lists the Software Channel as "retus".

http://www.filefactory.com/file/3t2...PJ24.139-48_cid50_subsidy-DEFAULT_CFC.xml.zip
[Moto G4 Plus Guides, News, & Discussion] Gab19:
I have a trouble with my WIFI now... i can't turn it on.. i have test all APK on internet for repear it... Can u help me? my model is XT1641
[Moto G4 Plus Guides, News, & Discussion] sean1987:
What is the correct firmware download for my phone, Australia Moto G Plus Model: XT1642 Type:M1B89
[Moto G4 Plus Guides, News, & Discussion] sai444:
Did you try Factory reset?
[Moto G4 Plus Guides, News, & Discussion] Aqryllic:
"(bootloader) Image primary_gpt failed validation", still getting this...

Please help!

C:\adb>mfastboot oem fb_mode_set
...
OKAY [ -0.000s]
finished. total time: -0.000s

C:\adb>mfastboot flash partition gpt.bin
target max-sparse-size: 256MB
sending 'partition' (32 KB)...
OKAY [ 0.000s]
writing 'partition'...
(bootloader) Security version downgrade

(bootloader) Image primary_gpt failed validation

(bootloader) Preflash validation failed
FAILED (remote failure)
finished. total time: 0.047s

C:\adb>

I live in Europe so it's not Indian version. Also, it's model XT1642.
[Moto G4 Plus Guides, News, & Discussion] The_Cardinl:
No OS and official stock ROM issues

One of my friends screwed up and wiped the OS too when wiping data.

So we decided to flash the stock ROM as TWRP is installed and no custom ROM is available.

But official stock ROM has its own set of issues. It fails Md5 check and Meta folder is missing.

What should we do?

We don't have a backup to restore.
[Moto G4 Plus Guides, News, & Discussion] :
I dont understand "official stock ROM has its own set of issues" part. You are definitely doing something wrong whats the error when you flash the stock rom? There is no other solution for you other than flashing stock.
[Moto G4 Plus Guides, News, & Discussion] Disgustip8ed:
Maybe try this: http://xdaforums.com/moto-g4-plus/help/dumb-to-g4-plus-t3418217

I went through something similar. Follow these steps and you should be fine.
[Moto G4 Plus Guides, News, & Discussion] anhoxhrs:
it got solved....i tried to flash the rom of indian version of mto g4 plus through twrp..it showed error.nut through adb all went good
[Moto G4 Plus Guides, News, & Discussion] DaremoS:
Did you get to solve the problem with Wifi?

If it's yes, how did you get the solution?

If No, I think that there is a problem with boot.img

---------- Post added at 07:56 PM ---------- Previous post was at 07:33 PM ----------

I have the same problem and factory reset didn't solve it.

I wonder what instruction of boot.img deals with wifi as I think the problem is there.

The problem is more complicated as, after factory reset, without WIFI it's not possible to recover apps.

Anyway to return to stock is available, and wifi were working then.
[Moto G4 Plus Guides, News, & Discussion] jyoti.id:
My Moto G4+ is rooted & i dont have any wifi issue. I used other method to root, not this method.
[Moto G4 Plus Guides, News, & Discussion] foxdog66:
Is there any info on creating my own logo image?
[Moto G4 Plus Guides, News, & Discussion] DaremoS:
Can you share the method you use to root your device?

This will save time trying to find the right one for my XT1621

---------- Post added at 01:20 PM ---------- Previous post was at 01:20 PM ----------

Can you share the method you use to root your device?

This will save time trying to find the right one for my XT1621
[Moto G4 Plus Guides, News, & Discussion] jyoti.id:
http://xdaforums.com/moto-g4-plus/how-to/root-systemless-rooting-supersu-2-74-2-t3405772

I tried this method. Cant be sure but it SHOULD work PERFECTLY on your version too!! :)
[Moto G4 Plus Guides, News, & Discussion] DJTeeJay:
XT-1644 Attempted to UNLOCK Bootloader, got my code, cmd said okay and finished, but device never rebooted, i check in bootloader and im still locked.
[Moto G4 Plus Guides, News, & Discussion] somboons:
1 question. Can we locked bootloader ? (locked doesn't relocked)
[Moto G4 Plus Guides, News, & Discussion] umang2091:
Urgent help required

I have indian version of moto g4 plus which is working fine, i have rooted the phone and also twrp installed. Only issue is when i open the settings and go to app manager inside settings the settings app crashes and this is very annoying because i am unable to force close any app due to this. I want to get back to stock rom afresh.. please provide link from where to download as m confused seeing too many links. Der is no service center in my city so i can't even go to service center. Also can i install stock rom if twrp is installed or do i need to get stock recovery also?
[Moto G4 Plus Guides, News, & Discussion] somboons:
[MENTION=5359534]yeshwanth[/MENTION]vshenoy or anyone who can show me bootloader screen after relock ? it is shows locked or relocked ?
[Moto G4 Plus Guides, News, & Discussion] m.swastik:
How long does it take for unique code mail to arrive from Motorola. I have been waiting for an hour.
[Moto G4 Plus Guides, News, & Discussion] DJTeeJay:
Got mine as soon as i checked

---------- Post added at 10:36 PM ---------- Previous post was at 10:23 PM ----------

I just had to start over. Has any new method's become available for TWRP Recovery and Root?
[Moto G4 Plus Guides, News, & Discussion] webvan:
Thanks for the tutorial and logo but I'm seeing a white "N/A" in the left "branch" of "moto" for a few seconds when it first boots, is that unavoidable or am I doing something wrong? Thanks !
[Moto G4 Plus Guides, News, & Discussion] Luniz2k1:
That is normal.

Sent from my Moto G4+ 64gb
[Moto G4 Plus Guides, News, & Discussion] gautam645:
Your device is unlocked

Hie, I unlocked the bootloader as stated.

I tried installing twrp and it says image is corrupt.

Going through the thread I just rebooted it from recovery. Any method to check if it is properly installed??

Now I am trying to flash super su but as i try opening the recovery option under the boot recovery mode it says yoir device is unlocked and not trustworthy and a error of no command pops up and I again have to reboot it. So am not getting any option to install supersu from the sd card or phone, basically am unable to so anything coz of this warning.???

Pls help..

Update- now it is saying your device didn't start up successfully.

Error: failed to load kernel!
[Moto G4 Plus Guides, News, & Discussion] krishna442:
Can someone update these files to any other host? filefactory is blocked in India.
[Moto G4 Plus Guides, News, & Discussion] Ivan Fuentes Hagar:
Hi people! So, this is odd... I checked the bootloader unlocking page yesterday, had to go and decided to go through the whole process today, however I'm greeted by a nice 404 message that wasn't there yesterday. Anyone else see this?
[Moto G4 Plus Guides, News, & Discussion] anhoxhrs:
Corrupted image is normal don't worry,but I would suggest flash the stock firmware again,then flash twrp,then after it gets flashed just reload the bootloader not the device otherwise it will get overwritten by the stock recovery.It will work if not then reply I will help.
[Moto G4 Plus Guides, News, & Discussion] gautam645:
Thanx

hey thanx a ton. I trieed the whole process again, may be I was doimg something wrong.

Its working fine now.
[Moto G4 Plus Guides, News, & Discussion] anhoxhrs:
Np
[Moto G4 Plus Guides, News, & Discussion] fix-this!:
yup its down for me to. damn

edit: just chatted with moto, they are doing server maintenance. no ETA on when it will be back up. id assume by tonight or tomorrow i hope.
[Moto G4 Plus Guides, News, & Discussion] Ivan Fuentes Hagar:
While reading on, found out you can try sites from different countries! Canadian site didn't let me unlock, but Portuguese site did the job:

https://motorola-global-portal-pt.custhelp.com/app/standalone/bootloader/unlock-your-device-c

My Portuguese is pretty basic, but I did manage to understand everything, and even if I didn't, I guess it'd be nothing that Google Translate couldn't take care of.
[Moto G4 Plus Guides, News, & Discussion] fix-this!:
thanks man.
[Moto G4 Plus Guides, News, & Discussion] Ivan Fuentes Hagar:
no prob!
[Moto G4 Plus Guides, News, & Discussion] situ1962:
After signing in in the above mentioned site what should I do?It is giving error in the next screen.The link to the error is given below

https://motorola-global-portal-pt.custhelp.com/app/error/error_id/cas_10

So what should I do?Please guide
[Moto G4 Plus Guides, News, & Discussion] Ivan Fuentes Hagar:
That's odd... I clicked on the original link again and didn't get to that error page you posted.
[Moto G4 Plus Guides, News, & Discussion] jyoti.id:
Why? Please anyone!!
[Moto G4 Plus Guides, News, & Discussion] anhoxhrs:
Which device do you have?is it retail or carrier locked?
[Moto G4 Plus Guides, News, & Discussion] jyoti.id:
I actually dont know! Can you tell me how to identify that!?
[Moto G4 Plus Guides, News, & Discussion] anhoxhrs:
Go to settings , scroll down to about phone ,tap it,and send me the screen shot
[Moto G4 Plus Guides, News, & Discussion] jyoti.id:
Here it is
[Moto G4 Plus Guides, News, & Discussion] anhoxhrs:
Where you purchased it from? amazon.in?
[Moto G4 Plus Guides, News, & Discussion] jyoti.id:
Yes

---------- Post added at 09:42 AM ---------- Previous post was at 09:38 AM ----------

It's one of my friend's. He says that he is getting ads all the time whenever he is connecting to data/wifi (since 2 days). While in my own G4 i never face something like that.
[Moto G4 Plus Guides, News, & Discussion] anhoxhrs:
https://motorola-global-portal.custhelp.com/app/standalone/bootloader/unlock-your-device-a

go to this site with the code you get from bootloader.(if you dont know the bootloader code reply)

---------- Post added at 08:45 AM ---------- Previous post was at 08:42 AM ----------

Ohk,it would be a locked phone by amazon.He would have bought it for less .It would be a contract phone.If not reply.Contract phones cannot be unlocked till the contract ends like a period of years.
[Moto G4 Plus Guides, News, & Discussion] jyoti.id:
No he bought it for ?15000. 32Gb
[Moto G4 Plus Guides, News, & Discussion] anhoxhrs:
pm me the code you get from the bootloader.
[Moto G4 Plus Guides, News, & Discussion] jyoti.id:
Done!
[Moto G4 Plus Guides, News, & Discussion] anhoxhrs:
https://forums.lenovo.com/t5/MOTOROLA-Android-Developer/Bootloader-Unlock-Problems/m-p/3222809

follow his steps and reply

Edit-No need i have pm you the code ,hit thanks if you liked me assisstance xD
[Moto G4 Plus Guides, News, & Discussion] Zappyzap:
I am not able to download from file factory.(download error 265). The model number is xt1643.

Can anyone please give an alternate link to download the stock firmware.
[Moto G4 Plus Guides, News, & Discussion] anhoxhrs:
Indian variant?if indian https://drive.google.com/file/d/0B1N6dGU7FEXsSjR3QUtsRU1RTVk/view Go to this from computer not mobile.It will be easy for u.
[Moto G4 Plus Guides, News, & Discussion] naveen135:
custom boot logo

could you please provide us custom logo.bin?:confused:
[Moto G4 Plus Guides, News, & Discussion] radichification:
Hi guys, could you help me please?

I've successfully unlocked my bootloader and also installed TWRP. The thing is: I want to ROOT, but I'm from Brazil and so I have a XT1640 with the MPJ24.139-50 software version. I'm afraid of losing my wi-fi connection.

What do I do?
[Moto G4 Plus Guides, News, & Discussion] anhoxhrs:
There wont be any problem with wifi untill you flash wrong stock rom.go ahead root your phone.
[Moto G4 Plus Guides, News, & Discussion] nischal.m:
invalid boot state

hey,

Im getting an invalid boot state upon performing the unlock

fastboot oem unlock my_code

I have enabled unlocking in developer option

Thanks in advance
[Moto G4 Plus Guides, News, & Discussion] Utkarsh-ezzo:
Not able to root, flashed the patched boot.img and then supersu, while installing supersu when patching boot image it says already patched, aborted.

When phone is bootes there is no SuperSu app present.

Please help.

I am on XT1643
[Moto G4 Plus Guides, News, & Discussion] mkp52mkp:
i messed up. i unlocked the BL then locked it. now whenever i'm trying to unlock again its giving me error "invalid boot state". what to do guys?
[Moto G4 Plus Guides, News, & Discussion] anhoxhrs:
just download the super su app from playstore or chrome.I mean intsall apk version.Had same problem did a mannual install worked.

---------- Post added at 10:57 AM ---------- Previous post was at 10:56 AM ----------

Can you give the screen shot of the cmd with commands when you get this?

---------- Post added at 10:59 AM ---------- Previous post was at 10:57 AM ----------

Send the screen shot of cmd with commands.
[Moto G4 Plus Guides, News, & Discussion] harsh9987:
guys help me i have moto g4 plus XT1643 32gb /3 gb ram(india) i have flashed XT1626-XT1640-XT1641_ATHENE_6.0.1_MPJ24.139-23.1_cid50_subsidy-DEFAULT_CFC.xml.zip and now its not showing me finger print lock in setting...

pls help me.
[Moto G4 Plus Guides, News, & Discussion] jyoti.id:
Rooted & Have TWRP?
[Moto G4 Plus Guides, News, & Discussion] harsh9987:
yes
[Moto G4 Plus Guides, News, & Discussion] jyoti.id:
Not Absolutely sure. But

try to restore the backup via twrp from the below link. I also have xt1643. Its rooted & blootware removed!

https://drive.google.com/file/d/0B1HgOzfzF6zKaTJPMnZ1dWV5OGM/view?usp=drivesdk
[Moto G4 Plus Guides, News, & Discussion] harsh9987:
okay now its not showing me cellular networks and no finger print and my kernel is changed after restore

omg my phone is dyingg

its shows me moto g4 but mine is moto g4 plus
[Moto G4 Plus Guides, News, & Discussion] jyoti.id:
:( Then can't say bro. It happened to another user also, he tried the same process like i said to you & he got fixed! Try flashing the proper Firmware again.
[Moto G4 Plus Guides, News, & Discussion] harsh9987:
can u send me the link of firmware
[Moto G4 Plus Guides, News, & Discussion] anhoxhrs:
No buddy it did not xD.Motherboard had to be replaced.There is some problem with bootloader i suppose.
[Moto G4 Plus Guides, News, & Discussion] jyoti.id:
Search it in xda bro
[Moto G4 Plus Guides, News, & Discussion] HiItsDevin_:
Um, I unlocked the bootloader, but when flashing TWRP, I get this:

C:\Users\a\Downloads\mfastboot-v2>mfastboot flash recovery twrp-3.0.2-0-athene.img
target max-sparse-size: 256MB
sending 'recovery' (12496 KB)...
OKAY [ 0.422s]
writing 'recovery'...
(bootloader) Image not signed or corrupt

OKAY [ 0.354s]
finished. total time: 0.782s

C:\Users\a\Downloads\mfastboot-v2>

I'm on a Moto G4 Plus [Model XT1644]
[Moto G4 Plus Guides, News, & Discussion] anhoxhrs:
Its normal.If you flash stock recovery then also it will say this.Just after flashing twrp dont restart the device just restart the bootloader otherwise the twrp recovery will get replaced by stock recovery.
[Moto G4 Plus Guides, News, & Discussion] engineer000:
Anyone who tried this on dual sim version? Device is from middle east.
[Moto G4 Plus Guides, News, & Discussion] smstiv:
What you mean with "this"? This guide is compatible with all Moto G4 variants. And yes I try it couple of times. Restore and Root my XT1642. You just need to do exactly what OP say. Good day.
[Moto G4 Plus Guides, News, & Discussion] Smit01:
Hello,

need some help here,

I want to root my Moto G4 plus but a friend said that you'll need your warranty as you'll surely have some problem in your phone in a year, plus because they know you have unlocked the bootloader, there will be no way to use warranty once bootloader is unlocked. Can anyone tell me if i should root or don't root for warranty .

Thanks.
[Moto G4 Plus Guides, News, & Discussion] anhoxhrs:
Wait for 6 months after purchase.If some problem will be there you will come to know in 6 months
[Moto G4 Plus Guides, News, & Discussion] Tel864:
I agree on waiting a few months or so to see if you will have problems. As for unlocking, according to their website just requesting the unlock code voids the warranty whether you actually unlock of not. For that reason I would only request the code if you're 100% sure you're ready to unlock and root.

Sent using XDA-Developers Mobile App
[Moto G4 Plus Guides, News, & Discussion] engineer000:
Thanks for your reply. My about phone doesn't say XT1642, it only says Moto G4 Plus that's why I asked. I'm going to try it on my restday. Thank you.
[Moto G4 Plus Guides, News, & Discussion] ThaHaloMilitia:
I flashed my stock firmware and I keep getting no IMEI
[Moto G4 Plus Guides, News, & Discussion] HE4VYCR0WN:
MEGA.nz Mirror

XT1622-XT1624_ATHENE_MPJ24.139-63_cid50_subsidy-DEFAULT_regulatory-DEFAULT_CFC.xml.zip

Download:

mega.nz/#!qVgSSDJQ!gUoAu9bms2lhwPo6pts98ZAPVZEWT3VJOvRExQgSHVg
[Moto G4 Plus Guides, News, & Discussion] SoNic67:
The filefactory links are down now - at least for free downloads.
[Moto G4 Plus Guides, News, & Discussion] ThaHaloMilitia:
I've already tried that one and I still get no imei haha
[Moto G4 Plus ROMs, Kernels, Recoveries, & Other De] yeshwanthvshenoy:
Team Win Recovery Project 3.x, or twrp3 for short, is a custom recovery built with ease of use and customization in mind. Its a fully touch driven user interface no more volume rocker or power buttons to mash. The GUI is also fully XML driven and completely theme-able. You can change just about every aspect of the look and feel.

We have our set of full builds using our new jenkins build server. You can track the progress of builds at https://jenkins.twrp.me and we have taken additional steps to make it easier for device maintainers to step up and submit patches to our gerrit server at https://gerrit.twrp.me to help us keep devices up to date and working.

DOWNLOAD:

Most devices can be updated quickly and easily within TWRP if you already have version 2.8.4.0 or higher installed

1) Download the latest version from our website on your device

2) Reboot to TWRP

3) Hit Install and tap the "Images..." button in the lower right

4) Browse to the location of the TWRP image on your device and select it

5) Select recovery from the partition list and swipe to flash

OR:

You can find more information and download links on our website.

Motorola Moto G4 Plus

NOTE: If you are flashing TWRP for the first time then you need to check this thread and then flash TWRP.

XDA:DevDB Information

TWRP Recovery for the Moto G4 Plus

Contributors

yeshwanthvshenoy, pranav01

Device Tree:https://github.com/TeamWin/android_device_motorola_athene

Version Information

Status: Stable

Created 2016-05-26

Last Updated 2017-05-03
[Moto G4 Plus ROMs, Kernels, Recoveries, & Other De] yeshwanthvshenoy:
Reserved!
[Moto G4 Plus ROMs, Kernels, Recoveries, & Other De] TheDj408:
Awesome! Will try it out right now :)
[Moto G4 Plus ROMs, Kernels, Recoveries, & Other De] ynshetty:
awesome......will try it and let u know......
[Moto G4 Plus ROMs, Kernels, Recoveries, & Other De] Himalaya saxena:
Great work !!
[Moto G4 Plus ROMs, Kernels, Recoveries, & Other De] cool_sid:
Thanks people..... great work..... I'll try it now.....

---------- Post added at 07:42 AM ---------- Previous post was at 07:41 AM ----------

It requires unlocked bootloader right?
[Moto G4 Plus ROMs, Kernels, Recoveries, & Other De] manojkumar8552:
yes it require unlocked bootloader
[Moto G4 Plus ROMs, Kernels, Recoveries, & Other De] amanjeet@msn.com:
on flashing it says image not signed or corrupt ..... please guide
[Moto G4 Plus ROMs, Kernels, Recoveries, & Other De] yeshwanthvshenoy:
Don't worry. You will get this even if you flash the stock recovery or the stock kernel via fastboot. Just reboot to recovery and it will be fine.
[Moto G4 Plus ROMs, Kernels, Recoveries, & Other De] amanjeet@msn.com:
when i boot into recovery mode

it still says Anrdoid Recovery

motorola/ athene_retail/athene
[Moto G4 Plus ROMs, Kernels, Recoveries, & Other De] Silesh.Nair:
Reboot to recovery after flashing the twrp image. Then reboot your device from recovery.

If you reboot your phone from fastboot aftwr flashing twrp, it gets overwritten by stock recovery.
[Moto G4 Plus ROMs, Kernels, Recoveries, & Other De] yeshwanthvshenoy:
He is right. Flash twrp and boot into recovery, if you boot normally, it will patch back the recovery.
[Moto G4 Plus ROMs, Kernels, Recoveries, & Other De] amanjeet@msn.com:
Thanks mate, it did worked, installed xposed tweaked my phone , but after installing xposed file manager refuses to open
[Moto G4 Plus ROMs, Kernels, Recoveries, & Other De] yeshwanthvshenoy:
Don't you need SuperSu for Xposed? I never use Xposed so have no idea. Were you able to root the device or how did you get it working?
[Moto G4 Plus ROMs, Kernels, Recoveries, & Other De] amanjeet@msn.com:
after instaling TWRP , i installed xposed .......... i dont think i need root or for what ........... with xposed i installed ADblocker and vibrate on call connect .......... its charm now
[Moto G4 Plus ROMs, Kernels, Recoveries, & Other De] carreddy:
Error!!

C:\Users\xxxx\Downloads\mfastboot-v2>mfastboot flash recovery twrp_athene_20150526.img

target max-sparse-size: 256MB

sending 'recovery' (12498 KB)...

OKAY [ 0.453s]

writing 'recovery'...

(bootloader) Image not signed or corrupt

Downloaded from gdrive link. Tried several times. Same error.

Someone help?
[Moto G4 Plus ROMs, Kernels, Recoveries, & Other De] Silesh.Nair:
Just reboot to recovery. It shows this error even when flashing the stock recovery. Works fine.
[Moto G4 Plus ROMs, Kernels, Recoveries, & Other De] yeshwanthvshenoy:
[MENTION=4551757]Silesh.Nair[/MENTION] is right. Even if you flash stock boot.img or recovery.img, you will get the error but just flash and reboot to recovery immediately(if you boot normally, stock rom will replace twrp with stock recovery). i do believe that Moto is just trying to scare us not to flash anything via fastboot :P :D
[Moto G4 Plus ROMs, Kernels, Recoveries, & Other De] yeshwanthvshenoy:
Okay folks, we are now Official :P :D Enjoy!
[Moto G4 Plus ROMs, Kernels, Recoveries, & Other De] amanjeet@msn.com:
Hi ... the phone is bootloader unlocked and twrp installed and xposed is installed as well

now if there is an Android N update .... can i still update my phone and if no ... how do i update my phone

(supersu) is not installed

Regards