yashsingh1/xdaforums huggingface dataset:
[Moto G 2015 General] Tel864:
No TB works fine with systemless root. Are you using a later version of TB?
[Moto G 2015 General] rom-g:
I have the same problem with stock 6.0.1 and system less root. TB is unable to freeze/unfreeze system app or restore normal apps.

The only way i found to make it working is :

Open a terminal console and type :

su

setenforce 0

The restore fonction should now be Ok in titanium backup.

For system apps, i have to do one thing more :

open root explorer (or Es file explorer), and mount system partition as Read/Write.

After that, (un)freezing/restoring system apps is OK.
[Moto G 2015 General] babunani777:
Need rooting step by step for xt1550 running 6.0.1 with twrp version and su version. Thanks in advance
[Moto G 2015 General] acejavelin:
It's the same process, use the latest versions of TWRP for your device and SuperSU beta, just enter this command in the TWRP terminal before flashing SuperSU:

echo SYSTEMLESS=true>>/data/.supersu

Reboot and done.
[Moto G 2015 General] abhinavk:
thanks! this worked for me

---------- Post added at 09:06 AM ---------- Previous post was at 09:04 AM ----------

thanks! This worked for me. Very puzzled as to what went wrong, but I might be able to experiment later and report back.
[Moto G 2015 General] MrTooPhone:
Is that with TB 7.4.0? I still have Android 6.0 and begin having issues with TB after the TB 7.4 upgrade. I reverted to TB 7.3.0.2 and all my issues cleared.

Do you have to do:

su

setenforce 0

each time you run TB now?
[Moto G 2015 General] rom-g:
I had to do that after each reboot.

But now, this bug seems to be fixed with latest TB updates (7.4.01 and >)
[Moto G 2015 General] MrTooPhone:
Thanks. I will re-install TB and see if the latest version fixes my issue.
[Moto G 2015 General] jugalpawar27:
my moto g3 is not rebooting after the flash recovery. what should i do? please help!
[Moto G 2015 General] MrTooPhone:
Installed 7.4.0.2 and all my issues have been resolved.
[Moto G 2015 General] acejavelin:
I am not understanding... you did an 'fastboot flash recovery twrp.img' and it sent and wrote successfully but didn't reboot? Well if you follow the instructions in the first post it shouldn't, the next step is to start recovery from the bootloader which will display the unlock warning screen for several a seconds, then TWRP will start to load which will take several more seconds before the TWRP menu shows up, then you reboot from the TWRP menu. If you reboot without starting/rebooting TWRP, the original recovery will be reinstalled and you will have to flash it again.
[Moto G 2015 General] coolkingler1:
This did not work on the brand new Moto G 2015 of my friend. Was stuck at the boot logo *sewed M logo*

Had to reflash factory image. :(
[Moto G 2015 General] acejavelin:
I guarantee you this works, but you must either use the exact version of SuperSU stated by OP or use the SYSTEMLESS=true trick shown on the last few pages.

Perhaps a little more information on what you did exactly and we could help figure out the problem?
[Moto G 2015 General] coolkingler1:
Did what OP did, will try the systemless thing tomorrow maybe.
[Moto G 2015 General] Muppet the Wonder Dog:
Suggestions please. I'm missing something simple here.

XT 1541 brand new. Marshmallow 6.

Unlocked but still with annoying ' Warning Bootloader Unlocked ' warning screen.

I've installed on W7, via minimal adb & fastboot, twrp-osprey-3.0.2-r1.img. Recovery seems to work just fine......but....

When I install ANY of these SuperSU images

- UPDATE-SuperSU-v2.46.zip

- UPDATE-SuperSU-v2.65-20151226141550.zip

- BETA-SuperSU-v2.74-2-20160519174328.zip

Tried Data Wipe\No Data Wipe. Makes no difference with TWRP before Reboot.

The device appears to become soft-bricked and sticks at the ' Warning Bootloader Unlocked' screen.

I've reinstalled stock firmware XT1541_OSPREY_RETEU_6.0_MPI24.65-33.1_cid7_subsidy-DEFAULT_CFC__v2.xml.zip .....twice.

Loosing the will to live. Any ideas what I'm doing wrong please ?

Thank you

Muppet The Wonder Dog

(None of my Samsungs were this tricksy.)
[Moto G 2015 General] acejavelin:
In the TWRP terminal enter:

echo SYSTEMLESS=true>>/data/.supersu

Then flash current SuperSU zip. SuperSU doesn't always recognize it needs to use systemless, this forces it.
[Moto G 2015 General] babunani777:
Where can I see this twrp terminal???

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

Where can I see this twrp terminal??? You mean on cmd window or phone?
[Moto G 2015 General] acejavelin:
No, the terminal built into TWRP... Start TWRP, go to Advanced, then Terminal, and type the command as shown.
[Moto G 2015 General] babunani777:
You mean after flashing twrp recovery via fastboot...open twrp and find the twrp terminal?? And type that above mentioned command??? In phone?
[Moto G 2015 General] Muppet the Wonder Dog:
Thank you acejavelin. I have my life back now.

This works just fine.

(But at a loss to understand why this command is not in the SuperSU install)
[Moto G 2015 General] babunani777:
I've never accessed Twrp terminal. Can you just help me ? Tell me exact version of twrp you flashed and how to access twrp terminal?
[Moto G 2015 General] acejavelin:
There is something about the G3 that for some reason SuperSU can't tell it needs to do a systemless install, so it does a standard installation which causes boot failure. This is not unique to this device, if you search for the command in Google you will see there are a few devices which require it be set manually.

---------- Post added at 08:17 AM ---------- Previous post was at 07:44 AM ----------

Use the latest TWRP... 3.0 . something although I think any 2.7 or higher works fine.

I was quite clear... After entering the command flash the current SuperSU normally.
[Moto G 2015 General] babunani777:
[emoji2] detailed!!! Ty
[Moto G 2015 General] acejavelin:
Instead of quoting the whole first post to say "Ty", just click the Like or Thanks button on the post... It is better for the OP and keeps the rest of us from having to scroll through the whole post.
[Moto G 2015 General] Uncle Waldo:
Did I incorrectly place Recovery.img

Thanks for your posting and I am using the minimal ADB and Fastboot by shrimp208 downloaded TWRP renamed it recovery.img and then I just placed it into the general MINIMAL ADB folder as there is not a formal platform-tools as with SDK and everything works until I reach this command prompt.

fastboot boot recovery.img

Wait until ok message appears in cmd

Fastboot boot recovery.img

cannot load "recovery.img": no such file or directory

Is my problem do to the misplacement of the recovery.img file within the general Minimal ADB folder?

Moto G 3 Android 6.0, kernel version 3.10.49-g88eb8b3, build # MP124.65-25

Motorola ADB interface

Motorola Device Manager with USB drivers

Universal Adb Driver

As a new sojourner in these things driven by android any assistance in my quest to root this moto would be more than welcomed ......
[Moto G 2015 General] acejavelin:
It is telling you that fastboot can't find "recovery.img", you path or filename is incorrect
[Moto G 2015 General] PalmCentro:
Or just drag and drop the recovery img (doesn't matter how it's named) into the cmd window.
[Moto G 2015 General] Uncle Waldo:
How do I correct my path or filename error?

I figured as much and my question is how can I now correct the error using the Minimal ADB 1.4 program?

I've downloaded the TWRP.img file and then copied and pasted it into the GENERAL minimal ADB Fastboot folder and then renamed it recovery.img

Most instruction use the SDK program which have you paste (TWRP) now named recovery.img into Android\SDK\ platform-tools

As MINIMAL ADB has no "\platform-tools" am I to create this first and then paste the (TWRP) recovery.img into it?

Or is there a special not mentioned location for this (TWRP) recovery.img within the current MIINIMAL ADB program?

Did I foolishly make an error in my placement of said (TWRP) recovery.img with the incorrect or lost path to this file and thus root?

Moto G 3 Android 6.0, kernel version 3.10.49-g88eb8b3, build # MP124.65-25

Device is UNLOCKED. Status Code: 3

Motorola ADB interface

Motorola Device Manager USB drivers

Universal Adb Driver

As a new sojourner in these things driven by android any assistance in my quest to root this moto would be more than welcomed
[Moto G 2015 General] acejavelin:
Are you familiar with the command prompt? Open a CMD window and use the CD command to go to the directory where you installed Minimal ADB and do a directory (dir) command to see if the file is there.

I can't help you with drivers, I have forsaken Windows and run nothing but Linux on my personal computers, except at work where I am required to use it and to assist my kids with all their Win 10 issues, and Linux doesn't use special drivers to talk to Android devices. Drivers do not appear to be your issue through, you are talking to the device... there is no kind of or sort of talking to it, it either works or doesn't.
[Moto G 2015 General] Gravemind2015:
Locate these four files inside the MINIMAL ADB and FASTBOOT installation directory-

adb.exe

AdbWinApi.dll

AdbWinUsbApi.dll

fastboot.exe

They would be inside a common folder. Copy them. Create a folder named 'adb' (without quotes) in C drive and paste these 4 files inside this folder. Then inside the folder adb, paste the twrp image you download and rename it to just twrp.img . Now right clicktwrp.img >properties and verify that the path is C:\adb\twrp.img . Close properties window. Now in that folder, shift-right click and open command prompt. Now type in-

dir

It should only list 5 files -adb.exe,fastboot.exe,two dll files and twrp.img

Now connect the phone to pc and type fastboot devices. Verify your device's serial number pops up with 'device' written next to it. Now type -

(To boot once and not flash permanently)-

fastboot boot twrp.img

(To flash permanently replacing the stock recovery)-

fastboot flash recovery twrp.img

Ensure that the command returns OKAY. Now type (if permanently flashed)-

fastboot reboot recovery

Its done.

Sorry for a lengthy explanation and seemingly- obvious steps.

Broadcasted from Zeta Reticuli
[Moto G 2015 General] Uncle Waldo:
A moto g3 odyssey to root ville

Zeta I am very grateful that you took the extra time for your explanation and the extra seemingly obvious steps for some folks in this matter.

I tried the instructions and while I am still dead in the water as far as rooting this moto G your help has moved me closer in my quest.

I've been able to narrow my problem down to a missing or misplaced "TWRP.img" file in the created "ADB" folder.

1. I followed all the instructed steps in creating the "ADB" folder with five items and the folder properties show path as C:\ and it's read only in attributes.

2. "TWRP.img" properties show path as C:\ADB and there is nothing checked in attributes?

3. Command prompt "dir" shows the five files and TWO directories within the "ADB" folder.

4. Command "adb reboot bootloader" reboots moto okay so far.

5. Command "fastboot devices" gives the moto serial number once again okay.

6. Command "fastboot boot twrp.img" gives this message CANNOT LOAD "TWRP.IMG" : NO SUCH FILE OR DIRECTORY

7. Command "fastboot flash recovery twrp.img" gives the following message

(bootloader) has-slot recovery : NOT FOUND

error: CANNOT LOAD "TWRP.IMG"

My problem seems to lie within number two the created "ADB" folder and then with the copied "TWRP.img file it self.

I'll download a fresh "twrp.img" file and replace the one that's in the "ADB" folder currently and see what happens.

Once again thanks for your detailed help Zeta

As a new sojourner in these things driven by android any assistance in my quest to root this moto would be more than welcomed

---------- Post added at 03:25 PM ---------- Previous post was at 02:27 PM ----------

Fresh download of TWRP 2.8.7-r7 img and placement within the folder "ADB" as "twrp.img" properties still show it's path as C:\ADB only?
[Moto G 2015 General] acejavelin:
Go to http://xdaforums.com/devdb/project/?id=11051#downloads and download the file named twrp-osprey-3.0.2-r1.img then copy it to the C:\ADB folder...

then in step 6 replace the command with:

fastboot boot twrp-osprey-3.0.2-r1.img

then after twrp starts, select Do not allow modifying image, and do a backup, preferably to the SD card

Then in Step 7, replace the command with

fastboot flash recovery twrp-osprey-3.0.2-r1.img

There is no need to use the old version of TWRP.
[Moto G 2015 General] Gravemind2015:
Its my fault, sorry for inconvenience; using Linux more than Windows so forgot little details. The properties window correctly shows path as C:\ADB. The full file path is C:\ADB\twrp.img which I wrote earlier.

Please refer to [MENTION=2001582]acejavelin[/MENTION]'s reply.

Also try this command-

fastboot flash recovery C:\ADB\twrp.img

(Change twrp.img to the name of the file pasted in ADB folder eg. twrp-3.0.2-R2.img).[emoji4] .

Broadcasted from Zeta Reticuli
[Moto G 2015 General] acejavelin:
[MENTION=7567657]Uncle Waldo[/MENTION] You are changing to the ADB directory before performing any of these command, correct?

From the C:> prompt enter `cd adb` and press return, the prompt should change to C:\ADB> and this is where you enter the fastboot and adb commands?

Or at least the adb.exe, fastboot.exe, AdbWinApi.dll, AdbWinUsbApi.dll, AND twrp-3.0.2-R2.img file are all in the same folder.

Oh, or how [MENTION=7112679]Gravemind2015[/MENTION] said, that works too... I should read better. :)
[Moto G 2015 General] Uncle Waldo:
acejavelin I've gotten fastboot boot twrp-osprey-3.0.2-r1.img to load and am at first screen and my question is where is this message located "Do not allow modifying image" I've swiped the bottom arrow to enter the second screen with it's eight options what to do now, which option if any?

I did a back up to the SD card and I have the SuperSU zip on the phone I just need a little direction on the correct way through TWRP and then how to do the SuperSU zip boogie as this is my first time on this dance floor.
[Moto G 2015 General] acejavelin:
Too late then... The very first intro screen says something like Swipe to allow changes or click here to open read only (paraphrasing). It's not terrible though because factory images are available.
[Moto G 2015 General] Uncle Waldo:
Thought so

I thought that might be the case when I swiped it okay what should I do now to correct my error?
[Moto G 2015 General] acejavelin:
Nothing... Flash twrp, and/or enter the terminal command and flash supersu.

Not the end of the world. TBH, since we can never undo the warranty loss it doesn't really matter that much.
[Moto G 2015 General] Uncle Waldo:
Flashing twrp and waiting

acejavelin I am at second screen with the eight options and have entered the command "fastboot flash recovery twrp-osprey-3.0.2-r1.img" and message reads < waiting for any device > minutes and counting.

The enter terminal command is located within TWRP so do I now chose the install option from the eight or?

As for any warranty loss that's not a problem on this end as it died long ago....
[Moto G 2015 General] acejavelin:
OK, we need to backup... You are confusing the flashing the TWRP and SuperSU (rooting)

TWRP needs to be flashed in the bootloader with fastboot, once the backup is complete in TWRP press Reboot and select Bootloader, you will be back to the "fastboot" screen... At this point you use the

fastboot flash recovery twrp-osprey-3.0.2-r1.img

At this point you need to start recovery (TWRP)... allow modifications if prompted, then press Reboot and select Recovery.

Once TWRP loads again, it is set and will not be replaced by stock.

Now you go to Advanced, Terminal, and TYPE in this EXACTLY

echo SYSTEMLESS=true>>/data/.supersu {return/enter}

Now press Home and go to Install, find the SuperSU ZIP and swipe to install.

Reboot, and your done.
[Moto G 2015 General] R3dk1ng:
Can I use this metod on XT1543?​
[Moto G 2015 General] acejavelin:
Yes... this method works on ALL Moto G 2015 devices, including Turbo as long as you substitute the appropriate version of TWRP.
[Moto G 2015 General] Uncle Waldo:
Ladies and Gentlemen We Have Root In Mudville

acejavelin thanks to your patience in dealing with my almost total android confusion and incompetence, I was finally able to complete my quest of manually rooting this Moto G .

As a new sojourner in these things driven by android and this being my first time on this rooting dance floor, I am sorry for stepping on anyones toes and I thank you ALL for your instruction and assistance in my quest.

Is there a simple and easy basic book on android that you would recommend for the somewhat or almost totally confused sojourner?
[Moto G 2015 General] acejavelin:
Your welcome... I have zero problems helping someone who is willing to listen and learn and not just be lazy and have everything done for them, we all start somewhere.

As far as books, nope... Best way to learn is the threads here and on other forums, read the threads and try stuff. This hobby is pretty much trial by fire only.
[Moto G 2015 General] Gravemind2015:
Just never give up the curiosity, and never hesitate to ask questions, this is my way of learning.. Thought to share with you. :)

Broadcasted from Zeta Reticuli
[Moto G 2015 General] AngelusInferni:
Relocking Bootloader

The tutorial was perfect and my device is rooted and working as expected.

I have only one question and please bear with me because I'm new to this..

Is it possible to retain root permissions and custom recovery after relocking the bootloader.

I haven't and most probably won't install a new ROM so I was thinking that I could relock the bootloader... but still retain root

Is this possible and is it advisable?

If so how should I go about doing this ?

Again, many thanks for this wonderful tutorial!
[Moto G 2015 General] acejavelin:
No, the bootloader cannot be relocked without wiping the device and flashing a completely stock image. The software status must be official and be in fb_oem mode for the lock to occur.
[Moto G 2015 General] ketanjog143:
thnx a lot, but when i was trying to flash 2.76 stable file it was going to boot loop....... but when i used beta version suggested by u , there was not the problem of boot loop and i rooted my xt1550 marshmallow successfully .... i dont understand that flashing stable version cause boot loop???????????????
[Moto G 2015 General] acejavelin:
Read back a little, a few pages or so, ANY recent version of SuperSU can be used, the latest is probably the best choice... the SuperSU install script does not recognize that the Moto G 2015 (and several other devices) needs a systemless root, so it needs to be manually done.

Prior to flashing SuperSU, in TWRP go to Advanced and open the terminal, then enter this exactly:

echo SYSTEMLESS=true>>/data/.supersu

Then press Enter, exit the terminal and go Home and flash SuperSU. This also works to correct a bad root where it wasn't installed as systemless because the install script fixes it for you.

Basically, if it isn't installed as systemless, the system partition is modified for an older "standard" root implementation, and the default security in Android Marshmallow (maybe Lollipop too) checks for {something} in /system and when it sees whatever that is SuperSU did, the boot fails and bootloop occurs. I don't know the exact details of what is done and what causes the check to fail, but I don't need to because Chainfire knows and found a solution but unfortunately the need for it cannot be auto-detected on all devices reliably.
[Moto G 2015 General] melp57:
Fastboot boot recovery

I keep getting error message saying device error when I try this command.

ADB devices shows my device serial #, so I know I am connected.

Also the recovery.img is in the same Dir.?

C:\Program Files (x86)\ADB>fastboot boot recovery.img

downloading 'boot.img'...

OKAY [ 0.252s]

booting...

FAILED (remote failure)

finished. total time: 0.539s
[Moto G 2015 General] acejavelin:
Is your bootloader unlocked? Is 'recovery.img' the actual filename of your TWRP image?
[Moto G 2015 General] melp57:
Must be the problem. Bootloader not yet unlocked. Simple I guess ??. Correct name is recovery.img.

I was just trying to try things out before committing to permanently install things. Guess I didn't realize that the bootloader had to be unlocked before even temp booting TWRP. Have the code from moto already. Will proceed with unlocking.

Had just been reading that it's a good idea to boot things first, before flashing. Thanks for pointing this out.
[Moto G 2015 General] acejavelin:
No prob... remember the unlock process will wipe your device, so backup first if you need to.
[Moto G 2015 General] melp57:
Yes, that I do know :) everything I need is backed up to Dropbox. Thank you so much for all the help you provide here. I know it gets tiring sometime with what seems like dumb questions.
[Moto G 2015 General] melp57:
OP has an old dl version of TWRP anyone have the latest one made specifically for G3? Thanks
[Moto G 2015 General] Gravemind2015:
Here is the link to the TWRP thread: http://xdaforums.com/showthread.php?t=3170537.

Broadcasted from Zeta Reticuli
[Moto G 2015 General] melp57:
Not the lasted version, and dl link doesn't work.
[Moto G 2015 General] acejavelin:
Yes, that is definitely the correct information in the previous post... The latest TWRP is version 3.0.2-r1 and dated 2016-04-05 from the post linked. I just tried downloading it from the link given by [MENTION=7112679]Gravemind2015[/MENTION] and it works fine.
[Moto G 2015 General] melp57:
Ok, guess my xda phone app isn't working. Just says can't parse link. Thanks
[Moto G 2015 General] PalmCentro:
Working for me... Via XDA labs.
[Moto G 2015 General] melp57:
Glad of that. I had to use my nexus 7 to get to the dl. Thanks.

---------- Post added at 05:39 PM ---------- Previous post was at 05:32 PM ----------

Hi all.

EDIT: I just read back and saw acejavelin's explanation and the code

echo SYSTEMLESS=true>>/data/.supersu

I'll give that a try. Still don't understand why the beta version doesn't require this, or does it?

*************************************************

Should we still be using the SU (beta) version in the OP, even though there are newer version out. Also is it really required to issue the commands stated in this forum in advance section of TWRP command window to avoid bootlooping. Only reason I ask is others report to use latest su version for mm. I trust you guys here better to know what advice to give. Sorry, I can't remember the exact commands to use to get su installed correctly. Thanks!

---------- Post added at 06:05 PM ---------- Previous post was at 05:39 PM ----------

The folks in this forum that give us advice are the best anywhere. I try to share things I've learned from you guys. Just wanted to say thanks! So much appreciate all of you.
[Moto G 2015 General] Gravemind2015:
I tested around with the beta versions and the latest 2.76 stable one. In all the cases (clean install cm13 with/without gapps, different kernels) they detected systemless mode fine. But I do think we need confirmations from more users on this regarding the 2.76 release. For a failsafe measure, the command is still worth of issuing before flashing SuperSU.

Most of the roms which have SuperSU built-in are installed to /system so when a new supersu.zip is flashed it correctly selects *system* mode. Best examples are roms such as AICP. I don't know what will be the consequences of issuing the "ECHO SYSTEMLESS=TRUE" command in those ROMs. Either the echo command will be ignored in favour of updating existing supersu or the system one will be uninstalled and reinstalled in systemless mode. (Researching more on this, please correct me, I may be wrong). But the ROMs with cm root manager or no root (like stock) will need a *systemless* install. Just shared to clear up possible confusions.

Broadcasted from Zeta Reticuli