yashsingh1/xdaforums huggingface dataset:
[Moto G4 Plus Guides, News, & Discussion] echo92:
Usually, if it's from Amazon or a major retailer, new, then the 'unlocked' will most likely refer to carrier locking (and looking at the Amazon page of the item with the same title, looks like it's compatible with the major carriers https://www.amazon.com/Moto-XT1644-...01DZJFWNC/ref=cm_cr_arp_d_product_top?ie=UTF8 ). So, you should be able to put in a SIM of your choice and have freedom between networks. I'd just double check with the seller who honours your warranty though (since it seems the devices are used:very good condition in that post, maybe you found another one).

Unlocking your bootloader - which will void your warranty - is something you'll have to accomplish yourself. If you're not interested in custom ROMs or rooting your device, then nothing to worry about. However, if you see yourself moving away from the stock ROM at some point, then looking at that Amazon page of the device, I think you should be able to (there's no mention of that XT1644 being a Amazon Prime exclusive device, which typically have Amazon ads and a bootloader locked by Amazon, which makes it very difficult to unlock).
[Moto G4 Plus Guides, News, & Discussion] flroots:
Thanks for your comprehensive reply. Yes, I assumed the word Unlocked referred only to carrier not bootloader, but nice to have that confirmed. I was considering the version with ads; glad I didn't make that mistake because I do plan to root the phone. For me the biggest benefit is the ability to make backups with TWRP. Also, I like Titanium Backup. I may or may not experiment with custom ROMs. I've experimented with them in the past on other phones, but never been totally satisfied.
[Moto G4 Plus Guides, News, & Discussion] echo92:
Always a good idea to check (and not unknowingly buy an 'unlocked' phone that's actually with an 'unlocked' bootloader and voided warranty!) :)

Good thinking, the Amazon Prime phones, though a reasonably good deal, are very restrictive if you want to be inventive. Though TWRP doesn't require root, just an unlocked bootloader, I think Titanium Backup does require root? Always baffled me a little bit that the stock recovery doesn't permit you to make a backup of your system just in case... Nonetheless, root is possible on the stock Nougat ROM if you don't wish to use custom ROMs https://xdaforums.com/moto-g4-plus/how-to/guide-root-moto-g4-plus-supersu-android-t3587918

Hopefully it arrives soon and have fun with it when your device arrives :)
[Moto G4 Plus Guides, News, & Discussion] flroots:
Thanks again. BTW does anyone know if the XT1644 has received the Android 7.0 (Nougat) OTA release yet? According to this article it started rolling out in late March 2017:

http://www.androidauthority.com/unlocked-moto-g4-plus-starts-getting-nougat-us-760872/

I will almost certainly wait for that update before rooting to save the trouble of returning to stock. Also, your link raises another question. Is the rooting procedure any different for Android 7.0 then it was for Android 6.0? I was planning on using this guide to root 7.0.
[Moto G4 Plus Guides, News, & Discussion] rajatgupta1998:
For rooting Stock N you have to flash ElementalX or Vegito Kernel and then flash a super user of your choice like Magisk or SuperSU
[Moto G4 Plus Guides, News, & Discussion] flroots:
Thanks. Guess I better make a note of that :)
[Moto G4 Plus Guides, News, & Discussion] echo92:
The Nougat update has been released in the US and globally, for US devices there's reports here of users getting it https://xdaforums.com/moto-g4-plus/how-to/nougat-usa-t3581830 so you should get it as an OTA update.

As tywinlannister7 helpfully mentioned, you will need a custom kernel in nougat, the stock kernel in 7.0 appears to have enforced security, which means your device will not boot if you try to root the stock kernel (we've seen that happen...) As long as a custom kernel is in place before you root, you should be okay.

If you want to revert back to stock nougat at any point, there's a fastboot stock ROM here (v7.0, Dec 2016 security update, NPJ25.93-14 https://xdaforums.com/moto-g4-plus/how-to/moto-g4-plus-xt1640-43-athene-npj25-93-t3549369 you could always flash this too if something happens to the nougat OTA.
[Moto G4 Plus Guides, News, & Discussion] flroots:
Thanks, I was wondering what happened between 6.0 and 7.0 that required the new kernel. Once I update to 7.0 and proceed to root, should I get some critical TWRP backups along the way to make restoring to stock easier? I'm thinking about a TWRP backup after unlocking bootloader and installing TWRP, but before installing new kernel and rooting. That should save a copy of the stock kernel, right?
[Moto G4 Plus Guides, News, & Discussion] echo92:
As I understand it, Google enforced kernel security and made some security features (previously optional in 6.0) mandatory and active in 7.0. I think Verified Boot and dm-verity are a couple of the features that make rooting the stock kernel very difficult/impossible. The kernel (in boot.img) appears to be cryptographically checked - at boot time - to verify integrity, ostensibly to defend against kernel attacks and root kits/malware (so if the kernel is altered, the device won't boot and compromise the rest of the system). Unfortunately, rooting methods also are affected, since root alters the kernel/boot partition, thus triggering the protection. Additional security or making rooting more difficult? Take your pick.... https://betanews.com/2016/07/20/android-7-0-nougat-root/ if you're interested, https://android-developers.googleblog.com/2016/07/strictly-enforced-verified-boot-with.html https://source.android.com/security/verifiedboot/ about the security features.

Although there's been some luck disabling dm-verity, it appears the more straightforward method for us (on Moto G4 devices, at least) is just to swap the kernel out for one that doesn't have those security features, thus making rooting possible. ElementalX and vegito are the 2 I'm aware of in terms of custom kernels. Of course, that reduces the security of our devices, but then just means you'll have to be careful about what apps you download. Then again, unlocking the bootloader and rooting is, in my view, going to be about trading warranty and security for greater flexibility.

Your backup plan sounds good, and yes, that should back up a stock kernel for you.

I'd suggest:

Unlock bootloader, flash TWRP.

Back up your device in TWRP, make another backup of just the boot.img (with your kernel). Keep those backups safe - they are of your stock system and separately your kernel, so makes it easier to find.

That way, you'll have a stock TWRP backup to revert to as well as a smaller kernel backup just for safety :)

Then, if anything happens with flashing ElementalX/SuperSU, you'll have a backup to fall back to. In addition, I'd suggest:

After backing up - flash ElementalX (1.04 stock as of this post) as directed by the Aroma installer, wipe cache/Dalvik and reboot.

Verify your system is running with the ElementalX kernel.

Reboot to TWRP (you may wish to take another backup at this point).

Flash SuperSU v2.79 SR3 beta as directed in the guide.

Reboot (and wait for the auto reboot).

Should your device fail to boot at any point, you may try holding down the power key for 2-3 minutes, which should force a shutdown. I think the power and volume up key together also forces a reboot - either way, those methods should allow you to reboot to TWRP and wipe cache/Dalvik again or restore a backup.
[Moto G4 Plus Guides, News, & Discussion] flroots:
Thanks. I've made notes. Sounds like it's best to take it slow and easy :)

I assume the unlock bootloader and install TWRP steps are identical between 6.0 and 7.0. I've also read that some versions of TWRP are better than others. Do you have a favorite? I see references to all of these:

twrp-3.1.0-0-athene.img

twrp-3.1.0-0-athene-oadam11.img

twrp-3.1.0-athene_shreps.img
[Moto G4 Plus Guides, News, & Discussion] rajatgupta1998:
Oadam11's TWRP has been the best for me ?? super stable always.
[Moto G4 Plus Guides, News, & Discussion] flroots:
Thanks. Does oadam11 have a website or perhaps an XDA thread specific to his version of TWRP? The only thing I've found is the actual file download link in another post.
[Moto G4 Plus Guides, News, & Discussion] rajatgupta1998:
Actually he has just posted about it in post 2 of the Ground Zero ROMs thread. Flash the latest one.

https://xdaforums.com/moto-g4-plus/development/7-1-1-ground-zero-roms-validus-tesla-t3553036
[Moto G4 Plus Guides, News, & Discussion] flroots:
Thanks, got it.
[Moto G4 Plus Guides, News, & Discussion] flroots:
I just finished updating to Nougat and rooting my brandnew moto G4 Plus (xt1644). Now I keep getting the message stating:

Is it possible to eliminate that and if so, how? Thanks.

Thanks
[Moto G4 Plus Guides, News, & Discussion] rajatgupta1998:
Yes you can flash a custom bootlogo:

https://xdaforums.com/moto-g4-plus/themes/splash-screen-stark-sigil-game-thrones-t3562019

https://xdaforums.com/moto-g4-plus/themes/customized-logo-t3451349
[Moto G4 Plus Guides, News, & Discussion] akwelz:
=> to avoid repost https://xdaforums.com/showpost.php?p=72370250&postcount=1576

edit fixed driver issues with https://xdaforums.com/showthread.php?t=2588979
[Moto G4 Plus Guides, News, & Discussion] danilomrx:
I have LineageOS 14.1 installed in my XT1640 (Brazilian G4 Plus) and I want to go back to stock. I already have the firmware and mfastboot ready, my doubt is, after I restore to the stock rom, am I going to be able to update the phone via OTA?

And If, for some reason, the proccess fail, what should I do? Try again or just restore back to LineageOS (flash TWRP too)?
[Moto G4 Plus Guides, News, & Discussion] echo92:
Once you've reverted back to the stock (Motorola) ROM, provided you keep your stock recovery, stock kernel and stock system, you should be able to receive and install OTA updates. Bootloader status doesn't appear to matter (as I was able to update from MM 6.0.1 to the Dec 2016 Nougat NPJ25.93-14 update via OTA).

What firmware are you flashing, btw? If the firmware is newer than what you had previously on your device, then you may follow the fastboot commands as listed in the guides (up to you if you re-lock your device bootloader, but a locked bootloader makes it inadvisable to flash custom ROMs/TWRP). If your firmware is the same or older than your previous stock system, I'd suggest not flashing the GPT and bootloader partitions - mfastboot should stop you. Still, omit these commands if you can:

mfastboot flash partition gpt.bin
mfastboot flash bootloader bootloader.img

You may be able to check what firmware you previously had from your bootloader (e.g. think Nougat Nov 2016 NPJ25.93-11 and Dec 2016 NPJ25.93-14 had B1.03, whereas the latest bootloader from the March 2017 update is B1.05). Also, your baseband from NPJ25.93-11 should have a baseband ending in .60R, whereas NPJ25.93-14 and the March update had basebands ending in .62R.

Of course, before flashing the stock ROM, make backups of your existing system in TWRP, and back up that TWRP backup and all your other files from your internal storage to your computer. Flashing a stock ROM may wipe your internal storage.

Ensure you have plenty of time to flash, check that adb is properly installed (you can check by plugging your device, fully booted, into your computer, then in the adb terminal, type 'adb devices' without the quotes. You should get a response with your device's serial number if it's communicating. Then, reboot your device to the bootloader, re-plug your device to your computer and check your device is communicating by typing 'fastboot devices'. You should get the same response as the adb commands.

Should a flash fail, search for the error for a solution (or post here). A common one is the GPT/bootloader security downgrade warning - this happens with flashing a stock ROM older than your previous ROM - but by omitting the 2 commands as mentioned above, you should bypass this.

If the flash does fail, try to repeat the flash again (checking for the [OKAY] response), and just leave your device plugged in and alone. Flashing a stock ROM should occur with few if any issues, as these are official stock ROMs from Motorola (so you'd hope they tested these!). Alternatively, if you're not able to flash, you may be able to flash TWRP (as you've mentioned) and restore your backup you've made of your LineageOS ROM.

Good luck either way.
[Moto G4 Plus Guides, News, & Discussion] danilomrx:
I've seen a video from a guy doing the proccess with the same model as mine G4 Plus. The link of the ROM is that one -> http://bluenik.com/12435917/rom-g4plus-xt1640-7

I dont know if this if newer than the one i had installed before, but i was on stock 2 weeks ago and had no updates available, so I think I was on the most up to date ROM.

I saw in the video that there was some "failures" on the installation, but the guy said the proccess was successful. Tha video is in Portuguese, but if u want to check it out, here it is -> https://www.youtube.com/watch?v=RFCQINKggdc.

One more thing, these two commands u said I can skip, why is that?

Thanks for the reply and the follow up!
[Moto G4 Plus Guides, News, & Discussion] danilomrx:
I was on the March update, gonna look to that other guide (thanks for that).

The guy on the video is pretty much faking then, his phone must've been on stock rom all the time.

I will try to follow the other guide and hoppefully will succeed.

PS: I find very hard to find the exact rom for my device, as the naming of the files are confusing, but I will look to some more videos and try to find it. I will update the ADB/fastboot too.

Thank you!
[Moto G4 Plus Guides, News, & Discussion] echo92:
I hope the Youtuber was simply demonstrating the procedure, as I imagine some users don't have time/money to spare if anything does go wrong. Again, I'm not sure what he's saying, so he may well have been mentioning these errors are normal because of a locked bootloader...

Yeah, Nougat stock ROMs (NPJ25.93-14, NPJS25.93-14.4 at the very least) seem to be universal for our devices now (thank gawd), so save you having to hunt around for a ROM. I don't know why Motorola/Lenovo didn't do this in the first place, rather than spawning a ridiculous number of ROMs each specific to a country/device. I agree that on occasion stock ROMs are confusingly/misleadingly named, that's just asking for trouble... The March 2017 stock ROM, in other words, should play nice :) Good luck!
[Moto G4 Plus Guides, News, & Discussion] mfinlay04:
Hey everyone, I have a XT1621 G4 and having issues with TMobile. Anyone able to confirm they can make VoLTE calls with this device?
[Moto G4 Plus Guides, News, & Discussion] kevinarol:
Hi [MENTION=7920082]yeshwanthvshenoy[/MENTION] thanks for this thread, I have a doubt, I've updated my G4 Plus to official 7.0 (so my bootloader still locked) but I'm facing some battery draining issues and lag, I install the update throught fastboot, so the question is Can I return to official MM via adb without problems?
[Moto G4 Plus Guides, News, & Discussion] echo92:
You'll have to unlock your bootloader in order to downgrade your device - this voids your warranty and wipes your device (as a security measure). If you're willing to do that (as described in the first few posts of the thread), then you can use a guide like this to downgrade to MM. https://xdaforums.com/moto-g4-plus/how-to/guide-downgrade-to-marshmallow-nougat-t3515961

Bear in mind you need to have the correct build of MM for your device and for your territory too, else your device might not be functional.
[Moto G4 Plus Guides, News, & Discussion] kevinarol:
Thanks for the answer, I know the phone isn't new, but I bougth it few days ago was on offer totally new with it's package, lenovorola told me I don't have warranty anymore with them ? but in the store where I bought it gave me 6 months LOL

If I had know Nougat isn't smooth like MM I would not have taken the OTA ?

Anyway I will think if it is worth the warranty of the store, thanks
[Moto G4 Plus Guides, News, & Discussion] echo92:
Might be worth asking the store if unlocking the bootloader affects their warranty - they may or may not be more generous than Motorola, since from the sounds of it the store is now responsible for your device :) Did the store perform a factory reset on your device too before selling it to you, and what do they mean by Motorola not honouring the warranty? I guess the original warranty was not transferable to you or the previous owner unlocked the bootloader (and then re-locked it again?)

Might be worth checking also if your system is the latest one, I recall Nougat NPJ25.93-11 (Nov 2016 security patch) had some issues with lag, which the subsequent NPJ25.93-14 (Dec 2016) and NPJS25.93-14.4 (March 2017 - currently latest firmware) builds fixed up. I've been running the NPJS25.93-14.4 (unlocked bootloader, ElementalX and rooted) and it's been smooth. Your experience may vary, but seems that the March 2017 firmware seems to solve many of the lag issues and battery.
[Moto G4 Plus Guides, News, & Discussion] kevinarol:
Thanks ? I will wait some time before unlock the bootloader, thanks again for answer me ?

Edit: I contacted the store where I bought the phone and they said the warranty only covered factory failures, if I modified the software is not covered by anyone, so I will wait a few days any ways hehe
[Moto G4 Plus Guides, News, & Discussion] Sobhan Bhuyan:
Will this work on XT1643? PLS ADVICE
[Moto G4 Plus Guides, News, & Discussion] strongst:
What exactly?
[Moto G4 Plus Guides, News, & Discussion] Sobhan Bhuyan:
I was trying to ask that does this method work on XT 1643 running on nougat.7.0.0
[Moto G4 Plus Guides, News, & Discussion] echo92:
What method are you referring to?

If you mean unlocking your device's bootloader, yes - this method will work on your XT1643. Be aware it will wipe your device (including internal storage) when you unlock.

For rooting, I replied to your other post regarding how to root on Nougat.

For restoring your stock firmware, it does work but you must locate and verify the firmware is correct. Also, if you're on the June (NPJS25.93-14-8) firmware, we don't have that fastboot ROM and attempts to downgrade may run a real risk of a brick.

Hiding the bootloader warning also works the same way.
[Moto G4 Plus Guides, News, & Discussion] Sobhan Bhuyan:
That means I can unlock bootloader and root my Moto g 4 plus but can't go back to my stock rom.

I m planning to go for Resurrection remix. Am I correct , if not pls correct me
[Moto G4 Plus Guides, News, & Discussion] rajatgupta1998:
Yep, you're partially correct. Since the fastboot ROM for the June patch isn't available yet, you won't be able to flash it and keep your device fully stock. However, you can take backups of "Boot" and "System" in TWRP (Make sure you don't go on flashing future updates on this setup even if you restore this). Resurrection Remix or any custom ROM will require you to wipe your device and install the ROM. (You can check the ROM's thread for more details). Still your best bet will be taking a backup in TWRP first :good:
[Moto G4 Plus Guides, News, & Discussion] cell2011:
How to do the flashstock method from fastboot?
[Moto G4 Plus Guides, News, & Discussion] strongst:
Please don't quote the op! This is the fastboot method to flash stock roms. If you want it without mfastboot, then remove the "m".
[Moto G4 Plus Guides, News, & Discussion] :
Hello dudes!Since iam a newbie I have several doubts!

Is that special if I can unlock my phone's bootloader with single command "fastboot oem unlock" like Nexus devices without unique key from manufacturer?

How manufacturers restrict root Access in a retail phone?

How exactly su binary works to give us root Access after installed through twrp?

Does su binary by chainfire is the only source of su binary?

Thanx in Advance :)
[Moto G4 Plus Guides, News, & Discussion] jitensetia:
Can I install through TWRP recovery mode ?

Can I install through TWRP recovery mode ?
[Moto G4 Plus Guides, News, & Discussion] strongst:
No, it's a fastboot version.
[Moto G4 Plus Guides, News, & Discussion] jitensetia:
Thanks for the answer.

But is there any chance by any means we can flash stock rom without fastboot ?

Actually I dont have a personal PC now. I have only official laptop which have some firewall and fastboot does not recognize my phone.
[Moto G4 Plus Guides, News, & Discussion] strongst:
There's no other chance... Firewall is a problem, but make sure you have the original drivers from Motorola installed properly too.
[Moto G4 Plus Guides, News, & Discussion] echo92:
Though you can only flash a stock ROM using fastboot, you may be able to flash the system part of a stock ROM with TWRP. We've got a few modified stock/stock ROMs on Nougat flashable with TWRP:

Jerome-X's NPJS25.93-14-8 (June 2017 patch level, v7.0): https://xdaforums.com/moto-g4-plus/development/rom-modified-stock-jx-s-rom-series-t3658055

Revivor 2.0 NPJS25.93-14-4 (March 2017 patch level, v7.0): https://xdaforums.com/moto-g4-plus/development/rom-npjs25-93-14-4-deodexed-debloated-t3587180

Bear in mind that either will only affect your system partition, keeping TWRP but meaning that you will not be able to accept OTA updates, nor be able to lock your device bootloader. However, by flashing these, you are unlikely to hard brick since they should not affect the underlying firmware. There's also the stock NPJS25.93-14-4 (March 2017 patch level, v.7.0) TWRP flashable : https://xdaforums.com/moto-g4-plus/how-to/fxz-flashable-stock-npjs25-93-14-4-t3623010

which flashes many of the stock firmware partitions as well in TWRP (leaving your GPT, bootloader and recovery untouched). However, because of not having a stock recovery (and possibly if you don't have the right modem too), you may not be able to accept OTA updates.

As strongst has mentioned, the firewall on your laptop is an issue, and it's likely you'd have to disable driver signature enforcement to get fastboot working, which your work IT policies may not permit/might get you into trouble.