yashsingh1/xdaforums huggingface dataset:
[Moto X General] KidJoe:
First.. this is the 2013 X section... the "Pure Edition" isn't a 2013 X... And its always been this way on the 2013 X, including the 2013 Developer Editions.

For the Developer Edition, Moto has really only done the following 1. Allowed bootloader unlocking by supplying code (without voiding the warranty), and 2. Posts Recovery Images on their web site to flash back to stock. They have not made any other claims.

So if you want to complain, lets not forget GPT.BIN/Motoboot.img getting in the way, and downgrading being unsafe, also not being "Developer Friendly" either... even on the "Developer Edition."

In any case, after rooting, you can flash stock recovery back on there. Its that simple. And now that people are using Moto Device Manager PC software to capture SBF files during the 5.1 upgrade, and Moto has posted the XT1053 5.1 Recovery Images on their web site, its relatively easy to get a stock recovery IMG file.
[Moto X General] yankees45us:
Yep, i didn't notice that. I meant the pure edition. Thanks for the heads up.
[Moto X General] KidJoe:
Cool... and the same still applies to the Pure Edition.. after you flash TWRP and root, you can re-flash stock recovery. Moto has the Pure Edition 5.1 recovery image on their web site -> https://motorola-global-portal.custhelp.com/app/standalone/bootloader/recovery-images Moto X (2nd Gen) Pure Edition: L-5.1-LPE23.32-21.3 TMO
[Moto X General] s5610:
Never worked for me )) Always had to install SuperSU by force, under TWRP environment.

I think OP instruction could be shrinked to 4 steps:

1) download and unzip three archives (fastboot files, TWRP, SuperSU)

2) enter fastboot

3) flash TWRP recovery

4) install SuperSU.
[Moto X General] KidJoe:
I've had mixed results in the past too.. sometimes it prompted other times it didn't. Normally I have the SuperSU zip file on my phone's /sdcard, and install it manually when I first boot TWRP.

I posted what works for most, and included optional instructions of what to do if TWRP doesn't install SuperSU. which should cover all.

And the added details for a newer person to follow... to help reduce/eliminate those basic questions...

It could really be shortened to just two steps...

1. flash twrp and boot too it.

2. install SuperSU

but then we'd see "how do I flash twrp?" and such.
[Moto X General] 4yush:
Help

I am planning to unlock my bootloader for rooting, but i wanted to ask some questions before.

1. Unlocking bootloader will delete all the data on the phone ?

If yes,

2. Then how to take backup as Titanium backup requires root ?
[Moto X General] A2Trip:
Unlocking your boot loader will in fact NOT wipe your data. Your cool, do it![emoji13]
[Moto X General] 4yush:
Thank you so much. But if I installed some other recovery will it affect my data?
[Moto X General] A2Trip:
No after you unlock your boot loader you can then install latest TWRP recovery through fastboot/flash recovery then drag recovery image into box, press enter n bam, recovery installed. Go down to recovery press volume up and you'll enter TWRP..for some reason it didn't install superSU after first reboot as it should so I used the latest .zip updated SuperSU and when I rebooted I was unlocked, rooted and ready to go [emoji4]
[Moto X General] 4yush:
Thank you yet again :)

Downloading the SDK. It's been like hours that it's being downloaded. Once downloaded will do it.
[Moto X General] pleasehelpfreeworld:
PLLLLS HElllplp

this might be off topic but im just looking for help everywhere if anyone can help pls rooted moto x worked fine but i started getting an playstore telling me to retry connection i was infromed a factory reset would work so i did tht and now mt phones wont get past checking connnection on startup Moto X 2nd Gen Pure Edition if theres anyway to skip startup or anything i didnt do much with rooted device so can i flash stock os and try again just need help pls
[Moto X General] Brian. 17xd:
Great!!!

Awesome man! Thank you!
[Moto X General] ermacwins:
Thanks your guide did the job where others were unclear
[Moto X General] yrubin07:
Im getting Mismatched partition size error

after flashing using mfastboot I get a error on the phone in pink it says "Mismatched partition size (recovery)" any idea what I should do?

I used twrp 2.8.6.0 and my bootloader is unlocked and I tried both with and without usb debugging being on
[Moto X General] rs32:
I have Dev edition moto x. When i enter the string on the Moto website it says my device is not eligible for unlock but i can request a code. I clicked agree on the disclaimer but i never get the blue box that says request unlock code to be emailed to me. I disabled adblock also. Any help is appreciated!
[Moto X General] hatchetman815:
Step 3: open a command prompt and change to the folder you downloaded your TWRP.IMG file."

What do you mean "change to the folder?" Where to download the twrp.img is not specified. I've tried placing it in the Android-SDK folder, and I've tried placing it in the system32 folder, and I get the same result:

<bootloader> Variable not supported!

target max-download-size: 768MB

error: cannot load 'twrp.img' : No error

More info about my situation- I have a moto X xt1055 with lollipop android 5.1. bootloader is unlocked and usb debugging is enabled
[Moto X General] bluepen61:
You need to use the filename of the image you downloaded. It would appear that you used "twrp.img" in your command instead of something like "twrp-2.8.7.0-ghost.img".

You might want to read/review the instructions in post #1 again.

Also I think mfastboot is different than fastboot that comes with the Android SDK. Android SDK is used to unlock the Moto-X.
[Moto X General] Pisces5:
need help

Hi All, I tried the same on Moto X 1055 but no luck can some one help?
[Moto X General] KidJoe:
No luck? that can mean any number of things. Can you be more specific??
[Moto X General] Pisces5:
Ok to be specific:

Things that work on my Moto x 1055

have successfully flashed twrp-2.8.7.0-ghost.img

Formatted and successfully loaded lollipop 5.1 via twrp using XT1055_USC_5.1_Deodexed.zip [http://xdaforums.com/devdb/project/dl/?id=14330]

Thing that is not working on My Moto x 1055

When i try to install the Supersu [UPDATE-SuperSU-v2.46.zip] patch from twrp there is no impact on the root status.

twrp also show me an option to root the device and install Supersu when i try that there is no inpact on root status.

I have also tried with towelroot [towelroot_v1.apk] there is no inpact on root status.

I have also tried with PwnMyMoto [PwnMyMoto-1.4.3-USCellular-IHateToolKits-1.apk] this thing dose not install at all as there is no certificate. i tricked it by self signing the apk and install, but the instalation failed.

I also tryed with KingRoot to root that failed at 30%.

i am out of options to root my Moto x 1055. please help.

PS: the stock version of lollipop works fine without any issues [Provided i don't install all updates from play store].
[Moto X General] KidJoe:
Well, the OP has said ->.... UPDATE: There is an issue with TWRP 2.8.7.0 (SEE THIS POST Thanks [MENTION=4336795]jodaboda[/MENTION] ). Please use TWRP 2.8.6.0 for now!.... for a while now. So have you tried 2.8.6.0?

Ok, that link doesn't work. Googling, I found this one -> http://xdaforums.com/devdb/project/dl/?id=14330 but that was the only hit, and it doesn't have info on what it is, who made it, etc. so I'm not sure what you flashed, but since it has DEODEXED in the name, it is not the 100% STOCK Rom, so yeah, I could see this process possibly failing. I'm curious though because most DEODEXED Roms I've flashed (albeit on other phones) were pre-rooted.

Towelroot only works on 4.4.3 or 4.4.2 and below. the vulnerability it exploited was patched in either 4.4.3 or 4.4.4. So it wont work on 5.1.

PwnMyMoto works on the ORIGINAL 4.2.2 rom only, and the vulnerability it exploited was patched with the 1St OTA (aka 4.2.2 w/camera update). So it wont work on 5.1

As for Kingroot, I wasn't aware that it properly worked on Motos.

that is another matter all together. And what ever is causing that is possibly causing your root issues.

There could be a bug in that rom you flashed. Try flashing the STOCK XT1055 SBF for your phone, and try the process again.
[Moto X General] crucialq:
just making sure before I start the process, it doesn't matter if I have a T1097 variant of the moto x right? it will work regardless of what variant I have?
[Moto X General] KidJoe:
T1097? As in XT1097 or 2014 X?

If you have a 2013 X, the OP will work as written. IF you have any other model, as long as you can Unlock the bootloader, You can use the same process, BUT the TWRP you need to use will be different.
[Moto X General] crucialq:
I do have the XT1097 moto x 2014, where is the twrp download for it? The OP only has the moto x 2013
[Moto X General] KidJoe:
THe OP only has the 2013 X TWRP because this is the 2013 X section. There is a 2014 X section.

Or you could visit TWRP's web page and look for a 2014 X version. https://twrp.me/Devices/
[Moto X General] danny.sunju:
Root after Stagefright OTA

Will the same method work after I installed the latest Stagefright OTA? I installed TWRP and xposed, but not able to update the Super SU binary. What am I doing wrong here?
[Moto X General] KidJoe:
define "stagefright ota" because I'm not aware of a specific stagefright only ota.

As for SUperSU, did you copy the ZIP to /SDCARD, Boot to TWRP, and select Install, then navigate and find the Super SU ZIP?
[Moto X General] danny.sunju:
---------- Post added at 01:47 PM ---------- Previous post was at 01:46 PM ----------

I meant the latest update with the system version - 222.27.5.ghost_row.Retail.en.US. This basically fixed the Stagefright software which was present earlier.

I did copy the SuperSu zip to the SDCARD and installed it from TWRP. Infact my xposed is installed perfectly, but the SuperSU is not able to update its binary.
[Moto X General] KidJoe:
This is the SuperSU I'm using -> https://download.chainfire.eu/696/SuperSU/UPDATE-SuperSU-v2.46.zip and there is no updates available for it on my phone. Which SuperSU are you using?

In my OP of this thread, there is a link to get the TWRP to install -> http://xdaforums.com/showthread.php?t=1538053 Reading it, appearntly there is a thread for issues installing/updating binaries -> http://xdaforums.com/apps/supersu/support-update-failures-t2907365 I would consider asking there.
[Moto X General] Feanux:
fix'd ^_-
[Moto X General] djibril13:
I have a European xt1052 02 de and I want to flash again the stock recovery. Where can I find the file?
[Moto X General] danny.sunju:
I fixed it. I installed the latest super su version..

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

I fixed it.. Installed the latest super su version..
[Moto X General] bluepen61:
In step #4 I get the following message:

(bootloader) Variable not supported!

target max-download-size: 768MB

error: cannot load "twrp-2.8.6.0-ghost.img": No error

I have an XT1055 (US Cellulart) unlocked.

Any suggestions?
[Moto X General] bluepen61:
Found my error. In cmd, I needed to be in the folder where the twrp.img file was. Nice work guys!
[Moto X General] Corsario_Negro:
Followed every instruction to the letter and got my XT1058 rooted in a few minutes. Had to apply the Supersu ZIP though, cause TWRP did not ask to root. (it might have to do with the fact that my Google account restore had already installed the app).

If someone else finds himself in that situation, use the 'Mount' option in TWRP to drag the ZIP file from your PC to phone storage instead of rebooting to system, it'll save you time.
[Moto X General] Raeglatem:
Have a Dev edition that has had its bootloader unlocked since 4.x days. Has 5.1 and trying to finally root. TWRP installs the SuperSu.zip manually without issue but when I reboot and check for root all apps claim its not rooted.
[Moto X General] yrubin07:
getting Mismatched partition size (recovery) error when flashing

it says that in pink any idea what Im doing wrong?

Im using the commands given and im in the folder with fastboot and the TWRP file I dont think Im using a special fastboot but couldnt find one for Mac so that might be issue also im a 2014 moto x so using the victara TWRP any idea where I can find the right fastboot?

downloaded a modded fastboot for Darwin and it still gives me that error?
[Moto X General] KidJoe:
which version of TWRP and SuperSU are you flashing?
[Moto X General] Raeglatem:
Turns out it was the wrong version of SuperSU. One of the guides online was linking to an ancient version. Navigated to chainfire and grabbed the latest build and it worked.
[Moto X General] KidJoe:
This is the source for the 2014 Moto X -> https://dl.twrp.me/victara/ try different versions.

I've not used a MAC, so I can't help with any desktop side issues.
[Moto X General] KidJoe:
Links in the OP (which have been there for as long as the post is up) has a direct link to the source.. so you must have been using someone else's guide ;)
[Moto X General] yrubin07:
I figured it out had to use "fastboot boot twrp.img"
[Moto X General] KidJoe:
That won't flash twrp. And I'm surprised that works, because I've read it didn't on the 2013 X, I mean I know you have the 2014, but still. Cool either way.
[Moto X General] yrubin07:
Yea tbh I'm new to the android rooting scene so was a worried messing around too much but it worked out.

Thanks for this post btw ;)
[Moto X General] a1exus:
haha, I still got my 2013 Moto X with Android KitKat 4.4.4 (RockMyMoto, SlapMyMoto, TWRP, Safestrap)... I barely use to use it for hotspot feature and now I got latest Nexus 5X & 6P and I already unlocked bootloader) (I don't really need phone anymore, I even considering to list it on eBay).

Is there an easy way for me to get to Android 5.1 w/ root somehow?)
[Moto X General] KidJoe:
5.1 with root for which device? you 2013 X?

You need to be able to unlock the bootloader. Because you mention SafeStrap, I'm guessing you have either ATT, Verizon (non-Dev), or Republic Wireless which means you can't get the code from Moto to do so.

Your only option would be if your 2013 X "host os" is 4.4.2 or lower, flash it back to stock 4.4.2, do NOT take any OTA updates, then use Sunshine to unlock the bootloader. After you do that, you can take the OTA updates, when at 5.1 follow the OP of this thread.
[Moto X General] a1exus:
I'm on 2013 Moto X XT1060 (Verizon/NON-DEV) with RockMyMoto, SlapMyMoto, TWRP, Safestrap... I already obtained root/write protection bypass, phone is running Android 4.2.2 w/ leanKernel (build JDQ39). Looks like Sprint is getting Android 5.1 Find and update the software version on your Moto X already, I wonder if others will follow as well (specifically Verizon).
[Moto X General] KidJoe:
Verizon has had the 5.1 update for the 2013 Moto X available for some time now.

As you most likely know, RockMyMoto/SlapMyMoto/MotoWpNoMo are not permanent. If you flash a newer rom, you will lose root and write protection.

Because you still have 4.2.2, take a look at Sunshine to unlock the bootloader,. Once unlocked, it will stay unlocked, even if you flash the 5.1 update. And once unlocked you can root by using the process in the first post of this thread.

Keep in mind however, if you have ever flashed 4.4.4 or above on your phone (as the host OS, not in a safestrap slot), Sunshine wont work.

There is more on sunshine at -> http://xdaforums.com/moto-x/general/request-help-exploit-moto-x-bl-t2828471 and http://xdaforums.com/showthread.php?t=2792487
[Moto X General] sisterchick:
UPDATE: Finally got it going. Had to reflash stock 5.1 recovery then was able to install TWRP and root successfully.

HELP! I was having trouble with my xt1053 Moto X 2013 freezing and hard crashing, so I did a full wipe, installed Stock 5.1 and took the OTA stagefright update again. I've been trying to put TWRP back and have been unsuccessful. I'm using mfastboot and have tried twrp version 2.6.3.1 and 2.8.6.0. All appears to go fine in mfastboot, but when I reboot into the bootloader and then try to go to recovery I get nothing. I cannot boot into TWRP. I get a blank screen. My only choice is to power off and reboot into the system. I would appreciate some help!
[Moto X General] s0619212:
i get the same error 'Failure [INSTALL_PARSE_FAILED_NO_CERTIFICATES]', i have Moto X first gen with 5.1. Did this work for anyone at all?
[Moto X General] pickofdestiny89:
Just followed your tutorial to root my Moto X XT1058 with 5.1 and it worked perfectly! Great instructions that are easy to follow. Thanks a lot!
[Moto X General] mattstermh:
I'm having great difficulty getting my device unlocked. I went to the motorola site, downloaded Android studio and the motorola tools, but I don't see the connection between those and the cmd prompt.

Either way, I'm sure there is some connection, but that is not the issue. Where exactly am I navigating to so I can type in $ fastboot ... etc.? It keeps saying it is not a recognized command.
[Moto X General] KidJoe:
If you don't have the Android SDK/ADB and Platform Tools setup, and Moto's fastboot in the right place, please see -> http://mark.cdmaforums.com/ADB.htm

Once installed, you just pop to a regular command prompt to run the fast boot commands.
[Moto X General] mattstermh:
I did that, and I got the code, but when I paste it into Motorola's site it says my device cannot be unlocked... Really frustrated
[Moto X General] KidJoe:
Now that is a different story. If you can't unlock your boot loader via moto's site, your pretty much limited, unless Sunshine works for your device.

And your tag says XT1030, that is a Droid Mini. If that is the phone you are trying to unlock, you might want to check that section if you haven't already. Maybe they will have other suggestions. (also keep in mind the XT1030 uses a different recovery than the XT1060/1053/1056/1058, etc).
[Moto X General] mattstermh:
I was sending the post from my Droid Mini which I am using until I get my moto x unlocked.
[Moto X General] KidJoe:
Fine, but Droid Mini implies you have Verizon as your carrier, which in turn means your 2013 X is likely an XT1060 Verizon unit. If so, you can't unlock the bootloader via Moto's web site. And you are Stuck right there.

IF you do have a non-Developer Edition Verizon XT1060, then you will not be able to unlock its bootloader via Moto's web site. Your only hope is IF your phone was never upgraded past 4.4.2 (i.e. you never had 4.4.4 or 5.1 upgrades on it), then use Sunshine to unlock the bootloader.

But If you have flashed 4.4.4 or 5.1 on your Verizon XT1060, then you can't use sunshine and there is no other way to unlock the bootloader, and therefore the instructions in this thread will not work for you.
[Moto X General] mattstermh:
What if I buy an already unlocked verizon developer edition? Then I can root it and do whatever I want, right?
[Moto X General] jtquen:
Yes
[Moto X General] KidJoe:
Having verizon, your options are... Buy an XT1060 Developer Edition (its bootloader can be unlocked via Moto's site), Buy an XT1060 that has NEVER been upgraded to 4.4.4 or 5.1 (as you can use sunshine to work), or buy an XT1060 that someone has already either used Sunshine or the China Middle Man/Web site to unlock the bootloader (Note: the China Middle Man/Web site options are no longer available).

If you unlock the bootloader, you can root (per the instructions in the OP of this thread) and flash 3rd party roms.

Keep in mind, the XT1060 is now two years old and will likely not receive any more updates beyond 5.1. I mention the age due to battery. Rechargable batteries in cell phones wont last as long as they get older. So even if you find an XT1060 that is either bootloader unlocked, or boot loader unlockable, the battery might not hold as much of a charge as when it was new,

Oh, if you are going to try and buy another XT1060, please be advised that some listings will say "unlocked" referring to SIM Unlocked, which as you probably know is NOT the same as bootloader unlocked. ALL Verizon XT1060's are SIM unlocked due to FCC's 700mhz C Block rules.
[Moto X General] gimpy1:
Verizon's Motorola Droid Turbo xt1254 can also be boot loader unlocked via Sunshine. I unlocked mine this last week. It came out in October/November last year (2014), so it is a tad newer than the one you are talking about. It is unlocked, but I have not rooted it, yet.
[Moto X General] mattstermh:
How do I know which version I have?
[Moto X General] gimpy1:
Go into your settings, scroll all of the way to the bottom to "about phone". Open it up. Model number will be droid turbo, hardware SKU will be, xt1254, and android version will be 5.1. (This is what is on mine).
[Moto X General] mattstermh:
I just got the unlock code. I unlocked the bootloader, installed the root and now am setting up my phone for the first time. Any tips or things I should do on my phone? Pretty new to rooting - thanks

Also: Does a software update hurt the phone now? I'm already on 5.1 but just curious

I would also like to know if using this root method (which I have successfully done) allows for the double chop to activate flashlight?
[Moto X General] edconocerte:
Great! It works like a charm ;)
[Moto X General] zilexa:
What is the benefit of unlocking the bootloader before rooting?

Is this the only benefit: if you ever loose root, you can easily root again?

I just want to use XPosed to get back the features Motorola disabled with their 5.x update (it sucks):

- mute and/or set to vibrate with the volume buttons, the phone is useless to me without this

- shut down menu

- disable white popups so that I can read notification previews again (if you swipe away the white popup, all notifications are gone)

- enable the glow screen when my hand is nearby (the killer feature of Motorola, removed by Motorola)

I am sure there are more that I cannot think of now. Besides restoring features I also want to be able to disable icons in the notification bar like NFC and Bluetooth.

Do I really need to unlock the bootloader first or can I just root without unlocking?
[Moto X General] edconocerte:
You need to unlock bootloader first.
[Moto X General] zilexa:
[SOLVED] Impossible to install TWRP!

I have tried everything, but installing TWRP fails :(

I have a Moto X 2013 XT1052 (Europe), didn't mess with anything before.

I first unlocked the bootloader via the Motorola website. This went smooth and easily. When I boot into bootloader and I clearly see the device is unlocked (status 3).

Next step was to install recovery (TWRP). I tried TWRP 2.8.7.0 first, using fastboot:

fastboot flash recovery twrp-2.8.6.0-ghost.img
(bootloader) Variable not supported!
target reported max download size of 805306368 bytes
sending 'recovery' (8498 KB)...
OKAY [ 0.776s]
writing 'recovery'...
OKAY [ 0.928s]
finished. total time: 1.709s

Now I did a "fastboot reboot bootloader" and got into the bootloader again, selected "recovery": BLACK SCREEN

So I went back into the bootloader, this time I tried to erase recovery:

C:\adbfb>fastboot erase recovery
erasing 'recovery'...
(bootloader) Permission denied
FAILED (remote failure)
finished. total time: 0.100s

I also tried using mfastboot:

C:\adbfb>mfastboot erase recovery
erasing 'recovery'...
(bootloader) Permission denied
FAILED (remote failure)
finished. total time: 0.100s

So I just tried to install TWRP 2.8.6.0:

C:\adbfb>mfastboot flash recovery twrp-2.8.6.0-ghost.img
(bootloader) Variable not supported!
target max-download-size: 768MB
sending 'recovery' (9488 KB)...
OKAY [ 0.841s]
writing 'recovery'...
OKAY [ 0.947s]
finished. total time: 1.792s

Now when I select recovery in bootloader, I end up with an Adroid robot laying down with his belly opened up and the text "NO COMMAND".

I have unlocked devices before and installing TWRP was the easiest step that never failed for me. What is going wrong here? I am also a bit worried about the "variable not supported" messages.. never seen those before.

EDIT: SOLVED!

For some strange misterious reason it suddenly worked. Steps I took:

I simply went back into bootloader, flashed 2.8.6.0 again via mfastboot and this time unplugged the device after it was finished. Now I used the VOLUME DOWN button to scroll to "recovery" and used VOLUME UP to select, normally I used the POWER button to select.