yashsingh1/xdaforums huggingface dataset:
[Moto X General] Vivjen:
Please add European XT1052 (LTE 800/1800/2600) into list of variants.
[Moto X General] LukeNukem:
+1

Btw anyone knows how to get the unlock key with the european model?
[Moto X General] flashallthetime:
Its posted in the op I believe

Sent on my Gummy running Lenoto X
[Moto X General] LukeNukem:
European model isn't added to the list (yet).

So I thought someone may have a direct link or maybe it's possible selecting the dev edition or something.
[Moto X General] flashallthetime:
Takes awhile for moto to catch up, on the moto site there's a area to unlock your boot loader, you must get a unique code from your phone with fastboot, which you insert into moto unlock bootloader request page, if all goes well you will receive a email with your unlocking code

Here took me a whole seconds to find it with Google https://motorola-global-portal.custhelp.com/app/standalone/bootloader/unlock-your-device-a

Sent on my Gummy running Lenoto X
[Moto X General] tuan209:
Hi,

Sorry if this has been asked before but I just want to make sure as I dont want to brick my phone.

I currently have the Tmobile Moto X with an unlocked bootloader with rooted stock rom.

If I were to install the OTA, I know I would have to flash the stock recovery, but would I also have to re-lock my phone?

Sorry for the noob question.
[Moto X General] Cyphir:
Model XT1049

Please remove model XT1049 from the unlockable bootloader section. The Republic Wireless phone I own is not unlockable.
[Moto X General] dray_jr:
no you would not

ok i will thank you

Edit: Op updated with new XT1052 device and Republic Wireless moved to locked bootloader

thanks for the info guys
[Moto X General] jmcdonald58:
No you can leave Bl unlocked
[Moto X General] reno55:
Great post but a few questions as I am still foggy on a few things:

I have the Moto X Dev Edition bootloader unlocked, rooted

Currently on 4.4 and would like to go to 4.4.2

I know I have to go back completley to stock correct? What is the easiest way to get there?

Once I get back to stock and accept the OTA what would the process be to go back to rooted with xposed?
[Moto X General] dray_jr:
because you are bootloader unlocked it is very easy all you have to do is flash the stock recovery from the correct 4.4 firmware package for you phone. Take the OTA to 4.4.2 and then reflash your customer recovery and there you go your on 4.4.2 rooted
[Moto X General] reno55:
Whats the easiest way to flash stock recovery and then back to custom recovery?

---------- Post added at 02:59 PM ---------- Previous post was at 02:41 PM ----------

Also will I need to uninstall Xposed and all that before taking the OTA once I am on stock recovery?
[Moto X General] 1dtms:
Alright so I'm trying to root my XT1053 tmobile moto X thats currently on 4.4

I'm reading and understanding that my bootloader is locked and I should unlock it first before rooting.

So than when I'm following the Locked Bootloader guide, I downloaded all the files needed

I'm currently at step two

open the .zip files and extract the files into your folder with ADB and MFastBoot.

So when I try to open "SDK Manager.exe" so i can so I can use the ADB nothing happens when i try to open up the application.

I'm running windows 7 64bit, any ideas?
[Moto X General] flashallthetime:
Yes you need to be running the stock ROM without any kind of mods at all, doesn't matter how small, ringtones, boot animation, xposed, viper4android, modded system ui, fonts will all stop the ota , so it easier to flash you existing sbf firmware so you won't have any issues

Sent on my Gummy running Lenoto X
[Moto X General] reno55:
I thought you just said above to flash stock recovery and thats it? So now I need to reflash everything first?
[Moto X General] flashallthetime:
Stock recovery and a untouched stock ROM are required, helps?

Here http://xdaforums.com/showthread.php?t=2639102

Sent on my Gummy running Lenoto X
[Moto X General] DuvelDroid:
Did you enable USB debugging by going into Setttings → About phone (at the very bottom) → scroll to "Build number" at the bottom and tap it 5 times to enable developer mode? Once that happens go to settings again and "Developer options" will now be listed. Go into "Developer options" and enable "USB debugging".

---------- Post added at 07:30 PM ---------- Previous post was at 07:22 PM ----------

My x1060 Dev Ed came with 4.2.2. I read a bunch that taking any of the OTA's were not helpful, so while on 4.2.2 I never took any OTA update and unlocked my bootloader, loaded a custom recovery, rooted, and flashed a custom 4.4 ROM.

So now my modem is on 4.2.2 while I am using a 4.4 ROM. It hasn't been a huge issue but something I would like to rectify. Would I bork anything if I go into fastboot and flash the "NON-HLOS.bin" file from the 4.4 firmware? Will that accomplish updating the modem and essentially get my device to 4.4 without having to flash a full 4.4 stock image?

In the past, there have been zip files that would update my modem/radios. I know it's a not a comparable scenario, but on my old GNexus toro, when I transititioned from an ICS ROM to JB, all I had to do was flash a radio zip file after updating my bootloader and ROM/GApps. Is there a zip file like that I could use to update the modem?
[Moto X General] flashallthetime:
No but you should update you modem to kitkat, I'm surprised you haven't had any issues the security and settings fc ing, its easy enough to flash with fastboot

Sent on my Gummy running Lenoto X
[Moto X General] DuvelDroid:
Thanks, so all I need to do is get into fastboot mode with the 4.4 firmware and run this script:

fastboot flash modem NON-HLOS.bin

Or do I need to erase the previous modem first with these scripts:

fastboot erase modemst1

fastboot erase modemst2
[Moto X General] flashallthetime:
Fastboot flash non hlos.bin

Fastboot erase modemst1

Fastboot erase modemst2

Fastboot flash fsg fsg.mbn

So you also need the fsg.mbn file

And yes capitalize non hlos

To lazy as I'm watching walking dead, zombies zombies

Sent on my Gummy running Lenoto X
[Moto X General] 1dtms:
oh im guessing my phone had to be plugged in for the application to run on windows than..
[Moto X General] DuvelDroid:
On T-Mobile, your bootloader is unlockable, so follow the "Unlocked Bootloader" directions. This YouTube guide shows unlocking a Verizon phone but the process of unlocking the phone is the same for all Moto X's with unlockable bootloaders: http://www.youtube.com/watch?v=sw675ipX-ds
[Moto X General] 1dtms:
hmm is that true? because I thought the dev edition is the unlocked bootloader
[Moto X General] mschumacher69:
All Moto X variants can have their bootloader unlocked except the AT&T and Verizon (non-DE) variants.

The warranty will be void when you unlock the bootloader except for DE variants.
[Moto X General] 1dtms:
Right I understood that, but by default from my understanding if I have tmobile non Devleoper's edition that the bootlaoder is locked and I have to take an extra step to unlock the bootloader
[Moto X General] mschumacher69:
This is true for DEs as well, you have to take this extra step to unlock the bootloader on all unlockable variants:

https://motorola-global-portal.custhelp.com/app/standalone/bootloader/unlock-your-device-a
[Moto X General] Vivjen:
Sorry, but does any official confirmation of non-unlockable bootloader on European XT1052 exist?
[Moto X General] 1dtms:
Okay I guess now I'm a bit confused as to which guide I should be following.

I know my bootloader is locked right now, but it's technically "unlockable" cause I have the tmobile version (XT1053).

So which guide am I following to eventually root my phone? the locked or unlocked?
[Moto X General] flashallthetime:
Follow the Unlockable boot loader guide

Sent on my Gummy running Lenoto X
[Moto X General] mschumacher69:
As [MENTION=4661942]flashallthetime[/MENTION] said, unlock your bootloader and root using a custom recovery, it is much easier than rooting without unlocking your bootloader.
[Moto X General] 1dtms:
Ahh I'm so sorry for asking a lot of questions, but now I'm really confused. flashallthetime says use the unlocked bootloader guide, and now your saying to unlock my bootloader, so does that imply I should be using the locked bootloader guide?
[Moto X General] mschumacher69:
When he said use the unlocked bootloader guide, he meant use the guide that shows u how to root on an unlocked bootloader which means u have to unlock ur bootloader first ;)
[Moto X General] 1dtms:
Okay that's what I thought lol, thank you. I should be using the Locked bootloader guide (6th bold topic from the top of original post).

So now I got all the software downloaded and time to give it a shot. Lastly when I connect my phone to my computer before I open up 'sdk manager.exe' should my phone be in a special boot mode? on on a certain screen if it matters? off?
[Moto X General] mschumacher69:
No no no, u should unlock ur bootloader and follow the unlocked bootloader guide!
[Moto X General] 1dtms:
wait what.... so the Unlocked Bootloader is guide is a guide to unlocking the bootloader and does not imply that the bootloader is already unlocked?

better yet, which bold section counting from the top of original post should I follow lol
[Moto X General] mschumacher69:
The unlocked bootloader guide is for rooting phones that have an unlockable bootloader (such as urs).

So unlock ur bootloader via the Motorola website and follow the unlocked bootloader guide.
[Moto X General] dray_jr:
well acctually i add a basic how to unlock your bootloader to the start of the guide for unlocked bootloaders. but i think i am going to pull it and make it its own guide
[Moto X General] mschumacher69:
Regarding devices with unlockable bootloader, all devices are unlockable except ATT, VZW (non-DE) and Republic Wireless.
[Moto X General] DuvelDroid:
Follow this YouTube video, http://www.youtube.com/watch?v=sw675ipX-ds , while using these files (http://www.androidfilehost.com/?fid=23252070760973491), and you will unlock your bootloader and load TWRP. Even though you have a T-Mobile device and he is using a Verizon one, the process will work for your phone.
[Moto X General] Pluto:
I'm thinking of purchasing this phone (Coming from the HTC One X) and it's most obvious competitor for the money-throw is the Nexus 5, my heart is much settled on the Moto X, the size, battery life and overall ergonomics are just a nice switch from the whole "same thing, more numbers". One thing that's somewhat frightening me is developer support.. It was a mistake going with the One X for that reason, so I'm just asking about that, the phone's been out for a while and there's no Paranoid Android (my ROM of choice), what's everyone's take on this? Is it going to get better? I'm no flash-a-holic, I know it'll be CM supported but it seems to have fewer ROMs than one would expect. I like to keep my phones for near 2 years so I'm merely asking about the future.

Sorry if I'm approaching this in the wrong way, I'm just trying to make a decision. :]
[Moto X General] geekabilly:
No need for ROMs with Xposed /Gravity Box, just make sure you buy a Dev Edition
[Moto X General] tigim101:
To accept the 4.4.2 OTA I dont need to relock bootloader right? Just return to stock and stock recovery? So I do this

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 oem lock

i recommend wiping your device also but that is up to you if you dont want

to then skip the next two commands and just type the reboot command

fastboot erase userdata

fastboot erase cache

fastboot reboot

Except I just skip the oem lock code?

Edit: Nevermind, just did it, put in everything except oem lock and I installed 4.4.2 just fine. Flashed TWRP back easily too. I upgraded from 4.4 not 4.2.2, not sure if that makes a difference
[Moto X General] mrtwisted6:
I have to agree with [MENTION=1904065]geekabilly[/MENTION] on this. :highfive:

I got the [AT&T] Moto X in Dec (Rooted it and installed Xposed Framework), got an HTC One with a 'last-upgrade-b4-Tmo-switch' in the beginning of Feb, and picked up the Nexus 5 in my switch to T-Mobile (ending up with all 3 devices). Unlocked the HTCs bootloader, rooted, switched to Dev Ed s-off, and got it's 4.4.2 OTA. Played with it a few days and haven't touched it since. Using the Nexus 5 (stock) as my daily driver, mostly cuz the Moto X hasn't a working SIM at the moment. BUT, I still use the Moto X every day (music, hangouts, movies/vids, emails, etc). Can't put it down :good:
[Moto X General] Jayrod76:
Just wanted to thank the OP for putting this together. First unlocked Moto for me..have a MDK S4 but having this thread made the process a bit quicker than getting the Sammy on the right track.

MOTO DEV X
[Moto X General] dray_jr:
hey trust me i have been there i had a s3 and i have rooted plenty of sammy's over the last couple months they are getting harder with time

im glad this helped you out
[Moto X General] Cozume:
The CDMA radios on any Verizon phone are inherently "locked" in the sense that you can't use the Verizon XT1060 on any other CDMA carrier but that is just the proprietary nature of CDMA.

But the XT1060 is GSM SIM unlocked out of the box and it will work on ATT and TMobile for voice and text. Data use on the GSM carriers depends on the particular frequencies used by the various carriers.
[Moto X General] dray_jr:
its not that the CDMA radio's are locked cause that is not the case on all phones.

it is that the carrier has to add your ESN/IMEI number to there network and they will no do it.

so the when i state wether a phone can be unlocked i am only talking about GSM because it is not possible to which to a diffrent CDMA carrier even if the radios are unlocked because no carrier will allow it.
[Moto X General] Cozume:
My understanding is that the Verizon Moto X (XT1060) is GSM SIM unlocked out of the box as are all Verizon phones nowadays. So the point I was addressing is that you can use a Verizon Moto X on TMobile and ATT to make calls and text without doing anything but popping in an ATT or TMobile SIM card in them. It is the data that may be a problem due to the bands that are enabled.

All newer Verizon 4G LTE phones have both CDMA and GSM radios in them and they are GSM SIM unlocked out of the box.

As for the CDMA radios, well you can't use a Verizon phone on Sprint's network or vice versa, but PagePlus will let you use those carrier's phones on their CDMA network. I believe you have to flash them with PagePlus firmware but from what I have read that is not hard to do.
[Moto X General] 1dtms:
Alright. So I unlocked my bootloader by entering my unqiue code sent to me by motorla. So far so good. Got the confirmed unlocked bootlader warning message screen.

Now I'm trying to root the phone did everything so far so good. Got TWRP flashed. Now this is the part I have trouble with.

After I flash TWRP, it says I have to boot into recovery. So I do that by highlighting Recovery and volume up to select it.

But than it boots into the Bootloader unlocked warning screen and stays there for a bit and than it reboots as normal.

What happened here?

also it wouldve been nice to know that unlocking bootloader will erase files. That wasn't mentioned =/
[Moto X General] dray_jr:
sorry i will add that i did this the day i got my phone so i had not even gone threw the setup guide.

so when selecting recovery you are using volume - to highlight it then pressing volume + to select it. Do not hit the power button to select it.
[Moto X General] 1dtms:
Yea I used the volume up n that's what it did. Boot into unlocked boot loader warning sceeen
[Moto X General] dray_jr:
you can try

fastboot reboot recovery

but i think you need to reflash it first because the phone has tried to boot up so the recover did not install correctly. when you flash TWRP you have to boot right into recovery so everything can install right if you dont the recovery dose not install correctly.

so i would flash TWRP again with MFastboot then try to boot into the recovery without letting the phone try to boot.
[Moto X General] Cozume:
The problem may be that you need to reboot into bootloader to get TWRP to "stick." Not sure why, but I had the same problem as you. If you follow my instructions here you should be rooted shortly:

Unlocking and Rooting a Dev Ed Moto X

I had to do Step 8 to get TWRP to stick. Other people told me that was unnecessary, but it was the only way it worked for me *shrugs*
[Moto X General] mschumacher69:
It's the first warning in Step 1 of the Moto Bootloader Unlock Page and it says:

"You will lose all media and content on your device and will need to reinstall all applications downloaded from Google Play." ;)
[Moto X General] Cozume:
It is mentioned. But for future reference, any time you mod your device and that includes doing anything to the bootloader, you run the risk of losing content either due to the nature of the mod or because you screw up.

Never mod a device in any way if there is content on the device you have not backed up and would be upset if you lose. Backup the content first.
[Moto X General] 1dtms:
I'm still unable to boot into recovery properly, when I do I keep getting the Bootloader unlocked warning screen and it stays there for 5min before booting as normal.

I double checked I enabled USB debugging and unsure on what else to do.

Attached is a screenshot of my working folder and the log from the cmd

Microsoft Windows [Version 6.1.7601]

Copyright (c) 2009 Microsoft Corporation. All rights reserved.

C:\Users\HTD>cd c:\program files\android\sdk\platform-tools

c:\Program Files\Android\sdk\platform-tools>mfastboot flash recovery twrp-2.6.3.

1-ghost-4.4.img

sending 'recovery' (5902 KB)...

OKAY [ 0.600s]

writing 'recovery'...

OKAY [ 0.829s]

finished. total time: 1.430s

c:\Program Files\Android\sdk\platform-tools>fastboot reboot-bootloader

rebooting into bootloader...

OKAY [ 0.001s]

finished. total time: 0.001s

c:\Program Files\Android\sdk\platform-tools>fastboot reboot recovery

usage: fastboot [ <option> ] <command>

commands:

update <filename> reflash device from update.zip

flashall flash boot + recovery + system

flash <partition> [ <filename> ] write a file to a flash partition

erase <partition> erase a flash partition

format <partition> format a flash partition

getvar <variable> display a bootloader variable

boot <kernel> [ <ramdisk> ] download and boot kernel

flash:raw boot <kernel> [ <ramdisk> ] create bootimage and flash it

devices list all connected devices

continue continue with autoboot

reboot reboot device normally

reboot-bootloader reboot device into bootloader

help show this help message

options:

-w erase userdata and cache (and format

if supported by partition type)

-u do not first erase partition before

formatting

-s <specific device> specify device serial number

or path to device port

-l with "devices", lists device paths

-p <product> specify product name

-c <cmdline> override kernel commandline

-i <vendor id> specify a custom USB vendor id

-b <base_addr> specify a custom kernel base address.

default: 0x10000000

-n <page size> specify the nand page size. default:

2048

-S <size>[K|M|G] automatically sparse files greater th

an

size. 0 to disable

c:\Program Files\Android\sdk\platform-tools>​

http://imgur.com/nzoYZGP
[Moto X General] Cozume:
This is the command that is not working. When you get a list like that, what DOS is telling you is that there is a problem with your command syntax. Don't use this command:

fastboot reboot recovery

Use my instructions on the previous page of this thread instead.

Unlocking and Rooting a Dev Ed Moto X
[Moto X General] 1dtms:
Yea I was following your instructions also. I tried going into recovery via the phone by using volume down to highlight and volume up to select and thats when it reboots into the bootloader warning screen.

When I boot into recovery my USB is still attached, does that make a difference?
[Moto X General] Cozume:
yes, I think it does. So disconnect from your PC after Step 8.
[Moto X General] Cozume:
Did you get rooted?
[Moto X General] 1dtms:
So I tried disconnecting the USB after that and reboot to recovery via volume buttons and still nothing. Got to the Warning bootloader unlocked screen again

I thought that's the process I'm trying to do right now?

I am unlocked though, got my code from motorolla and entered it in
[Moto X General] Cozume:
For some reason, TWRP is not "sticking" for you.

You are using mfastboot to flash TWRP, correct? Then booting back into the bootloader then disconnecting from the computer and using the buttons to get into recovery?
[Moto X General] 1dtms:
Yes, from the screenshot and command line, as far as I know I am using the mfastboot.exe.

What do you mean by booting back into the the bootloader?

because I never exit out of there after i flash TWRP
[Moto X General] Cozume:
Try this:

1) Put device in bootloader mode while not connected to PC using the buttons (Volume Down + Power);

2) Connect device to PC using USB cord;

3) mfastboot flash recovery twrp-2.6.3.1-ghost-4.4.img

4) fastboot reboot-bootloader

5) Disconnect device from PC;

6) Then get into recovery mode by pressing the Volume Down button to highlight recovery mode and then pressing the Volume Up button to select the recovery mode; and

7) You should now have booted into the Team Win Recovery Project custom recovery. Click on Install to install SuperSu. Scroll down to find the sdcard and select it. Then scroll down to download and select it. Select the SuperSU zip file and swipe to install.

If that doesn't work, repeat but omit step 4.

---------- Post added at 09:11 PM ---------- Previous post was at 08:45 PM ----------

if it still isn't working, perhaps your copy of TWRP is corrupted and you should try to download it again?
[Moto X General] dray_jr:
added to the OP because i think it is the best step by step i have seen for this issues. but i think you might be on to something i think his download or TWRP might be Corrupt like you said it is really the only thing i can think of.
[Moto X General] Jayrod76:
When I originally unlocked my X , I msfastbooted TWRP..went in..etc. I made a backup a few minutes later . A few days later I was testing a deodexed build so prior to that flash, I made another backup. The deodexed build was slightly borked so I decided to wipe and restore my second backup. It failed so I decided to wipe again and restore first backup..it failed as well. I have had issues with fastbooting and RSD to stock on my laptop. Both freeze at different spots. RSD hangs on system. I have used this laptop to flash images on my Bionic,RAZR and M as well as using ODIN on my S4. After trying on a desktop that had not had any drivers,etc.installed prior..I was able to get back to stock. I believe that this may be a driver conflict between Sammy and Moto.

Just putting this out there for any other Sammy/Moto owners.

DEV X
[Moto X General] Cozume:
I had a GNex before my Moto X and I definitely have a driver problem. I need to just suck it up and get rid of all of the drivers and start from scratch.
[Moto X General] Wool02:
Thank you for this. I did find one issue though when trying to return to stock and relock the bootloader. In order to relock the bootloader you must do the following:

1. fastboot oem lock begin

2. flash stock firmware (per OP)

3. fastboot erase userdata

4. fastboot erase cache

5. fastboot oem lock

If you do not begin with Step 1, relock will fail. If you do not first perform Step 3 and Step 4, relock will fail. SIAP!