yashsingh1/xdaforums huggingface dataset:
[Moto G5 Plus Guides, News, & Discussion] meunomedeusuario:
Nah, the SIM has nothing to do with it. I think the seller lied to you (and you have an AT&T device, which can't be unlocked) or you're doing something wrong.

This thread on lenovo forums might help you:

https://forums.lenovo.com/t5/MOTOROLA-Android-Developer/Bootloader-Unlock-Problems/td-p/3222809
[Moto G5 Plus Guides, News, & Discussion] TechyDhiraj:
[/COLOR]How to sign in zip.net.

I am not able to open this website.
[Moto G5 Plus Guides, News, & Discussion] meunomedeusuario:
Use the updated tutorial: https://xdaforums.com/showpost.php?p=75114774&postcount=236

Magisk and Magisk Manager:

https://xdaforums.com/apps/magisk/official-magisk-v7-universal-systemless-t3473445

TWRP:

https://eu.dl.twrp.me/potter/

Stock firmwares:

https://mirrors.lolinet.com/firmware/moto/potter/official/RETAIL/
[Moto G5 Plus Guides, News, & Discussion] Wolfcity:
Also this tutorial is updated:

https://xdaforums.com/g5-plus/how-to/how-to-root-moto-g5-plus-t3579659/page22

May be a good idea to read both of them.
[Moto G5 Plus Guides, News, & Discussion] Chauhan kunal:
Links not working

Hey there

My phone is 2 and a half year old and

I want to root my device but provided link below in not working anymore

It would be very helpful if you provide new working links

Thank you
[Moto G5 Plus Guides, News, & Discussion] meunomedeusuario:
Use the updated tutorial: https://xdaforums.com/showpost.php?p=75114774&postcount=236 and this one: https://xdaforums.com/showpost.php?p=74673573&postcount=216

Magisk and Magisk Manager:

https://xdaforums.com/apps/magisk/official-magisk-v7-universal-systemless-t3473445

TWRP:

https://eu.dl.twrp.me/potter/

Stock firmwares:

https://mirrors.lolinet.com/firmware/moto/potter/official/RETAIL/

:good::good:
[Moto G5 Plus Guides, News, & Discussion] Chauhan kunal:
Thank you very much for this quick response

I checked your other forums for noobs but still if there's any other video guide available please provide link to everyone

Thank you
[Moto G5 Plus Guides, News, & Discussion] Wolfcity:
Here's a guide that includes flashing stock (with a flashall.bat) and rooting the Moto G5+ :

https://xdaforums.com/g5-plus/how-to/fix-persist-resolve-imei0-explanation-t3825147/post80478329

If you need any further information you can send me a PM.

Edit: Latest magisk stable release is 20.3, available on GitHub:

https://github.com/topjohnwu/Magisk/releases/tag/v20.3

Tap on assets to get magisk.zip, manager and uninstaller.
[Moto G5 Plus Guides, News, & Discussion] Akahat27:
Friend the download links are not working.

I have tried with and without a VPN.

Please help.
[Moto G5 Plus Guides, News, & Discussion] Wolfcity:
Use the links from this post (scroll down a bit for Magisk,TWRP etc.)

You'll find everything for rooting and flashing stock firmware.

https://xdaforums.com/t/fix-persist...on-requirements.3825147/page-18#post-80478329
[Moto G5 Plus Guides, News, & Discussion] Akahat27:
Thanks!
[Moto G5 Plus Guides, News, & Discussion] Emilly oliveira:
Am
[Moto G5 Plus Guides, News, & Discussion] Emilly oliveira:
Rt
[Moto G5 Plus Guides, News, & Discussion] CatDaddyAndroid1.1:
Does these steps and stock rom work with MOTO G5 PLUS XT1687
[Moto G5 Plus Guides, News, & Discussion] Wolfcity:
Yes. It depends on your location. Check this more actual tutorial (first part):

https://xdaforums.com/t/guide-moto-g5-plus-flashing-stock-firmware-rooting-2021.4205293/
[Moto G5 Plus Guides, News, & Discussion] 22sumit:
well my phone is stuck at bootloader now after flashing twrp...

followed the steps as mentioned in OP, still it happened. any way to recover?

Except that I'm not able to flash no-verity-opt-encrypt-5.1.zip file from twrp with error "Failed to patch boot image"

EDIT: Files given by fAIyaZ worked and I'm able to boot my phone.
[Moto G5 Plus Guides, News, & Discussion] willsolo:
They won't get $60 more from me from ads, screw'em. You can fix locked amazon bootloader with a 20 foot throw against a brick wall. Problem gone
[Moto G5 Plus Guides, News, & Discussion] mchype:
Well that might fix the locked bootloader, but it won't fix the $230 you just spent for that locked bootloader. I'd return it, and then go buy the regular version.
[Moto G5 Plus Guides, News, & Discussion] LordLugard:
I would think that everyone and their dead grandma would know or (have known) about the Amazon version being bootloader locked etc. It was the same with the Amazon G4 version. Amazon didn't just pull this out of thin air yesterday.
[Moto G5 Plus Guides, News, & Discussion] mchype:
Funny thing for me is that I've never really heard of the Moto G series until the last two years but never really thought to consider them because their price point and never receiving any recommendation to look or consider the series.

In my case, I never knew that Amazon even offered cheaper phones with their ads on them.... let alone the fact their bootloaders can't be locked.

However, the whole thing makes sense... over 2 years of use, there's a good chance that they'll make more than the $60-$70 loss on the phones.
[Moto G5 Plus Guides, News, & Discussion] willsolo:
Well Lord I didn't know then, not everyone is as informed as you on these matters.

But I we'll find a way to unlock the bootloader , someday!
[Moto G5 Plus Guides, News, & Discussion] abeloman:
About unlocking bootloader, I sincerely doubt it

Enviado desde mi Moto G (5) Plus mediante Tapatalk
[Moto G5 Plus Guides, News, & Discussion] Kufat:
Windows users:

If anyone has an issue with their device not being detected by ADB after starting TWRP, and appearing in Device Manager as a "Google Nexus ADB device" or similar, try changing the driver to USB Composite Device. (I've got a ton of old Android drivers on here and I bet some other people are in the same situation.)
[Moto G5 Plus Guides, News, & Discussion] jbardi:
It will never happen. By the time this phone is obsolete you will still be staring at ads with a locked bootloader.

I was also unaware that it couldn't be unlocked, and purchased it myself. Once I realize it my mistake, I did a refund and selected incorrect description as the reason for the refund, and told them that nowhere in their description does it mention that it can't be bootloader unlocked. They gave me a full refund. I did all of this the very day I received it, wrapped it up, then ran down to Best Buy and bought the no ads version before I even sent the other one back in the mail the following day. You have a full 30 days to do a return, so I would SERIOUSLY recommend you return it now before time Runs Out.
[Moto G5 Plus Guides, News, & Discussion] willsolo:
I have no ads now they are gone and so is the amazon bloat apps. Locked bootloader remains! Removed all ads successfully!
[Moto G5 Plus Guides, News, & Discussion] jbardi:
Did you use rootjunky's script for the G4? Either way, ads gone or not, you have half a rocketship and can not root, ever.
[Moto G5 Plus Guides, News, & Discussion] luizlee86:
Stupid question: You are assuming that the bootloader is unlocked, right? Or it can be done with locked bootloader?
[Moto G5 Plus Guides, News, & Discussion] jbardi:
You can not root without an unlocked bootloader. If you have the Amazon ads version of the phone you will never be able to root. You have 30 days from your purchase to return it, so I would recommend you do that unless you are fine with not being rooted.
[Moto G5 Plus Guides, News, & Discussion] kaustubh_lipare:
Successfully rooted my Moto G5 plus using above guide. I am using 4GB indian variant , XT1686, build number is NPN25.137-15.
[Moto G5 Plus Guides, News, & Discussion] Dhan...:
finaly supersu working..thank u

thank u
[Moto G5 Plus Guides, News, & Discussion] lazerus06:
Following up on this, I can't seem to get hide to stick when I select an application. I am using 11.6 as 12 looses root for me.

Trying to hide Super Mario Run but it won't save it when I select hide.
[Moto G5 Plus Guides, News, & Discussion] Dhan...:
perfectly rooted but wifi not working..

Wifi not working all other fine
[Moto G5 Plus Guides, News, & Discussion] lazerus06:
Same thing happened to me. I restored the factory image and rooted again via the video (with Magisk 11.6) and it is working again.

Only thing is I can't Magisk hide to save any apps I select.
[Moto G5 Plus Guides, News, & Discussion] fAIyaZ:
Flash the wifi_custom zip mate.
[Moto G5 Plus Guides, News, & Discussion] Dhan...:
custom zip flashed

custom zip flashed but no use..

---------- Post added at 03:44 AM ---------- Previous post was at 03:41 AM ----------

pls check u r wifi working or not ...thank u
[Moto G5 Plus Guides, News, & Discussion] supastaroy:
Yes my WiFi is working fine.
[Moto G5 Plus Guides, News, & Discussion] meesagandu:
A much needed guide. Thank you so much :)
[Moto G5 Plus Guides, News, & Discussion] luizlee86:
I just got my Moto G5 Plus and since the phone was going to get formated I already flashed TWRP. While we still dont have xposed for Nougat I dont care keeping my phone unrooted. But to test I installed Magisk and everything went well...

How do I unroot so I can play Mario Super Run? Even uninstalling Magisk (flashing the uninstaller) I can´t even install Mario... can anyone help me please?
[Moto G5 Plus Guides, News, & Discussion] critofur:
Does this work with the Amazon.com "Special Offers and Lockscreen Ads" versions of the Moto G5 Plus?
[Moto G5 Plus Guides, News, & Discussion] luizlee86:
No. You have to unlock bootloader and amazon´s has a unlockeable bootloader
[Moto G5 Plus Guides, News, & Discussion] KapilFaujdar:
If i format my SD Card as internal storage on stock ROM and then change my ROM. Will it still be readable in new OS? or i will have to format it again and lose my data.
[Moto G5 Plus Guides, News, & Discussion] YevOmega:
Install Magisk Manager, and enable Magisk Hide. That should allow you to keep root and still play the game ?
[Moto G5 Plus Guides, News, & Discussion] fibercarbon:
I still think there is a possible way for educational purposes to easily disable to lockscreen ads without rooting and all that.. I am sure someone is smart enough to figure out how to turn it off easily.
[Moto G5 Plus Guides, News, & Discussion] critofur:
I know what TWRP is, but what exactly are:

no-verity-opt-encrypt-5.1 ( http://zip.net/bftGRg ) -and-

Magisk-v11.6 ( http://zip.net/bdtHnv )

How do we know these packages do not contain some type of "back door" or remote access etc.? Why can't we simply install SuperSU once we've unlocked the bootloader?

I also have Moto G5 Plus XT1687 (USA model 64GB/4GB RAM), I have unlocked my bootloader, and I am about to install root - however, I am trying to research the best way to get root and whether I need to install TWRP or not.

I see there is a version of TWRP for our phone, but it seems like an "early" version which is not fully developed/tested yet (for example, one OP states that it does not access the SDCARD yet??).

I believe you meant to say "Amazon's does not have an unlockable bootloader - I read this in other locations also, so, because I would not even remotely consider owning a "smart phone" wtihout root access, I did not buy the Amazon "special offers" reduced price version, I bought the $299 XT1687 version.
[Moto G5 Plus Guides, News, & Discussion] luizlee86:
Yeah, you're right, my bad lol

Enviado de meu Moto G (5) Plus usando Tapatalk
[Moto G5 Plus Guides, News, & Discussion] Dahenjo:
There's another guide here for rooting with Chainfire's SuperSU:

[HOW-TO] How to SuperSU the Moto G5 Plus (Rooting Guide)

It doesn't use the no-verity-opt-encrypt-5.1 because SuperSU does the same thing as part of its installation. Magisk is another rooting method (used in this thread, search XDA for more info) that supposedly can allow for using Android Pay (can't on US model anyway with no NFC) or games/apps that normally won't work with root, but some here haven't gotten it working that well. You can still try it first then uninstall it if you want to try SuperSU. I bought same exact model from Amazon and have used both methods but am currently on SuperSU which for me is more familiar.

SuperSU method needs a different/modified TWRP custom recovery (both are early versions at this stage for G5+ and neither works with external SD card from my experience, but should eventually and with 64 GB storage is no biggie for now) and also a modified boot partition to be able to install SuperSU, the exact files are linked in the guide, and of course you need the Motorola drivers and ADB/fastboot set up & working on Windows, all described step-by-step. Always make backups first, and I personally don't think there's any malware, but those slight risks are part of being a mobile enthusiast.

PS - there's also a video on the SuperSU method.
[Moto G5 Plus Guides, News, & Discussion] EnragedPopsicle:
Root hide isn't working with Magisk 11.6
[Moto G5 Plus Guides, News, & Discussion] abeloman:
Which build are you on? I was able to pass safetynet with magisk, but I don't remember if it was with the -33 build (currently using -35)

Enviado desde mi Moto G (5) Plus mediante Tapatalk
[Moto G5 Plus Guides, News, & Discussion] SmooshMo:
How come when I try to root with SuperSU it doesn't flash correctly?

It says failure, aborting, after patching sepolicy.
[Moto G5 Plus Guides, News, & Discussion] himanshuladia:
Found this all in one detailed guide which used magisk. http://www.thetechnotriad.com/1332/how-to-root-moto-g5-plus/ Not sure which one is the safer method. Somebody please tell.
[Moto G5 Plus Guides, News, & Discussion] ap4ss3rby:
One extra reason to buy this device aside from VR support

And a decent camera
[Moto G5 Plus Guides, News, & Discussion] :
At first: When i flash stock ROM at the beginning do i have to use the cedric stock ROM or the Potter for my G5 (not Plus!)

and 2. Do i have to update Magisk or can i just use the new version (12.0) directly, bec i dont want to create a google Account and so i cant use the Play Store to upgrade it or is there any way to upgrade it without a google Account?
[Moto G5 Plus Guides, News, & Discussion] chemist109:
Do NOT use Magisk-v12.0.zip

I spent most of a day trying to use the newer version of Magisk (v12.0) and failed to root my Moto G5 Plus. Follow the guide to the letter!

I used, FYI:

POTTER_NPN25.137-35_cid50_subsidy-DEFAULT_regulatory-DEFAULT_CFC.xml.zip

no-verity-opt-encrypt-5.1.zip

Magisk-v11.6.zip

I used Linux, so I had to unzip the POTTER ROM and fastboot each part. I ripped the info shamelessly from a post in another thread (its also in flashfile.xml in the zip). I tried so many times that I created a simple script that I ran as root to do the flash. Here it is:

#!/bin/bash
fastboot oem fb_mode_set
fastboot flash partition gpt.bin
fastboot flash bootloader bootloader.img
fastboot flash logo logo.bin
fastboot flash boot boot.img
fastboot flash recovery recovery.img
fastboot flash dsp adspso.bin
fastboot flash oem oem.img
fastboot flash system system.img_sparsechunk.0
fastboot flash system system.img_sparsechunk.1
fastboot flash system system.img_sparsechunk.2
fastboot flash system system.img_sparsechunk.3
fastboot flash system system.img_sparsechunk.4
fastboot flash modem NON-HLOS.bin
fastboot erase modemst1
fastboot erase modemst2
fastboot flash fsg fsg.mbn
fastboot erase cache
fastboot erase userdata
fastboot erase customize
fastboot erase clogo
fastboot oem fb_mode_clear

Put the commands in a file in the same directory as the POTTER ROM unzipped contents and chmod a+x <filename> to make it executable.

You could execute each of the fastboot commands manually if you really want to.

Addendum:

I could not install Netflix from the play store afterwards (your device is not compatible), but I was able to pull the APK from another android that I had and it installed and works perfectly.
[Moto G5 Plus Guides, News, & Discussion] elfarto:
Worked like a charm. although Magisk doesn't pass the SafetyNet Check (CSC Mismatch)
[Moto G5 Plus Guides, News, & Discussion] Asrvns:
I can't able to root my moto g5 plus plz. help me.

actually i can flash the twrp but i forgot to do backup. And my phone is not showing internal storage for copy those files? your requerment no. 11. Copy "no-verity-opt-encrypt-5.1.zip"(FLASH IT) and "Magisk-v11.6.zip"(NO FLASH IT YET), and flash "no-verity-opt-encrypt-5.1.zip", NO ROOT YET

so how can i copy both files? when my phone is not detecting?

so finally my phone is not starting. i'm very scared to what should i do?:crying::crying:

plz.. help me....
[Moto G5 Plus Guides, News, & Discussion] carpaint:
Do I need a PC and how exactly do I flash these files?
[Moto G5 Plus Guides, News, & Discussion] carpaint:
I don't understand step 4. What does a clea install an and how do I flash stock ROM?
[Moto G5 Plus Guides, News, & Discussion] carpaint:
I'm stuck on step 10 and 11. When I'm in TWRP, I plug device into laptop but folders doesn't show up. Laptop says it's connected but no folders so I can't put files in anything. Also, with the TWRP I got from the link in OP, most thing I did such as wipe factory reset, it says failed. And I can't access the internal memory, only externals MicroSD. I put Magisk and the other file on microsd but when I try to flash it, it also failed. I download TWRP from somewhere else and with this, factory reset works but it only show internal memory and no MicroSD. Still won't show folders in laptop. I tried putting the files in internal storage before flashing TWRP but doesn't show up in TWRP. Can someone help me?
[Moto G5 Plus Guides, News, & Discussion] keychain_007:
Will this work in Build NPN25.137-67?
[Moto G5 Plus Guides, News, & Discussion] rophaq:
can someone mirror the rooting files , somehow when i get to download page , its just blank ,not downloading.

i've tried all 3 mirrors , no luck so far.

thanks
[Moto G5 Plus Guides, News, & Discussion] milav:
where to find Build NPN25.137-67??
[Moto G5 Plus Guides, News, & Discussion] Jrhotrod:
There's a -67 build out?
[Moto G5 Plus Guides, News, & Discussion] milav:
Yup people are saying so
[Moto G5 Plus Guides, News, & Discussion] Jrhotrod:
I rooted without the verity disabler zip, here's how:

1. Unlock bootloader

2. Reflash stock ROM

2. Flash TWRP

3. Cancel encryption password, keep system read-only

4. Factory reset

5. Reboot TWRP

5. Transfer Magisk 13.0 ZIP from PC and flash.

Done. Profit. And no extra zips.
[Moto G5 Plus Guides, News, & Discussion] milav:
thanks its time to simplfy procedure this was things i was asking about regarding need of extra zip.

did you flash boot.img and wlan.zip?? or is it working??
[Moto G5 Plus Guides, News, & Discussion] Jrhotrod:
Haven't tried it yet. I couldn't find the patched kernel the OP of that method used. I do have wlan_custom ready to try whenever I find the other necessary materials.
[Moto G5 Plus Guides, News, & Discussion] milav:
​

So wifi is working without needing of patched boot and wlan??
[Moto G5 Plus Guides, News, & Discussion] Jrhotrod:
Correct. Although I do not pass safetynet. I will try out a magisk module and root hide and come back to tell you if those work or not
[Moto G5 Plus Guides, News, & Discussion] marcol87:
Unable to mount storage

problems here.

I already unlocked the bootloader.

I flashed stock rom (.35) and phone starts fine.

Then I flashed twrp from bootloader:

but when I start recovery mode I am not asked to decrypt /data but only to allow system modifications.

if I try to make factory reset I get this error (Failed to mount /data), look here: http://i.imgur.com/xElmZ9K.jpg

also if I try to boot phone the screen stuck on unlocked bootloader warning message and phone doesn't start. so the only solution is to reflash again stock rom from bootloader and can't flash twrp (and so no Magisk).

it seems like flashing twrp formats/changes data's file system

how can I solve this? please help me
[Moto G5 Plus Guides, News, & Discussion] Jrhotrod:
Make sure you are using the latest TWRP build. If you are, try out GtrCraft's build and seeif it helps.
[Moto G5 Plus Guides, News, & Discussion] marcol87:
I tried with twrp-3.1.0-0-n3-potter and twrp-3.1.1-0-GtrCraft-potter
[Moto G5 Plus Guides, News, & Discussion] Jrhotrod:
May be a firmware issue. Post the link you used to download the stock firmware, and I'll check it out.
[Moto G5 Plus Guides, News, & Discussion] Dahenjo:
On first start of TWRP do a Wipe/Format Data then reboot to recovery, see this post.
[Moto G5 Plus Guides, News, & Discussion] marcol87:
I got stock from here: https://firmware.center/firmware/Motorola/Moto G5 Plus/Stock/ (tried with .33 and .35)
[Moto G5 Plus Guides, News, & Discussion] Jrhotrod:
https://www.androidfilehost.com/?fid=745425885120723554

Try this link. I used it for the XT1687 with 100% success.
[Moto G5 Plus Guides, News, & Discussion] marcol87:
just tried but I got the same error I posted before: http://i.imgur.com/xElmZ9K.jpg

so after rebooted to recovery, again I am not asked to decrypt /data, and data is unmounted (internal storage marked as 0MB)

---------- Post added at 02:09 AM ---------- Previous post was at 02:05 AM ----------

ok I try.

just to be sure I'm doing everything right, this is the input I use to flash stock (pasted all together, not one by one):

fastboot oem fb_mode_set

fastboot flash partition gpt.bin

fastboot flash bootloader bootloader.img

fastboot flash logo logo.bin

fastboot flash boot boot.img

fastboot flash recovery recovery.img

fastboot flash dsp adspso.bin

fastboot flash oem oem.img

fastboot flash system system.img_sparsechunk.0

fastboot flash system system.img_sparsechunk.1

fastboot flash system system.img_sparsechunk.2

fastboot flash system system.img_sparsechunk.3

fastboot flash system system.img_sparsechunk.4

fastboot flash modem NON-HLOS.bin

fastboot erase modemst1

fastboot erase modemst2

fastboot flash fsg fsg.mbn

fastboot erase cache

fastboot erase userdata

fastboot erase customize

fastboot erase clogo

fastboot oem fb_mode_clear

fastboot reboot

is that ok?
[Moto G5 Plus Guides, News, & Discussion] Dahenjo:
You did a Format Data (need to type 'yes' to proceed, etc) and not just another factory reset, right? What TWRP version? What ROM is installed (stock, custom, etc) and can phone boot to System?
[Moto G5 Plus Guides, News, & Discussion] marcol87:
omg you were right!!! I did Wipe data (the one which requires swipe to confirm) and not Format data (which requires to type yes)

now yes, it works!! I'm so grateful...to you and to everyone who tried to help me.

THANKS
[Moto G5 Plus Guides, News, & Discussion] Dahenjo:
Glad it worked. (I mis-typed in my last reply: meant 'Format Data' not 'Wipe Data')
[Moto G5 Plus Guides, News, & Discussion] Jrhotrod:
MAGISK UPDATE: topjohnwu's new Magisk 13.0 beta works and is compatible. SafetyNet passed until Google Play Services new update. The developer currently has a working beta with SafetyNet passed, he just hasn't released it.

https://xdaforums.com/apps/magisk/beta-magisk-v13-0-0980cb6-t3618589
[Moto G5 Plus Guides, News, & Discussion] Jrhotrod:
Screenshot:
[Moto G5 Plus Guides, News, & Discussion] the_hustler:
I already have TWRP installed. So I just flash magisk to get root?
[Moto G5 Plus Guides, News, & Discussion] Jrhotrod:
Yes. Flash his latest beta of 13.0 from the link above. It will be the last attachment on the post.
[Moto G5 Plus Guides, News, & Discussion] aSuperSaiyanG0D:
So are the first steps of the guide still needed?

Like the wipe and format data steps?

I'm bouta purchase a Moto G5 Plus and wanted to make sure I don't screw it up aha
[Moto G5 Plus Guides, News, & Discussion] Jrhotrod:
Everything still applies. However, you can skip the part where you flash the dm-verity disabler. See my post: https://xdaforums.com/g5-plus/how-to/how-to-root-moto-g5-plus-t3579659/post72503060
[Moto G5 Plus Guides, News, & Discussion] pappiloo:
Apparently same with COSTCO motoG5 Plus. :( Cannot unlock bootloader

>
[Moto G5 Plus Guides, News, & Discussion] Jrhotrod:
Are you trying to flash a custom recovery without unlocking the bootloader? The bootloader unlock process MUST be done by following this link:

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