yashsingh1/xdaforums huggingface dataset:
[Moto G 2015 General] abhijeetc9762:
[GUIDE] [OSPREY] [MM] 【6.0/6.0.1】Install TWRP, Root and Xposed successfully on 6.0

1) Unlock your bootloader . for complete unlocking process go here.

https://m.youtube.com/watch?v=sw675ipX-ds&feature=youtu.be

IT WILL RESET ALL YOUR DATA.

2) Turn on USB debugging on

3) Boot your device into bootloader mode

4) flash TWRP recovery v2.8.7 r5. http://xdaforums.com/devdb/project/?id=11051#downloads

5) Boot into TWRP recovery

6) Flash supersu zip v2.62-3. http://download.chainfire.eu/751/SuperSU/BETA-SuperSU-v2.62-3-20151211162651.zip

7) After succsesfull flashing wipe cache/dalvik cache . reboot system. If it asks to install Root. DO NOT INSTALL ROOT AT THIS STAGE.

8) wait till Boot finishes.

9) If you want to install Xposed Boot into TWRP recovery.

10) Flash Xposed installer xposed-v79-sdk23-arm.zip. http://xdaforums.com/showthread.php?t=3034811.

Thanks for contributors of TWRP, Supersu and Xposed.
[Moto G 2015 General] omaktl:
I am G-Root...ed

Thanks man!, being trying a lot with no succes... till now... Excelent Work :good:
[Moto G 2015 General] firdous95:
do we have twrp for moto g turbo?
[Moto G 2015 General] Kakaroth89:
The phone has to have the bootloader unlocked?

The whole thing will completely reset the device?
[Moto G 2015 General] soumyajit_nayak:
Will this work without flashing TWRP? Can I just boot TWRP using fastboot, then flash SuperSU 2.62-3 and reboot? In that way, after reboot it will be system recovery and as SuperSU 2.62-3 is a systemless root, there won't be any modification in /system. Thus, I can receive OTA updates in future directly.

Did anybody try this with XT1550?
[Moto G 2015 General] abhijeetc9762:
You don't have chance anyway after rooting. You have to have Flash the firmware again to receive OTA
[Moto G 2015 General] Tel864:
Yes, you can do it that way, I've done it several times. Like someone said though, it's simpler to just flash TWRP and be done with it rather than wait for OTA's that you probably can't flash anyway.
[Moto G 2015 General] MrTooPhone:
In an earlier post you indicated that you can simply do a full unroot with SuperSU and receive OTA updates. Did that only apply to 5.1.1 and not 6.0?
[Moto G 2015 General] pjc123:
Same question. Coming from a Nexus 4 phone, it was necessary to unlock the bootloader first. According to the instructions here, that is unnecessary?

EDIT (01-20-2016): Thanks for adding the missing unlock bootloader step to the instructions. I just ordered a Moto G yesterday.
[Moto G 2015 General] Tel864:
To root you will need an unlocked bootloader.
[Moto G 2015 General] vyaskd:
Any one?

Rooted xt1550 with supersu 2.62 and then deleted moto bloatware, now phone stuck on black screen after rebooting. Any help abt deleting bloatware?
[Moto G 2015 General] Alvarez709:
Seems fine..but

just done this and boot up looks normal but seems forever to boot up. It has not boot up yet, what is the estimated time to wait?
[Moto G 2015 General] MrTooPhone:
Does it matter if TWRP is configured as "Read Only" or not?
[Moto G 2015 General] Kakaroth89:
And this procedure will do a factory reset?

I mean all the procedure, not just unlocking the bootloader
[Moto G 2015 General] Tel864:
No, all your data and apps will still be there.
[Moto G 2015 General] MrTooPhone:
I lost all apps and data when I unlocked bootloader.. I did not unlock until after the 6.0 upgrade.
[Moto G 2015 General] abhijeetc9762:
Do no tick as read only.
[Moto G 2015 General] abhijeetc9762:
OP updated for bootloader unlocking procedure
[Moto G 2015 General] MrTooPhone:
[MENTION=978821]abhijeet[/MENTION]c Excellent instructions. One recommendation is to address the issue with the "read only" TWRP option. I am sometimes presented with this option during TWRP boot (not sure why this option is not presented every time since I never check "don't show again"). I am not sure if "read only" makes a difference or not. But I can confirm I was soft bricked after enabling read only and flashing 2.66. I did not wipe Dalvik/Cache either. I was successful with 2.62-3 but was not presented "read only" option either. Also, you may want to recommend a Nandroid back up prior to any attempt flashing root. Just a recommendation.
[Moto G 2015 General] OlReagan:
I notice under developer settings (tap Build Number a bunch of times in the "About Phone" section to access developer mode) it has the option "OEM unlocking - Allow bootloader to be unlocked" as an option. Does that make this process any easier or is it necessary? I bought my phone straight from motomaker.
[Moto G 2015 General] pjc123:
[MENTION=4244160]Quark^2[/MENTION]

Geez, if you are going to go through all that trouble, why don't you look into installing one of the 7.1.1 ROMs in order to stay current. I am still on 6.0 and the December 2015 security patch and that's my game plan, albeit I am waiting just a little bit for the Lineage ROM to stabilize since this is my main phone and it was just released. I am running it on my Nexus 4 backup phone and it is running great.
[Moto G 2015 General] Quark^2:
Yeah, good point... I just might do that. Let's see if one of the 7.1.1 roms is considered stable and fully functional for a dialy driver.
[Moto G 2015 General] Gravemind2015:
[MENTION=4244160]Quark^2[/MENTION] : The OTA mechanism has evolved significantly. When an OTA begins installing, it checks firmware integrity by computing a checksum of the block partitions. The updates install only if it matches the expected value.

Even after removing mods like xposed and/or, the system will be unlikely to retain it's integrity and hence render the OTA mechanism inoperative.

Check here for information on block-based OTAs.

BTW I referred system as not only /system partition but also boot and recovery partitions. 'A system of partitions that together decide the eligibility of installing updates', that is :D.

Broadcasted from Zeta Reticuli
[Moto G 2015 General] jaysanme:
hii guys my phone is xt1550 so this method wl work for me to root my phone?

Plse reply fast
[Moto G 2015 General] figrobster:
Hello

I'm Moto G xt1072 user from pretty long time. It worked fine but now it looks little bit overloaded so I tried do factory restart.

When I'm trying go "Settings->Backup and restore->factory restart" the button is disabled.

If I try to use recovery in "fastboot" mode phone starts as usual with no effect.

Bootloader is locked with code "0". I found the instruction how to unlock but... I cannot acces developer options to set "enable OEM unlock" or "usb debugging". When I press build number several times (7) nothing happens. Therefore I can't even root phone. I tried Kingo root but it didn't work.

I have read about FRP (Factory Reset Protection) issue but without root I can't disable FRP service.

Did anyone had similiar troubles? I got stuck and i don't see any other solutions. I will appreciate Your help :)

My phone: Motorola G 2nd 4G LTE XT1072

Build number: MPBS24.65-34-5

Bootloader: 48.22

Android 6.0
[Moto G 2015 General] acejavelin:
You are in the wrong area (G2 has its own forum), but either you probably have a Device Adminstrator restricting access to it... Look in Settings - Security.
[Moto G 2015 General] :
Hi so we flash xposed arm not arm64?
[Moto G 2015 General] acejavelin:
Osprey is 32 bit, so yes... arm64 won't work
[Moto G 2015 General] sieze.s:
Done, Works fine for me.

Model - XT1550 (India)

TWRP - twrp-osprey-2.8.7-r5.img

SuperSU - BETA-SuperSU-v2.62-3-20151211162651.zip
[Moto G 2015 General] Wani Aamir:
Can i root moto g turbo running marshmallow, as twrp is already out using same method
[Moto G 2015 General] theankitkulkarni:
Yes We Have it.. https://www.google.co.in/url?sa=t&r...CH-q6ME6Zt9xUb0wA&sig2=VATUtvRFn8pG2J8gxVf_1A

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

Yes Of Cource.. https://www.google.co.in/url?sa=t&r...CH-q6ME6Zt9xUb0wA&sig2=VATUtvRFn8pG2J8gxVf_1A
[Moto G 2015 General] Wani Aamir:
Thank you mate, what about xposed? Is it working?
[Moto G 2015 General] titaniumtux:
I confirm the trick works. Mind you, one thing to take note of, there is one requisite to this...storage cannot be unified (combining internal storage with sd card...marshmallow feature). You can enable the feature after the device is rooted, but while the feature is enabled, the flashable zip will not be accessible while booted in twrp.
[Moto G 2015 General] Spr33y:
I've been able to get MM installed and rooted perfectly, thanks OP! However, when I try to flash xposed, twrp simply reboots with no error message. Any thoughts? TIA
[Moto G 2015 General] abhijeetc9762:
Is TWRP is rebooting or whole phone reboots.

If your phone reboots simply install Xposed apk from Xposed repo. That's it
[Moto G 2015 General] Spr33y:
TWRP reboots. The xposed sdk barely even begins to flash and the phone reboots into TWRP. No obvious error message.

I'm wondering if this is related to me telling TWRP not to modify system partition but I've even tried to flash using an older TWRP version and making sure that system is mounted.
[Moto G 2015 General] abhijeetc9762:
I think you have to Flash TWRP again
[Moto G 2015 General] Spr33y:
I tried several versions of TWRP with no success but today I updated to twrp-osprey-2.8.7-r7 and it flashed beautifully. Not sure what issues were resolved with the newest update but it fixed my problem!
[Moto G 2015 General] mukul2259:
Rooted my phone with this method, Root checker says device is rooted.

But when I open any app, a message pops up saying root access denied. Checked the default prompt and allow access for such apps, still no luck. Any ideas? Was wondering to tinkle around with SeLinux mode.

Thanks!
[Moto G 2015 General] iwaskylester101:
Yes
[Moto G 2015 General] iwaskylester101:
After many failed attempts before, this actually works. Thanks dawg u a tru G
[Moto G 2015 General] loynaveen:
I followed the instructions exactly n it worked ! Indian variant XT1550 2GB
[Moto G 2015 General] firefoxjds:
Thankyou So Much

I have been trying to fiure out for weeks how to root the moto g 2015 with Marshmallow. I found support for pretty much every other version of Motorola, but not for Osprey, until now. I am so happy with the results from this.

Thank you again :)
[Moto G 2015 General] prasi.ram10:
u flashed xposed?
[Moto G 2015 General] cvigneshr:
Hello,

I know this is irrelevant to this topic...I want to know how to downgrade to lollipop from marshmallow (without rooting or installing custom recovery)...
[Moto G 2015 General] Nazeerchauhan:
Even I want to downgrade from Marshmallow
[Moto G 2015 General] Tel864:
Then maybe post in the right area.
[Moto G 2015 General] Nazeerchauhan:
Please can someone give me the Commands to root
[Moto G 2015 General] FireLord:
[bootloader]

How to re lock the boot loader again :o

update: Oops it is not possible .. Checked here.
[Moto G 2015 General] acejavelin:
Maybe you should read the first post in this thread, I bet the answer is there... Step-by-step even.
[Moto G 2015 General] prasi.ram10:
Someone installed xposed? what modules are working??
[Moto G 2015 General] Tel864:
There's a discussion on that in the Xposed thread also.
[Moto G 2015 General] pjc123:
Instructions worked perfectly. The only minor differences in my case were:

1) I used the current TWRP (version 2.8.7-r7).

2) In Settings > Developer Options it was necessary to enable "OEM unlocking - (Allow the bootloader to be unlocked)"

QUESTION: So what do I have to do to get OTA updates now?

With the Nexus 4 I had to:

1) Disable Xposed.

2) Then extract the stock recovery from the Google factory image and install it.

3) Then manually install the file version of the OTA update.

4) Then reinstall TWRP.

5) Then re-root.

6) Then re-enable Xposed.

Not looking forward to doing this so often now that Google issues monthly security updates, but I guess this is the price you pay.
[Moto G 2015 General] acejavelin:
Simple, Do not take OTA... Ever... Unless you flash a complete stock image first. This isn't a Nexus.
[Moto G 2015 General] pjc123:
Then how do I get security and Android updates?
[Moto G 2015 General] acejavelin:
You blew that with root and Xposed... Xposed poses 100 times the security risk of some obscure blip in Android that affects 1 in 10 million handsets that gets patched monthly (that what Nexus gets anyway, Motorola never said they would provide any security updates like Nexus devices).

Flash the stock, factory image, then you can take OTA's... If your /system folder has modified in any significant way, taking the OTA will fail. If you had been only rooted and done minor changes, doing a full unroot via SuperSU usually allows OTA to be taken, as long as you didn't go too crazy making changes, but Xposed does something that stops OTA from working. And of course stock recovery is needed.

Note that in Lollipop we discovered that manufacturers can have their OTA script determine if /system has *EVER* been mounted R/W, and just stop and abort the process. Motorola hasn't done this yet though, but keep in mind it could happen.
[Moto G 2015 General] pjc123:
Never mind. I guess I don't get the whole Motorola thing. I can't use a phone that never has a method to update it. That's crazy. Also I didn't install Xposed.
[Moto G 2015 General] acejavelin:
There are ways, but I was going by the purpose of this thread. Don't use Xposed... And if you root, don't flash TWRP, boot it instead to flash SuperSU.

BTW, going forward, all manufacturers are doing this... And really, it's not the OEMs, it's the core of Android becoming more secure. Switching to a different phone might help temporarily, but eventually all will adopt these more secure guidelines.

Updates and bug fixes happen periodically, Moto is actually pretty good at putting them out compared to other companies, but only Nexus devices get monthly updates, and Android source code will be patched monthly. How often manufacturers update, if they do at all, is up to them. TBH, These "security" updates effect such a miniscule percentage of users, unless you exhibit extremely dangerous behavior with your Android device or are that 1 in a billion user, they will have no impact on you.

Remember, OTA are for stock devices, pure stock, unmodified devices... If you have anything else it *might* work, but expect to do it manually.
[Moto G 2015 General] MrTooPhone:
I don't have a clear understanding of the difference between the original "root" and the "systemless root" now used with 6.0. My understanding is that with systemless root, the original /system is left alone and the parts of /system needed to root are recreated elsewhere (am I way off base?). Is it known how systemless root will impact OTAs?
[Moto G 2015 General] pjc123:
Alright, that sounds better. As long as I can download the stock recovery I think I will be good to go. I have not made any other mods...I just needed root access to the Linux command line, and living without Adaway was killing me with all the ads. I believe I saw where someone said the Moto factory image was on the Moto Developer website, so I could extract the recovery.
[Moto G 2015 General] acejavelin:
I don't know if it's there, but lost101 here maintains a thread with official factory images here.
[Moto G 2015 General] pjc123:
Yes, I had found that, but there is no 2GB marshmallow version ,although the recovery may be identical. I am going to post a comment there.
[Moto G 2015 General] acejavelin:
Systemless root is basically an experiment by Chainfire, it should not be completely trusted... It works by altering the boot image and not the system, the affect this will have on OTAs depends on what the update script checks for but if it overwrites /boot, just refreshing that piece is easier than touching /system. You can find more information on systemless root here and here.
[Moto G 2015 General] firefoxjds:
Xpsoed is Working Quite Well

Yes I did flash Xposed. I am enjoying it. Though I wish I could find more modules that might be useful. There are many and I am only using a few :)
[Moto G 2015 General] MrTooPhone:
Thanks for the explanation and links which I have seen but never carefully read until now. I was confusing rooting with some of the schemes the ad eliminators are using such as creating sym links (ln -s /data/hosts /system/etc/hosts) or bind mounts (mount -o bind /su/etc/hosts /system/etc/hosts).
[Moto G 2015 General] prasi.ram10:
Boot time

How long it took for the device to boot after flashing xposed

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

xposed-v79-sdk23-arm.zip. Is missing from the original thread. Updated to v80 now? Does that work
[Moto G 2015 General] MrTooPhone:
With all the mistakes being made resulting in screen lock on bootloader warning, a highly recommended optional step is to make a TWRP backup to the SD Card prior to flashing SuperSU
[Moto G 2015 General] sachin.gokhale:
Yes, I flashed V80 yesterday and it is working perfectly fine till now.

Booting time depends upon what already the phone system have, mine was just factory re-setted phone, so it was almost immediate, less than 5 minutes, I guess.
[Moto G 2015 General] Wawrzach:
THX! Its ok here - Moto G 1541 - 1G - Android 6.0 Osprey. It's OK BUT You must use SUPER SU v2.62.3!!!!!! When I tried whit newest SUPER SU v2.67 it where soft brik!!

So before flash SuperSU its better to make recovery image.

Thank You again! :)
[Moto G 2015 General] abhijeetc9762:
Its clearly stated that flash supersu v 2.62.3. Dont try another version
[Moto G 2015 General] Manu270891:
FolderMount and Power Toggles root buttons don't work. What can I do? The root works perfectly except in those two cases.

Thanks!
[Moto G 2015 General] Kakaroth89:
Worked everything on XT1541 2GB version :D

For xposed I used the v80, since it's the latest version, and worked well too
[Moto G 2015 General] Gravemind2015:
I've noticed that wiping internal storage makes this option appear. Along with this,all twrp customisations are reset.Perhaps twrp is saving its preferences to some kind of configuration file somewhere inside internal storage.

Broadcasted from Zeta Reticuli
[Moto G 2015 General] Quark^2:
How stable is this this root solution?

My Moto G 2015 will arrive this afternoon and I'm planning on unlocking the bootloader right away (save resetting later..)

I don't care about xposed anymore, just root for some apps (Titanium Backup, Greenify).

- Is it stable, do all root apps work?

- If I want to take some OTA in the future, can I just reflash stock /boot and /recovery?

- Can I backup with TWRP my current stock installation before installing TWRP?

- I know that I must use the specific SuperSU version (v2.62-3), but can I use an updated TWRP, like "twrp-osprey-3.0.0-r2.img"?

- I read that I must not install root in step 7. This means answering no to TWRP which asks to install root, right?
[Moto G 2015 General] acejavelin:
Word of advice... Don't unlock right away, it voids the warranty. I would recommend waiting a minimum of 7 days, preferably 30 to be safe, to verify there are no problems, but it's your device so so as you choose.

1) It's as stable as root gets in Marshmallow on the Moto G, so mostly solid. But remember this is systemless root, it is still in beta and Chainfire is very clear that is not 100% perfect.

2) In theory, yes, doing those things *should* allow you to take an OTA, but be aware that since lollipop install scripts can detect if /system has ever been mounted r/w, and although Moto hasn't done it yet, other manufacturers have had their install scripts error out if it's detected, whether root is installed or not, so do #3

3) yes, you can boot TWRP (not flash it) and do a full backup before touching anything except unlocking.

4) Yes, and the current systemless SuperSU should work as well

5) correct, TWRP installs an old version of TWRP the old fashioned way, directly to /system, which cannot co-exist with systemless root

All the root apps you mentioned should work with this root system but do your homework, some still have issues with Marshmallow though. Greenify isn't really needed in this device, 4-5 hr screen on time is common and a lot of people don't even bother rooting anymore, especially since most backup and restore functions of TiBu can be handled w/o root by other apps.
[Moto G 2015 General] MrTooPhone:
A TWRP customization file makes sense. Now does the configuration of system read only make a difference when flashing SuperSU?

---------- Post added at 16:57 ---------- Previous post was at 16:54 ----------

@Quark^2

This step can not be reiterated enough. It seems every time a new variant receives a MM update, there is a significant increase of those soft bricking their phone.
[Moto G 2015 General] Gravemind2015:
I am not sure but probably system is *untouched* as newer versions are systemless installs.Perhaps more info can be digged at supersu official thread.

I've never tried systemless ones,i used older regular versions in my mtk kitkat&jb and now use cm built in root manager in lp and mm[emoji39]

Broadcasted from Zeta Reticuli
[Moto G 2015 General] shajahanes:
How to make SElinux permissive?
[Moto G 2015 General] fer2503:
i have already stock 5.1.1 with twrp and root. how can i update to 6.0?
[Moto G 2015 General] Gravemind2015:
You need stock recovery to update.I can't say about root though.Alternatiely you can follow lost101's guide to flash stock marshmallow image through fastboot if it is available for your variant.

Broadcasted from Zeta Reticuli
[Moto G 2015 General] simonlietar:
Flashed xposed installer but don't find app.

Thanx a lot for the post. I rooted my moto g3 xt 1541 with marshmallow 6.0. Everything seems to work fine.

But have 2 questions more.:

1.Twrp keeps on giving the note that the phone doesn't seem to be rooted. Although, the phone is rooted according root checker. Should I root in Twrp too?

2. When I flash xposed installer (v79 sdk 23), I reboot, than it takes 15 minutes to boot while doing somthing with the 148 app's. Afterwards there is nothing to find of xposed installer.

Someone has a hint?
[Moto G 2015 General] Gravemind2015:
[MENTION=7312622]simonlietar[/MENTION] :For No.2, the xposed you flashed is the code that runs behind the scene(at boot). You need to install closed installer app apk and then you get the app in your app drawer. Just check under the framework section. If it has green text with active message, you are all set.

Here is the official thread-

http://xdaforums.com/showthread.php?t=3034811

You need this-XposedInstaller_3.0_alpha4.apk

Broadcasted from Zeta Reticuli
[Moto G 2015 General] breadland:
I have a question about rooting from the TWRP recovery too. Should I?
[Moto G 2015 General] simonlietar:
What do you mean?
[Moto G 2015 General] bobby0724:
No , it dont work

You need to use 2.62-3
[Moto G 2015 General] breadland:
Funnily enough I tried, and afterwards my phone got stuck in a bootloop :P

I was foolish enough not to have a backup ready so I had to start fresh.
[Moto G 2015 General] H84:
When in twrp i can backup än restore the rom, but then when i start the phoone and use a file manager and browse to twrp map, it says that there is no such file or directory avalible, how can i delete my backups ?

Skickat från min MotoG3 via Tapatalk
[Moto G 2015 General] Gravemind2015:
Go to the backup menu and check if internal storage or sdcard is selected.If sdard,in twrp file manager go to /ext_sdcard (i can't remember the correct word but its name means external sdcard)/TWRP/backups/******(Some code).The backups should be there. If it's on internal storage,go to /sdcard/TWRP/backups/****.

To delete the backups, go into the backup folder (where you see some .win files) and select the check icon-->delete>swipe to confirm.If your sdcard is merged into internal,then i am afraid you cannot view the files in android file managers.

Broadcasted from Zeta Reticuli
[Moto G 2015 General] H84:
I have my sd card as internal, but i can delete through pc ?

Skickat från min MotoG3 via Tapatalk
[Moto G 2015 General] Gravemind2015:
I haven't tested merged sdcard on a PC yet so i don't really know. But i tried merging sdcard and Android file manager apps only showed true internal storage as if no sdcard were present.I use sdcard as portable storage, BTW.

Broadcasted from Zeta Reticuli