yashsingh1/xdaforums huggingface dataset:
[Moto G4 Plus Guides, News, & Discussion] echo92:
Ah, that toggle in developer options does not mean your bootloader is locked or unlocked. Rather, it's a security feature to allow you to perform bootloader unlocking (that feature must be turned on to unlock your bootloader), but the actual act of unlocking your bootloader or keeping it unlocked is otherwise separate. The best way to confirm if your bootloader is unlocked (which it should be if you're using TWRP or custom ROMs) is to boot into the bootloader. If your bootloader is locked, you should see OEM_locked as the status. Unlocked bootloaders should display flashing_unlocked.

When are you flashing in ADB? ADB only works in recovery and when you're booted to the system. For booting into the bootloader, only fastboot commands will work. Ensure you've got your device signature enforcement disabled and check your device is contactable by typing, into an ADB terminal, either 'fastboot devices' without quotes if using the bootloader or 'adb devices' without quotes if in the recovery. Your device should return its serial number if it's responding, when you press enter.

Slot not found is normal for our devices as we do not have flashing slots (i.e. separate, duplicate partitions used for updating and flashing in A/B partitioned services). Ignore that informational message.
[Moto G4 Plus Guides, News, & Discussion] iPraShri:
Thanks for the information.

Let me tell you what I see on Fastboot screen:

"Console [NULL] = null

Tools Mode Config: DISABLED

Battery OK

flashing_locked

Software status: Official

Connect USB Data Cable"

When I connect the phone to PC, Last line changes to Transfer Mode: USB Connected

I can see the device serial number in fastboot & ADB command window.

I have attached the pictures.
[Moto G4 Plus Guides, News, & Discussion] Wheels564:
With phone running, got to developer settings and make sure Android Debugging is checked. Then open the command window and type "ADB reboot bootloader" (not quotes). The fastboot screen will come up and will show bootloader status. It will show either "device is locked status code 0" or "device is unlocked status code 3". If locked look for directions how to get unlock code from motorola.
[Moto G4 Plus Guides, News, & Discussion] iPraShri:
I have the unlocked code, I had the bootloader unlocked. I was using a custom rom then I decided to go back to stock. For a change, I flashed the older official Nougat rom, but that changed phone's IMEI to 0. Then I tried to flash the latest official rom, but I found out I can't flash anything from fastboot. So I ran the TWRP without flashing from fastboot, from there I flashed TWRP from TWRP itself, then I flashed the roms & made the phone useful.

Please let me know if you can help me to use the fasboot mode again.

---------- Post added at 12:13 PM ---------- Previous post was at 12:04 PM ----------

@echo92

Sir, is there any third party app which can fix bootloader & fastboot issues ?

I'm 100% sure my fastboot is locked, I have allowed OEM unlocking from settings.

My PC & drivers are working fine. I can even see my device ID in the command window.

When I try to unlock bootloader, result says it is already locked, while I try to flash something from Fastboot, it says failed remote error. Is there any solution I can try myself or going to Motorola service centre is the only solution ?

It was working fine until I flashed the Older version of Stock rom for the same model, then IMEI changed to zero & problem began.

I will really appreciate your help.

Thanks in advanced.
[Moto G4 Plus Guides, News, & Discussion] Wheels564:
Hopefully echo92 can help you. I haven't had to go that far with Athene. But I think I remember reading that you cannot backwards flash nougat over oreo. I also believe there is a thread to show how to re flash the stock rom from the bootloader assuming you can get fastboot commands to work. If you upgraded to stock oreo than I believe thats the one you have to flash. echo92 would know more about that than I. Good luck
[Moto G4 Plus Guides, News, & Discussion] echo92:
Short of flashing the bootloader again via fastboot, I'm not sure of any other solutions. Third party apps likely will not work, because they have to be digitally signed by Motorola to work and also it'd present a big security issue if you could modify the bootloader without authorisation.

Are you able to flash anything in fastboot, or does it result in a remote error? Is this with the official Motorola USB cable or another high quality data USB cable (not a charge only cable)? Normally, I'd suggest a bootloader flash, but if you cannot flash, that's a problem. In normal situations, you should not have TWRP on a locked bootloader, which either suggests your bootloader is misreporting its status or there's corruption on your device.

You could try the service centre, however I suspect the total cost of repairing your device will outweigh that of a new device. Flashing Nougat over Oreo does appear to have resulted in issues regarding IMEI (presumably due to the difference in major versions) for other users, but this is the first time I know of that a downgrade has messed this much with a bootloader. Bootloaders should not be affected when downgraded since the older bootloader is blocked from downgrading, which unfortunately is why users hard brick when they try to use old OTA updates.
[Moto G4 Plus Guides, News, & Discussion] Harfounet:
Hi there !

I'm trying to update a Moto G4 Plus XT1641 with Android 8 Oreo stuff.

I made searchs, found a lots of threads, but none helped. And I finally ended here.

Because I want to use the TWRP method, as it's better as said by the OP.

The bootloader is unlocked as I can see in the fastboot menu.

I have ADB, fastboot & mfastboot. A TWRP image aswell, 3.3.1 found here too.

Phone connected on computer USB 2 port.

USB debugging enabled.

So, I type : adb reboot bootloader

The phone shows now some informations, including "flashing allowed". Nice.

But "fastboot flash recovery twrp331.img" OR "fastboot boot twrp331.img" just give a message in command prompt : "waiting for device".

I don't understand what I need to do there :/

Disconnecting then reconnecting the USB cable does nothing at all...

What am I doing wrong ?
[Moto G4 Plus Guides, News, & Discussion] Harfounet:
Anyone to help me ? Please...
[Moto G4 Plus Guides, News, & Discussion] Harfounet:
Well...I finally did it.

TWRP is now installed and fully operational : I did a phone full backup, in case of bad things happening.

Now, what's the best and easier method to root it ?
[Moto G4 Plus Guides, News, & Discussion] :
Just grab the adb & fastboot from the link and go ahead. That's all you need for now.
[Moto G4 Plus Guides, News, & Discussion] yash989:
And what about the version

I have 16 gb is all the process and recovery same
[Moto G4 Plus Guides, News, & Discussion] :
I am sure it should be the same but I can't guarantee. Just try and report back.
[Moto G4 Plus Guides, News, & Discussion] nrp31:
Just rooted my Moto G4 Plus using this method. I have made a full tutorial including all the steps for all of you guys. You can watch it here. Thanks [MENTION=5359534]yeshwanth[/MENTION]shenoy and it would be great if you can add the video to the OP so more people can find it helpful. :)

[YOUTUBE]dK2uacpjGwc[/YOUTUBE]
[Moto G4 Plus Guides, News, & Discussion] yash989:
In stock rim download there are many files m confuse which to download can u help i have 16 gb Indian version
[Moto G4 Plus Guides, News, & Discussion] :
Must be this http://www.filefactory.com/file/1pq...24.139-23.4_cid50_subsidy-DEFAULT_CFC.xml.zip . Is your model XT1621 or XT1622 or XT1642 ? I guess it should be XT1642. Try out and let me know.
[Moto G4 Plus Guides, News, & Discussion] yash989:
In settings -about phone-regulatory info it shows xt1643
[Moto G4 Plus Guides, News, & Discussion] Drake supertramp:
can anybody share the resumable links for stock firmware?
[Moto G4 Plus Guides, News, & Discussion] tuongtrante1:
boot.img need to disable selinux it interferes with root
[Moto G4 Plus Guides, News, & Discussion] micahbell:
I soft bricked my phone last night trying to root, using somebody elses tutorial, not this one.

My phone will still go into recovery mode so I am trying to use your directions to reflash to stock.

The first command works but running

fastboot flash partition gpt.bin

Gives the following output and error

Any idea what my issue is?

Thanks

*EDIT* My phone SKU is XT1641, version p2a. 32 GB hard drive, 2 GB ram. Sold in Canada if that makes any difference.

*EDIT 2* I got this fixed.

My phone is a Moto G4 Plus, 32 gig, 2 gigs ram on Virgin Mobile Canada. I got it up and running using the Telus firmware. When I got my phone the only "bloatware" that came with it was the Virgin My Account app. The sales person I got my phone from had it for a little bit during setup so I'm not sure if she quickly installed it or not, but either way it's not here with this firmware and there is no extra bits from Telus either. Everything seems to work perfectly.
[Moto G4 Plus Guides, News, & Discussion] Bender1987:
mfastboot doesn't allow you to downgrade your partition, maybe the firmware version you try to flash is older than the version on your phone. Have you try to skip the error?
[Moto G4 Plus Guides, News, & Discussion] micahbell:
That must be the problem. I was on 6.0.1 but maybe it's a later security update than the one posted here.

I have not tried to move past the error as right now I can still boot into recovery and use fast boot and I don't want to risk possibly losing that. Should it be fine to test?
[Moto G4 Plus Guides, News, & Discussion] :
Your surely flashing a wrong version or the correct version but an older build. I would need your build.prop (if you have TWRP just copy from the file manager) else if you might need to flash 4-5 stock roms and test which one is yours. Here are the links:

http://www.filefactory.com/file/6vh...PJ24.139-23.5_cid50_subsidy-RGRCA_CFC.xml.zip

http://www.filefactory.com/file/4kh...PJ24.139-23.3_cid50_subsidy-TELUS_CFC.xml.zip

http://www.filefactory.com/file/61f...24.139-23.2_cid50_subsidy-DEFAULT_CFC.xml.zip

http://www.filefactory.com/file/78u...J24.139-23.2_cid50_subsidy-BELLCA_CFC.xml.zip

http://www.filefactory.com/file/64m...24.139-23.1_cid50_subsidy-DEFAULT_CFC.xml.zip

http://www.filefactory.com/file/47o...24.139-13.3_cid50_subsidy-DEFAULT_CFC.xml.zip

http://www.filefactory.com/file/6jg...24.139-13.1_cid50_subsidy-DEFAULT_CFC.xml.zip

I honestly have no idea which is yours. Too many variants confuse me. But I am pretty sure flashing this won't lead to a hardbrick. Here is what you gotta do :

if(flashing==giveserror)
{
echo "wrong firmware";
}
else if(flashing==noerrors && booting && radioworks)
{
echo "correct firmware";
}
else
{
echo "wrong firmware again";
}
[Moto G4 Plus Guides, News, & Discussion] micahbell:
*EDIT* This post was asking for clarification on yours. I was on mobile earlier and it was really hard to find information. Just got back and was able to dig and search, looks like I need MPJ24.139-13.1. Thanks for the response, it's 1 am now and I'm on super slow hotel wifi so that'll take a few hours. In the morning I'll give a test and report back.

Thanks again
[Moto G4 Plus Guides, News, & Discussion] jyoti.id:
I'm getting a little confused. I read all the posts & comments properly.

1st Of All My Device Specification:

2GB/16GB, Build No. MPJ24.139-13.3, XT1643, Chinese Version(Instructions On Device Package Is Chinese)

Now Which Is The Proper Stock Firmware For My Device? & I Need To Flash The The Modified-Boot Image After Rooting To Avoid WiFi Error!? Via TWRP or Any Script!? Please Help :(

Thnx In Advance :)
[Moto G4 Plus Guides, News, & Discussion] barikad:
Hmmm Interesting. Do you think I can recover the radios from the "G4_XT1641-XT1643_ATHENE_6.0.1_MPJ24.139-13.1_cid50_subsidy-DEFAULT_CFC.xml.zip" file and settle the problem as I explain in this post: http://xdaforums.com/moto-g4-plus/help/change-baseband-t3403822 ? :confused:
[Moto G4 Plus Guides, News, & Discussion] yash989:
How to know if bootloader unlocked and can i flash this recovery on xt1643 or it will bootloop
[Moto G4 Plus Guides, News, & Discussion] micahbell:
I was able to get my phone working using the Telus one. I'm not sure why but first round through they all gave me the same error but after trying them again two didn't give me the errors and the Telus one works perfectly, as far as I can tell.
[Moto G4 Plus Guides, News, & Discussion] :
Glad to know! Its just a case of test and trial because there are many variants for this device. It gets too confusing for people. Can you please paste the link of the rom that got you through? State your variant and carrier so it can help others as well.

Turn off the device and press Vol down + Power button for 3-5 secs and you will boot into bootloader mode. There will be lines on the screen saying if it is unlocked or not.
[Moto G4 Plus Guides, News, & Discussion] Mileoun:
Help to change unlocked boot warning message.

I tried command as you mentioned in thread to change boot logo and message disappears while on boot but different message shows on boot : (N/A) :confused:

Please help to remove this message, to change boot logo and to install modified boot.img file.
[Moto G4 Plus Guides, News, & Discussion] :
Did you flash my bootlogo properly? It should fix it. Works for me though. As for the modified boot.img flashing, I do believe the instructions by manoj is clear, try reading that a few times and you should understand that.
[Moto G4 Plus Guides, News, & Discussion] micahbell:
For sure. Not sure what went changed between the first time I went through them and the second, but I had some software updates inbetween so there could have been something funky going on.

I'll post here and edit my first post for searchability.

My phone is a Moto G4 Plus, 32 gig, 2 gigs ram on Virgin Mobile Canada. I got it up and running using the Telus firmware. When I got my phone the only "bloatware" that came with it was the Virgin My Account app. The sales person I got my phone from had it for a little bit during setup so I'm not sure if she quickly installed it or not, but either way it's not here with this firmware and there is no extra bits from Telus either. Everything seems to work perfectly.
[Moto G4 Plus Guides, News, & Discussion] Mileoun:
Yes mate I tried but logo just shows while charging not during booting

During boot it shows message like n/a :confused:
[Moto G4 Plus Guides, News, & Discussion] mF^:
XT1643 link

can anyone please upload XT1643 link to gdrive coz i am unable to download from the given link :o

And if i unroot my moto and install stock firmware will i get my warranty back ? :( :confused:
[Moto G4 Plus Guides, News, & Discussion] Mileoun:
Here is link http://www.theandroidsoul.com/motorola-moto-g4-g4-plus-and-g4-play-firmware-90684/

:)
[Moto G4 Plus Guides, News, & Discussion] jyoti.id:
Why none replied me??? :(
[Moto G4 Plus Guides, News, & Discussion] Mileoun:
For XT1643 stock firmware http://www.theandroidsoul.com/motoro...irmware-90684/
[Moto G4 Plus Guides, News, & Discussion] Yush_noob:
Very nice guide
[Moto G4 Plus Guides, News, & Discussion] Mileoun:
Please help during flashing stock firmware got error and mobile can not start just logo displays. :(
[Moto G4 Plus Guides, News, & Discussion] :
This is because the stock firmware version your trying to flash is an older build than the build you actually had. Find the latest firmware and flash it. Thats the only solution for this. For example, you had say 24.49.1 and the build your trying to flash is 24.48.1 (version numbers may vary this is just to make people understand). Find the correct firmware and flash, its is really hard to tell with the carrier/region alone because the athene has so many variants like never before. Its more like flash one test then flash other test and repeat, this can be a pain but that's why I have been asking people if they can help me with this so it can help all of them.
[Moto G4 Plus Guides, News, & Discussion] TanayROCKS:
Bro it said when i flashed my twrp too. Its nothing if u go into recovery mode u will have twrp just make sure u flash right version 3.0.2
[Moto G4 Plus Guides, News, & Discussion] Mileoun:
Is this correct firmware for Indian device XT1643 http://www.filefactory.com/file/64moez43420x/XT1626-XT1640-XT1641_ATHENE_6.0.1_MPJ24.139-23.1_cid50_subsidy-DEFAULT_CFC.xml.zip

I tried it and solved issues Thanks yeshbhai:)
[Moto G4 Plus Guides, News, & Discussion] guisl:
The retail rom for XT1640 brazilian devices, there isn't?
[Moto G4 Plus Guides, News, & Discussion] karthikreal:
Cant able to download Stock Rom (Download failed)

Everytime i Download the stock rom, it failed to download.

plz upload it to GOOGLE DRIVE.

i Bricked my G4+

Need in hurry of STOCK ROM.

Thanks in Advance,

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

Cant able to download Stock Rom (Download failed)

Everytime i Download the stock rom, it failed to download.

plz upload it to GOOGLE DRIVE.

i Bricked my G4+

Need in hurry of STOCK ROM.

Thanks in Advance,
[Moto G4 Plus Guides, News, & Discussion] pv979:
You can try the mirrors on : http://www.theandroidsoul.com/motorola-moto-g4-g4-plus-and-g4-play-firmware-90684/
[Moto G4 Plus Guides, News, & Discussion] karthikreal:
Thanks Man. U r awesome
[Moto G4 Plus Guides, News, & Discussion] karthikreal:
I have Flashed successfully, but wifi and Sim cards not working.

plz help me man

---------- Post added at 11:08 AM ---------- Previous post was at 11:07 AM ----------

I have Flashed successfully, but wifi and Sim cards not working.

plz help me man
[Moto G4 Plus Guides, News, & Discussion] :
Quoting me all the time or PMing me can't get anyone an instant response. I cannot respond 24x7. I have a big life outside of XDA. And please read the threads(this and others) properly. Many people have had the same issue, I have given a Google Drive link for the Indian 32 GB variant. Also there is another thread http://xdaforums.com/moto-g4-plus/how-to/index-moto-g4-plus-factory-firmware-t3409033/. The other site you used has no idea about variants and stuff, it typically uses the filename to judge the variant. You have an XT1643 but there is only one firmware in File Factory that says XT1643 and that firmware is wrong. So read the new thread I made or read my replys to others, search better, have some patience to read. Really, its like people asking questions and wait for answers from someone else, instead why don't we try and analyze better or search better? I can't help each and every one out there. XDA is for helping but you can't expect me to spoonfeed everyone.
[Moto G4 Plus Guides, News, & Discussion] Mozart_Matos:
Moto G4 XT1626

Works on XT1626 ?:confused:
[Moto G4 Plus Guides, News, & Discussion] :
The method is the same for whichever variant it is. The file will differ, it is more like a trial and error method to know which file is the correct one for you. Test and report back.

Post your result here : http://xdaforums.com/moto-g4-plus/how-to/index-moto-g4-plus-factory-firmware-t3409033 so everyone can benefit from this.
[Moto G4 Plus Guides, News, & Discussion] optionalmgrr.la:
Will unlocking bootloader lose fingerprint reader function?
[Moto G4 Plus Guides, News, & Discussion] fmpfeifer:
you can find it here: in fliefactory /file/2z30qfl4zwp3/XT1640_ATHENE-RETBR_MPJ24.139-50_cid50_subsidy-DEFAULT_CFC.xml.zip

sorry, I can't post complete links yet.
[Moto G4 Plus Guides, News, & Discussion] Jelleb123:
C:\Users\Jelle\Desktop\Nieuwe map>mfastboot flash recovery twrp.img

target max-sparse-size: 256MB

sending 'recovery' (12496 KB)...

OKAY [ 0.398s]

writing 'recovery'...

(bootloader) Image not signed or corrupt

OKAY [ 0.344s]

finished. total time: 0.742s

i get the error that the image is unsigned or corrupt, any idea on how to resolve this issue?
[Moto G4 Plus Guides, News, & Discussion] Rakesh8857:
facing problem after flashing

i have downloaded XT1643 ROM BUT AFTER FLASHING MY SIM NETWORK DOESNT SHOW
[Moto G4 Plus Guides, News, & Discussion] xtermmin:
You need to unlock your bootlaoder before you can flash an unsigned recovery (TWRP).
[Moto G4 Plus Guides, News, & Discussion] steven_gonsalvez:
help

can any 1 upload this file on mediafire its very urgent since filefactory is very slow and no resume support ....
[Moto G4 Plus Guides, News, & Discussion] Jelleb123:
I followed the steps, and when i boot the device I do get the message "your device is unlocked" it also says that flashing is unlocked in the bootloader. yet the issue persists. Any idea in what i might be missing?
[Moto G4 Plus Guides, News, & Discussion] Mileoun:
I installed supersu through twrp , during installation no error everything perfect but it doesn't appear. Even root checker apps says that supersu not installed in device.
[Moto G4 Plus Guides, News, & Discussion] bluesguy_1:
RESOLVED: XT1644 Stock Rom?

Got my new Moto G4 Plus (XT1644) today, pre-ordered and delivered a day early. Yay!

1) Immediately unlocked bootloader,

2) booted (not flashed) latest TWRP-3.02-0-athene

and then

3) installed the latest SuperSU (UPDATE-SuperSU-v2.76-20160630161323).

Yeah, that last part was a *bad* idea. Totally forgot to make a TWRP nandroid backup first. Hosed it.

Ok, so now I'm stuck at the boot logo, but thankfully bootloader still works.

Does anyone have a stock XT1644 ROM yet so I can get back in action? Thanks in advance!

EDIT: Issue resolved (without a stock ROM) via this technique here:

http://xdaforums.com/moto-g4-plus/how-to/root-systemless-rooting-supersu-2-74-2-t3405772

SuperSu rebuilt the systemless boot image and everything is hunky dory.

G
[Moto G4 Plus Guides, News, & Discussion] tCizler:
I'm completely stuck. I can't even get to the first step. I attach my phone in fastboot mode and type the command. But i get "$ is not recognized as an internal or external command" been trying for 4 plus hours and nothing seems to work. I'm on Windows 8.1 and have downloaded nearly every installer/driver/SDK/JDK i could find, changed "PATH" in environmental settings, etc. Still nothing works. With my phone on, i can see "adb devices", and in fastboot, i can see "fastboot devices". So i know the drivers are there. But the command just wont work to get my unlock data. And tips? Do i need a Win XP computer, or to change some settings?

It's a XT1644 and yes debugging is enabled, as well as OEM unlock.
[Moto G4 Plus Guides, News, & Discussion] xtermmin:
Instead of using "mfastboot", just use plain-ol' "fastboot". IE, "mfastboot oem get_unlock_data" -> "fastboot oem get_unlock_data"
[Moto G4 Plus Guides, News, & Discussion] tCizler:
If i could hit the "Thanks" button a thousand times i would!! You saved me some gray hairs. I literally have about 5 hour into this now. And it was that simple. Thank you again!

I'm bootloader unlocked now!
[Moto G4 Plus Guides, News, & Discussion] xtermmin:
Congrats! :D
[Moto G4 Plus Guides, News, & Discussion] runed.OS:
I found a firmware that doesn't have any amazon stuff on it. It won't even autodownload any of it!

You have to actually browse through folders to get to the zip file.

Here is the site: rootjunkysdl.com/files/

Also, it works perfectly with your instructions!

Hope I helped!
[Moto G4 Plus Guides, News, & Discussion] :
What model of the device do you own? Which Carrier? Kindly post these details so I can update the other thread accordingly and it will help others as well.
[Moto G4 Plus Guides, News, & Discussion] braun247:
(bootloader) Image not signed or corrupt

I am getting the same type of error.

I unlocked the bootloader but am getting an error when trying to root my device.

C:\Root>mfastboot flash recovery twrp-3.0.2-0-athene.img

target max-sparse-size: 256MB

sending 'recovery' (12496 KB)...

OKAY 0.415s

writing 'recovery'...

(bootloader) Image not signed or corrupt

OKAY 0.186s

finished. total time: 0.604s

Thanks for your help in advance.

I have an amazon moto g4 build number MPJ24 1.39-48