yashsingh1/xdaforums huggingface dataset:
[Moto G5 Plus Guides, News, & Discussion] guitarsmurf2501:
I flashed the latest official stock rom (ending in 35). It seems to connect to the PC just fine, cuz when I type "fastboot reboot" it works. It's as if the file I'm trying to flash is invalid or can't be found.

I'll try to delete the files from my PC and reinstall everything again.
[Moto G5 Plus Guides, News, & Discussion] sshweet:
Yes, I'm getting the exact same issue after successfully rooted. Same observations. adb devices = serial unauthorized with no auth prompt. Looking forward to a resolution soon. Don't want to go back to stock at this point.
[Moto G5 Plus Guides, News, & Discussion] tzac11:
I was also able to successfully root the phone. But like listed above I am unable to authorize my phone through adb. I do not get the prompt to authorize my computer. It was working fine while completely stock. I have tried everything from switching USB ports, to turning off my computer, phone, and turning off usb debugging? The phone is read perfectly fine in fastboot mode and I am able to execute all commands while in fastboot mode.
[Moto G5 Plus Guides, News, & Discussion] manos78:
Hi,

Simple question: It's best rooting with "Chainfires Root" or with "Magisk"?
[Moto G5 Plus Guides, News, & Discussion] milav:
what is the purpose of flashing modified boot kernel?? is it because after unlock there is error where one can not boot device??

i am yet to receive phone but looking through threads i find it difficult to get complete idea some are reporting broken device some are saying it went easily

also there is difficulty in finding proper method to go back to stock unharmed.

reason i am asking is because i am coming from xiaomi device where they provide proper support for flashing stock rom with soingle click

i request to provide novice users like us to have single page thread where we can have all procedure written.

video tutorials are ok but they also say go through notice below video so most of time instructions are fragmented

thanking for reading reaquest
[Moto G5 Plus Guides, News, & Discussion] MortaLPortaL:
So uhh..the wlan fix killed my flashlight. chop chop doesn't work and neither does the pulldown menu.

was that even tested?
[Moto G5 Plus Guides, News, & Discussion] milav:
so its better to wait and watch am i right?
[Moto G5 Plus Guides, News, & Discussion] milav:
received my phone but waiting for answers before i root please help me.

what is the purpose of flashing custom boot.img? cant we just flash lazy flasher zip and boot?? i am not able to find proper answer to this in any forum.

some videos says there is no need to flash custom boot img some says there is absolute need to flash custom img
[Moto G5 Plus Guides, News, & Discussion] dr87:
All I did here was modify the kernel posted in the OP to enable the adb debugging prompt since I needed to log things with system write access and OP's kernel link didn't allow it. Nothing else was changed from the posted kernel so I can't offer any further support for any issues, sorry!

Heres the same kernel with ADB prompt working (Edit- Added system RW permission)

https://drive.google.com/open?id=0BzHidNj_Nrl_V1B5S2JqNkJOblE

You will need to reflash the supersu in the OP's link after fastboot flashing this, as su needs to mod the kernel
[Moto G5 Plus Guides, News, & Discussion] pablo102:
Hi,

thank you for the guide!

I'm trying to root G5 Plus now and need to ask (rather than regret later) regarding third step:

3. Place the recovery image and boot image where the adb terminal folder is located

Where are those two files located (recovery image and boot image)?
[Moto G5 Plus Guides, News, & Discussion] brendan2012:
I'm getting a problem where TWRP is asking for a password, but when I enter my 4 digit pin it keeps saying invalid and then my TWRP never sticks after a reboot. Am I using the wrong version? (Potter)
[Moto G5 Plus Guides, News, & Discussion] drtechie:
Thanks man. Much appreciated.
[Moto G5 Plus Guides, News, & Discussion] Cybertron713:
So, I used this root method the other day, and later installed Magisk. Today, I got the latest beta, so as to pass SafetyNet, but I don't pass. Is it detecting a modification in my boot.img, recovery, or kernel? A SN pass isn't necessary, just something I'd like to do. If this root method normally doesn't trigger SN, then I may need some help with my predicament.
[Moto G5 Plus Guides, News, & Discussion] djzero86:
Thanks, after do all steps i getting camera error, i solved flashing elementalx kernel and camera works again
[Moto G5 Plus Guides, News, & Discussion] Boobala arun kumaran:
Thanks [MENTION=4313591]djzero86[/MENTION].. My Camera problem is resolved
[Moto G5 Plus Guides, News, & Discussion] djzero86:
I have a Xiaomi Redmi note 3 and sometimes, flashing custom roms has some complications with camera, and sometimes flash a custom kernel solve the trouble, maybe the OP can added this information on the main post:good:

---------- Post added at 03:18 PM ---------- Previous post was at 03:15 PM ----------

You need download both files from main post and put it on the same folder of ADB files

---------- Post added at 03:27 PM ---------- Previous post was at 03:18 PM ----------

To solve it you need press cancel and go to wipe and select format data, write yes and now you can access the data partition, but this wipe your data obviously:rolleyes:
[Moto G5 Plus Guides, News, & Discussion] sinchan_nohara:
Now the decryption is fixed in TWRP what steps should i follow to install TWRP and magisk on my stock unrooted phone do i still have to flash custom kernel and wlan patch i am not confused what steps should i follow.
[Moto G5 Plus Guides, News, & Discussion] djroese33:
You're in the SuperSU version of 'how to root'. Think you want this thread: https://xdaforums.com/g5-plus/how-to/how-to-root-moto-g5-plus-t3579659
[Moto G5 Plus Guides, News, & Discussion] nixsee:
Thanks! This fixed this issue for me after looking around and reflashing things for at least 6 hours.

Mods, can this boot image be replaced in the main post (or at least an addendum added) to prevent this happening to others?
[Moto G5 Plus Guides, News, & Discussion] Noed:
This SuperSU method worked great for me, thanks for all involved.

(I spent many hours trying the Magisk method, but that was unstable, sometimes I got root and after a reboot loose it, and Magisk Manager force closed a lot.)

Question, if I want to apply and OTA update, I just need to disable SuperSU, or need to completely unroot first?
[Moto G5 Plus Guides, News, & Discussion] Bumblecito:
Flash this TWRP (twrp-3.1.0-0-n3-potter.img ) with SD Card support.
[Moto G5 Plus Guides, News, & Discussion] raginhomosapien:
I unlocked and flashed TWRP successfully, but when I left TWRP and rebooted, my phone went to the warning screen saying "ID: bad key" and "Your device will boot in 5 seconds."

From here, it is totally stuck. If I try to power my phone off by holding down the power button for several seconds, the screen will power off then immediately power back on to the warning screen. If I hold down power and volume down to try to get to bootloader so I can get into fastboot/recovery/anything, nothing at all happens.

I really need some help with this! I can't figure out how to get back to recovery or fastboot or anything, and the other forum posts I have read say that they have been able to access recovery and fix this...

So after I unlocked and installed TWRP, the phone booted to a screen that said "ID: bad key" and was stuck. I got around that by holding down the volume down and power button for a very long time to turn the device off and then boot it into the bootloader. From there I was able to flash the boot_image and other zips I needed with no issue.
[Moto G5 Plus Guides, News, & Discussion] carnivalrejectq:
Can someone help me? Ive unlocked the bootloader and successfully installed the modified boot IMG as well as TWRP. Ive tried both the OP twrp and the one posted a few comments back but neither are able to read the storage to find the zips to flash. Keeps giving me the message when I open TWRP about allowing modifications. I swipe yes and then nothing happens. Says 0MB for internal storage. I cant wipe data either as suggested a few posts back because an error comes up saying failed to mount /data "invalid argument" unable to mount storage. Happens on both TWRPs. Also when I went into the OP TWRP for the first time it asked for a password and I just pressed cancel. EDIT: Nevermind I figured it out lol.
[Moto G5 Plus Guides, News, & Discussion] carib909:
How do I know of my Bootloader is unlocked

I bought MotoG5 plus from Amazon. Has Amazon ads. How do I know if the bootloader is unlocked?
[Moto G5 Plus Guides, News, & Discussion] sic0048:
If you bought the version from Amazon that has ads, your boot loader is locked and there is no known method to unlock it. You are simply out of luck.

If you bought the standard version from Amazon with no ads (but normally at a higher cost than the ad version) then your boot loader comes locked, but it can be unlocked by following the directions.
[Moto G5 Plus Guides, News, & Discussion] udg21:
ok all i unlocked bootloader then flashed recovery booted into recovery flashed modified boot and booted into system added the wlan and super su zips to root of phone tried to reboot to recovery but cant get back to recovery to flash the zips
[Moto G5 Plus Guides, News, & Discussion] dlong:
Setup Wizard?

So flashing wipes out all the data. I think I am missing something very simple. How can I run the setup wizard (specifically copy from another device step) after all the flashing so that I can get the data back... ?
[Moto G5 Plus Guides, News, & Discussion] ZubaZ:
Does anyone know, does this method work after doing the OTA update for NPNS25.137-33-5. I just updated and now I don't have root (as expected). But I 'm wondering if this method still works with the lastest update. Thanks!
[Moto G5 Plus Guides, News, & Discussion] Darkcommand:
Is there any guide to supersSU moto g5 Cedric? I appreciate it
[Moto G5 Plus Guides, News, & Discussion] tandon.ayush:
Can anyone confirm if this works on .67 firmware?

and if it doesn't, how do I get root?
[Moto G5 Plus Guides, News, & Discussion] iBART:
I followed the guide but WIFI is not working. Any help? :\

Edit... ummm i re-flashed boot and after the reboot ... puf... wifi is working.

Edit 2... first reboot and wifi is gone!
[Moto G5 Plus Guides, News, & Discussion] jgro1976:
So I've been searching, raking my brain trying to get this silly thing rooted. My windows 10 machine sees it in fastboot, but no matter what I try I can't get it to show up in ADB, I says it flashes recovery but when I go to boot into recovery it's still the stock recovery....? I've looked at several different guides, tried installing all the drivers....I also do have the latest update. Is that the problem?
[Moto G5 Plus Guides, News, & Discussion] seed_87:
I just read this whole thread and have seen posts about:

- Moto gestures breaking (Post #39)

- Wi-fi problems (though there is a fix for that in the OP)

- RSA popup not showing, The one allowing a computer to trust a PC to enable USB debugging on the phone (Post #29 )

I just bought a G5+ and have successfully unlocked its boot loader. I wouldn't want to move forward unless some people can confirm this rooting method doesn't break these things and it's safe enough.

So, whats the consensus?

Thanks to all.
[Moto G5 Plus Guides, News, & Discussion] androcraze:
What is root going to give you, or what does rooting a device mean to you?

The divide between "factory" and custom ROMs is growing due to perceived (or real) security concerns by vendors. The sacrifices that a user has to make by switching to a custom ROM are sometimes painful: users could potentially lose the ability to use Android Pay, and vendors are refusing to allow apps to run if they determine that a device has been rooted. This situation will only get worse as time goes on.

I've just jumped from a Nexus 5. With the N5, I built my own ROM from AOSP, rooted the device, and pared-down everything to bare bones. I had no bells, no whistles; my focus was on security and reliability. Towards the end with that N5, my sole reason for rooting the device was so that I could run AdAway to block ads while browsing (I don't install apps that demand fees or flood my device with ads).

My current G5+ isn't rooted, and rather than running AdAway, I'm running Firefox with uBlock Origin. I've disabled a number of the Google apps and installed open-sourced replacements. It's not quite where I was before, but I'm quite happy with what I have right now, and can live without root.

My reason for wanting root was control over my device; I still have some of that capability with ADB and TWRP. I was hoping that PHH would get his version of superuser going with this device; it's a simple matter of swapping-out boot.img partitions if you want to revert back.

I'll stick with my current setup for now. Hopefully things will mature on the root and custom ROM fronts for this device.
[Moto G5 Plus Guides, News, & Discussion] seed_87:
Hey androcraze, thanks for the response!

I really do not care for android pay, I don't think it is even possible with the g5+ as it doesn't have nfc. I know rooting has its downsides, regardless, I've been rooting android phones since I first got a galaxy 1 phone, then a galaxy s3, Xperia z3..

Just like you, the biggest reason for me to root a phone is to install adaway on it, would also install a couple of xposed mods to block YouTube ads, among other things.

However, I freaking love "chop chop" moto gestures and I don't want to loose those to gain root.

I'd also be using this phone to develop apps, so not being able to get an RSA popup to be able to use it as a dev device really kills it for me

Do you or does. Anybody know if these tiny issues have been solved?

Thanks again for the response and the OP for this rooting thread!
[Moto G5 Plus Guides, News, & Discussion] androcraze:
Rooting really wasn't an "issue" until Marshmallow; that's when the special rules started coming in place.

I don't use any special gestures, so I can't help in that regard.
[Moto G5 Plus Guides, News, & Discussion] xdataibai:
now we have the official twrp for moto g5 plus, is the rooting process the same as the usual one, i.e. 1. unlock bootloader 2. flash the official twrp 3. in twrp, flash latest supersu.? I saw in this thread, it needs to flash a modified kernel? is that still needed?
[Moto G5 Plus Guides, News, & Discussion] x1357246:
Does it work on Oreo ROMs?

I had Pixel experience installed, TWRP 3.1.1.0 installed. But flashing the chainfire zip didn't work. SuperSU App said "root not detected" after rebooting.

Can anyone help?

Solved with Magisk.
[Moto G5 Plus Guides, News, & Discussion] webdoctors:
I followed the instructions in the OP's #1 post and there were no issues except my camera broke. It keeps giving a force close now, so I reverted to stock rom using instructions posted on this site under the post titled "How to re-lock Bootloader of all Potter version by aSaro12" (https://xdaforums.com/g5-plus/how-to/how-to-lock-bootloader-potter-version-t3694952) and now everything back to normal.

I think the problem is the kernel you're forced to load, it might not be compatible with the north american phones. Phone only gives a camera is busy or camera app forced close message. I didnt debug trying to load another kernel or ROM to fix the issue.
[Moto G5 Plus Guides, News, & Discussion] beatlesfan5858:
I followed toolkit steps then these exact same steps in this article. Both worked to root phone, but camera didn't work both times. I think you're right webdoctors, it's the kernel. I don't want to relock my bootloader though so I'm not going to follow what you did. I am giving up on root.

VERDICT: MOTO G5 PLUS NORTH AMERICAN VERSIONS CANNOT BE ROOTED WITHOUT BREAKING CAMERA AND FLASHLIGHT.
[Moto G5 Plus Guides, News, & Discussion] Credrili:
I just bought this phone today at Best Buy and it rooted fine with no issues. Flashing the WiFi patch didn't break my camera or flashlight either.

Perhaps you didn't something incorrectly during the process. I haven't rooted a phone in a long, long time and I had zero issues apart from getting ADB to work, which I finally figured that out.
[Moto G5 Plus Guides, News, & Discussion] beatlesfan5858:
Thanks for this Credrili! Did you buy a U.S. model? What process did you use to root?!
[Moto G5 Plus Guides, News, & Discussion] Credrili:
I followed the first post in this thread. No toolkit. But to save you some time, make sure you update your phone to get the 911 voLTE fix, then continue with the root process.

I must now revert to stock, update, then root again. Haha. edit: nevermind, I can use a TWRP backup from this thread: https://xdaforums.com/g5-plus/development/rom-twrp-flashable-stock-builds-t3675616

edit: Yes I bought the US model. It came with NPN25.137-33 out of the box.

edit3: Needed to root with Magisk v14 while using NPN25.137-83 but it works as intended for me with no difference in regards to SuperSU.
[Moto G5 Plus Guides, News, & Discussion] darko454:
Hey Guys,

I have a question before i start flashing. Does anybody know if i can flash the Resurrection Remix v5.8.4 after i flash

Vanche's Modified TWRP? Or do i first have to flash the Vanche's Modified Boot Kernel, then Vanche's Wifi Patch?

Should the Resurrection Remix v5.8.4 already have Magisk root?

Thanks
[Moto G5 Plus Guides, News, & Discussion] thispdxgirl:
Will this work with XT1681, the Mexican version?
[Moto G5 Plus Guides, News, & Discussion] Kaaw:
I have a strange wifi problem

Whenever i use the vanche´s kernel i can use the wifi of my moto g 5 plus xt1680 as its meant to be but the camera breaks, and when i change to elementalx i can use the camera but the wifi goes back as to what it was stock ultra slow download in playstore and cant use team viewer which is a must for me, is there anyway i can fix the elemental kernel to be like vanches one for the wifi only?
[Moto G5 Plus Guides, News, & Discussion] :
Lojpjl
[Moto G5 Plus Guides, News, & Discussion] MisterShakey:
I have the India model, and ever since I've flashed the boot.img given here I've been facing "Updater process ended with error 255" in TWRP with every ROM I've tried to flash. I'm guessing it's because the boot.img has defined it as a non-potter phone. My PC seems to recognize it as a Z2 Play for some reason too. Please help.
[Moto G5 Plus Guides, News, & Discussion] Wolfcity:
Just don't use it. Head over to the other rooting thread and check this post: https://xdaforums.com/showthread.php?t=3579659&p=74673573

SuperSU isn't supported anymore so magisk is the rooting method to use. This guide is outdated, there's no need for special recoveries,no-verity zips or boot.img anymore. You can use the official TWRP recovery and latest 15.3 magisk.
[Moto G5 Plus Guides, News, & Discussion] MisterShakey:
Will do,thanks :) But I think the problem lies deeper now. I have a feeling it's got something to do with the partitioning being downgraded, since that's something I ran into while flashing a stock ROM via fastboot. I messed up somewhere and had to clear out my entire internal storage, so even with a squeaky clean install from scratch I'm facing those issues. Any clue about that?
[Moto G5 Plus Guides, News, & Discussion] Wolfcity:
Can you explain what exactly happens when you try to clean flash your stock ROM via fastboot?
[Moto G5 Plus Guides, News, & Discussion] MisterShakey:
Please disregard, it seems I channeled my inner noob and messed up my TWRP version as well as the root method. Everything works absolutely fine for now, and I got my hands on the sweet Cosmic ROM. Thanks for the help, though! :D
[Moto G5 Plus Guides, News, & Discussion] jdushey:
I just bought this phone version XT1687 -

Will the latest version of MAGISK work instead of SU?
[Moto G5 Plus Guides, News, & Discussion] gumpysitruc@gmail.com:
Yes
[Moto G5 Plus Guides, News, & Discussion] Bindu Thomas:
Which customer rom best for oreo in moto g5 plus
[Moto G5 Plus Guides, News, & Discussion] Wolfcity:
Test them. There is no best for everyone.
[Moto G5 Plus Guides, News, & Discussion] chinmay.garg:
Rooted the phone successfully. Unlocked bootloader -> Fastboot Flash TWRP Recovery -> Fastboot Flash Boot image -> Flash WLan via Recovery -> Flash SuperSU via Recovery. -> Reboot to system.

But camera isn't working now. Would appreciate if anyone has any solution, else wil have to reset to factory mode.
[Moto G5 Plus Guides, News, & Discussion] RodHQ:
I'm sorry but what? I can't make sense of this sentence lol

Also at the end it says I should login to apps before rooting, does that mean at the very beginning of the process before the first step?
[Moto G5 Plus Guides, News, & Discussion] jpr9845:
I have the Amazon version without the ads. I tried to fastboot flash recovery (modified TWRP) and I got an error saying something was the the wrong size. I'm not familiar with this models recovery system, I've been a Samsung user for many years. I'm not really sure what the difference options are. It opens where is says start and I cycle thru them tools, log etc... Where should I be when I try to flash this?
[Moto G5 Plus Guides, News, & Discussion] Wolfcity:
Is your bootloader unlocked? As far as I know the amazon version isn't unlockable and in this case no way to flash a custom recovery.

Or do you mean you just bought the device as a retail version from amazon?
[Moto G5 Plus Guides, News, & Discussion] jpr9845:
I have the standard Prime member version not the ad riddled amazon one.
[Moto G5 Plus Guides, News, & Discussion] Wolfcity:
Main thing is your bootlader is unlocked.

Maybe give the official TWRP a try: https://twrp.me/motorola/motorolamotog5plus.html

And you have to be in fastboot/bootloader mode when you want to flash something via fastboot. I don't remember the stock recovery very good but if there's a point called "bootloader" or " fastboot mode" that would be the correct place to be. You can reach this mode also with a button combination. Shut down the device, press vol- for 2seconds, than power and release both keys. You should be in fastboot mode.

http://www.hardreset.info/devices/motorola/motorola-moto-g5/fastboot-mode/
[Moto G5 Plus Guides, News, & Discussion] jpr9845:
I was going to try the official TWRP but I could not figure out the Android Studio. I also tried just using minimal ADB and Fastboot and got this result.

D:\Program Files (x86)\Minimal ADB and Fastboot>adb devices

List of devices attached

XXXXXXXXX device

D:\Program Files (x86)\Minimal ADB and Fastboot>adb reboot bootloader

D:\Program Files (x86)\Minimal ADB and Fastboot>fastboot flash recovery twrp.img

(bootloader) slot-count: not found

(bootloader) slot-suffixes: not found

(bootloader) slot-suffixes: not found

(bootloader) has-slot:recovery: not found

target reported max download size of 536870912 bytes

sending 'recovery' (14460 KB)...

OKAY [ 0.362s]

writing 'recovery'...

(bootloader) Image recovery failed validation

(bootloader) Preflash validation failed

FAILED (remote failure)

finished. total time: 0.380s

My potter is not cooperating.
[Moto G5 Plus Guides, News, & Discussion] thedr34m13:
Are you sure you've unlocked your bootloader?
[Moto G5 Plus Guides, News, & Discussion] evaskeeva:
Just an FYI, I used this guide on a new XT1687, North America, G5 Plus and it worked w/o issue. (I suppose that is the intent)

I disabled the OTA notifications using App Disabler...now II am looking at doing the security update listed. After that I am making a nandroid backup to use as my fallback going forward as I try some different roms...

any suggestions on a good first custom rom?