yashsingh1/xdaforums huggingface dataset:
[Moto G4 Play ROMs, Kernels, Recoveries, & Other De] krison01:
its basically the same just without padding doh... would reply if works but highly doubt
[Moto G4 Play ROMs, Kernels, Recoveries, & Other De] edrebber:
I'm getting the following error on an xt1607.

sending: fastboot flash initroot xt1607_harpia_amz_mpi24.241-2.35-1.initroot

target max-download-size: 256MB

sending 'initroot' (19531 KB)...

OKAY [ 0.634s]

writing 'initroot'...

(bootloader) Permission denied

Don't see anything about this issue in the thread.
[Moto G4 Play ROMs, Kernels, Recoveries, & Other De] TJ11911:
Does this work for Droid turbo 2 Verizon 7.0 greatly appreciate an answer
[Moto G4 Play ROMs, Kernels, Recoveries, & Other De] Salik Iqbal:
It will not work on latest security patch, check the firmware version of your phone correctly, p.s [MENTION=2376614]jcase[/MENTION] is it possible too add bootloader unlock support via sunshine for xt1609 via this root?
[Moto G4 Play ROMs, Kernels, Recoveries, & Other De] edrebber:
My XT1607 build number is MPIS24.241-2.35-1-13.
[Moto G4 Play ROMs, Kernels, Recoveries, & Other De] codezzie:
In the same boat, same version, running the February 2017 security patch.
[Moto G4 Play ROMs, Kernels, Recoveries, & Other De] Whitefrost11:
alright, i have to ask, is there some way i can flash a rom into my phone? My rom is broken or something, the phone is just stuck on bootloop. Now here's the thing, if i use this initroot however, i can open it but in a ridiculous way, i have to uninstall initroot first with fastboot oem config fsg-id "", then Restart then install initroot again and it works. However, i get bootloop issues again if i have to reboot. Now the problem is i can't flash a stock rom cause im on may update, Motorola doesnt allow me to go on an older version of android , which are all the stock roms on. Wonder if im stuck to booting this way forever.

Edit: also i can't access google apps for some reason
[Moto G4 Play ROMs, Kernels, Recoveries, & Other De] thrasher194com:
Have you pulled your battery after uninstall intoroot?
[Moto G4 Play ROMs, Kernels, Recoveries, & Other De] Whitefrost11:
nah but ill give it a go. will installling the boot script fix my issue? i have no idea how to put this script using magisk? any ideas?

---------- Post added at 06:36 AM ---------- Previous post was at 06:31 AM ----------

huh, it worked, thanks!

WAIT WAIT, ExpLAINATION PLEASE, How does taking out the battery help
[Moto G4 Play ROMs, Kernels, Recoveries, & Other De] thrasher194com:
You need to install magisk apk on phone. Run the intoroot.bat from computer and wait for phone to reboot. Profit!
[Moto G4 Play ROMs, Kernels, Recoveries, & Other De] Voltz100999:
This is a sad day... I have hardbricked the G4 play, as in cannot get into bootloader, recovery or anything of the sort, this means i will have to spend money to buy a new one, but dont worry, I get paid tomorrow, ill head to dollgen to pick up a new one, or another phone, but dispite this unfortunate turn of events, i will STILL be working on root for you guys.
[Moto G4 Play ROMs, Kernels, Recoveries, & Other De] QWZR:
I don't know how much they are at Dollar General but Walmart had them for $40 last I checked.
[Moto G4 Play ROMs, Kernels, Recoveries, & Other De] Voltz100999:
Dollar General sold me mine for a cool 40 as well.
[Moto G4 Play ROMs, Kernels, Recoveries, & Other De] travivarman:
my xt1609 mobile failed to boot now.

showing hab check failed for boot

failed to verify hab image boot

failed to validate boot image.

I think it is happened not because of auto#initroot.

It may be happened due to the auto update of magiskmanager. When I did first attempt by clicking unit root,there was no problem,after that magiskmanager got updated then after restart the above said issue happed.

please help me
[Moto G4 Play ROMs, Kernels, Recoveries, & Other De] autoprime:
Sounds like you did something else besides just run auto#initroot... initroot doesn't touch the boot partition so I cant think of a reason for boot validation to fail under normal use.

You also have not provided enough information... Didn't list phone.. software version.. auto#initroot version.. or the exact steps that lead up to this situation.

Edit your original post with full details and that might be enough for someone to assist.
[Moto G4 Play ROMs, Kernels, Recoveries, & Other De] travivarman:
Thanks for the advice, you are right. I just edited my message.
[Moto G4 Play ROMs, Kernels, Recoveries, & Other De] Alpha7d:
Any news on root for the Amazon Moto G5 Plus? I've been wanting for a way to get hotspot on this phone for a long time.
[Moto G4 Play ROMs, Kernels, Recoveries, & Other De] fix-this!:
could the Verizon E4 and E4 plus be added to this?
[Moto G4 Play ROMs, Kernels, Recoveries, & Other De] seri0099:
I think that this will never happen....and it's sad.
[Moto G4 Play ROMs, Kernels, Recoveries, & Other De] Voltz100999:
Download your firmware from firmware.center and flash the stock boot.img, make sure it matches the firmware you are running.
[Moto G4 Play ROMs, Kernels, Recoveries, & Other De] Voltz100999:
I'm working on it, the file hirarchy is completely different on the G5, and testing this is no easy task, I don't have a G5, nor the money for one.
[Moto G4 Play ROMs, Kernels, Recoveries, & Other De] travivarman:
as the devices is locked i cant able to flash boot.img

any other way to flash boot.img
[Moto G4 Play ROMs, Kernels, Recoveries, & Other De] DB126:
Not if bootloader is locked (other than emulating an OTA update).
[Moto G4 Play ROMs, Kernels, Recoveries, & Other De] autoprime:
Locked bootloader phones should still be able to flash the official signed boot.img while in fastboot. Just has to be the exact software version you were previously using.
[Moto G4 Play ROMs, Kernels, Recoveries, & Other De] Voltz100999:
And that is what I meant....
[Moto G4 Play ROMs, Kernels, Recoveries, & Other De] DB126:
Nice catch. Got caught in a mental rut assuming non-matching signatures.
[Moto G4 Play ROMs, Kernels, Recoveries, & Other De] vibraniumdroid:
So would it be possible to sign a custom kernel? Maybe something overclocked.
[Moto G4 Play ROMs, Kernels, Recoveries, & Other De] Voltz100999:
No, it needs to be signed by moto themselves.
[Moto G4 Play ROMs, Kernels, Recoveries, & Other De] wagyourtail:
HELP plz. uninstall not working. XT1254

magik asked for an update and rebooted my phone. stuck in bootloop and the fastboot oem config fsg-id "" is not working. bootloader showing hab failed...

-- edit --

fixed thanks to post at bottom of page 39. phew thought i was screwed
[Moto G4 Play ROMs, Kernels, Recoveries, & Other De] Voltz100999:
No problem d00d.
[Moto G4 Play ROMs, Kernels, Recoveries, & Other De] ashhad101:
hey guys if i root my droid turbo running android marshmallow then will i always require computer for rebooting or will it function just like normal?? i just want to change stock boot animation and emojis will i be able to that? Thanks
[Moto G4 Play ROMs, Kernels, Recoveries, & Other De] Voltz100999:
If your device is a Cedric, athene, or shamu device, you can get persistent root by populating an unused partition on the device with one of roeehays initroot files on his GitHub, just search for "persistent initroot". And as for changing the boot animation and emojis, you can't, unless you install one of the 2 magusk modules I have found, one changes it to the H2OS boot animation, the other changes it to the stock Android one, NexusMedia will do the stock one. The /system partition is read-only, and that's that (This was stated earlier in the thread).

---------- Post added at 07:00 PM ---------- Previous post was at 06:59 PM ----------

So yeah, if you are not one of those three devices, yea, you will need a PC.
[Moto G4 Play ROMs, Kernels, Recoveries, & Other De] Ortobrox1312:
xt1609 can't boot

Hey guys! My XT1609 won't boot, I've done the #initroot and everything and after I saw that some people had bootloops. So I fastbooted the phone and tried to perform an uninstall of the #initroot but now I get:

"hab check failed for boot

Failed to verify hab image boot

failed to validate boot image

ERROR: Failed to pass validation, backup to fastboot

Fastboot Reason: Fall-through from normal boot mode"

Please help! btw I'm downloading firmware from firmware.center right now because I saw the bottom of the page 39, but will I be able to flash it?

Thank you in advance!

Update:

Flashed the same firmware, phone works like a charm!
[Moto G4 Play ROMs, Kernels, Recoveries, & Other De] Voltz100999:
Good work man, thanks for reading the bottom of 39!
[Moto G4 Play ROMs, Kernels, Recoveries, & Other De] biohazardousAl:
XT1254

I think I just bricked my xt1254. I have a little experience rooting from the old days with the original Moto Droid on Verizon.

My mom has one just like mine, I decided to experiment on mine first after backing up my files. She accidentally deleted a years worth of pictures, including pictures of my recently deceased grandma. Checked drive and anywhere else they could be backed up, gone.

I decided I would try to root my phone then hers to see if any of these recovery tools could recover the pictures.

Fastboot wouldn't find the phone but adb had no problem. I tried googling and searching through the forums but I couldn't find anything to help. Ran auto-init and it would never find the phone. The last time, it looked like it half loaded, then restarted in a boot loop. It has been vibrating every 5-10 seconds for the past 30 minutes as I try to find a solution. It can still load the boot screen but selecting factory or off always sends it back to the boot loop. I can still get to the fastboot screen on the phone, so I'm not sure where to go from here or if I have a certified brick now.

Thanks in advance
[Moto G4 Play ROMs, Kernels, Recoveries, & Other De] QWZR:
Class, turn to page 39
[Moto G4 Play ROMs, Kernels, Recoveries, & Other De] Voltz100999:
xD, but seriously, read the bottom of 39 to see the fix. By the way, I'm also working on a root method for the LG K8V, I have the KDZ file, now I just need to edit it and recompress it. Still doing Moto stuff, just really busy with IRL stuff. College for example.
[Moto G4 Play ROMs, Kernels, Recoveries, & Other De] biohazardousAl:
Got it fixed. The biggest obstacle to overcome was Windows 10 telling me that the driver wasn't x64 when I tried to install with bootloader. Bought another turbo off of a dope head last night for $50. ADB would recognize the device but fastboot wouldn't. I selected the driver from the whole list on my computer, Android Devices, Debugging, to install. That was the hard part, finally working the command prompt running was much less.

Ran fastboot oem config fsg-id "" another thread. That ended the boot loop long enough to go into the phone and do what I needed to do. Then it continued to boot loop until I ran auto#initroot and uninstalled. Boot loop fixed.

Thanks for the help guys
[Moto G4 Play ROMs, Kernels, Recoveries, & Other De] Voltz100999:
You are very welcome.
[Moto G4 Play ROMs, Kernels, Recoveries, & Other De] supermauro:
No com.motorola.ccc.ota wierd!

Ok, I wanted to make sure OTA was disabled, but strange enough com.motorola.ccc.ota is nowhere to be found!!! Tried finding it with Titanium Backup, SD Maid and doing the pm disable as root, with this result:

root@harpia:/ # pm disable com.motorola.ccc.ota

Error: java.lang.IllegalArgumentException: Unknown package: com.motorola.ccc.ota

My phone is an XT1690 (Version PVT1) verizon that I got carrier unlocked in Mexico's ebay...

So, that's weird is it not?

---------- Post added at 05:16 AM ---------- Previous post was at 05:08 AM ----------

Ok, I think this looks very promising!!!

https://alephsecurity.com/2017/08/30/untethered-initroot/
[Moto G4 Play ROMs, Kernels, Recoveries, & Other De] Voltz100999:
Very strange, and I've already read through the Usenix paper. Still no way for initroot to be untethered just yet.

---------- Post added at 01:10 PM ---------- Previous post was at 01:05 PM ----------

Very.
[Moto G4 Play ROMs, Kernels, Recoveries, & Other De] DuringSummer:
Incorrect. The exploit for both untethered root is already out there, same goes for bootloader.

It's not that difficult if you know how to create payloads and know what you're doing. For users like us, unless someone specifically makes the file required for untethered root, you can't do it.

INITROOT can be modified to become untethered, you just need a single file and populate it into the mentioned space.

This should be easy for those who know how exactly this stuff work. I, for one, don't know much about it, therefore, can't make one.

I think the only reason no one has done it yet is because devs don't have much interest in this phone and/or are busy with other higher priority stuff.
[Moto G4 Play ROMs, Kernels, Recoveries, & Other De] Voltz100999:
Higher priority stuff is right, while I am still working on the initroot for Potter and Griffin, it will be a while before any meaningful progress is made, my college classes are to blame for that. I have recently found a flaw in my new phones Kernel and the way it does things, for one, There is not a interactive ABOOT bootloader on the phone, just a heavily modified recovery from LG, and the download mode, which if done right, can be used to flash a system partition with root access.

---------- Post added at 04:56 PM ---------- Previous post was at 04:55 PM ----------

And yeah, the initroot population is very strange to grasp.
[Moto G4 Play ROMs, Kernels, Recoveries, & Other De] supermauro:
Second stage exploit

Have you looked at the august 30, 2017 doc?

https://alephsecurity.com/2017/08/30...ered-initroot/

I got the impression from the doc and the github "Second stage exploit: Untethered jailbreak" section (https://github.com/alephsecurity/initroot) that it can be done ("This exploit gains a persistent root access on the device")... Am I missing something?

Cheers...
[Moto G4 Play ROMs, Kernels, Recoveries, & Other De] Voltz100999:
What I meant is there is no way for the XT1609.

---------- Post added at 11:54 AM ---------- Previous post was at 11:53 AM ----------

And no, you did not miss anything.
[Moto G4 Play ROMs, Kernels, Recoveries, & Other De] supermauro:
Thank you Voltz100999! I was getting exited, and had already downloaded the github code very willing to waste some spare time or brick the thing trying to get permanent root, haha. I guess I will leave the project for the more knowledgable!
[Moto G4 Play ROMs, Kernels, Recoveries, & Other De] Voltz100999:
I tip my metaphorical hat to you, sir. Thank you for reading the post my man.
[Moto G4 Play ROMs, Kernels, Recoveries, & Other De] samuel6827:
I'm using moto g4 on NPJ20.93-14.5 but this method doesn't seem to work. Is there any way to downgrade this firmware
[Moto G4 Play ROMs, Kernels, Recoveries, & Other De] EvilGenius.EXO:
Question will you make a all in one method that automatically roots and stops the boot loop issue so the user don't half to run the script every time please can you make a bit easier method of keeping root after boot if possible thanks in advance Moto G4 play 1609 version
[Moto G4 Play ROMs, Kernels, Recoveries, & Other De] snyluc13:
So I am a noob at scripts, I have the sh file created, but cannot find the magisk/.core/service.d folder. Can you give a little howto for scripts and magisk?

Thanks
[Moto G4 Play ROMs, Kernels, Recoveries, & Other De] thrasher194com:
I used a Windows 10 pc. Created text file copy n pasted the code from post#2, then rename boot.sh

After which I moved the file to my sdcard with USB. Then thru the terminal I used commands

Adb shell

Su

Chmod boot.sh +x

mv boot.sh magisk/.core/service.d
[Moto G4 Play ROMs, Kernels, Recoveries, & Other De] pattyboi:):
Any chance of supporting xt1635-01? I can provide anything needed to help besides the phone itself
[Moto G4 Play ROMs, Kernels, Recoveries, & Other De] Voltz100999:
The service.d folder is in /data/magisk.

---------- Post added at 04:45 PM ---------- Previous post was at 04:44 PM ----------

Or, more accurately, /data/magisk/core.d
[Moto G4 Play ROMs, Kernels, Recoveries, & Other De] Voltz100999:
Alright, many of you may be wondering when I will be done, and I have a simple answer, no time soon. Why? Because I have real life issues that need to be addressed. So stay on hold for a bit, I'll still be able to answer your questions though.
[Moto G4 Play ROMs, Kernels, Recoveries, & Other De] Aimless Rambler:
Excellent! Got this phone on the cheap recently. Specs are as good if not better than my DD. I'm fond of technologically older devices anyway (maybe because I too am ancient(?)). It's great to see I stumbled into this thread at the right time. Good work guys! :cyclops:
[Moto G4 Play ROMs, Kernels, Recoveries, & Other De] Aimless Rambler:
I tried this but I get the following ... (see picture below).

[UPDATE]

I figured it had to be a syntax error, after trial and error .

The following worked for me [chmod +x boot.sh].
[Moto G4 Play ROMs, Kernels, Recoveries, & Other De] reymotoxt1609:
what did you do with the xt1609 please help me im from venezuela
[Moto G4 Play ROMs, Kernels, Recoveries, & Other De] synaethe:
Is there a way to update magisk to v14? The update button doesn't seem to work from inside the app.
[Moto G4 Play ROMs, Kernels, Recoveries, & Other De] Voltz100999:
Not currently.
[Moto G4 Play ROMs, Kernels, Recoveries, & Other De] seri0099:
any news about getting root on moto g5 plus xt1687?
[Moto G4 Play ROMs, Kernels, Recoveries, & Other De] lochNESSIE:
This should be on the G5 Plus forums brother, not here.
[Moto G4 Play ROMs, Kernels, Recoveries, & Other De] Voltz100999:
Read the statement I made about that, I have real life issues that need addressing.

---------- Post added 13th November 2017 at 12:00 AM ---------- Previous post was 12th November 2017 at 11:47 PM ----------

Sorry if it seems like I'm being an asshat, but it's just how life works.
[Moto G4 Play ROMs, Kernels, Recoveries, & Other De] DB126:
Why are you apologizing? You're not the asshat here.
[Moto G4 Play ROMs, Kernels, Recoveries, & Other De] zohaibkhan143:
My build number is 241-2.35-1 on XT1609 so I can't use this method for root?
[Moto G4 Play ROMs, Kernels, Recoveries, & Other De] Ashish88:
There are 2 root packages for xt1609,

35-1 is supported i guess.
[Moto G4 Play ROMs, Kernels, Recoveries, & Other De] zohaibkhan143:
The OP links only have 35-13 and 35-17 rooting methods and I can't update my phone by OTA update and getting status 7 error while phone boots to recovery for installation. Can you tell me what's wrong? How to update it?
[Moto G4 Play ROMs, Kernels, Recoveries, & Other De] zohaibkhan143:
Any possibility to root 241-2.35-1 with this method?
[Moto G4 Play ROMs, Kernels, Recoveries, & Other De] QWZR:
I believe you're supposed to use the 35-17 I will try tomorrow or Sunday as I'm on the same version as you, it is the lastest update as far as I know
[Moto G4 Play ROMs, Kernels, Recoveries, & Other De] zohaibkhan143:
But we are on the old build and op has only two builds supported i-e 35-13 and 35-17. How could u use 35-17 on 35-1 build?
[Moto G4 Play ROMs, Kernels, Recoveries, & Other De] makmm:
Can someone confirm this working w/o bricking in XT1607 MPIS24.241-2.35-1-13? It says in the list it works, but wanna be 80% sure it wont brick lol
[Moto G4 Play ROMs, Kernels, Recoveries, & Other De] DB126:
Why would you use this on a XT1607 vs simply unlocking the bootloader and rooting with the tool of your choice (Magisk, SuperSU, etc)?
[Moto G4 Play ROMs, Kernels, Recoveries, & Other De] makmm:
Forgot to say, it's the amazon prime version :P
[Moto G4 Play ROMs, Kernels, Recoveries, & Other De] DB126:
Yeah, I'd stay away given limited recovery options should something go wrong.
[Moto G4 Play ROMs, Kernels, Recoveries, & Other De] TurnaboutSavage:
I've been gone for like 2 months with school and stuff, how's root for the XT1609 looking? Have we gotten it yet, possibly with supersu and twrp?
[Moto G4 Play ROMs, Kernels, Recoveries, & Other De] DB126:
Nope. Don't hold your breath.
[Moto G4 Play ROMs, Kernels, Recoveries, & Other De] Voltz100999:
I've been working on it, but very slowly due to life issues atm.
[Moto G4 Play ROMs, Kernels, Recoveries, & Other De] zohaibkhan143:
I'm waiting
[Moto G4 Play ROMs, Kernels, Recoveries, & Other De] DB126:
Hey, hope those issues resolve with good outcomes. My earlier response in no way reflects on your efforts. Root is hard; vulnerabilities are few and exploits difficult to craft. There has been a code quality push that has all but eliminated low hanging fruit. The day is quickly approaching where root will be a rarity on most devices.
[Moto G4 Play ROMs, Kernels, Recoveries, & Other De] Voltz100999:
I know, makes me sullen just thinking about it. And thank you for your concern, I'm sure hoping I survive these issues.
[Moto G4 Play ROMs, Kernels, Recoveries, & Other De] xgerryx:
This is probably a stupid question, but why are there no modules in the Magisk app? I know the framework isn't installed due to no bootloader access, what's the workaround? Just recovered from a bunch of problems trying to maintain root and now I can move on to more fun things if I can figure this out. Thanks.

Also, Magisk is now force closing whenever an app asks for root, or when I open it manually.

UPDATE: Was going to delete this but for anyone else who had these issues, install an older version of the Magisk app and the force closing stops, and the modules appear. All good.
[Moto G4 Play ROMs, Kernels, Recoveries, & Other De] Voltz100999:
Makes me wonder if you could use FiSH to boot a recovery...
[Moto G4 Play ROMs, Kernels, Recoveries, & Other De] eit18een:
droid turbo xt1254 6.0.1 mcg24.251-5-5 got into boot loop please help me.

what ever i do im still on bootloader screen ,AP flashboot flash mode (secure)
[Moto G4 Play ROMs, Kernels, Recoveries, & Other De] QWZR:
Try to flash your stock boot img from firmware for your device.
[Moto G4 Play ROMs, Kernels, Recoveries, & Other De] lafayette 53:
Thanks
[Moto G4 Play ROMs, Kernels, Recoveries, & Other De] muamba24@:
hi i got the same problem.

phone stop at fastboot. recovery mode dont work andy dont lay on his back please help
[Moto G4 Play ROMs, Kernels, Recoveries, & Other De] kenoni:
Well, the only thing left to do is - to flash the stock rom again .

Download the needed rom from here https://firmware.center/firmware/Motorola/Moto%20G4%20%28Plus%29/Stock/

or any other site that has it.

Don`t forget to download the amazon version - ATHENE_AMZ_NPJS25.93-14-4_cid50_subsidy-DEFAULT_regulatory-DEFAULT_CFC.xml.zip

- unzip it

- copy fastboot with its dlls to that folder

- create a bat file with the right commands for flashing

for NPJS25.93 it would have the following content :

echo off

fastboot getvar max-sparse-size

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_sparsechunk.0

fastboot flash oem oem.img_sparsechunk.1

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 system system.img_sparsechunk.5

fastboot flash system system.img_sparsechunk.6

fastboot flash system system.img_sparsechunk.7

fastboot flash modem NON-HLOS.bin

fastboot erase modemst1

fastboot erase modemst2

fastboot flash fsg fsg.mbn

fastboot erase DDR

fastboot oem fb_mode_clear

pause

fastboot reboot

- boot into fastboot

- run the bat file you just created
[Moto G4 Play ROMs, Kernels, Recoveries, & Other De] muamba24@:
Just finish root. how to use magisk to delete verizon And Amazon apps ??
[Moto G4 Play ROMs, Kernels, Recoveries, & Other De] QWZR:
Use terminal debloater, you can also use the debloater app (not the same thing) with adb without root.