yashsingh1/xdaforums huggingface dataset:
[Moto G4 Plus Guides, News, & Discussion] mel2000:
Do the latest Phh superuser.zip and its Play Store app work for the latest xt1644 June 2017 NPJ25.93-14.5 update?
[Moto G4 Plus Guides, News, & Discussion] ChuyitoSr:
This is what I get when I try to flash twrp. Any help guys?
[Moto G4 Plus Guides, News, & Discussion] strongst:
Post only once. Discuss here https://xdaforums.com/moto-g4-plus/...g4-plus-supersu-android-t3587918/post73785477
[Moto G4 Plus Guides, News, & Discussion] mel2000:
Is rooting with the PHH Superuser zip method compatible with SuHide? If not, is there another way to hide root with PHH Superuser zip? The two screenshots of the PHH Superuser manager app at the Google Play Store don't indicate a way to hide root.
[Moto G4 Plus Guides, News, & Discussion] fireop958:
I made it to flashing superuser.zip but after i did that my phone would not boot up. I can boot into the bootloader and go into TWRP but i cant boot into android.
[Moto G4 Plus Guides, News, & Discussion] nicocarrillo:
Hello! I have moto g4 plus, and compilation NPJ25.93-14-8.1.

Is possible root my phone whit this metod?

Enviado desde mi Moto G (4) mediante Tapatalk
[Moto G4 Plus Guides, News, & Discussion] strongst:
Yes it's possible, with ElementalX kernel as described
[Moto G4 Plus Guides, News, & Discussion] andrescm:
Hey guys,

I'm on NPJ25.93-14-8.1, security patch level June 1st. The phone is rooted with SuperSU and ElementalX kernel. It is my understanding that rooting disables OTA updates, yet today I'm being notified about a new patch to security patch level September 1st (build NPJS25.93-14-8.1-1).

Is this expected?. If I do update, should I take any cautionary steps besides making a nandroid backup?. Will I lose root and/or be able to re-root again afterwards?

Thanks!!!
[Moto G4 Plus Guides, News, & Discussion] ____Mdd:
I don't know if rooting disables OTA.

But for 2nd question,

You should not take OTA while root, custom kernel, custom recovery is installed, it will fail for sure, plus it can create troubles if you take OTA and try to install through custom recovery.

Take backup (of internal memory too), flash stock things according to your current firmware, then go for OTA (or directly flash latest version by fastboot, to get latest fastboot version, check what version of OTA you are getting and download fastboot ROM of that version.)
[Moto G4 Plus Guides, News, & Discussion] fedex_742:
hi people, this method work with this rom?

https://xdaforums.com/moto-g4-plus/how-to/stock-rom-npjs25-93-14-4-march-1-t3608138
[Moto G4 Plus Guides, News, & Discussion] ____Mdd:
Yes, All Root guides available here are made for Stock ROM only. However you can follow this steps for better way (as OP is (old) for phh's superuser and have to use given script)

> get adb/fastboot, unlock bootloader and install TWRP

> Get Elemental-X kernel for Stock 7.0 ROM (see developer section to get it)

> Take backup of System, boot, data.

> Flash Elemental-X kernel

> Flash SuperSU or Magisk (go for magisk if safetynet matters for you) (Google to get them)(use SuperSU 2.82 SR5 latest)

>Done
[Moto G4 Plus Guides, News, & Discussion] IDSCIC:
Whoops...

So, I did noverity but forgot to do nocrypt. It won't boot, did i just brick it? or can i try again and have it fixed?

---------- Post added at 06:02 AM ---------- Previous post was at 05:59 AM ----------

I'd assume yes, because after wiping and trying again, android won't boot.
[Moto G4 Plus Guides, News, & Discussion] LinuxPusher:
Build NPJS25.93-14-10

First Thank you Very much for your dedication on this website it is greatly appreciated !

There is an "S" on my Build number.

"NPJS25.93-14-10"

Does it make a difference ? E

DIT: Still searching for answer to "S" not sure if its important

Moto G4 Plus

XT 1641

Android 7.0

Patch level September 1, 2017

kernel 3.10.84-g9b51918

Thank you

LP

EDIT: I think I found my answer

https://xdaforums.com/moto-g4-plus/how-to/captured-ota-september-security-patch-t3680367

I am New to this first timer, so many similar threads I find it confusing.

It took me Many tries to Unlock Boot loader but its done 2 days ago.
[Moto G4 Plus Guides, News, & Discussion] echo92:
A S in the Motorola build numbers generally denote security patches only (though the naming scheme is a little inconsistent).

Regardless, the rooting process should work on NPJS25.93-14-10 and NPJS25.93-14-13, just ensure you flash a custom kernel (such as ElementalX) before flashing your rooting manager of choice. I've been running magisk on NPJS25.93-14-10 and NPJS25.93-14-13 with ElementalX and it's a stable root.
[Moto G4 Plus Guides, News, & Discussion] LinuxPusher:
Thank You.

LP
[Moto G4 Plus Guides, News, & Discussion] LinuxPusher:
Moto G4 Plus Install done

I have finished my cell, a while ago, sorry I took so long to report back But I have been Grinning and experimenting with it ever since .

Bootloader Unlocked

TeamWin installed ( I Love it ! Clonezilla for my Cell )

ElementX installed

Backed up to a spare SD, PC & internal SD

Lineage 14.1 installed

addonsu 14.1 installed ( Root Toggle switch )

F-Driod installed

Backed up again

I tried Open Gapps but found it no different than the locked down version invasive, persistent, stubborn, Removed by Wipe with TeamWin.

Thank you all again for the work you do, I actually did a Happy Dance !

Edit: I also removed the "Untrusted Warning" at boot.

Now I think I want to install my Own Boot logo.
[Moto G4 Plus Guides, News, & Discussion] wfantasma:
I can confirm that still working even in NPJS25-93-14-15 (february 1 patch)

today i installed this update on my xt1621 (via fastboot method) and then rooted with phh´s SuperUser. everything is working fine :)
[Moto G4 Plus Guides, News, & Discussion] 1emrys1:
I have an Indian variant which hadn't been rooted or unlocked till today. I did it and I'm on the latest firmware. If I get security update now, how do I install that?
[Moto G4 Plus Guides, News, & Discussion] strongst:
You need the stock kernel and stock recovery to install ota updates, otherwise you turn into bootloop.
[Moto G4 Plus Guides, News, & Discussion] 1emrys1:
So how do I do that when I'm already currently using twrp with custom kernel?

I need to flash stock kernel and then stock recovery? Is that even possible without losing data?
[Moto G4 Plus Guides, News, & Discussion] strongst:
Yes exactly, you won't loose data only when relock bootloader, but that's not necessary. Backup your data is mandatory in any case.
[Moto G4 Plus Guides, News, & Discussion] ReinaldoAF:
hi, this work on secury patch marc 1?

NPJS25.93-14-4 ?
[Moto G4 Plus Guides, News, & Discussion] echo92:
Should do, ensure you have ElementalX before you flash a root manager (e.g. magisk). Else you will likely bootloop.

Also, be aware that NPJS25.93-14-4 is quite old (March 2017 security patch), whereas the latest security patch is Feb 2018 (possibly April 2018 in the future). Up to you if you choose to update.
[Moto G4 Plus Guides, News, & Discussion] ReinaldoAF:
Sorry, maybe I don´t be clear, let me explain history..

I try root, and susses this,

try on RR 8.1, 8.0, and another dist 7x and 8x, but ever time i get much issues, over memory usage, much crash apps etc...

come back to the stock rom, but forget about OTA, ota run after my boy tape update and brink all, we need clear all for my phone using one software and serial conn (i don´t remember but is the brink without bootloader start) after much "how to" I find one stock rom and this work...

now we have this stock (picture attached) and have boot unlocked (start mesage agout this for 5s no secury bla bla bla) and like know if can I root the stock rom, because all anothers rons I try I get problems...

We need usualy use for phone and games like PUBG and Clash Royaly and this don´t run without crash over no stock rons when I try, and I try 4 diferent rons 8.x and 7.x

sorry for this, if it is not possible, please indicate one ROM with good performance...

I know about the ROM's are one project without payment (only donate) and I donate for this one time (RR for my galaxy s4 9550, it get alive my "old" phone again) but really the RR for galaxy is very more stable that the moto g4 plus RR 7.x and I don´t know why...

sorry for a big post.

I check this post but I'm afraid to try and brink again,

https://xdaforums.com/showpost.php?p=71309046&postcount=163

img

https://photos.app.goo.gl/DdHfB8yDswmiaBCV7
[Moto G4 Plus Guides, News, & Discussion] echo92:
So if I've understood your post correctly - you tried root on stock ROM, didn't work. Tried several custom ROMs but had issues with each of them. Re-flashed the stock ROM but then hard bricked after OTA. Recovered your device with a blankflash.

Looking at the device pic, if you flashed the stock ROM, you can still root. Credit to this guide: https://xdaforums.com/moto-g4-plus/how-to/guide-root-moto-g4-plus-supersu-android-t3587918

1)Flash/boot into TWRP.

2)Backup your device in TWRP.

3)Flash ElementalX custom kernel for stock. Without this custom kernel, you may bootloop/brick your device again if you root on stock firmware.

4)Reboot to test your device.

5)If working, reboot to TWRP and flash magisk or SuperSU.

6)Wipe cache/Dalvik, reboot.

That should be your device rooted.

However, your device is running a mix of firmware - you have the modem from the latest stock ROM firmware (NPJS25.93-14-15, Feb 2018) but have the March 2017 NPJS25.93-14-4 system running on your device. I would honestly avoid any OTA updates else you may hard brick (and after you are rooted, you cannot use OTA updates anyway).

As for custom ROMs for gaming, I don't know of any ROMs that give good gaming performance (I don't game much on my device). Perhaps others can contribute ideas.
[Moto G4 Plus Guides, News, & Discussion] ReinaldoAF:
"blankflash" yes this work like defibrillator for my phone :D.

thank you, I will try on with ElementlX, and check, I try use all of FEB 2018 but get no update partirions when use fastboot, I found on forum one link with one .zip with all and one .bat with sequence to fastboot comands, I remove "lock" for don´t relock my bootload and execute, my phone come to alive..

now i don´t know about all versions of firmwares are installed and be afraid to try new "updates", but my recovery is TWRP 64bits and still working good, we make onde full backup after we come alive again, now will backup full and try on again :)

thank you alot
[Moto G4 Plus Guides, News, & Discussion] ReinaldoAF:
root work fine, now try day by day usage ... tnks alot
[Moto G4 Plus Guides, News, & Discussion] prabhatpatel93:
Applicable for newest update??

Can I use this method for newest update NPJS25.93-14-18??
[Moto G4 Plus Guides, News, & Discussion] echo92:
In theory, it should work - as per the warning at the top of the post you quoted, you must flash ElementalX (or Loony kernel) for the stock ROM before rooting. Failing to put a custom kernel before rooting may mean you bootloop if you try to root the stock kernel. As always, you do not need to root to flash custom ROMs, you only need an unlocked bootloader and TWRP.

A more up to date tutorial is https://xdaforums.com/moto-g4-plus/how-to/guide-root-moto-g4-plus-supersu-android-t3587918 However, SuperSU development has not occurred for some time, so you may wish to flash magisk instead of steps 6 and 7 in that tutorial https://xdaforums.com/apps/magisk/beta-magisk-v13-0-0980cb6-t3618589

Generally -

1)Unlock your bootloader - this will void your remaining warranty and wipe your data.

2)Flash/boot TWRP. Back up your device in TWRP (especially your data, system and kernel). Make a separate backup of your stock kernel, make sure to name this as your unmodified, stock Motorola kernel).

3)Flash your custom kernel of choice (ensure you're flashing the variant of the custom kernel meant for stock Motorola ROMs).

Wipe cache. You may wish to reboot to check your device is working.

4)Return to TWRP if you rebooted. Flash SuperSU OR phhsuperuser OR magisk (only flash one please, do not mix and match). Wipe cache in TWRP. Reboot.

5)Your device may take some time to reboot. You should now be rooted on the stock ROM.

6)If you want to switch root managers, you must un-install the old root/manager and flash a clean stock kernel (from the kernel backup in 2)) then repeat steps 3-5, else if you try to flash a new root manager over the old root manager, you may experience no root or instability issues. If you have the files on your device, these steps should take no more than 5 minutes to flash.
[Moto G4 Plus Guides, News, & Discussion] prabhatpatel93:
How about uninstalling supersu.zip

What to do if I want to uninstall superuser and install magisk?

---------- Post added at 03:07 PM ---------- Previous post was at 02:53 PM ----------

I forgot to take backup of my stock kernel, and now I am wanted to switch the root manager from phh's superuser to magisk.

I am on stock rom NPJS25.93-14-18 [IMG="Sceenshot"]https://photos.app.goo.gl/c3XbPoCVD5dmNGc57[/IMG] Please help
[Moto G4 Plus Guides, News, & Discussion] echo92:
If you want to switch root managers, I recommend uninstalling phh superuser, then flashing a clean stock kernel, then re-flashing ElementalX then magisk. If you try to switch without removing the old root manager, you may have root instability or no root at all.

Your setup should consist of:

1)Download unSU from here https://xdaforums.com/showpost.php?p=63615067 for the phh superuser uninstall.

1a)Download magisk from here https://xdaforums.com/apps/magisk/beta-magisk-v13-0-0980cb6-t3618589 v16.7 is running on my XT1642 running NPJS25.93-14-18 with ElementalX.

1b)Verify that you still have the ElementalX 2.0.1 kernel zip.

1c)Download a clean stock April 2018 NPJS25.93-14-18 security patch kernel from here: https://drive.google.com/drive/folders/0B-GUyOfb8OgzcUl1NUtHYWNIR2M These have been pulled from their respective fastboot ROMs. You should have a boot.img which may be inside the folder.

2)Boot to TWRP. Backup your existing setup (including data).

3)Go back to the TWRP main menu, tap Install. Flash unSU.

4)Go back to the main Install menu. Tap 'Install Image' or 'Flash image'. Navigate to the boot.img you downloaded. Target your boot partition (NOT recovery). Flash the stock kernel.

4a)At this point, you may wish to back up your boot (kernel) partition and label this as a clean stock kernel.

5)Go back to the main Install menu. Flash ElementalX as directed.

6)Flash magisk.

7)Wipe cache and reboot.

You should then be rooted with magisk on the stock ROM.
[Moto G4 Plus Guides, News, & Discussion] prabhatpatel93:
What about the SafetyNet Check

The safetynet check is failed and in magisk it is showing "the response is invalid"

In root checker pro ;

the basic integrity: fail

CTS profile match: fail

Please help me to fix this.
[Moto G4 Plus Guides, News, & Discussion] echo92:
From what i understand, the check failing in magisk manager and root checker Pro are because of Google changing how the check works. https://xdaforums.com/showpost.php?p=77329634&postcount=6 you are rooted and likely can pass CTS and integrity, but the apps haven't been updated to account for Google's changes and so the checks 'fail'. If you want an app to check, try the safetynet helper sample which appears to have been updated. I wouldn't be concerned about it unless your apps are actively failing, like being detected for root. I believe topjohnwu has been working or may have fixed the issue.
[Moto G4 Plus Guides, News, & Discussion] prabhatpatel93:
my problem is that root checker pro app also don't pass the safetynet.
[Moto G4 Plus Guides, News, & Discussion] echo92:
As i mentioned above, this check requires the app be updated with the new api changes that were introduced in August 2018. However, you are rooted and likely still passing safetynet despite what is reported. Until the app is updated, it may keep reporting a fail. Are any of your apps failing because root is detected?
[Moto G4 Plus Guides, News, & Discussion] prabhatpatel93:
Yes. "TEZ app from google", it detects the root after magisk hide. other apps are working fine with magisk hide.
[Moto G4 Plus Guides, News, & Discussion] echo92:
Ah, Tez seems to be a problem app with root. You can either try this magisk module https://xdaforums.com/apps/magisk/module-tez-hider-t3796567 or turn off phone permissions in the Google play store https://xdaforums.com/showpost.php?p=77385479&postcount=141
[Moto G4 Plus Guides, News, & Discussion] prabhatpatel93:
Thanks for support buddy. Now the problem seems to be ok.:good:
[Moto G4 Plus Guides, News, & Discussion] jerryspring:
You don't need to modify that zip dude.
[Moto G4 Plus Guides, News, & Discussion] doomed151:
Great suggestion there, done.
[Moto G4 Plus Guides, News, & Discussion] jyoti.id:
This Superuser is not much helping after rooting. Some apps like lucky patcher & busy box who have the force root check access can have root access but apps like es explorer can't have root access properly. This app is buggy most of the time. Tried replacing it with SuperSU but bootlooped! :(

---------- Post added at 01:24 PM ---------- Previous post was at 01:19 PM ----------

What's this!? Can you explain please! :)
[Moto G4 Plus Guides, News, & Discussion] guessingagain:
Magisk is a open source tool to enable modifications to your system systemless(y).

Rooting using a magisk module is systemless as well.

If you are looking for instructions follow the earlier link

Make a backup of boot.img just in case. Flash magisk and phh superuser magisk module using twrp. Reboot and install magisk manager. Install phh superuser app. Everything should be working after that.

It's very easy to uninstall aa well. Great piece of software

Pm if you run into any problems.
[Moto G4 Plus Guides, News, & Discussion] ASB41:
I successfully updated my xt1643 to android 7.0. I'm on completely stock system. I never rooted or unlocked bootloader before. Will this rooting method work for me?
[Moto G4 Plus Guides, News, & Discussion] jyoti.id:
It will work for anyone ;)
[Moto G4 Plus Guides, News, & Discussion] skooter32:
Ok so android 7.0 is back on my device i hav successfully rooted it but a do have a question how can we get chainfires su on to our devices?

A tried supersu ne but it just crashes so?

Also thanks for getting us all rooted again dev?
[Moto G4 Plus Guides, News, & Discussion] almills:
I'm on the G4 (xt1622). Flashed TWRP no problem. Unzipped... edited the config.txt and zipped back up. but when I try and flash the zip I get the following error:

"Could not find 'META-INF/com/google/android/update-binary' in the zip file"

Any ideas where I'm going wrong?
[Moto G4 Plus Guides, News, & Discussion] doomed151:
Make sure the directory structure is same as before or try using 7-zip.
[Moto G4 Plus Guides, News, & Discussion] guessingagain:
Can anyone upload stock nougat recovery?
[Moto G4 Plus Guides, News, & Discussion] annthooooony:
How can I unroot my phone after this? Help

Enviado desde mi Pixel XL mediante Tapatalk
[Moto G4 Plus Guides, News, & Discussion] guessingagain:
Normally all systemless rooting does is modify your boot image. So flash stock boot.img ( twrp backup works as well) and remove superuser app. That should do the trick.
[Moto G4 Plus Guides, News, & Discussion] jota189:
I have an error which is consist in a message saying:

I need some help pls. Thanks in advance!

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

I was in bootloader mode not in recovery when i was trying to flash TWRP. That command was for other reason!
[Moto G4 Plus Guides, News, & Discussion] SMARTHACKER67:
Simply ignore this error.

Check recovery mode you should be having twrp flash correctly.
[Moto G4 Plus Guides, News, & Discussion] zeassumpcao:
Hi guys! Just installed Android N on my XT1626.

I need root so I can get Google Assistant working :)

Will unlocking the bootloader and rooting wipe my phone's data?

I've seen one or two posts about this method working on this model, can someobe confirm it?

Thanks :)
[Moto G4 Plus Guides, News, & Discussion] jota189:
But if i try to reboot recovery, appers 'no commands' dialogue. What can i do?
[Moto G4 Plus Guides, News, & Discussion] smitharro:
Yes, unlocking the bootloader wil completely wipe your phone, including internal memory! So be sure to make a backup!

And yes, rooting this way works!

If you see the 'no commands' dialog, press the power button for a couple of seconds and then the volume-up button. After that you should see the menu.

Send with my Moto G4 Plus (XT1642) on Android 7.0 using Tapatalk!
[Moto G4 Plus Guides, News, & Discussion] jota189:
But i see stock recovery no TWRP :S

Sorry and thanks a lot for ur answer
[Moto G4 Plus Guides, News, & Discussion] smitharro:
You're right. For rooting you'll need TWRP.

There are 2 ways:

1. if you want to conserve stock recovery for future updates go to the bootloader (fastboot mode)on your phone and then open fastboot on your laptop/pc. Connect your phone to the laptop/pc and run: fastboot boot recovery twrp***.img (name of the TWRP file)

2. Flash TWRP 'permanently': almost same procedure as above, only difference: type' fastboot flash recovery twrp***.img

How to install fastboot on your PC? Windows: google for 'minimal ADB & Fastboot'. Install it and put the twrp file in the same directory as fastboot.

Linux: install ADB and Fastboot directly from your repositories! It should work out of the box. (But you'll have to sudo the commands).

Send with my Moto G4 Plus (XT1642) on Android 7.0 using Tapatalk!
[Moto G4 Plus Guides, News, & Discussion] zeassumpcao:
Got it, thanks. Is there an alternative way tô editando build.prop without rooting/unlocking? It's actually all I need :P
[Moto G4 Plus Guides, News, & Discussion] jota189:
I've tried to do it but when i try to flash TWRP (with the first and the second one command) always appears the error i reported the other day. And when i reboot in recovery mode i see stock recovery. Where's the error? I've tried with differents TWRP flashable files but always appear this error. Thanks for ur time and answers!
[Moto G4 Plus Guides, News, & Discussion] smitharro:
The build.prop is in the system partition. So it can only be edited as root. There's no other way.

Did you unlock your bootloader?

Send with my Moto G4 Plus (XT1642) on Android 7.0 using Tapatalk!
[Moto G4 Plus Guides, News, & Discussion] jota189:
Yes I unlocked it in Android 6.0. I suppose it's already unlocked.
[Moto G4 Plus Guides, News, & Discussion] ASB41:
Help! I can boot into twrp recovery but can't flash it. It says recovery corrupted. I've xt1643 running nougat.
[Moto G4 Plus Guides, News, & Discussion] drdhaval1987:
not able to install superuser.zip after twrp ............failed to flash superuser.zi

not able to install superuser.zip after twrp ............failed to flash superuser.zip
[Moto G4 Plus Guides, News, & Discussion] jeevan_cool:
xposed works?
[Moto G4 Plus Guides, News, & Discussion] smitharro:
Xposed is not ready for Nougat yet.

Send with my Moto G4 Plus (XT1642) on CyanogenMod 14.1, Android 7.1, using Tapatalk!
[Moto G4 Plus Guides, News, & Discussion] jeevan_cool:
Thanks for the information :D
[Moto G4 Plus Guides, News, & Discussion] drdhaval1987:
plz help not able to root.........failed to install...says file corrupt..
[Moto G4 Plus Guides, News, & Discussion] :
What failed to install?

If you got this while flashing TWRP, then TWRP is installed already. Boot into recovery from the bootloader, then reboot to system from TWRP to prevent the phone from rewriting TWRP with stock recovery.
[Moto G4 Plus Guides, News, & Discussion] chaitu@95:
im getting waiting for device what to do?
[Moto G4 Plus Guides, News, & Discussion] bodorola:
work on 7.1?

thanks