[REF]The Complete Moto X Guides/Information Thread

Search This thread

1dtms

Senior Member
May 23, 2011
216
18
Samsung Galaxy Note 20 Ultra
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

nzoYZGP


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
 

Cozume

Senior Member
Jan 30, 2014
429
97
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
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
 
Last edited:

1dtms

Senior Member
May 23, 2011
216
18
Samsung Galaxy Note 20 Ultra
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

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?
 

Cozume

Senior Member
Jan 30, 2014
429
97
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?
Did you get rooted?
 

1dtms

Senior Member
May 23, 2011
216
18
Samsung Galaxy Note 20 Ultra

Cozume

Senior Member
Jan 30, 2014
429
97
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
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?
 

1dtms

Senior Member
May 23, 2011
216
18
Samsung Galaxy Note 20 Ultra
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?

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
 

Cozume

Senior Member
Jan 30, 2014
429
97
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
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?
 
  • Like
Reactions: TheSaw

dray_jr

Senior Member
Jul 3, 2009
603
256
Fort Myers,FL
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.


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.
 

Jayrod76

Senior Member
Oct 6, 2012
821
795
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
 

Cozume

Senior Member
Jan 30, 2014
429
97
I believe that this may be a driver conflict between Sammy and Moto.
Just putting this out there for any other Sammy/Moto owners.
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.
 

Wool02

Senior Member
Jan 17, 2011
323
113
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!
 

Cozume

Senior Member
Jan 30, 2014
429
97
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!

Relock your Moto X Bootloader

After downloading the image for your device:

Unzip the image.

Put your device in fastboot mode.

NOTE: You must use the Motorola fastboot utility to flash (included in the Darwin/, Linux/ or Windows/ directory). Please do NOT use the Android fastboot utility

Follow the flashing steps in the .xml file that was included in the package.

A typical flashing sequence includes all these partitions, but might vary depending on your product - so please use the sequence in the .xml file in your package:

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

You also have the option to erase all the data on your device with
fastboot erase userdata
fastboot erase cache

After performing this sequence, you can relock your device with
fastboot oem lock
 

Wool02

Senior Member
Jan 17, 2011
323
113
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!

Relock your Moto X Bootloader

After downloading the image for your device:

Unzip the image.

Put your device in fastboot mode.

NOTE: You must use the Motorola fastboot utility to flash (included in the Darwin/, Linux/ or Windows/ directory). Please do NOT use the Android fastboot utility

Follow the flashing steps in the .xml file that was included in the package.

A typical flashing sequence includes all these partitions, but might vary depending on your product - so please use the sequence in the .xml file in your package:

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

You also have the option to erase all the data on your device with
fastboot erase userdata
fastboot erase cache

After performing this sequence, you can relock your device with
fastboot oem lock

Cool. My point was that relocking the bootloader using the OP info (and the same instructions above) did not work unless I started with 'fastboot oem lock begin'.
 

hellt

Member
Aug 2, 2010
18
0
Guys, please, advise =)
I have a Dev ed moto x (so I assume my bootloader is already unlocked), I already have got the OTA 4.4.2 android and my build is KXA20.16-1.25
All I need is to get the root access to delete "emergemcy alerts" app

What is the most modern way to get the root access with less pain/bugs/etc?
To flash custom recovery (ie TWRP) or use the SlapMyMoto method?
 

mschumacher69

Senior Member
Jun 9, 2010
1,069
323
Guys, please, advise =)
I have a Dev ed moto x (so I assume my bootloader is already unlocked), I already have got the OTA 4.4.2 android and my build is KXA20.16-1.25
All I need is to get the root access to delete "emergemcy alerts" app

What is the most modern way to get the root access with less pain/bugs/etc?
To flash custom recovery (ie TWRP) or use the SlapMyMoto method?

Your bootloader is not already unlocked. So first, you have to unlock your BL through the Moto website and then flash TWRP and then SuperSU. It's as easy as that.

SlapMyMoto is for devices with a bootloader that cannot be unlocked...
 

triton302

Senior Member
Feb 7, 2010
663
61
NoVA
Alright...

I followed the guide for the locked bootloader for my fiance's VZW locked X.

I've been dealing with bricking ever since. Now it's to the point where it's giving me the CID bullcrap, and I can't flash anything that doesn't fail.

So, am I f*cked to the point of no return for this damn thing?
 

Cozume

Senior Member
Jan 30, 2014
429
97
Alright...

I followed the guide for the locked bootloader for my fiance's VZW locked X.

I've been dealing with bricking ever since. Now it's to the point where it's giving me the CID bullcrap, and I can't flash anything that doesn't fail.

So, am I f*cked to the point of no return for this damn thing?

This is the thread you need to be posting on:

Slap My Moto
 

Top Liked Posts

  • There are no posts matching your filters.
  • 104
    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


    Ok tired of answering thus question constantly
    To accept and flash an ota you must have the following phone set up
    1) Stock recovery. No it will no flash with twrp or cwm
    2) All root removed completely from your system
    3) Xposed framework completely removed from your system, uninstalling will not work,you need to flash the xposed Disabler zip
    4) Any mods to any system file must be reverted to stock
    5) Running the stock odex ROM
    6) Any system apps frozen must be unfrozen

    If you have at any point of time flashed any 4.4.2 firmware along with the boot loader 30.B3 or 30.B4
    DO NOT FLASH THE OTA, YOU WILL HAVE A HARD BRICKED MOTO

    HOPE THIS HELPS

    Sent on my Gummy running Lenoto X
    .


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

    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

    Code:
    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

    Code:
    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

    Code:
    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

    Code:
    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

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

    put phone into bootloader
    type below commands in CMD

    type

    Code:
    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

    Code:
    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

    Code:
    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

    Code:
    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

    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.


    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

    Code:
    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.
    attachment.php

    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.
    attachment.php

    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:
    attachment.php

    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
    4
    I guess it would be nice to add the root tutorial for unlocked bootloader, even though it's a quick process. Some people might have little worry about voiding warranty.

    Sent from my Moto X

    ok sounds good i will add it

    guide for unlocked Bootloaders has been added i think i got everything right lol. please let me know if there are any error's or is i am missing anything. enjoy
    3
    thanks everyone i am hoping to have enough time tomorrow to completely revamp and update this thread so. if you come by the thread tomorrow sorry for the mess in advance
    3
    This is minor, but it really looks bad imho: the typo is still there.
    "What Devices Can Unlock There Their Bootloader". It's the same in the text. I don't want to be the grammar nazi here, but this takes away from the seriousness of the thread.
    Actually, the whole sentence is wrong, it should say: "Which Devices Can Have Their Bootloader Unlocked" because the devices themselves cannot unlock their bootloaders...

    But the sentence above is too long, so I would rather simply say: "Devices with an Unlockable Bootloader"...
    Come on guys nobody is trying to be rude over here, it's just a typo and he asked him to correct it, I don't see anything wrong or rude with that...

    are you two ********************** serious right now your looking for typo's is my guide. i did the last fix because it made sence to make sure users understood that it was the guide for rooting that is why i made the change.

    as for the seriousness of my thread i could careless if they dont find it serious enough for them dont read it and find there info someware else.

    as for the corrections i wanted people to look for and add/post was anything that i missed that is important or something i typed that is wrong. and this is ware you two grammar queens come in clearly, anything that just dose not make sense when reading.

    but the human brain can read a sentence ware all the words are mixed up so i think we are ok with a there or their being wrong it just is not worth the time to change

    Don't worry about it friend..it looks just fine..more important things to perfect.. :)

    sent by my 4.4_19.5.3
    XT1080M (aka) Droid Maxx

    Please donate to: jcase & Hashcode (if you can)

    thank you very much for your support



    And just like devs sometimes ....lets nitpic contributers til they leave. ;)

    Sent from my Moto X cellular telephone...

    clear people have nothing better to do but nit pick at other peoples hard work so they feel smart because they have nothing to contribute

    Thanks for the informative thread. I'm getting a VZW dev edition this week and am familiarizing myself with unlocking, rooting, OTA's, etc. I'm not trying to be dense however I have a few questions that I can't wrap my brain around yet.

    1. Lets say the device comes straight out of the box with 4.4. My plan would be to just take the OTA and then unlock, flash TWRP, etc... Pretty straightforward.

    2. Lets say the device comes straight out of the box with 4.2.2. (just roll with me here). I unlock, flash TWRP, root, and then make a nandroid backup. If I then return to stock per the OP to take the OTA does that make the nandroid backup that I just made useless? If I tried to restore the backup after the OTA will that result in a brick? Basically what I'm trying to figure out is once I take an OTA are previous nandroid backups useful?

    3. What is "STOCK"? When everyone says "return to stock" I'm assuming they are referring to stock recovery, stock rom, stock firmware? For instance, if I take the OTA to 4.4.2 does that mean that 4.4.2 is now stock for my device? Or is it 4.4? Is the Motorola sight the best place to get the "stock" image?
    http://xdaforums.com/showthread.php?t=2635366
    4. Regarding the explanation to question 3 above, when 4.x.x comes out is it appropriate to assume that once the update is taken that it will be unadvisable to return to a previous build, ie restore an old nandroid backup?

    Thanks in advance for the help. I know some of the questions are similar in nature but my confusion is a result of people using incorrect terms interchangeably on other sites. Trying to make sure I understand the obvious gotcha's.

    1. Correct if verizon finally got the 4.4.2 OTA then yes you would take the OTA, then unlock the bootloader, install TWRP, Flash SuperSU, and then enjoy.

    2.Correct if you make a nandroid backup of 4.2.2 then update to any different android version that nandroid back becomes worthless and you will have to make a new one after you update.
    i just went threw this yesterday and today. because i just updated to Sprints 4.4.2 OTA

    3.Stock is any version of android with no root required modifications, like tweaks and mods that require SuperSU permission to do there work.
    as for the second part of your question the best place to get Stock firmware for the moto x is from the SBF website that someone above posted the link but here it is again.
    http://sbf.droid-developers.org/phone.php?device=0

    4. This question really has nothing to do with nandroid back ups it have more to do with bootloader versions. im going to post a link to a thread all about bootloader versions but i will still go into abit here.
    http://xdaforums.com/showthread.php?t=2635366

    here are the different version's of android the moto x has 4.2.2/4.2.2 Camera Update/4.4/4.4.2 ok each version of android has a different bootloader version because Motorola upgrades them with each update. now the only version of android that allows you do downgrade for some reason is 4.4. you can downgrade 4.4 to 4.2.2 Camera update but that is it you can't downgrade 4.2.2 camera update to 4.2.2 and same goes for 4.4.2 to 4.4 the reason why is the bootloader won't allow you to. so if you update to 4.2.2 and try to use your 4.4 nandroid backup it will cause issues because it is trying to change the boot partition back to 4.4 and it is not allowed.

    hum not sure if that made any sense at all it is very hard to explain but i would just recommend reading threw the thread i posted it is the best place for all the information on bootloaders.

    but anyways i hope all the info here helps you out in some way.

    Enjoy all.
    3
    Yes! This is exactly what I needed. I had the jist of what needed to be done, but had trouble wrapping my head around the correct order of all the different steps. When a root process requires links to 10 different guides, you really need a Master guide like this. Thanks

    Sent from my Nexus 7