[Moto X General] dray_jr:
So this thread started as just a guide for root but with all the questions being asked lately I have decided to turn it into a full blown info thread this is going to take some time and some section might be empty so please bare with me.

Device Variants

(this display is not 100% correct still working out some issues and info!)

XT1049 - Republic Wireless

XT1052 - European - Sim ?

XT1053 -T-Mobile US, Dev Ed

XT1055 - US Cellular - Sim ?

XT1056 - Sprint - Sim Unlocked

XT1058 - AT&T, Rogers, Claro, Movistar, Vivo, Oi, TIM - Sim Unlocked

XT1060 - Verizon - Sim Locked

----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

What Devices Can Unlock There Bootloader

In this section we are going to go over what devices can have there bootloader unlocked and what ones can't this is very simple.

(if it dose not says Dev Ed next to the carrier then I am talking about consumer model.

Locked Bootloader – Verizon, AT&T, Republic Wireless

Unlockable Bootloader – Sprint, US Cellular, T-Mobile, Rogers, all Dev editions

Personally these are the ones I am not sure about yet so if you have one please let me know so I can add them.

? - Claro, Movistar, Vivo, Oi, TIM

If you want to check to see if your device is unlockable please go to motorola's website below

https://motorola-global-portal.custhelp.com/app/answers/detail/a_id/87215

----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

Downgrading Bootloader

there has been a lot of issues around this process so I want to post the info right at the top so people stop bricking there device and we can get past this

here is a quick list of what can be done with bootloader downgrading

the only OTA that can downgrade is 4.4 to 4.2.2 Post Cam

4.4 to 4.2.2 Pre Cam will Brick

4.2.2 Post Cam to 4.2.2 Pre Cam will Brick.

4.4.2 to to anything will Brick

4.4 to 4.2.2 Post Cam you are ok

here is a thread dedicated to the discussion of bootloaders and modems

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

Informative Thread Google Cached

READ CAREFULLY

WARNING

DO NOT FLASH THE NEW 4.4.2 SBF FIRMWARE UNLESS YOUR CARRIERS FIRMWARE IS AVAILABLE.

FOLKS HAVE FLASHED OTHER CARRIERS FIRMWARE AND AS A RESULT THEY HAVE NO DATA CONNECTION,

YOU CAN NOT DOWNGRADE, SO IF THIS HAPPENS CHANCES ARE YOU'LL HAVE A PHONE THATS UNUSABLE UNTIL AND IF YOUR CARRIERS SBF SHOWS UP.

THERE IS A CHANCE THAT EVEN AFTER YOU FLASH THE CORRECT FIRMWARE, YOUR RADIO SIGNAL MAY NEVER WORK

I will not in any fashion help anyone to upgrade nor downgrade their moto, this thread is for info only. I personally will not take any responsibility for any issues. You own it ., you alone broke it

Motorola bootloader unlocking website https://motorola-global-portal.custh...-your-device-a

WARNING WARNING

DO NOT FLASH ANY OTA 4.4.2 ,OTA ROM OR ANY SUCH MEANS OF UPGRADING WITHOUT HAVING YOUR SPECIFIC CARRIER 4.4.2 SBF FIRMWARE AS A BACK UP

WARNING WARNING WARNING

IF YOU HAVE A LOCKED BOOTLOADER ONLY FLASH YOUR SPECIFIC CARRIERS SBF FIRMWARE, OTHERWISE YOU WILL END UP WITH A HARD BRICKED DEVICE

************************************************** ********

If you Frankenstein a way of downgrading do not post it here, this thread is not about tricks, hacks or any such garbage. This thread is to inform folks in the correct way of maintaining your moto to work. Plain and simple

There's a tremendous amount of firmware flashing which is causing harm to many users phones.

Realize that having a unlocked boot loader moto, regardless if its a DE will also suffer from hard bricks.

Unlocked boot loaders can flash other variants system.img's without to many issues

Modems are a different story, some user report no data with European modems, so I suggest using your specific carriers modems

Stay away from motoboot.img (boot loader) or gpt.bin(partition table) be warned

Remember you and you alone are responsible for any hard bricks

********************************

This is a simple chart what can and can't not be downgraded, Thanks to Dray_jr ￼

the only OTA that can downgrade is 4.4 to 4.2.2 Post Cam

here is what we know right now that might make more sense

4.4 to 4.2.2 Pre Cam will Brick

4.2.2 Post Cam to 4.2.2 Pre Cam will Brick.

4.4.2 to to anything will Brick

4.4 to 4.2.2 Post Cam you are ok

************************************************** **************

WARNING if you manage to flash back to 4.4 or even 4.2.2 with the new 4.4.2 BOOTLOADER DO NOT UNDER ANY CIRCUMSTANCE ACCEPT ANY OTA, YOU WILL HARD BRICK YOUR DEVICE, PROOF BELOW

Quote

******** "it was running on 4.4.2 software, then i downgrade to 4.2.2. all was fine, but OTA killed it.

So after that, i read that 4.4.2 instaled new bootloader =( that cant be downgraded, and can bricked the phone, it was my mistake =(

So i think i should sent it to Motorola and if i lucky one, they should repair it, or resend new one. or if bad luck i will throw it to the trash =)"*******

Files inside sbf firmware:

Motoboot.img (bootloader)

gpt.bin ( Partition table)

NON_HLOS (modem)

System

Recovery

Bootloaders:

4.4.2 North , Central & South America:

Rogers 30.B4

US Cellular 30.B4

Brazil Retail 30.B4

T-Mobile 30.B4

Sprint 30.B4

Europe:

UK 30.B3

Modems:

Rogers 4.4.2

Stock Recovery:

Rogers Stock Recovery 4.4.w

4.2.2 pre camera boot loader 30.70

4.2.2 post camera bootloader 30.71

Issues:,

Confirmed by Steve x , you can not downgrade bootloader from 4.4.2

WARNING WARNING

The Brazilian phone and central American phones will not have a data connection with the uk or DE firmware, so do not flash any European firmware, be warned

I will credit correct posters when i get back to my pc

----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

Custom Recovery's

Now this is fairly simple there are 3 custom recovery options for us right now 2 for unlocked bootloaders and 1 for locked

here are the options we have and links to there threads for info and downloading

TWRP

http://techerrata.com/browse/twrp2/ghost

CWM

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

Safestrap

http://rootzwiki.com/topic/104161-recovery-locked-safestrap-recovery-v365-2013-11-13/

----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

How to Take OTA on Root Device

.

----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

Rooting Locked Bootloader

[SIZE="3"]Step one[/SIZE]

Downloading the required drivers and software

Motorola Device Drivers

https://motorola-global-portal.custhelp.com/app/answers/detail/a_id/88481

Android SDK

http://developer.android.com/sdk/index.html

RockMyMoto(4.2.2 root exploit)

http://xdaforums.com/attachment.php?attachmentid=2369524&d=1383521170

Cydia Impactor(Required for 4.2.2 root exploit)

http://www.cydiaimpactor.com/

MotoWpNoMo(Kill Write Protect on Locked Bootloaders)

Win - http://www.rumrunner.us/MotoWpNoMo-0.0.4.zip

Linux - http://www.rumrunner.us/MotoWpNoMo-0.0.4.tar

SlapMyMoto(4.4 Root exploit)

http://xdaforums.com/attachment.php?attachmentid=2463879&d=1387477699

RSD Lite(Used for downgrading to 4.2.2 camera update)

https://dl.dropboxusercontent.com/u/42057363/RSDLite_v6.1.x.zip

MFastboot(Used for manually downgrading to 4.2.2)

http://mark.cdmaforums.com/X-STUFF/mfastboot-442.zip

4.2.2 Camera Update Firmware(download firmware for your device)

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

Below are Complete Kits that i put together for Each Carrier Moto X

it contains all the files needed to Root/Downgrade/Return To Stock or what ever you need to do.

I will be posting Links as i upload them.

----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

Step two

Downgrade to 4.2.2 Camera Update

If you are on the 4.4 update already your are going to have to downgrade your device to 4.2.2 camera update. The best way to do this is to follow the guide in the link below.

Ok so more and more people are Bricking there phone with RSD Lite so i am going to add in the guide to manually flash all the img's because i no longer will refer to RSD Lite for the fact that i dont find it safe anymore.

To Flash back to 4.2.2 Camera Update Manually Follow the Below Steps it is very simple.

1. download the correct 4.2.2 CU firmware for your Carrier

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

3. Boot your phone into the bootloader

4. Run the below commands one by one

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 reboot

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

fastboot erase userdata
fastboot erase cache

Now it is time to move on to Step three and root your device

----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

Step Three

Rooting 4.2.2 camera update and disabling write protection

Before you can start to root 4.4 you first need to root 4.2.2 camera update and disable write protection. below are two links the first one is to root 4.2.2 camera update and the second one is for disabling write protection

4.2.2 Camera Root Exploit

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

Disable Write Protection

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

----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

Step Four

Returning back to stock again so you can start rooting 4.4

i know you have already done this but in order to root 4.4 you have to be completely stock. So use the same guide and firmware as the last time to restore your device to stock again i no longer will recommend RSD Lite so below is the steps to manually flash your device back to stock

1. download the correct 4.2.2 CU firmware for your Carrier

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

3. Boot your phone into the bootloader

4. Run the below commands one by one

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 reboot

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

fastboot erase userdata
fastboot erase cache

----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

Step Five

Root 4.4 Finally

Now that we are back to 4.2.2 camera update it is finally time to start the process to root 4.4 just follow the guide below and you will finally have your device on 4.4 with Root

4.4 Root Guide

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

----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

How To Unlock Your Bootloader

Unlock your Bootloader

This Will Erase your Data/ Factory Reset your phone

In order to install TWRP/CWM and SuperSU you need to first unlocked your boot loader. below is a link to Motorola's guide to do just that.

Click on the link below and pick your Moto X by what carrier you are with

https://motorola-global-portal.custhelp.com/app/answers/detail/a_id/87215/action/auth

im going to try and do this the best i can but no matter what i do your going to have to go to the moto website to get the unlock key

download the SDK and install it.

locate ware it was installed normally (C:\Program Files\Android\android-sdk)

open Command Prompt and type

CD C:\Program Files\Android\android-sdk\platform-tools

put phone into bootloader

type below commands in CMD

type

fastboot oem get_unlock_data

it should come back with something like this

(bootloader) 0A40040192024205#4C4D3556313230
(bootloader) 30373731363031303332323239#BD00
(bootloader) 8A672BA4746C2CE02328A2AC0C39F95
(bootloader) 1A3E5#1F53280002000000000000000
(bootloader) 0000000

Now we need to remove all the (bootloader) and make the key into one line

we then need to paste this into the box on the bottom of the Moto unlock page and hit the button "Can my Device be Unlocked"

if your device can be unlocked you need to accept the license agreement and then click the button to request your key. It will then email you your unlock key.

Copy your unlock key then click the link Step 3

now if you left your device connected and everything ware it was then great if not we need to put are phone back into bootloader and open a CMD and CD it to the same directory as before.

then type

fastboot oem unlock UNIQUE_KEY

ware Unique_key being the code you copied from your email.

now your bootloader is unlocked.

Sorry this guide is not great but it is the best i can do for the fact that you have to be on the moto website to get your unlock key. i hope this helps somewhat.

----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

Rooting Unlocked Bootloader

Step one

Downloading the required drivers and software

Motorola Device Drivers

https://motorola-global-portal.custhelp.com/app/answers/detail/a_id/88481

Android SDK

http://developer.android.com/sdk/index.html

TWRP Recovery

http://techerrata.com/browse/twrp2/ghost

CWM Recovery

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

SuperSU

http://download.chainfire.eu/supersu

MFastboot(Used for flashing TWRP)

http://mark.cdmaforums.com/X-STUFF/mfastboot-442.zip

----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

Step Two

How to install TWRP/CWM Recovery and SuperSU

Now that you have your bootloader unlocked its time to install are custom recovery and SuperSU so we have Root

Before we worry about that phone please make sure you have installed the SDK and then copied the mfastboot files over to the directory your ADB is in.

also before we put the phone into bootloader mode we need to copy the SuperSU.zip over to are phone

Now that we have all that moved over everything that we need. it is time to get are phone into the bootloader you can do that by turning off your phone, Then turning it back on while holding volume down + the power button.

once into the bootloader plug your USB cable in and set your phone down.

now we need to open a CMD window and CD to the directory ware we placed the MFastBoot files.

this is my location but i use the Moto X toolkit yours is going to be ware ever you install the SDK

so in the CMD window type the command below but change the path to ware your files are located

CD C:\Program Files\stillthisguy\Moto X Toolkit

now that we are in the right location it is time to install TWRP/CWM we are going to do that by typeing the commands below

mfastboot flash recovery twrp-2.6.3.1-ghost-4.4.img
or what ever the name of your recovery img is

as soon as you type the above command to flash TWRP/CWM we need to boot the phone into recovery before we let it boot to android we can do that via the buttons below.

click the Volume - button until it highlights Recovery then press the Volume + button to select it and it should boot into recovery.

If you do not immediately boot your phone into recovery after you flash it, recovery wont work.

here is a step by step that might help everyone abit

Now click on Install and find your SuperSU.zip that we copied over and click on it and install it. when it is done installing you can reboot your phone and enjoy having root access.

----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

Returning to Stock

Step one

Downloading the required drivers and software

Motorola Device Drivers

https://motorola-global-portal.custhelp.com/app/answers/detail/a_id/88481

Android SDK

http://developer.android.com/sdk/index.html

MFastboot(Used for manually downgrading to 4.2.2)

http://mark.cdmaforums.com/X-STUFF/mfastboot-442.zip

For firmware Download pick what firmware you want from the link below

http://sbf.droid-developers.org/phone.php?device=0

----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

Step Two

Returning device Stock and Locking Bootloader

1. Open your firmware and extract the files to the same folder as adb/fastboot and mfastboot.

2. open a CMD window and CD into the directory that we just extracted all the files too

3. type below commands one by one

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 flash modem NON-HLOS.bin
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

after your phone is done rebooting you will be completely stock firmware of your choice

Enjoy

----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

Full OTG support on 4.4.2 or older builds via Qualcomm settings

aviwdoowks ask for me to include his guide in my post so here yall go if you need support the link below is to the original thread

OP Thread

Update

This is, at least, a stock/rootless solution. The OTG/UsbDisk is now system wide! /storage/UsbDisk! Root Explorer/Explorer (free)! The standard issue "Documents" apk browses it too.

You may use many apps to browse your new /storage/UsbDisk, this is a good one.

https://play.google.com/store/apps/details?id=fm.clean

You need to create a shortcut to qualcomm settings.

The: com.qualcomm.qualcommsettings.apk is in your system/app!

I posted it for custom rom users, but it will not show up even if you install it.

I use Super Manager donation. The free version works too. (apk manager, choose activity button. The gear: launches the activity, the arrow creates a shortcut on homescreen.). I use Xperia launcher.

Then enable usb mass storage and OTG mode - peripheral. The usb will get reset but there is no need to keep it on. OTG mode sticks. Edit: try it w/o the usb checked it may not be needed at all.

Done.

Go File manager, /storage. Permissions will be rwx even from the free version.

You have a new mount/unmount option in settings/storage:

Be sure to use (^ above button) the unmount command as forgetting you have a write operation in progress and yanking out the otg adapter can trash your SD card!

I do not wonder why Moto did not enable this ability!

No need to download the attached apk. It is in your system apps already. But some custom ROMs may not have it.

USEonlyIFnotONyourPHONE.4.4.2com.qualcomm.qualcommsettings.apk

USEonlyIFnotONyourPHONE4.4.0.com.qualcomm.qualcommsettings.apk

----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

Credits

jcase

beaups

TechSavvy2

zhp pilot

Hashcode

Phil3759

flashallthetime

aviwdoowks

if i forgot anyone please let me know