yashsingh1/xdaforums huggingface dataset:
[Moto G4 Play ROMs, Kernels, Recoveries, & Other De] Voltz100999:
I'll join you, three heads are better than one.

---------- Post added at 09:42 PM ---------- Previous post was at 09:41 PM ----------

Oh and BTW, you can literally just flash twrp for harpia devices, I've done it, but if course was not able to boot it.
[Moto G4 Play ROMs, Kernels, Recoveries, & Other De] ABN85:
I've been following this thread religiously, hoping that a way to unlock the bootloader will be discovered soon. In the meantime, my phone connected to WiFi the other day and downloaded a system update before I could stop it. Is there any way for me to delete the update? Or do I have no other option than to keep choosing "Install Later"?
[Moto G4 Play ROMs, Kernels, Recoveries, & Other De] DB126:
On some devices clearing the cache partition will nuke pending OTA updates (not sure about stock G4P). Otherwise, snag a file manager like FX that can filter searches by date, file size and other criteria. That should allow you to zero in on the OTA update file pretty quickly.
[Moto G4 Play ROMs, Kernels, Recoveries, & Other De] Voltz100999:
You could disable it's updates by typing this as root:

pm disable com.motorola.ccc.ota, this will disable the OTA and will remove the OTA notification.
[Moto G4 Play ROMs, Kernels, Recoveries, & Other De] ABN85:
So I would need to root my phone first, and then I could just type that command in a terminal emulator on my phone? Am I understanding that correctly?
[Moto G4 Play ROMs, Kernels, Recoveries, & Other De] Voltz100999:
Yes.

---------- Post added at 04:01 PM ---------- Previous post was at 04:00 PM ----------

You have an initrootable phone, right?
[Moto G4 Play ROMs, Kernels, Recoveries, & Other De] ABN85:
I have the xt1609, so unless I misunderstood, yes.
[Moto G4 Play ROMs, Kernels, Recoveries, & Other De] Voltz100999:
You should be all good, so long as you are not running anything above 1-17.
[Moto G4 Play ROMs, Kernels, Recoveries, & Other De] ABN85:
Build number ends in 1-13 so I'm assuming that's what you're talking about? Sorry for off topic.
[Moto G4 Play ROMs, Kernels, Recoveries, & Other De] Voltz100999:
It is exactly what I was talking about, you do indeed have an initrootable version.

---------- Post added at 04:58 PM ---------- Previous post was at 04:26 PM ----------

Lemme know if It does you good.
[Moto G4 Play ROMs, Kernels, Recoveries, & Other De] ABN85:
Appears to have worked. I'm rooted and when I go to settings and system update, it says my system is up to date as of whatever time it is when I check. Thank you very much.
[Moto G4 Play ROMs, Kernels, Recoveries, & Other De] Voltz100999:
You are welcome, sir.
[Moto G4 Play ROMs, Kernels, Recoveries, & Other De] Voltz100999:
Thought I should let you know where I am right now.

Bootloader: still some work to do

Potter Root: Close

Griffin Root: lots of work to do

Magisk upgrade: lots to do

Writing to /system: Very close

And I should let you all know that I have purchased an HTC Desire 526 Verizon, and was able to get root, and an unlocked bootloader, using BigCountry01's method. THIS DOES NOT MEAN I WILL ABANDON MOTO.
[Moto G4 Play ROMs, Kernels, Recoveries, & Other De] RandoCardrissian:
thank you for all your hard work on getting root on the Amazon Moto G5+, I've been wanting root ever since I got it!
[Moto G4 Play ROMs, Kernels, Recoveries, & Other De] Voltz100999:
No problem man.
[Moto G4 Play ROMs, Kernels, Recoveries, & Other De] cerobles1:
So my laptop has been dropped off for repairs, and it is the only laptop or desktop I own. I wanted to ask you guys if there is another method of running this hack/mod to get root without having a laptop or desktop? I have the Amazon G4.
[Moto G4 Play ROMs, Kernels, Recoveries, & Other De] azndan2:
Awesome! Looking forward to griffin root. I will hold off on updating until then. I have vzw moto z xt1650. I'm sure there are a lot of us out there who bought it during the best buy sales. Thanks!
[Moto G4 Play ROMs, Kernels, Recoveries, & Other De] Voltz100999:
Alright, I'm pretty close.

---------- Post added at 03:49 AM ---------- Previous post was at 03:46 AM ----------

I should mention, that /system is sometimes writable, I was able to install BusyBox to /system/xbin
[Moto G4 Play ROMs, Kernels, Recoveries, & Other De] thrasher194com:
Anyone else having issue with Vzw.. saying 4G but slow like 1x?

Even w/o root?? I switched Sims and still slow ...

Sent from my rooted Motorola XT1609
[Moto G4 Play ROMs, Kernels, Recoveries, & Other De] azndan2:
Whoa that's cool! What does that mean for us?
[Moto G4 Play ROMs, Kernels, Recoveries, & Other De] Voltz100999:
That you can install BusyBox I guess, as well as some other things. But I wouldn't recommend it, it can mess up SafetyNet.
[Moto G4 Play ROMs, Kernels, Recoveries, & Other De] DuringSummer:
Uh. I maybe wrong here, but I don't think that's actually the case. See what happens here is that /system/xbin is mounted by Magisk framework at early boot. Therefore, all the changes you make are temporary. If you boot normally by uninstalling the root, all your changes would go back to normal.

It's similar to how the 'systemless hosts' file mount option in Magisk Manager works.

When you turn on the systemless hosts file option, you can actually just go and replace the hosts file with the one of your own from the /system/etc folder. However, this only works because the folder has been mounted by Magisk, and while it does allow you to make specific changes, these won't be permanent.

As for the BusyBox, you can download and install BusyBox from Magisk Manager. Download the one by Osm0sis. Name would be 'Busybox for Android NDK' version 1.27.2.

If, after restarting, it still shows you that you need to restart for the changes to take effect. You need to go into /magisk/busybox-ndk and delete the update file. Restart, and it'll work. After that just download one of the the BusyBox installer, change directory to /magisk/system/xbin and you're good to go.

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

Also SafetyNet fails as soon as you install se-linux permissive script.
[Moto G4 Play ROMs, Kernels, Recoveries, & Other De] Voltz100999:
In my case, SafetyNet has not failed yet, and I have installed the permissive script... So that is interesting, I was able to login to my Snapchat after, and Snapchat uses SN. I have also installed V4A and it is working as well. So it may be a patchy issue I guess, but I don't know. And thanks for telling me (as well as others) about the BusyBox thing.
[Moto G4 Play ROMs, Kernels, Recoveries, & Other De] DuringSummer:
That is quite interesting. I've tried many times, but my SafetyNet fails right after I install SE Linux permissive script and Xposed Framework.
[Moto G4 Play ROMs, Kernels, Recoveries, & Other De] synaethe:
V4A shows working, but it never actually processes sound for me. Is there any way to fix this. I followed the install ideas discussed in this thread.
[Moto G4 Play ROMs, Kernels, Recoveries, & Other De] Voltz100999:
I'll give you a screenshot if you need it I guess.

---------- Post added at 04:17 PM ---------- Previous post was at 04:15 PM ----------

And that is quite interesting, guess SN is blown because of Xposed, which I have been having issues with installing, keeps blabbing about magisk 14.0.
[Moto G4 Play ROMs, Kernels, Recoveries, & Other De] DuringSummer:
I though so too. And no need. I don't really have any need of SafetyNet anyways.

---------- Post added at 04:40 PM ---------- Previous post was at 04:37 PM ----------

Go to V4A > Settings, enable "Show notification".

After that go to the music player you're using, go to it's settings and change the Equalizer to stock instead of In-App-Equalizer (some apps uses in app Equalizer).

Some apps do not support stock Equalizer at all, therefore, V4A won't work.
[Moto G4 Play ROMs, Kernels, Recoveries, & Other De] Voltz100999:
Apps like SoundCloud, for example, do not support V4A.
[Moto G4 Play ROMs, Kernels, Recoveries, & Other De] Voltz100999:
So some kind of anomaly has happened, I installed the BusyBox NDK module in magisk and guess what? It worked without modification, as in going in after and deleting the update file, Wich I could not believe. Truly strange...
[Moto G4 Play ROMs, Kernels, Recoveries, & Other De] xblaz3x:
Did you do anything differently? I can't get any module installed. I've tried through magisk and flashing the zips. I've even opened the zip up to see what directories are supposed to be created and created the paths and still nothing.
[Moto G4 Play ROMs, Kernels, Recoveries, & Other De] Voltz100999:
I don't think I did, just clicked install and immediately rebooted.
[Moto G4 Play ROMs, Kernels, Recoveries, & Other De] DuringSummer:
Probably because you have a different model. I own XT1254.
[Moto G4 Play ROMs, Kernels, Recoveries, & Other De] Voltz100999:
This is strange, because every time I tried it beforehand, I would always have the "module will be updated on reboot" after rebooting. THIS time however, something happened that made it work, but it could just be the phone model, for all we know.
[Moto G4 Play ROMs, Kernels, Recoveries, & Other De] Voltz100999:
Alright, I'm going to let you all know something VERY important, my PC died on me yesterday, and I don't have the $200 It's going to take to replace the CPU, because that is what has failed.
[Moto G4 Play ROMs, Kernels, Recoveries, & Other De] DB126:
Was it heavily overclocked? Very unusual for a CPU to go bad. More likely a component in the main board. I mention this in hopes in might offer a more cost effective solution. Good luck.
[Moto G4 Play ROMs, Kernels, Recoveries, & Other De] Voltz100999:
Yes, all the way to 5.2, on liquid. The temps were well within acceptable range (60-80C), but it was old at this point. So I guess I'll be buying a new CPU.
[Moto G4 Play ROMs, Kernels, Recoveries, & Other De] DB126:
Yep - if cranked that higher there were likely highly localized hotspots. Wafer is not designed to redistribute heat that fast. Only a matter of time ...
[Moto G4 Play ROMs, Kernels, Recoveries, & Other De] Voltz100999:
True, maybe next time I'll do a cycle liquid N cooler.
[Moto G4 Play ROMs, Kernels, Recoveries, & Other De] DB126:
Or just wind it back a couple tenths. Power consumption and heat curves rise expodentially eeking out that last 3-5% of potential. Is it really worth it?
[Moto G4 Play ROMs, Kernels, Recoveries, & Other De] Voltz100999:
Not really, I just go for the extreme to see what I can get out of what I payed good money for.
[Moto G4 Play ROMs, Kernels, Recoveries, & Other De] Noob342:
hello everybody I am new to the whole rooting thing can you explain in more detail how to run initroot in Linux I have already chmod the file and ran it using the ./ Command but didn't run successfully am I doing it wrong sorry for the noobish question.
[Moto G4 Play ROMs, Kernels, Recoveries, & Other De] autoprime:
what exactly didn't work?

can you post terminal commands/output so we can maybe see what's going on better?

phone model and software version confirmed to be supported?

what linux distro? which desktop environment?
[Moto G4 Play ROMs, Kernels, Recoveries, & Other De] Noob342:
I am currently running Kali Linux and I renamed the file to test.sh just for convenience and when I run ./test.sh I get to uninstall press any key within 3 seconds.... start auto#initroot

-send fastboot oem config

Send fastboot flash

Send fastboot continue

Finish Moto boot

Then nothing happens...

Sorry for the inconvenience and thank you for the quick reply

---------- Post added at 10:24 PM ---------- Previous post was at 10:10 PM ----------

/root/Pictures/Screenshot from 2017-09-27 16-14-32.png
[Moto G4 Play ROMs, Kernels, Recoveries, & Other De] autoprime:
hmm.. so the script seems to be running. perhaps there is an issue with the device accepting fastboot commands for some reason.

I'd suggest cd'n into the auto#initroot folder and manually running each command (fsg-id value can be read from the sh file in a text editor):

fastboot oem config fsg-id *fsg-id value here.. quotes included*

fastboot flash initroot *initroot filename here*

and if those work.. to boot the device you'd then use:

fastboot continue

and hopefully by doing that you can see exactly whats going on. if you're still stuck after that.. share the full input/output of you running all the commands manually and maybe someone can help more.

and if Kali is like most other distros.. you shouldnt have to rename a file for convenience .. tab-complete should work.. so you'd cd into the directory.. start typing the first few letters of the file then hit tab.. and it should complete the full name. should also work for directories as well.

if you don't have fastboot installed on your system.. you can copy the fastboot binary in the auto#initroot > linux directory and paste it into the auto#initroot folder.
[Moto G4 Play ROMs, Kernels, Recoveries, & Other De] Noob342:
maybe its not the problem on the computer end maybe my droid turbo? I powered it off then held the power and volume down and im on a black screen with a dead green alien lol it says start in green on top then ap fastboot flash mode secure am i in the right spot on the phone?
[Moto G4 Play ROMs, Kernels, Recoveries, & Other De] autoprime:
Yes that sounds like the right spot. Go back to my last post and try to run the commands that I listed manually. See where it fails from there
[Moto G4 Play ROMs, Kernels, Recoveries, & Other De] Noob342:
i think root is way beyond my capabilities this is alot harder to understand than i thought, i tried to run the commands in the directory containing the sh file and got bash fastboot is not a command.... im sure im just an idiot and am doing so many things wrong i apologize again i just want to learn all i can
[Moto G4 Play ROMs, Kernels, Recoveries, & Other De] autoprime:
did you copy the fastboot binary in the auto#initroot > linux directory and paste it into the main auto#initroot folder like I suggested in previous post? you may also have to chmod it.
[Moto G4 Play ROMs, Kernels, Recoveries, & Other De] Noob342:
yes and i did chmod it....
[Moto G4 Play ROMs, Kernels, Recoveries, & Other De] autoprime:
you may just have to add fastboot to PATH then and possibly setup udev rules. look into installing fastboot on linux devices... once fastboot is properly setup the commands previously listed should work.
[Moto G4 Play ROMs, Kernels, Recoveries, & Other De] Noob342:
fastboot flash initroot test.sh

(bootloader) has-slot:initroot: not found

target reported max download size of 536870912 bytes

sending 'initroot' (1 KB)...

OKAY [ 0.003s]

writing 'initroot'...

(bootloader) Permission denied

FAILED (remote failure)

finished. total time: 0.011s

ok ran the fastboot flash initroot test.sh command and above is what i got
[Moto G4 Play ROMs, Kernels, Recoveries, & Other De] Noob342:
my bootloader is blocking the "fastboot flash initroot auto#initroot.linux" command

---------- Post added at 02:32 AM ---------- Previous post was at 02:30 AM ----------

i tried the flashing unlock_bootloader <request> because i noticed my droid is "locked" but no success

---------- Post added at 02:44 AM ---------- Previous post was at 02:32 AM ----------

fastboot flash initroot xt1254_quark_vzw_mcg24.251-5-5.initroot also was blocked....
[Moto G4 Play ROMs, Kernels, Recoveries, & Other De] autoprime:
thats what it's supposed to do...

as long as you sent the fsg-id command before it.. then send that command.. the phone is ready to boot.. with fastboot continue or pressing the power button while "Start" is selected in the bootloader menu.

when you boot up you can install magisk manager and u should have root. if you reboot the phone you'll have to either do that all again to re-root.. or you can disable it with the following command:

fastboot oem config fsg-id ""

since you're using the turbo which is bootloader unlockable with Sunshine app.. you should probably only be rooting once... unlocking bootloader with sunshine.. then disabling initroot since you n longer need it. then install twrp.. flash magisk zip in twrp and off you go. the other devices using initroot aren't as lucky and dont have a public method to get bootloader unlock.
[Moto G4 Play ROMs, Kernels, Recoveries, & Other De] Noob342:
fastboot flash initroot xt1254_quark_vzw_mcg24.251-5-5.initroot

(bootloader) has-slot:initroot: not found

target reported max download size of 536870912 bytes

sending 'initroot' (4882 KB)...

OKAY [ 0.179s]

writing 'initroot'...

(bootloader) Permission denied

FAILED (remote failure)

finished. total time: 0.181s

so the permission denied is normal?

---------- Post added at 04:07 AM ---------- Previous post was at 04:00 AM ----------

ok i got it i think i got it i havent been checking for root but must have been for a while now im so sorry man you are awesome and i apologize again
[Moto G4 Play ROMs, Kernels, Recoveries, & Other De] josemartinezx:
I am in the same situation as synaethe above: XT1609, rooted. While playing audio, V4A shows the driver status as normal, but not processing. I have followed the thread recommendations, and I have also checked the equalizer settings of my audio streaming apps (both Spotify and Tidal), to no avail. What else am I missing? Thanks.
[Moto G4 Play ROMs, Kernels, Recoveries, & Other De] Voltz100999:
I do not know, maybe you have not enabled developer mode in the app and set SELinux to permissive, also make sure it's in compatible mode. You can install a magisk module to get Permissive SELinux on boot, it need be.

---------- Post added at 08:36 AM ---------- Previous post was at 08:36 AM ----------

Go to settings for developer mode and compatibility.
[Moto G4 Play ROMs, Kernels, Recoveries, & Other De] hitokage004:
Has anyone here that has a Verizon or Amazon variant tried using this to get root and then tried SunShine to see if its tests pass to unlock your bootloader? Especially since this exploit is what allows an updated Droid Turbo to get unlocked with SunShine.

I don't need to do this myself as I have a retail G4 Play and was unable to unlock through the Motorola website - just throwing this out here on the chance no one thought to try it.
[Moto G4 Play ROMs, Kernels, Recoveries, & Other De] Voltz100999:
It will not unlock the bootloader, comes up with an error. I have the Verizon variant.
[Moto G4 Play ROMs, Kernels, Recoveries, & Other De] thrasher194com:
ok guys im moving on passed the moto g xt1609... i switched to LG k20 plus.. i've already unlocked bootloader and flashed supersu. hope u guys find a unlock bootloader!
[Moto G4 Play ROMs, Kernels, Recoveries, & Other De] QWZR:
Did anyone ever get anywhere with flashing a firmware from another version? Possible using EDL? (I think that's what I mean). Or do we know how the unlock codes are calculated? I'm guessing even if you could flash the code wouldn't work right?
[Moto G4 Play ROMs, Kernels, Recoveries, & Other De] Draven10785:
Can't seem to get it to work on my old Turbo (1254) Build MCG24.251-5-5.

I start into fast boot and start the init, but it just sticks at sending the command, after a few minutes, phone shuts off. (Not a reboot, a power off, with no changes).

#initroot and cve-2016-10277 by https://twitter.com/roeehay

magisk by https://twitter.com/topjohnwu

auto#initroot by https://twitter.com/@utoprime

.

..

...

....to uninstall auto#initroot, press '0' within 3 seconds

...

..

.

-start auto#initroot

-send fastboot oem config fsg-id "a initrd=0x110BEE50,2483340"

Stops there after it powers off the phone.
[Moto G4 Play ROMs, Kernels, Recoveries, & Other De] Voltz100999:
So guys, I have some news, not bad news, just news, I have fixed the BusyBox-NDK thing, as well as any other module that gives you "module will be updated on next reboot" the solution is simple, FlashFire. Click on flash OTA or zip and make sure /system is set to rw. Then make sure reboot is set to BL and flash initroot like usual. Easy! BTW, you can flash more than 1 zip at a time.

---------- Post added at 07:10 AM ---------- Previous post was at 07:10 AM ----------

Interesting...

---------- Post added at 07:12 AM ---------- Previous post was at 07:10 AM ----------

No, as you would need firehose programmer file and other things. And it seems the unlock codes are generated using JS with sha-256 encoding.
[Moto G4 Play ROMs, Kernels, Recoveries, & Other De] Voltz100999:
What is very interesting is that if I use "killall zygote"

I don't lose root after soft rebooting.

Also, a bit off topic, when did I become a senior member? I haven't done nearly enough yet...

Also, the FlashFire method seems to be fulproof.

I also got my new CPU today, so work can resume.
[Moto G4 Play ROMs, Kernels, Recoveries, & Other De] vibraniumdroid:
you become a senior member after 100 posts
[Moto G4 Play ROMs, Kernels, Recoveries, & Other De] Voltz100999:
Hmm. Interesting.
[Moto G4 Play ROMs, Kernels, Recoveries, & Other De] vibraniumdroid:
You are at 104 so you recently became a senior member
[Moto G4 Play ROMs, Kernels, Recoveries, & Other De] Voltz100999:
Makes sense I guess..
[Moto G4 Play ROMs, Kernels, Recoveries, & Other De] vibraniumdroid:
Yeah
[Moto G4 Play ROMs, Kernels, Recoveries, & Other De] RandoCardrissian:
[MENTION=8335368]Voltz100999[/MENTION] I don't want to bother you but has there been any big progress in the XT1687 root?
[Moto G4 Play ROMs, Kernels, Recoveries, & Other De] Voltz100999:
You aren't bothering me, and there has been a little progress, still trying to make a initrd file for it, as I don't know how to actually extract it straight from the device.
[Moto G4 Play ROMs, Kernels, Recoveries, & Other De] Voltz100999:
In other related news, a guy had found a way to GSM unlock the 1609.
[Moto G4 Play ROMs, Kernels, Recoveries, & Other De] Whitefrost11:
right i think i could use some help, trying to install any magisk modules gives me a "/data/magisk/" isnt setup properly error. Im pretty new to this so can someone help?
[Moto G4 Play ROMs, Kernels, Recoveries, & Other De] Voltz100999:
All you have to do is install 14.0 and reboot, be ready to flash the stock boot.img, you can find your firmware on firmware.center.
[Moto G4 Play ROMs, Kernels, Recoveries, & Other De] Voltz100999:
I also seem to have lost my "Jesus ability" to soft reboot and maintain root access. Kinda sucks, it would be nice to have persistent root access, I just cannot for the life of me figure out how to properly populate the pad file and make the kernel use it. I'll ask roeehay or auto if they would be willing to assist me. Who knows, they might.
[Moto G4 Play ROMs, Kernels, Recoveries, & Other De] Voltz100999:
To get systemless Xposed to work, i had to install a module for Magisk that allowed SELinux to be set to permissive on boot.
[Moto G4 Play ROMs, Kernels, Recoveries, & Other De] kenoni:
Can you please explain what you did here

printf '\x31' | dd of=/dev/block/platform/msm_sdcc.1/by-name/utags bs=1 seek=90

So i can adjust it to my xt1625.

By the way great work . Thanks.
[Moto G4 Play ROMs, Kernels, Recoveries, & Other De] thrasher194com:
Root!! Thanks again
[Moto G4 Play ROMs, Kernels, Recoveries, & Other De] killerxda:
Thanks, working great on my XT1254 Droid Turbo just updated today to MM 6.0.1 :highfive:
[Moto G4 Play ROMs, Kernels, Recoveries, & Other De] classic757:
[MENTION=2684188]autoprime[/MENTION], can supersu be used instead of magisk?
[Moto G4 Play ROMs, Kernels, Recoveries, & Other De] krison01:
well stuck the 0xA2100000,1588598 SCRATCH_ADDR doesn't work on the amz g5 plus

is this correct looks off to me but could be ida 5.0 "seg000:001A794E 0000001B C target_get_scratch_address"
[Moto G4 Play ROMs, Kernels, Recoveries, & Other De] thrasher194com:
Do you have June 1 security patch installed? The Moto bug was fix after may.
[Moto G4 Play ROMs, Kernels, Recoveries, & Other De] krison01:
no still jan, assuming its different in moto g5 plus but can't get aboot to check because locked bootloader
[Moto G4 Play ROMs, Kernels, Recoveries, & Other De] MFKilla:
XT1609. Locked. Can i adding some languages to system?
[Moto G4 Play ROMs, Kernels, Recoveries, & Other De] geaguirre80:
Try this address 0xA0100000