yashsingh1/xdaforums huggingface dataset:
[Moto X General] LuthfiKun:
I have XT1058 AT&T and already unlocked with SunShine (4.4.2; 30.B4)

But i have a problem when installing Custom Recovery (TWRP), i manually install TWRP with fastboot command, but it's say "<bootloader> Variable not supported". the process says it's done, but when i go to recovery there is nothing than a red triangle icon.

How i can install TWRP and root my phohe? Thx
[Moto X General] KidJoe:
after doing mfastboot flash recovery twrp.img are you immediately doing a mfastboot reboot-bootloader before trying to go into recovery? that reboot bootloader after flashing recovery, but before doing anything else, is often needed, or recovery "doesn't stick"

see also -> http://xdaforums.com/moto-x/moto-x-qa/step-step-instructions-unlocking-t2649738 (and the last post of that thread for links to the most up to date TWRP and SuperSU)
[Moto X General] NexusS4gFreak:
Hi i just got this phone otday and wanna know how to root it, The front page said i wouldnt be able to but i hope this isnt true, Model XT1058 Android 4.4.4 and locked bootloader. If possible i wanna unlock the bootloader and root
[Moto X General] :
On a locked bootloader, 4.4.4 can't be rooted.

If you can unlock the bootloader, then yes, you can root. ?

Which carrier version is it? And Unlocking does void the warranty of its not a developer edition.
[Moto X General] NexusS4gFreak:
ATT and i dont care about warranties i just need a unlocked bootloader and rooted phone, it was so easy on my 2nd gen moto g.....

---------- Post added at 08:49 PM ---------- Previous post was at 08:49 PM ----------

How do i unlock it??
[Moto X General] :
Unfortunately on an AT&T model, you can't unlock it. Not at this present time.

If they get an app called "sunshine" working on 4.4.4 in the future, then maybe you can, but not as of today.

So there's no way for you to Root at the moment I'm afraid. [emoji17]
[Moto X General] BrownDog99:
Damn, also got moto x. I hope it comes out soon.
[Moto X General] rohitdna:
Questions that confuses me.

Hi,

Read tutorial for unlocking bootloader of Moto X, and thank you for making this wonderful tutorial.

Tonight thinking about rooting my moto x, so before going to root, here are some questions that confuses me, if you help me find the right answer, it will be really helpfull.

* I love my moto x, the active notification and touchless control *

Questions :

1. Is there anyway to root without unlocking the bootloader.?

2. If i unlock the bootloader and root my phone, would i still be able to update my phone over OTA(if motorola pushes it)

3. How to take backup of my current stock ROM, before rooting, so that if anything goes wrong, i should be able to revert back.

4. What are the possibilities of unrooting the phone and re-locking the bootloader.?

Thankx again.
[Moto X General] KidJoe:
As stated, once 4.4.4 is on your device, NO. see Post #70 for more break down.

Yes, as long as you don't vary to far from stock, and have stock recovery back on your phone. You need stock recovery on your phone, or the OTA will cause a bootloop, and there is a pre-flash validation check done by the OTA to make sure your phone, its apps and parts are on the "correct versions" before it installs. For more see -> http://mark.cdmaforums.com/MotoX-OTA.html

There isn't much that can go wrong when rooting with an unlock bootloader. Your best best to revert back is to visit one of the sites that hosts SBF files (see link in my signature), download the version currently on your phone, and flash it to return to stock.

You can unroot by flashing back to the stock SBF.

As for re-locking the bootloader, there are 3 states for the bootloader on the Moto X... still factory bootloader = LOCKED Status 0, after using the code and unlocking bootloader = Unlocked Status 3, or finally after doing an OEM RELOCK command = Locked Status 2 (status 2 is also known as "RElocked"). We don't have a way to toggle back to "LOCKED Status 0" so toggling back to "locked status 2" doesn't really make much difference.
[Moto X General] rohitdna:
Thanks a lot man...!! going ahead with the rooting right now.

help me if i face any problems.

Thanks again. :)
[Moto X General] KidJoe:
After you unlock your bootloader, to root.. see -> http://xdaforums.com/moto-x/moto-x-qa/step-step-instructions-unlocking-t2649738/post54796193 and that thread
[Moto X General] rohitdna:
Unlocked bootloader(which voided my warranty:D), Done rooting, flashed Xposed module.

My Phone is now a super-phone *fingerscrossed*

but, now after installing xposed, i downloaded Fonter, to change the fonts of my phone, but due to some unknown reasons, the fonter is not working, its opening and loading all the name of the fonts, but sadly, not loading the previews with it and when m downoading the fonts, nothin actually happening. [Help me]

I also tried the root font installer, its loading the previews, but after installing and rebooting, the fonts still remains the same. [Help again]
[Moto X General] :
App issues most likely. But you can ask here,

http://xdaforums.com/showthread.php?t=3032022
[Moto X General] rohitdna:
Oh sure will do, sorry for posting in wrong thread.!
[Moto X General] :
No worries... Just harder to find help here.

Even start your own thread in Q&A if the thread I linked doesn't get you help. ?
[Moto X General] lynxznet:
Post needs to be updated... There is full root for VZW and AT&T variants on 4.4.4 now.
[Moto X General] berdi4:
Link?

Enviado desde mi XT1058 mediante Tapatalk
[Moto X General] KidJoe:
The OP was edited yesterday morning (eastern time) and includes a link to the thread. See under the heading "Locked bootloaders on Android 4.4.4 "
[Moto X General] hawkdown77:
I have root and bootloader unlocked. I have Android 4.4.2. If i update do 5.1 can i root again??
[Moto X General] :
I'm not up on the current Moto X availabilities.... My wife won't let me touch it now..... But you will be able to Root.... As long as there's a 5.1 compatible custom recovery and su binaries. Rooting will be exactly the same as on 4.4.2....but will need compatible recovery and super user.

This thread will be updated when that's all in place. Not sure if it's all a go yet. ;)
[Moto X General] N00dle:
OK possible dumb question. I recently picked up a Moto X Dev Edition it has 4.4.4 and when I boot to recovery it says Locked, I'm assuming the bootloader.

So my question is when this thread mentions 4.4 for warnings and instructions does that include 4.4.4

EDIT: Never mind I just saw a few posts before me.
[Moto X General] N00dle:
OK wait now I'm confused again. Correct me if I'm wrong but the dev edition can have the bootloader unlocked so even on 4.4.4 it can be rooted by the unlocked any version method in the OP?
[Moto X General] :
That's correct. :)

You need the appropriate recovery version for your Android version. That's all.
[Moto X General] N00dle:
Well damn. Got my unlock code from Motorola and it keeps telling me it's incorrect.

I have a September 2014 build. Now I have to wait for them to get back to me again
[Moto X General] KidJoe:
There was a thread about this in Moto's forums... not sure if this is the most recent -> https://forums.motorola.com/posts/35e4d3be5c (they seemed to close the thread and open a new one once in a while)
[Moto X General] N00dle:
Yeah that's the thread I've been going through. I have a new email back to Motorola and hopefully will have a solution soon.
[Moto X General] nicolaspy:
I am on a Mac.

I am trying to root my Bootloader Unlocked AT&T XT058 on 5.1 [LPA23.12-21.1] (just recently flashed the SBF manually using terminal with no problems on my Mac)

I am following the instructions here

I keep getting the following message: error: cannot load 'twrp-2.8.7.0-ghost.img': No such file or directory when I am trying to flash the recovery. However, the recovery image is in the same directory as my adb, fastboot and mfastboot are.

Is there something different I need to be doing when attempting to root Lollipop that I've just missed in the forums? I see a thread explicitly for my device and build, that involves python and a bunch of other steps, but it's for locked bootloaders, so I thought I had the easy route?

Thanks for the help!
[Moto X General] KidJoe:
You mention you have an ATT XT1058. How did you unlock your bootloader? (sunshine before upgrading I hope) When the phone is in FastbootAP screen, do you see Unlocked Status 3? or Locked Status 0. (if you see status 0, your bootloader is locked)

Next, I'm not Mac user, so I can't be of too much help. In windows, fastboot is a command line tool, and if setup properly is in the path so it can run from any folder/directory. So if you had windows, I'd say ensure you are at a command prompt in the same folder where the recovery IMG file resides.. OR specifiy the path to the IMG file you are flashing.
[Moto X General] nicolaspy:
Thanks KidJoe for the reply.

1. I unlocked using China Middle Man

2. I do see Unlocked Status 3

I feel like I have the file path setup properly, and I enabled fastboot so that could run it from any folder/directory. I had just manually flashed the SBF step by step yesterday from the correct folder/directory so I'm super confused as to why it's not working today.
[Moto X General] KidJoe:
Glad to hear you used the Middle Man and that you are Status 32.. Too many confuse SIM unlocking/Carrier Unlocking with bootloader unlocking, and I wasn't sure your situation by how you wrote you post. Glad you cleared that up.

Since you manually flashed the SBF yesterday... is the TWRP IMG file in the same folder as the SBF you flashed? Can you put it there, and follow the same steps you used to manually flash yesterday?
[Moto X General] nicolaspy:
I ended up putting the TWRP IMG file on the desktop and trying it from there, and for some reason it worked. Was able to boot into TWRP and flash SuperSU. Not sure if that's what fixed it or if it was something else. Thank you for your help KidJoe, your posts urging people not to downgrade and to wait for the sbf is what saved my ass. (I had flashed a Brazil Soak and got off the correct upgrade path) All is back to normal now. Thank you!
[Moto X General] nicolaspy:
I spoke to soon. While I have TWRP working (I can boot into it) and I have SUPERSU installed as well, Root Checker is showing that I am not rooted :confused:

When I try to open SUPERSU it's telling me the same thing, that no binary is installed. I've tried booting into recovery again and reflashing the SUPERSU Zip, but when I reboot I get the same result. I just haven't encountered this ever before?
[Moto X General] Abraheem97:
Hello.

I wanted to ask that if my Motorola Moto X XT1060 Verizon variant (running Android v4.2.2 Jellybean) can be rooted or not, as I am totally new to XDA. I want to be able to install CM 12.1 , as I've lost all hope for the release of Lollipop on XT1060 VZW. If someone could link me to a possible guide for rooting my Moto X I'll be really grateful.
[Moto X General] KidJoe:
First off.. to flash a custom rom, rooting is not enough. You need to unlock its bootloader in order to flash anything but stock Moto rom for your model/carrier.

The first post of this thread, explains what can be done, and Post #70 has some additional info, including bootloader unlocking info.

IF you still have 4.2.2 on your phone, I would consider upgrading to 4.4, or 4.4.2 and use Sunshine to unlock your bootloader. Then you can root any stock rom, or flash a custom one. (see Post #70 for more details)
[Moto X General] nicolaspy:
For anyone who might make my mistake: I had flashed SuperSU 1.94 instead of 2.46. After a factory reset and flashing the correct zip file, I was okay.
[Moto X General] fopoku2k2:
I'm using Verizon 1st generation Moto X with unlocked bootloader and I just updated to 5.1. I have never been rooted. Anyone knows how I can get root now?
[Moto X General] KidJoe:
first post of this thread tells you how to root with an unlocked bootloader (any android version). Give it a read as it does tell you exactly what to do
[Moto X General] fopoku2k2:
I hope I don't have to downgrade?
[Moto X General] sam008:
Folks

I have completed unlocking the bootloader on my dev verizon phone running 4.2.2. Now, is it best to first upgrade to 5.1, then root or simply follow instructions on this page first?

http://xdaforums.com/moto-x/moto-x-qa/step-step-instructions-unlocking-t2649738

Thanks
[Moto X General] KidJoe:
If your bootloader is already unlocked NO you do not downgrade.

The OP explains if your bootloader is unlocked you can just flash TWRP, and install SuperSU while in TWRP.
[Moto X General] KidJoe:
If your bootloader is already unlocked, just grab the 5.1 SBF and flash it, then if you want to root, flash TWRP and install SuperSU while booted in TWRP to root.

Oh, I would also consider wiping the device if you've set it up and used it after unlocking the bootloader.
[Moto X General] jjl5590:
I'm thinking about buying an XT1052 on lollipop, would it be possible to unlock the bootloader and root, so i can put on Xposed and GravityBox?

Thanks
[Moto X General] KidJoe:
Usually the XT1052 can have its bootloader unlocked for free via Moto's web site.

Once the bootloader is unlocked, yes you can root, install Xposed and Gravity Box... HOWEVER IF you put Android 5.x, you'll need a newer Xposed version.
[Moto X General] jjl5590:
Thanks for the reply :) I was under the impression that only the Dev editions can be unlocked via the Motorola site?
[Moto X General] KidJoe:
No. Any Moto X with unlockable bootloader can. For example, XT1052, Non-USA XT1058, XT1053, and more.

See -> http://xdaforums.com/moto-x/general/one-stop-shop-how-root-moto-x-confusion-t2826159/post54671918
[Moto X General] jjl5590:
I have the option to either go for an XT1052 or an XT1060. I'm in the UK so it would make more sense to go for the European version rather than Verizon, correct? Would I stand more of a chance to unlock the bootloader with the XT1052?

Thanks again
[Moto X General] :
I can't speak for the UK version... But I think at this time, you have zero chance of unlocking a Verizon X. But... Be sure the devices radio bands suit your needs. And that you can Sim unlock either one you choose, if it's not for your carrier. :good:
[Moto X General] dmosley:
4.2.2

I have a verizon moto x xt 1060 with bootloader 4.2.2. It was unlocked using sunshine. On the Bootloader screen it says it is 30.71.

I am having issues, always have, with the boot logo and can't seem to find a way to flash an original 4.2.2 boot logo (everything i find is 4.4+). Is there a way for me to update my bootloader to an unlocked 4.4+ and maintain root and my ability to use TWRP. I am currently running CM12.1.

Thanks!
[Moto X General] :
Once your bootloader is unlocked, it stays unlocked.... Unless you manually lock it again, which would be pointless.

So as far as rooting and TWRP.. As long as there's a TWRP version for the android version... You'll be good. Check the development sections on that.

I can't personally speak for lollipop or the upcoming Marshmallow... Cause I'm out of the loop on current moto news... Mine was smashed and has been retired. :(
[Moto X General] dmosley:
Thanks, Darth. So can I update the 4.2.2 baseband to 4.4.2 or 4.4.4 using kryptonite's baseband/kernel flasherwithout any issues?
[Moto X General] :
Well, when I had the X... I only used stock, rooted. Bit I think you can flash it, while your bootloader is 4.2.2

At worst, you could flash stock 4.4.2, and flash the rom.

But I'd holdout for a more experienced opinion than mine.

If you do a nandroid backup, then try flashing it... You can always restore if there's issues. :good:
[Moto X General] videotape74:
I am currently using a Moto X 2014 (XT1097) and am on Android 5.1

I successfully unlocked the bootloader now I just need to know if root is possible. I cannot find a guide/help anywhere. Any help would be greatly appreciated. Thank you!!!
[Moto X General] mschumacher69:
Once the bootloader is unlocked, the rooting process is easy.

All u have to do is download the latest official twrp, flash it with fastboot, reboot directly into recovery after u flash it, then from twrp, reboot system, it would prompt u to flash supersu, swipe to flash it and you have root!
[Moto X General] videotape74:
oh ok, I was unaware that it was possible to root after upgrading to Lollipop 5.1. Thank you very much for the info!
[Moto X General] Goutham_SRIRAM:
I need a method that does not involve installing a custom recovery, so does this work on Moto X ?

http://xdaforums.com/moto-x-2014/general/root-root-moto-x-2014-android-5-0-t2941388
[Moto X General] mschumacher69:
Yes and if it's not available for your android version/variant combination, you can always request it by submitting files from your factory image in the CF-Auto-Root xda thread.
[Moto X General] areyouanand:
After unlocking the bootloader successfully . Enabled usb debugging. And when i flashed twrp 2.8.7 it showed susessfull but unable to boot into recovery . Im running on 5.1 . Is there any other way to root or flash twtp?
[Moto X General] mschumacher69:
After flashing custom recovery, you need to reboot directly into recovery for it to "stick".
[Moto X General] areyouanand:
How?

Tried pressing recovery option on bootloader but it shows nothing but black screen
[Moto X General] mschumacher69:
fastboot reboot recovery
[Moto X General] areyouanand:
Tried but it shows some veried options in cmnd promt.

edit: My bad; was pressing power button to select recovery which led to reboot phone, now solved.
[Moto X General] KidJoe:
Consider following the steps to root 5.1 at -> http://xdaforums.com/moto-x/general/how-to-how-to-root-5-1-unlocked-t3140217
[Moto X General] pickofdestiny89:
Hey guys I'm looking to root my XT1058 with Android 5.1. I understand that most methods require an unlocked bootloader and I keep seeing that you should get the unlock code from the Motorola website. My phone is from a Canadian provider though and on their website it says that they no longer give the codes for these.

Is there another reliable method?

Thanks!
[Moto X General] mario24601:
Been looking for upgrade to my aging XT1053. Just received the nexus 5x, its a OK phone but still too big and slippery.

In order to get lil more use of my 2013 moto X what cyanogenmod do you all recommend ? I'm not biggest fan of lolipop since I'd like to keep ability to use active display, wave to wake.

Any advice you guys can give would be great. Thanks!
[Moto X General] mschumacher69:
Have u tried actually getting the code from the moto website? You should be able to...
[Moto X General] pickofdestiny89:
No because when I was browsing the website on my phone it showed a page with a list of phones and when I clicked on mine the site wouldn't even work. This was a link I found on this forum though. i just tried on the computer through google and seems to work. I'll submit my phone code later and see if that works.

Btw what is the best way to do a backup without having root already? I used Holo backup for Windows yesterday and it created a file, but I'm not sure if that works properly and what exactly is included in there.

Thanks!
[Moto X General] mschumacher69:
It will work.

I usually use Helium to backup my apps.
[Moto X General] huzaifaaleem:
Is the factor of unlock-ability of a phone in nay way dependent on the Android version? for instance I have a Moto X that is on lollipop and motorola website says that its bootloader is not unlockable. could this be because of the android 5.1?
[Moto X General] mschumacher69:
No
[Moto X General] mario24601:
So is there way to root when moto site says it's unlockable?
[Moto X General] sanganidarshan22:
Yes. After you unlock your bootloader go ahead and install custom recovery like TWRP, Clockworkmod, philz recovery and there are couple more. After installing custom recovery just flash the designated SuperSU zip file according to your Android version. Just look up on Google for each and everything you will be able to figure it out. If you can't than reply back to his thread and probably me or someone else will help you out. There is also a whole video on YouTube by the channel called rootjunky. You can head over there and look at the whole process of unlocking your bootloader and installing custom recovery.
[Moto X General] mario24601:
Finally this worked, I was able to unlock now trying to install CM13, I try to copy the zip files via adb using this sting:

adb cm-12.1-20160218-NIGHTLY-ghost.zip /sdcard/

once I hit enter I see bunch of commands beginning with "Android Debug Bridge version 1.0.31" but the zip file does not copy over to device. I have USB debugging on...not sure what im doing wrong.

Is moving CM zip only done via adb, not possible to move files using windows explorer? Or download directly to phone?

Any advice?
[Moto X General] mschumacher69:
You can mount storage through custom recovery and copy paste from windows.
[Moto X General] mario24601:
So once I mount in recovery then just open win explorer and copy zip files to device by drag and drop?

Or what about just downloading directly from website to device? Would this work or they need to be moved from s PC to device?
[Moto X General] mschumacher69:
Yes, anything would work. If you can select the mounted device when downloading, then you can download directly to the device.
[Moto X General] mario24601:
Thanks so much guys! I now have CM 12 on my aging moto x!!
[Moto X General] huzaifaaleem:
Did you have an unlockable bootloader?
[Moto X General] mario24601:
I had to go to Motorola site and request code. It was pretty much instantly. I think steps are outlined here in this thread. If you can't find it let me known and I can write then down. So far I'm liking cm 12.1 but miss the wave to wake. If anyone knows how to get it please let me known.
[Moto X General] huzaifaaleem:
I know the official procedure. Unfortunately I can not unlock my bootloader as Motorola website has declared my device as non-unlockable! On which OS were you when you unlocked your bootloader by the official procedure?
[Moto X General] mschumacher69:
OS does not matter...
[Moto X General] mario24601:
I was on stock 4.4 (might have been 4.4.4, I never did the upgrade to lollipop).
[Moto X General] mario24601:
Well I guess I was excited prematurely. Its only been one day on cm 12.1 and have couple of issue. I can't send pictures via text. I'm on straight talk at&t and set up APN as I had it before on stock. Every time I reboot it reverts back to a pre installed APN. Not sure what to try.

Also battery is pretty bad! I'm having to charge it every 3 hours or so. Before I would only charge once at mid day.

Everything else seems OK but these two are deal killers for me. Any good tutorials on reverting back to stock? :(
[Moto X General] mschumacher69:
http://xdaforums.com/moto-x/general/guide-moto-x-return-to-100-stock-using-t2446515
[Moto X General] huzaifaaleem:
Don't revert back to stock. There are some modded stock Roms that are debloated and modified for a better experience.

---------- Post added at 04:05 PM ---------- Previous post was at 03:50 PM ----------

Do give this a try!

http://xdaforums.com/showthread.php?t=3155843
[Moto X General] mario24601:
This looks interesting...im going to give it a try....thank you!
[Moto X General] huzaifaaleem:
You can press the thanks button under my comment ;)
[Moto X General] mario24601:
I'm new to CyanogenMod. When updating nightly , after downloaded the update I boot into recovery and then install the new version. Is this correct process? Each time have new nightly update do I first wipe from recovery or just install no need to wipe first? Thanks.
[Moto X General] mschumacher69:
Always wipe dalvik and cache before or after.
[Moto X General] taqi110:
Hello I have moto x att with locked bootloader. I tried to get unlock code from Motorola website buy it says my device is not qualified.

Now are there any chances for me to root my moto x ?

I have Android 4.4.4