yashsingh1/xdaforums huggingface dataset:
[Moto X General] mschumacher69:
There is a way to take the OTA with twrp, but it requires modifying some files in the OTA zip.

But as you said, you can simply fastboot or RSDLite the full 4.4.2 SBF and keep twrp. But make sure you delete the command that flashes recovery or else you would get stock recovery back. Here's a simple guide on how to do it:

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

There's no point in re-locking your bootloader...
[Moto X General] Markmaster:
What is the beast T-Mobile Dev edition? If you have developers edition, you will have opened bootloader. You can download the update and install it from your TWRP and you can install root access from the TWRP even after you update.
[Moto X General] :
You can only flash a custom ROM in twrp. A Dev would need to make a flashable stock rom to do this.

Otherwise you have to update through ota with a stock setup.... Or wait for files to be released after and flash with fastboot.
[Moto X General] Markmaster:
If I reset my phone and in the start screen I disable location collection "feature" from Google I will be asked for turn on "Location Access for Google Apps". If I only one time respond "Yes, let Google Apps will collect info about me" where can I switch this "feature" off? Earlier, maybe in the previous version of Android I have option to disable location access to the Google Apps and let other apps on my phone to use the location service, not only "Device (GPS)" but "High Accuracy (Wi-Fi, Cell, GPS)". How can I reach this?
[Moto X General] aviwdoowks:
Amazingly convenience, poorly marketed.

http://xdaforums.com/moto-x/general/fyi-online-nandroid-backup-ready-t2762382

New way to create a Nandroid backup.
[Moto X General] moo3a:
Hi. Does the XT1052 variant have unlockable bootloader?

I've searched the forum, but the answers were inconsistent. I will appreciate if anybody confirm that he was able to get the unlock code for this variant.

:)
[Moto X General] mschumacher69:
U can check here:

https://motorola-global-portal.custhelp.com/app/standalone/bootloader/unlock-your-device-a
[Moto X General] moo3a:
Actually it makes things more confusing, the Europe variant (XT1052) is not mentioned in that table, but i saw some people claim that they have unlocked the bootloader,
[Moto X General] mschumacher69:
Don't click on the table, click Next, it will ask you to run some fastboot commands to retrieve your Unlock Data which you would paste in a textbox and it would tell you if ur phone can be unlocked or not...

I doubt it can't, the only carriers that I know of that don't allow their phones to be unlocked are ATT, VZW (non-dev) and RW... Afaik, all other carriers can be unlocked...
[Moto X General] pyromaniac1:
Are you sure? I'm getting an XT1050. If it's not unlockable i'll sell it off
[Moto X General] Justicequest:
Can't boot into recovery with keys and looks like a boot loop

First time trying to root bootloader locked XT1053, and now I can't use the hardware keys Vol Down+Power (did a couple times and then kept trying to boot) and the phone slowly will sometimes try to boot up and then shut down again.

I don't know if this is a "boot loop" or what, but I tried to go back to adb in the cmd line and no devices were found and adb devices lists no devices. My screen is black, but once in a while it will try to boot if I hit the keys to go into bootloader, but that's few and far between now.

I was trying to downgrade to 4.2.2 CU and I got to the last .mbn command with success.

EDIT: I actually finished the .mbn file with success. Now the only thing that was strange was that during every fastboot action I would get "<bootloader> Variable not Supported!", but then it would continue on and read/write with "okay" and finish. So I thought that might have been benign.

fastboot flash partition gpt.bin

fastboot flash motoboot motoboot.img

fastboot flash logo logo.bin

fastboot flash boot boot.img

fastboot flash recovery recovery.img

mfastboot flash system system.img

fastboot erase modemst1

fastboot erase modemst2

fastboot flash fsg fsg.mbn

And then I intended to go back to wipe data/cache and hit the Power button instead of the Up button to select the Recovery options. Then my screen went black and then tried to reboot and have been stuck. I disconnected the USB and now I'm stuck. My phone was almost full charged. Now when I hit the hardware keys for bootloader, I can't get anything to happen.

Any ideas?

I've jailbroke several iPhones and hacked my Wii and did a ton of research just to get to this, and now I'm just feeling sick and don't see anything yet that tells me my phone will actually come up at some point.
[Moto X General] dray_jr:
what Android version was you on before you downgraded to 4.2.2 CU
[Moto X General] Justicequest:
ALL FIXED! (and continuing on)

Oh, sorry. I was trying to put as much information in there. 4.4 Stock non-dev. It's my first Android phone, and I really don't like the "backup" scheme of Android, and my main focus was getting root to use Titanium.

Thanks for your reply.

EDIT: Yeah, it looks like she's dead. Nothing I press makes it look like it's got any life. Back to the ancient 3gs I still have and wait for iPhone 6 to come out. So much for my foray into the Android ecosystem.

EDIT 2: Oh wait! I held the power button in forever, and I got life. The white boot screen with the Moto world! Looks like it's back to a boot loop thing.

EDIT 3: I'm trying to get into adb reboot bootloader, but my device isn't being recognized by adb. So I guess I'm going to work on getting adb to recognize my phone. :shrug: Don't know if this will help

EDIT 4: Didn't finish with the adb reboot bootloader troubleshooting, but I went ahead and held the hardware keys in for a very long time, and now I got into the bootloader screen, and I'm USB connected, but when I try to select Recovery, I get back to the boot loop. I'm going to do some more research, but if anyone can tell me how to get out of this hell so things might work somewhat normal, please do let me know.

EDIT 5: I got out of bootloop hell by finally getting back to the bootloader screen by mashing hardware keys and then running the fastboot erase cache and userdata commands. It then went to Recovery mode with Android on his back, and then it started to reboot. Now it's rebooted and I'm at the welcome screen to set up the device. Sheesh.
[Moto X General] dray_jr:
I'm glad you got it working again please post if you have any other issue but hopefully you don't
[Moto X General] 1dtms:
please help I'm freaking out I can't see the screen (cracked/dropped) but my phone does turn on!

I have a pattern lock on but I need to access my files on the designated 'SD card' and other internal files on my phone.

How can I do this? all I have is a USB cable and I HAVE to back up my data. How can I do this?

Im thinking maybe a program that can control the phone from my PC and displaying the phone screen on the PC or something?

my phone had an unlocked bootloader and rooted before this happened (XT1053)
[Moto X General] dray_jr:
the is nothing you can do as for controlling your screen from your computer. does your touch screen work at all. if so I'm would try to unlock your phone by memory and then hook up the USB cable
[Moto X General] :
As said, you need to get into the phone....only then can you transfer data to PC.

If the data is that important, you may need to pop for repair...not replacement. If you send the phone away....they'll just send you another. Go to a local repair shop, or try to replace screen yourself.

In the future....always always transfer important things off the phone very regularly. Phones are fragile...anything can happen.

Good luck!!
[Moto X General] 1dtms:
Youre right!! I backed up my phone by memory, it works thankfully!

Is there a way to relock the bootloader without knowing the phone screen and do everything via PC?
[Moto X General] :
Won't matter tho.....it will show as relocked. Not locked as it first was. Either way they'll known it was unlocked. But....with a broken screen, I doubt they'll see it. ?
[Moto X General] poland153:
Excellent thread! I used this a lot when I was trying to figure out how to unlock and root my Moto X :D
[Moto X General] dray_jr:
im glad it helped you out. i need to sit down and update it just been so busy with the new job. and im so tired when i get off and i dont feel like doing anything.
[Moto X General] flasherruts:
not able to flash twrp

cannot flash twrp on my unlocked xt1052. cmd shows me this message :
[Moto X General] Justicequest:
Appreciate the guide

Thanks Dray_jr (and other contributors who have been helping others) for putting up the guide on rooting a locked bootloader phone :good: so I can backup with Titanium and freeze the OTA upgrade nag screens, at the very least. I don't like to upgrade unless I choose to on anything, so this was needed; nor do I like not being able to do a total backup. I guess I'll stay on 4.4 rooted and unlock the bootloader when the warranty is up. Not sure if I want to bother with Safestrap and 4.4.2 ROM (IIUC), but I'll look into it further, just in case.
[Moto X General] 1dtms:
So I noticed the last update was in April, How does this guide fare with the latest android update?

Can we update to the lastest version of Android and then unlock bootloader and unroot safely?
[Moto X General] mschumacher69:
yes, as long as u have an unlockable bootloader.
[Moto X General] 1dtms:
Wonderful, I have the XT1053, it should be unlockable even though it came as locked then right?

Also, does it matter if I update first then unloock & unroot?

or unlock & unroot then update?
[Moto X General] mschumacher69:
r u rooted now?
[Moto X General] 1dtms:
No, I just came out of the box with android 4.4.2 (model XT1053, Tmobile unlocked carrier)
[Moto X General] mschumacher69:
Unlock ur bootloader, ota to 4.4.3 and then flash the latest official twrp and root.
[Moto X General] 1dtms:
Any particular reason why not 4.4.4?
[Moto X General] mschumacher69:
4.4.4 hasn't been released yet.
[Moto X General] 1dtms:
Oh, strange for whatever reason I thought it was on the 19th

Well thats good to know. Thanks!

So in the future lets say I unlocked the bootloader, ota update, then unroot. And another update comes out, how do I update now that I'm rooted (in the future)?
[Moto X General] mschumacher69:
what do u mean when u say unroot? assuming u mean root, once another ota comes, it is recommended to flash back to 100% stock, take the ota, and then root again.

if u haven't modified a lot after rooting or u can remember what u modified, u can undo ur modifications, flash back stock recovery, take the ota and then flash back twrp. u would keep root.
[Moto X General] 1dtms:
I see thanks,

Yea after root I was only planning on using gravityBox and modifying certain things like notification panels, getting rid of apps that I don't use. Just anything to make it more faster/streamline. I don't see any ROMs out for the moto X that significantly improves it
[Moto X General] glarepate:
Your operating system doesn't know where the mfastboot program is located.

Copy or link it to a location that is in the system's $PATH (the places where it looks for programs) or use the full location of the program in your filesystem and not just the name of it. For instance if the mfastboot program is located in C:\Users\INAMDAR\android\sdk\motorola-binaries\mfastboot then put that complete specification of where it is in your command line rather than just typing in mfastboot.
[Moto X General] flasherruts:
Thanks for the reply and I did try what you asked me to.I did replace the mfastboot with the location where it is located and it still does not help.All I can see is this .
[Moto X General] gsusx:
can any x1052 (Uk version) be bootloader unlocked ?
[Moto X General] amarguli:
Step 4 for locked bootloaders says: "1. download the correct 4.2.2 CU firmware for your Carrier"

I guess it's a mistake, it should be "download the correct 4.4 ..." Am I right?
[Moto X General] aimfire72:
Thanks so much for this guide, perfect!! I have a T-Mobile version with unlockable bootloader, but was nuts trying to find a simple step-by-step to get root. Coming from a rooted Nexus 5, Galaxy Note 3, etc.... was a little confusing what the hell I needed exactly for the Moto X.

Would it be possible for you to please create a simple guide on getting back to 100% stock (in case of an OTA, selling the phone, etc)? Thanks again! :)
[Moto X General] dray_jr:
no i mean 4.2.2 camera update because we flash back to 4.2.2 camera update the frist time so we can root it and disable write protect. but you cant flash a OTA when your device is rooted. so we have to flash are device back to stock 4.2.2 camera update. so are phone is no longer rooted but write protect is still disabled. The guide is correct.
[Moto X General] dray_jr:
this part is also very simple and is built into the guide for locked bootloaders. step two will return you to stock you just have to download the 4.4 firmware if you want stock 4.4 or download the 4.2.2 camera update firmware if you want stock 4.2.2 camera update. and the only commands that is missing is OEM Lock to relock your bootloader so the commands would look like so

fastboot flash partition gpt.bin
fastboot flash motoboot motoboot.img
fastboot flash logo logo.bin
fastboot flash boot boot.img
fastboot flash recovery recovery.img
mfastboot flash system system.img
fastboot erase modemst1
fastboot erase modemst2
fastboot flash fsg fsg.mbn

fastboot erase cache
fastboot oem lock

fastboot reboot
[Moto X General] StealthPanda:
I am also in the same position, though I have not yet tried flashing back to 4.4. Anyone else experiencing this?
[Moto X General] dray_jr:
i have never tried it on Linux but only thing i can think of is the firmware package you downloaded was corrupted

i know all the firmware here works so even if you got it from here i would redownload it and re extract it and try again

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

Also OP updated with AT&T and Sprint Complete Package .rar(all files needed in one download enjoy)
[Moto X General] StealthPanda:
I am on my third download of the whole package. This one seemed to work. I should have checked individual MD5's of everything first, but I didn't.

I THINK that is what fixed it.
[Moto X General] dray_jr:
well i have to say that was a good guess lol. but anyway im glade you got it

OP update working on the last two complete .rar files so i can start uploading them but i have a question for everyone.

that way i have it setup now is everything is in its own folder.

my question is would you like me to keep it like that or would you rather me have it setup so all you would have to do is extract one folder and CD to that directory and everything is ready to go.
[Moto X General] Swimboy46163:
When getting to the point of unlocking the bootloader and getting the key. Is there anything I need to do on the fastboot menu? It says it's "waiting for device"
[Moto X General] dray_jr:
just put your phone in bootloader mode and plug the usb cable in

make sure you have CD to the directory your adb and fastboot is in

type

adb devices

to make sure it is seeing your device

then

follow the guide
[Moto X General] Swimboy46163:
sending 'recovery' (9854 KB)...
OKAY [ 0.870s]
writing 'recovery'...
Battery Low!!
FAILED (remote failure)
finished. total time: 1.151s

I get this when flashing recovery. Why does it keep failing?
[Moto X General] dray_jr:
it tells you right in the code battery low charge your battery then try again
[Moto X General] Swimboy46163:
Got it. Thanks!

Sent from my XT1060
[Moto X General] dray_jr:
let me know the outcome after you charge your phone
[Moto X General] Swimboy46163:
It worked after I charged to 50%

Sent from my XT1060
[Moto X General] dray_jr:
thats great to hear glade everything is working now
[Moto X General] victorvu:
help

finally got root now im trying to downgrade back to stock 4.2.2 and then rooting to 4.4 but this is what i get

C:\android-sdk\platform-tools\VZW_XT1060_4.2.2-13.9.0Q2.X-116-MX-17-57-X-1_CFC_1

FF.xml>fastboot flash partition gpt.bin

(bootloader) Variable not supported!

target reported max download size of 805306368 bytes

sending 'partition' (32 KB)...

OKAY [ 0.265s]

writing 'partition'...

FAILED (remote failure)

finished. total time: 0.842s

what am i doing wrong?

do i need to unlock bootloader first?
[Moto X General] mrtwisted6:
Softbrick :(

So I gave it a shot and don't seem to be working out for me...anything. RSD Lite bricked the phone, I tried both versions and 3 different copies of the 4.2.2 FW, all hung on the system image and failed. Prior to RSD Lite I did try to do it manually, but none of the commands would work...((bootloader) Variable not supported! error: cannot open: 'xxx')...none of them. All drivers are up to date and everything else mentioned or thought of. Just my luck?

What I've got...

xt1058 on Android 4.4

Kernel v. 3.4.42-xline-g4f478f

System v. 140.44.5.ghost_att.ATT.en.US

Any help is appreciated :)
[Moto X General] dray_jr:
I'm going to make you both a complete package so all you have to do is extract it and run the commands so what carrier are both of you two with I will get y'all running I promise
[Moto X General] mrtwisted6:
Awesome! Thanks for the quick response. I'm on ATT myself. I do appreciate the help.

---------- Post added at 09:36 PM ---------- Previous post was at 08:44 PM ----------

I wonder, if any of these recent issues have anything to do with FOTA? Some (Firmware OTA) that came bundled with a YouTube update yesterday or so...?
[Moto X General] :
Then you still aren't running the mfastboot location from the right place. I usually put mfastboot in the same directory as fast boot.

Can you run any fastboot command? Like "fastboot devices"? And try that for mfastboot too. If you do a "dir /p" (/p shows you a screen at a time...space bar goes to next til you are back at the command prompt) command, it will show you what's in that directory. Make sure they are there before you try commands.
[Moto X General] xphoneuser:
Possible error in model description
[Moto X General] flasherruts:
yes.I unlocked it and successfully flashed twrp and rooted it.I can say that unlocking and rooting works
[Moto X General] dmonleo:
finally.... rooted.... now just to unroot at next OTA update then re-root....(I think I understand the process...)
[Moto X General] Liooh:
681

Ok guys, so here's what's happening with my Device XT1058. I literally can't install it!

When I try to return to stock and put the first one code that says "fastboot flash partition gpt.bin", it says:

<bootloader> variable not supported!

error: cannot load 'gpt.bin'.

2- When I try to do it by the RSDLite trying to load the 4.2 stock in there is says: "Error check input file. Either XML format is wrong or image files associated with it are missing"

I really don't know what's going on. Ive seen a video with the same model/device as mine and it went perfectly the ROOT/UNLOCKING BOOTLOADER. I did everything as it says on the video but it comes to update the android, I just cant proceed it.

My firmware operator is: Oi. From Brazil.

--

When I try to put the 4.4.3 in the Internal Storage:

1- Trying to install it from "System Updates" just doesn't work. Pops up the same old image as always "Your system is up to date, option: OK"

Then I try to do it manually by going to the Internal Storage in the phone, the zip file appears but I can't click on it.

Can someone help me to fix this problem ? Thanks!

OBS: I DID Install the BOOTLOADER and ROOT my phone perfectly as long as I can use it as a developer. But can't install either 4.2/4.3 rom in any ways I did as I explained it on the top.
[Moto X General] mschumacher69:
If u're already on 4.4.3, u cannot flash 4.2.2, u have to flash 4.4.3.

Also, u cannot flash the sbf zip as an ota, it has to be flashed using fastboot commands or rsdlite.
[Moto X General] Liooh:
I'm not on 4.4.3. Mine IS and always was 4.4.2!

When I try to do the 4.4.2 by RSDLite it says that error I wrote.

OK, so, after I put the 4.4.3 in the Internal Storage what do I have to do ? because when I try to use the commands it says that error I wrote about the comands.
[Moto X General] :
Did you try mfastboot? Or you're only using RSDlite? Isn't there a change to make to the XML? Did you do that?
[Moto X General] Liooh:
How to use mfastboot ? I click on it then it opens a cmd window then it closes.. but before that I did download it together with adb just seems unfunctional.

You mean another format to change the XML ? Is it ? I didn't try but I did click on "All files", so..
[Moto X General] :
My friend. In the opening post, under "return to stock" it has the instructions step by step.

Again tho....rsd should work fine....if you follow the instructions for it step by step. Including the editing of the XML file. ;)
[Moto X General] mschumacher69:
There's a line that you have to delete in the XML file for rsdlite to work...
[Moto X General] Liooh:
you talking about getvar/gpt.bin ?

if there's an image/XML missing how come it is about that ? I already deleted that while doing the process...

If it is not that, my bad...
[Moto X General] mschumacher69:
Yes the getvar line, nothing is missing...
[Moto X General] :
Step four, under method 1,

http://xdaforums.com/moto-x/general/guide-moto-x-return-to-100-stock-using-t2446515
[Moto X General] Liooh:
That's what I'm talking about. There's nothing to do with getvar I guess..
[Moto X General] mschumacher69:
Did u extract the zip before editing the XML?
[Moto X General] Liooh:
I edited it after, before putting in into the Lite box.
[Moto X General] 1dtms:
I'm trying to install the old google maps

from this thread

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

I've done it before on another moto X (unlock bootloader and rooted) and it works perfectly.

I'm trying to do it again to another moto X (same version unlock and rooted) and I keep on getting App Not Installed.

I've already cleared the data and uninstall the new google maps and street view with Titanium Backup

The only difference I can MAYBE think of is that this moto X I'm trying to install on is 4.4.3 whereas the other moto X is only 4.4.2

Any ideas why? I would really love a working old google maps
[Moto X General] mrtwisted6:
Not sure if it helps, but I had a similar issue installing some TBO Gapps on my (XT1058) locked bl. I did a backup with TB, then deleted data, then delete app, then reboot to recovery, wiped cache & dalvik, rebooted and installed fine. Possibly could be a bad apk too?
[Moto X General] $!>:
can anyone tell me where i can find the motorola connect apk?

or can some pass me the motorola connect apk from their moto x?