yashsingh1/xdaforums huggingface dataset:
[Moto G4 Play ROMs, Kernels, Recoveries, & Other De] Adnan_2:
Hi,

My phone is XT1254 droid turbo and it is build "MCG24.251-5-5".

I followed the steps, I started sunshine to unlock the boot loader, I gave the sunshine the root access, first step pass, but the full compatibility test take forever without restarting the phone.

I wait for almost an hour and nothing happed, just the testing bar start over and over again.

I turned-off the phone, but it stuck in boot loop and I used the script and the phone start normally.

I tried the sunshine again, but it is the same problem.

please help.
[Moto G4 Play ROMs, Kernels, Recoveries, & Other De] CoolCrescent186:
Is there a way I can downgrade? I got a XT1609 from eBay and want to root it. I'd preferrably want bootloader unlock, but if wishes were horses... (I clicked OEM unlock, can't get an unlock code...)
[Moto G4 Play ROMs, Kernels, Recoveries, & Other De] codezzie:
Is feb1,2017 the latest security patch for the xt1607? I could have sworn there was a june one someone was saying. If that isnt the latest, then the unlock should work for it?
[Moto G4 Play ROMs, Kernels, Recoveries, & Other De] Whitefrost11:
yea but how do i make it that the script auto runs every boot through magisk?
[Moto G4 Play ROMs, Kernels, Recoveries, & Other De] thrasher194com:
Some intoroot code wasn't purged completely from ram.. by battery pulling forces ur phone to revert back to stock.
[Moto G4 Play ROMs, Kernels, Recoveries, & Other De] Whitefrost11:
I still can't access my Google apps, it keeps giving me some kinda error, i can't reset rom and Factory resetting doesn't help either.
[Moto G4 Play ROMs, Kernels, Recoveries, & Other De] medjaisp:
Wiil this erase and factory reset everything?

[MENTION=2684188]autoprime[/MENTION] [MENTION=5817781]facuarmo[/MENTION], [MENTION=8335368]Voltz100999[/MENTION], [MENTION=2376614]jcase[/MENTION] I cannot afford to do factory reset because i will no longer be able to use whatsapp as i dont have an old number! Can someone get me a confirmation whether the rooting process will erase the data and factory reset it or simply root it?
[Moto G4 Play ROMs, Kernels, Recoveries, & Other De] Whitefrost11:
Ive rooted , unrootd a few times, didn't lose anything. Might wanna get some confirmations tho but i havent lost anything yet.
[Moto G4 Play ROMs, Kernels, Recoveries, & Other De] edrebber:
My XT1607 is running the same security patch, February 2017.

The notes seem to indicate that build number MPIS24.241-2.35-1-13 is supported.
[Moto G4 Play ROMs, Kernels, Recoveries, & Other De] medjaisp:
Thnx,....i will take the risk and update you!!
[Moto G4 Play ROMs, Kernels, Recoveries, & Other De] DB126:
Portions of hardware remain powered even when device appears to be 'off'. Pulling battery (and leaving it out for few min) triggers a full hardware reset. Not an option for devices that do not have a removable battery pack.
[Moto G4 Play ROMs, Kernels, Recoveries, & Other De] medjaisp:
Thnx a ton!

Rooting by this way doesnt wipe data! just plain root!
[Moto G4 Play ROMs, Kernels, Recoveries, & Other De] codezzie:
[MENTION=2684188]autoprime[/MENTION] is the readme accurate? Running XT1607 MPIS24.241-2.35-1-13, Febuary 1 2017 security patch, attempting to write initboot yields permission denied.
[Moto G4 Play ROMs, Kernels, Recoveries, & Other De] Voltz100999:
No, this will not erase anything, it simply roots the device. Just dont modify Boot or /system and you should be a-OK.
[Moto G4 Play ROMs, Kernels, Recoveries, & Other De] edrebber:
Yes, that is correct. I have this error and I started the thread for this error.
[Moto G4 Play ROMs, Kernels, Recoveries, & Other De] n3rdy13:
Anyone else losing WiFi after rooting?
[Moto G4 Play ROMs, Kernels, Recoveries, & Other De] thrasher194com:
WiFi is working fine.

Sent from my rooted Moto G4 Play xt1609.
[Moto G4 Play ROMs, Kernels, Recoveries, & Other De] Amarius1:
Does it work for xt1602?
[Moto G4 Play ROMs, Kernels, Recoveries, & Other De] n3rdy13:
Not sure why but if I run Rooted I lose WiFi. I'm not getting any other errors or glitches other than that. Script runs fine, Root required apps are fine too. If I remove Root, WiFi works great again. Any ideas?
[Moto G4 Play ROMs, Kernels, Recoveries, & Other De] thrasher194com:
uninstalling intoroot, goto recovery /wipe cashe, and reroot.. see if that helps your wifi
[Moto G4 Play ROMs, Kernels, Recoveries, & Other De] DuringSummer:
Hello.

This rooted my XT1254 perfectly, I am able to grant Super user permission to apps. The problem is that when I try to install a module using magisk, magisk will crash and will give me error that "Magisk did not set up properly"

Is this normal? Is it possible to install systemless Xposed?

Also, I don't know what am I doing wrong, but I tried uninstalling unit root by loading the device into fastboot and running the command you mentioned in adb terminal, however, it does not seem to recognize the command. Any help will be appreciated. Thanks!
[Moto G4 Play ROMs, Kernels, Recoveries, & Other De] n3rdy13:
Thanks for the response, for some reason the recovery menu fails to wipe the cache, it says formatting cache and stays there. I also noticed that my WiFi Mac address changes to 02:00:00:00:00 when I'm rooted.
[Moto G4 Play ROMs, Kernels, Recoveries, & Other De] thrasher194com:
Format cashe partition takes about 10mins on my phone.

Sent from my rooted Moto G4 Play xt1609.
[Moto G4 Play ROMs, Kernels, Recoveries, & Other De] thrasher194com:
i flashed a viperforandorid mod for magisk and now my bootloader says modified!

still locked
[Moto G4 Play ROMs, Kernels, Recoveries, & Other De] thrasher194com:
would something like this work for bootlocked xt1609?

https://xdaforums.com/droid-razr/general/installing-using-safestrap-3-75-2015-t3181430
[Moto G4 Play ROMs, Kernels, Recoveries, & Other De] DuringSummer:
I tried every possible method, but can't seem to uninstall the root using the command.

It shows this error

(Bootloader) slot-count: not found

(bootloader) slot-suffixes: not found

(Bootloader) slot-suffixes: not found

...

(bootloader) 'confirm' is not a supported OEM command

What am I doing wrong? Also, can I just factory reset my device without uninstalling the root? Will it go back to normal then?

Now it wouldn't be a problem if only magisk worked properly. But that isn't working either. It fails Safety net and it won't install any module, will just crash. And give me error that magisk isn't installed properly.

ANY help will be greatly appreciated.

Edit: Oh just wanted to mention that I'm using minimal ADB. I hope this isn't causing uninstall command to fail?

Edit 2: Fixed the issue relating to uninstall, but magisk still doesn't work properly.
[Moto G4 Play ROMs, Kernels, Recoveries, & Other De] thrasher194com:
Do you have OEM UNLOCKED ENABLED in developer options...?
[Moto G4 Play ROMs, Kernels, Recoveries, & Other De] thrasher194com:
Sent from my rooted Moto G4 Play xt1609.
[Moto G4 Play ROMs, Kernels, Recoveries, & Other De] DuringSummer:
No.

So I fixed magisk by installing older version of it then updating it. I am able to install Xposed and Viper modules, however, when I reboot my device using autoroot script, all I get after the Droid splash screen is a black screen and my phone keeps vibrating. I have to uninstall root to get it to work.

Did you get Xposed and Viper to work? If so, can you explain which scripts did you use and what exactly did you do?
[Moto G4 Play ROMs, Kernels, Recoveries, & Other De] DuringSummer:
Interesting. Can you share the script? Also did you have the anti boot loop script installed?
[Moto G4 Play ROMs, Kernels, Recoveries, & Other De] thrasher194com:
I had same black screen vibrate when touch power .. w/Xposed framework (sdk23) modules.. after doing complete factory reset.. /wipe data all.. reinstalled magisk and get root back.
[Moto G4 Play ROMs, Kernels, Recoveries, & Other De] Voltz100999:
Here is the script

https://www.google.com/amp/s/xdafor...agisk-selinux-permissive-script-t3577549/amp/

And as for anti-bootloop, did not do that until later , so no, it was not installed.
[Moto G4 Play ROMs, Kernels, Recoveries, & Other De] touqeer.tx:
i don't understand anti-bootloop script part can anyone please explain?
[Moto G4 Play ROMs, Kernels, Recoveries, & Other De] DuringSummer:
Thanks. Can you share anti boot loop script as well? I tried making one using template but it didn't work.

---------- Post added at 09:50 PM ---------- Previous post was at 09:49 PM ----------

It's a script that prevents boot loop in case you restart your phone and don't have a pc nearby.
[Moto G4 Play ROMs, Kernels, Recoveries, & Other De] Voltz100999:
And here is the anti bootloop script, it would be wise to type this into ADB as root.

printf '\x31' | dd of=/dev/block/platform/msm_sdcc.1/by-name/utags bs=1 seek=90
[Moto G4 Play ROMs, Kernels, Recoveries, & Other De] touqeer.tx:
adb as root?

As mentioned above without pc?
[Moto G4 Play ROMs, Kernels, Recoveries, & Other De] DuringSummer:
I thought I was supposed to create a custom magisk module out of the script? Did you just use ADB? It would be nice if you could tell the process

---------- Post added at 10:44 PM ---------- Previous post was at 10:42 PM ----------

Ah no. I'm kinda confused about this too.

You're supposed to either put that script in a custom magisk template and create a module or put that into magisk folder directly using adb.

It will allow you to boot up, in case your phone restarts and you don't have a pc nearby.
[Moto G4 Play ROMs, Kernels, Recoveries, & Other De] Voltz100999:
Yes, I did use ADB, I don't know if there is a script actually compiled, but so long as you do this, your phone will boot, although I have found that after 1 reboot, you have to use the code again.

As for answering the other gentleman, you cannot use ADB straight up in terminal emulator. You have to have drivers and a PC for that. You can however use the SU command and enter it that way if you do not have access to a PC
[Moto G4 Play ROMs, Kernels, Recoveries, & Other De] DuringSummer:
Thanks.

I'll try creating the module since that sounds more convenient.

On a side note, did you install any xposed modules? Does it break anything?
[Moto G4 Play ROMs, Kernels, Recoveries, & Other De] Voltz100999:
It would be a good idea to make a module, and as for Xposed, no. you should be able to install any module that you like, it will work. so far i have installed Android N-Ify, AdBlocker Reborn, APM+, Flat Style Colored Bars, Flat Style Keyboard, GravityBox, Greenify, Pixel Navigation Bar, Wileyfox Drawer Icon, GEL settings, and XuiMod. So, yeah. i would think you could install anything Xposed Related. and as for errors, none.
[Moto G4 Play ROMs, Kernels, Recoveries, & Other De] DuringSummer:
Yeah. Also could you link me to the xposed module you used for magisk? There are 3 of them, which on did you install?
[Moto G4 Play ROMs, Kernels, Recoveries, & Other De] Voltz100999:
I just used the one in the Magisk app, SDK 23
[Moto G4 Play ROMs, Kernels, Recoveries, & Other De] thrasher194com:
C:\android\sdk\platform-tools>adb shell

shell@harpia:/ $ su

su

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

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

1+0 records in

1+0 records out

1 bytes transferred in 0.002 secs (500 bytes/sec)

root@harpia:/ #
[Moto G4 Play ROMs, Kernels, Recoveries, & Other De] touqeer.tx:
How to install busybox system partition is write protected and when i select su/bin foldee its says."systemless root is not configured"
[Moto G4 Play ROMs, Kernels, Recoveries, & Other De] Ak.amd:
stock recovery

Can any one send me the stock system recovery for droid turbo xt1254 ma
[Moto G4 Play ROMs, Kernels, Recoveries, & Other De] asim javed:
what to do after installing the script the magisk file manager is not opening?

please help waiting for your reply :(

how to give app root permissions?
[Moto G4 Play ROMs, Kernels, Recoveries, & Other De] thrasher194com:
I install magisk app from top of this thread.. adb reboot bootloader.. run initroot script.. and it works like magic.
[Moto G4 Play ROMs, Kernels, Recoveries, & Other De] thrasher194com:
Sent from my rooted Moto xt1609
[Moto G4 Play ROMs, Kernels, Recoveries, & Other De] hiro1215:
hi,every bro's i had axt1254 i use the initroot and magisk root my phone .andthan use sunshine unlock bootloader finished.now i had a problem,while i boot the phone in fastboot mode and flash the last ver. trwp

,command show recovery write ok,but i had bootloop and i lose my baseband,i can't flash anything in my phone(e.g radio/gpt/boot/official firmware too)show writed but no different,and i only can do one thing to boot up my phone,i need double-click auto#initroot bat file.and my magisk will changed like the photo,can anyone help me pls. now my phone can't use wifi and sim data.pls help,thz so much
[Moto G4 Play ROMs, Kernels, Recoveries, & Other De] hiro1215:
i can't boot in recovery mode(will bootloop),try many time.

sorry my pood eng.
[Moto G4 Play ROMs, Kernels, Recoveries, & Other De] DuringSummer:
You have to disable the root first. To do that, first boot into bootloader. You can do that by pressing and holding Power+Volume down button when your phone is booting up and you see the Motorola logo. You have to do it quickly, so keep trying. It'll work.

Once you're in bootloader menu, connect your phone to PC, then open cmd.

Now type in cmd the location where you put the autoinitroot script folder.

Example (I put mine on desktop): cd /d desktop/autoinitroottool/windows/

Now just use the command mentioned in the original post to unroot.

fastboot oem config fsg-id ""

Wait until it says "Okay". You'll be able to boot your device.
[Moto G4 Play ROMs, Kernels, Recoveries, & Other De] hiro1215:
thx for reply,but I try it many time too .no luck.notthing different
[Moto G4 Play ROMs, Kernels, Recoveries, & Other De] DuringSummer:
What do you get when you turn off your phone? Does it reboots itself after Motorola logo?

Use autoinitroot script to boot your phone up.

Open ADB and type any of one commands.

adb reboot bootloader

OR

fastboot reboot bootloader

Once you're in bootloader menu, perform the steps I mentioned in my earlier comment to remove root. After that just power on your phone using power button and it will work.
[Moto G4 Play ROMs, Kernels, Recoveries, & Other De] hiro1215:
thx reply ,but, I try this many times too.
[Moto G4 Play ROMs, Kernels, Recoveries, & Other De] thisisapoorusernamechoice:
Working Download Link?

the download link for auto#initroot in the OP is not working, do you or anyone else please have an alternate mirror? sorry disregard, it was a problem with my browser
[Moto G4 Play ROMs, Kernels, Recoveries, & Other De] thrasher194com:
Auto. What kinda file needs to be in /magisk/.core/service.d folder

For the boot script?

Sent from my rooted Moto XT1609

ok upon further looking over the notes.. i create script.sh and moved it to /magsik/.core/services.d

Microsoft Windows [Version 10.0.15063]

(c) 2017 Microsoft Corporation. All rights reserved.

C:\Users\Hilton.Hilton-PC>cd \android\sdk\platform-tools

C:\android\sdk\platform-tools>adb shell

shell@harpia:/ $ su

su

root@harpia:/ # #!/system/bin/sh

#move this to /magisk/.core/service.d/ folder after factory resets

#anti-bootloop -- allow harpia to reboot without computer

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

#disable ota so #initroot not patched

pm disable com.motorola.ccc.ota

#disable bloat after factory reset

if [ ! -e "/cache/firstrun" ]; then

#disable amazon ad

# pm disable com.amazon.phoenix

!/system/bin/sh

root@harpia:/ # rm /data/data/com.android.systemui/files/boot.ad*

#add verizon xt1609 bloat

pm disable com.gotv.nflgamecenter.us.lite

pm disable com.vznavigator.Generic

#add amazon xt1607 bloat

pm disable com.amazon.widgets

pm disable com.amazon.clouddrive.photos

pm disable com.amazon.kindle

root@harpia:/ # pm disable com.amazon.dee.app

# pm disable com.amazon.drive

mov pm disable com.imdb.mobile

e pm disable com.goodreads

this t pm disable com.audible.application

o

/magisk/.core/servic #create firstrun so only run once

e touch /cache/firstrun

s to /magisk/.core/service.d/ folder after factory resets <

root@harpia:/ #

pm disable com.imdb.mobile

pm disable com.goodreads

root@harpia:/ # #anti-bootloop -- allow harpia to reboot without computer

r#end if statement

oot@harpia:/ # printf '\x31' | dd of=/dev/block/fi

p

x31' | dd of=/dev/block/platform/msm_sdcc.1/by-name/utags bs=1 s#add new commands here

e

e#end of script

k=90exit 0
[Moto G4 Play ROMs, Kernels, Recoveries, & Other De] thrasher194com:
Created script.sh mv magisk/.core/service.d

Chmod +x service.d

Bloat free!. :]

Sent from my rooted Moto XT1609
[Moto G4 Play ROMs, Kernels, Recoveries, & Other De] thrasher194com:
if anyone need to reinstall fastboot files..

https://www.verizonwireless.com/support/knowledge-base-209211/#windows
[Moto G4 Play ROMs, Kernels, Recoveries, & Other De] hiro1215:
thx,but I need help.i try I can flash bootloader,can change the version.I can't flash recovery.when i flash the recovery, the command windows show install success,but I can't boot into recovery,(any version)3.0.2~3.1.1trwp, official recovery,i also try to use version SUA,the SUA show repair success,but while the phone reboot. again is bootloop,i try use rsd flash full firmware too.same can't boot up normal .i only can use the pc side script to boot normally,(need flash initroot file that one).now if I normal boot the phone I can use adb to install apk file.now I installed the root explorer,can I do something to fix my phone?thx so much.and sorry to my poor eng.

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

above all is I lost my baseband,i can't use wifi and sim card data.pls help me
[Moto G4 Play ROMs, Kernels, Recoveries, & Other De] thrasher194com:
Hmm.. I had error booting fastboot.. I got back into stock recovery.. got it back to normal.. try going back to stock. Then reflash twrp.
[Moto G4 Play ROMs, Kernels, Recoveries, & Other De] hiro1215:
thx reply,but no luck,i can't get back to stock.i use verizion stock system upgrade tools/rsd/fastboot command,is still not working.....
[Moto G4 Play ROMs, Kernels, Recoveries, & Other De] autoprime:
August 3, 2017 Update:

Added Amazon G5 Plus XT1687 NPN25.137-35

Added uninstall option in auto#initroot scripts

-Windows: double-click auto#initroot-*.bat and press "0" key when prompted

-Mac/Linux: double-click auto#initroot sh/command file and press any key when prompted

-auto#initroot script will INSTALL when no key is pressed and UNINSTALL when key is pressed

-updated auto#initroot bat file fully supports Windows Vista and up. Windows 98/XP may have issues.​

XT1687 Note:

XT1687 NPNS25.137-35-5 apparently patches the #initroot bug even though it has a "2017-05-01" patch and #initroot wasn't patched until the second May security patch, 2017-05-05. Can anyone that is already on XT1687 NPNS25.137-35-5 confirm that the following command fails in fastboot? If confirmed, XT1687 NPN25.137-35 will be the last update working with #initroot

fastboot oem config fsg-id "a androidboot.bar=1"

Error Reporting:

users reporting issues should make the report as detailed as possible to increase chances of getting a response.

although I am likely to not respond since just about everything has been explained in this thread already.

Details required:

1. on your phone go to settings > about phone and list:

model number

software variant/channel

android version

android security patch level

build number

2. which auto#initroot file are you using?

full name of auto#initroot folder or *.initroot file

3. what is the output from the auto#initroot script/command/bat file?

copy/paste the entire output log of command prompt/terminal window

screenshot would work if you are unable to copy/paste text

4. what OS is on your computer?

Windows 10 64-bit, Windows 8.1 32-bit, OS X 10.8.5, etc..

Your report should answer all possible variables.

If more questions have to be asked before it's possible to give you an answer then your report will likely be ignored.

If your question has already been answered somewhere in the thread then your report will likely be ignored.
[Moto G4 Play ROMs, Kernels, Recoveries, & Other De] thisisapoorusernamechoice:
How did you get TWRP on a XT1609? I thought the bootloader is supposed to be unlockable??

Also does anyone know if it's safe to use the magisk terminal systemless debloat module
[Moto G4 Play ROMs, Kernels, Recoveries, & Other De] thrasher194com:
I have stock recovery.. that other gentlemen had twrp, .. my bootloader still locked... Moto site says not available for unlocking.
[Moto G4 Play ROMs, Kernels, Recoveries, & Other De] thisisapoorusernamechoice:
Thank you for the info. Would you mind sharing which apps you've debloated? I was going to try the script method from the Tips section
[Moto G4 Play ROMs, Kernels, Recoveries, & Other De] thrasher194com:
Vznavigator n vznfl
[Moto G4 Play ROMs, Kernels, Recoveries, & Other De] hiro1215:
i fix my phone,thx autoprime brother ,thanks so much
[Moto G4 Play ROMs, Kernels, Recoveries, & Other De] cllark1:
I rooted my Quark via Initroot and unlocked bootloader but have been unable to boot into Twrp I have flashed through adb and twrp app with the same result bootloop into unlocked bootloader screen.

I uninstalled initroot and downloaded a new Twrp zip and flashed via fastboot . I was finally able to open Twrp and flash RR rom Nougat . I now have root access without having to reflash every time I reboot.
[Moto G4 Play ROMs, Kernels, Recoveries, & Other De] abuska:
I tried but I get stuck in the double clicking of the auto#introot for windows, it shows a command prompt then after a while my phone goes off, I'd have to boot it myself...after doing this still unrooted using magisk and root checker

Sent from my droid turbo xt1254
[Moto G4 Play ROMs, Kernels, Recoveries, & Other De] thrasher194com:
Download this :

http://oldreliable.store.aptoide.co....installer/67600/30643026/BusyBox+for+Android

Sent from my rooted Motorola XT1609
[Moto G4 Play ROMs, Kernels, Recoveries, & Other De] seri0099:
hi friends, if i install root to xt1687 amazon verison on NPN25.137-33 will be it work? and after if i get android update for example to android 8, can i delete root to update without problem? sorry for my bad english :)
[Moto G4 Play ROMs, Kernels, Recoveries, & Other De] TJ11911:
Does this work for Droid turbo 2 Verizon 7.0 greatly appreciate an answer

---------- Post added at 08:07 PM ---------- Previous post was at 08:01 PM ----------

Does this work on the X1585 7.0
[Moto G4 Play ROMs, Kernels, Recoveries, & Other De] WhiplashNS:
I haven't looked through the whole thread, but would I be able to use this to flash twrp, and keep root on my device? And if so could you help me? I'm fairly new to the rooting scene. ?