yashsingh1/xdaforums huggingface dataset:
[Moto X Android Development] flashallthetime:
First try Motorola fastboot (mfastboot) it can be found in the threads. If that won't work, well you may need to flash your carrier sbf file with rsdlite, some folks have reported the same situation, either it successfully flashed twrp and they still have stock recovery ( this happened to me),or its the same situation you're having

Sent on my Moto X
[Moto X Android Development] pablomoca:
Thanks for the response. I've been looking for a while and tried a few different things, but I still don't know how to use Motorola Fastboot. I found this page http://www.elementalxdesigns.com/eclipse/showthread.php?6747-HOW-TO-Unlock-your-Moto-X-Developer-Edition-install-TWRP-and-how-to-flash-images&p=11561 and downloaded the package it includes an .exe file called mfastboot but I'm no closer to understanding how to use it instead of fastboot.

I've tried entering mfastboot flash recovery twrp-2.6.3.1-ghost-4.4.img and all I get is:

'mfastboot' is not recognized as an internal or external command, operable program or batch file.
[Moto X Android Development] flashallthetime:
Just put the mfastboot exe in the same folder as fast boot, SDK tools folder

Sent on my Moto X
[Moto X Android Development] MaKTaiL:
Enviado de meu XT1058 usando Tapatalk
[Moto X Android Development] pablomoca:
I think I'm getting a little closer to figuring this out (with help of course). The final error I get is:

error: cannot load 'twrp-2.6.3.1-ghost-4.4.img'

Any suggestions?

I guess I should mention how I get to this point. I plug in my phone, open a command prompt and type: adb reboot bootloader.

Once it's in the bootloader screen that's when I type: mfastboot flash recovery twrp-2.6.3.1-ghost-4.4.img and then I get that final error. Do I need to select a certain function once I boot into bootloader mode?
[Moto X Android Development] flashallthetime:
Make sure you have the recovery file in the SDK tools folder also

Sent on my Moto X
[Moto X Android Development] pablomoca:
This is where everything is located. Look right?
[Moto X Android Development] teookie:
Looks like everything is there. Might not make a difference but have you tried the regular fastboot? That's what I used (after updating to the latest platform-tools) and it worked fine.

Is this the directory you are working from at the command promt? If your at for example C:\users\desktop or something it wont' work. You need to cd to the directory with the twrp image in it and then run the fastboot command.
[Moto X Android Development] GoClifGo05:
You can also just hold shift and right click in the sdk folder and select open command window here.
[Moto X Android Development] nuke747:
Root worked great for me, thank you! Thank You! I was running the latest ghost 4.4 OTA update from Google on my Verizon Developer Edition Moto X.

A few tips:

1) Ensure that the twrp-2.6.3.1-ghost-4.4.img file is in the same directory as your 'fastboot.exe' file from the Android SDK.

2) Noobs, to run the command: 'fastboot flash recovery twrp-2.6.3.1-ghost-4.4.img', first open a command window by Going to Start > Run > 'CMD' >Enter

3) Then browse to your folder where the Android SDK tools are. You want to browse completely down to the platform-tools folder and then run the command above.
[Moto X Android Development] GoClifGo05:
Shouldn't use fastboot unless you have the latest sdk, or so I hear. Mfastboot is recommended.

Sent from my Moto X DE
[Moto X Android Development] johnh123:
So i've got a new phone, fully updated with kitkat, successfully unlocked, and when I try to flash, this is what I see:

C:\android sdk\adt-bundle-windows-x86-20131030\sdk\platform-tools>fastboot flash

recovery twrp-2.6.3.1-ghost-4.4.img

(bootloader) Variable not supported!

target reported max download size of 805306368 bytes

sending 'recovery' (7 KB)...

OKAY [ 0.239s]

writing 'recovery'...

(bootloader) Invalid boot image

FAILED (remote failure)

finished. total time: 0.537s
[Moto X Android Development] Travisdroidx2:
You did not download it correctly you have the recovery image as 7kb. But the actual size of the recovery is over 9mb.
[Moto X Android Development] johnh123:
OK, now i'm here:

C:\android sdk\adt-bundle-windows-x86-20131030\sdk\platform-tools>fastboot flash

recovery twrp-2.6.3.1-ghost-4.4.img

(bootloader) Variable not supported!

target reported max download size of 805306368 bytes

sending 'recovery' (9854 KB)...

OKAY [ 0.886s]

writing 'recovery'...

OKAY [ 1.008s]

finished. total time: 1.897s

not sure if it worked - don't seem to have root - when i go to recovery it says:

Android system recover <3e>

13.11.1Q2.X-69-3

that isn't twrp, is it?
[Moto X Android Development] flashallthetime:
OK, you might need to rsdlite your carrier sbf firmware, you aren't the only one that has had this issue. The ota causes this. Had the same issue with the 4.2 camera ota and rsdlite the firmware and I had no issue flashing twrp afterwards
[Moto X Android Development] johnh123:
Hmm, what does that involve?
[Moto X Android Development] flashallthetime:
Its easy, rsdlite and the sbf firmware is all you need

Here's the rsdlite thread http://xdaforums.com/showthread.php?t=2446515
[Moto X Android Development] Travisdroidx2:
Just got my X and unlocked the bootloader and flashed twrp and it rooted my 4.4 Made a back up and worked great! Thanks Hashcode!!
[Moto X Android Development] pablomoca:
Thanks to everyone who helped me get this right. I finally was able to install TWRP. I had to CD to the correct drive and I put the .img file in the root C:\ drive. Thanks again! I finally have root and wireless tethering!!!!! That's all I really wanted from this. I'll look into other things soon enough, right now I'm happy as can be!
[Moto X Android Development] mschumacher69:
Why do u need twrp for wireless tethering??
[Moto X Android Development] pablomoca:
I still have unlimited data and got the DE Moto X. After unlocking the phone, I wanted to root it to be able to use certain apps and also to tether. I might be wrong, but all of the tutorials I saw for tethering required your phone to be rooted. Now that I have root, I was able to bypass the Verizon "tethering plan" check and can now tether no problem.
[Moto X Android Development] mschumacher69:
So is the built in Tethering & portable hotspot feature not available on the VZW ROM?
[Moto X Android Development] Dmtalon:
Available with a paid subscription, yes...
[Moto X Android Development] sm753:
Received my Moto X yesterday evening. Unlocked and rooted. Thank you.

I will add I feel very stupid. Had to look around this thread a bit. Glad I wasn't the only one who didn't know VOLUME UP was "select"...and not the power button. :eek:
[Moto X Android Development] mschumacher69:
Can you not flash the TMO retail ROM on the VZW DE? Because this ROM has Tethering & portable hotspot. Or does this ROM not support CDMA?
[Moto X Android Development] MaKTaiL:
I'm still on brazilian 4.2.2, 4.4 is not out yet.. Can I use this or do I have to flash the old one?
[Moto X Android Development] 338lm:
I successfully flashed TWRP 2.6.3.1 on my unlocked T-Mobile MotoX with 4.4, but after rooting I wanted to go back to stock recovery.

Well, that didn't work out, and caused a boot loop, so I flashed back to TWRP 2.6.3.1,but now if I reboot or turn the phone on from being off, it automatically boots to TWRP every time. If I do a "reboot system" within TWRP, it boots back to TWRP again.

The only way I can boot to Android is if I boot to fastboot, then choose to boot system.

Do I just need to re-flash TWRP again? Please help me fix this! Thanks!
[Moto X Android Development] gavron:
Assuming you made a backup of /SYSTEM

I'm guessing you hosed /system. Can you restore it from a backup? If you don't have one,

how about downloading any of the ZIP versions (or SBFs) and reflash /system?

I don't think your problem is TWRP but here's how to test:

1. in TWRP select "Reboot -> Bootloader" (or power cycle while holding down the vol-down key)

2. In bootloader select "Normal boot"

3. If TWRP shows up again, your /system is not bootable, so use my suggestion(s) above.

Best,

E

GSM MOTOX DEV (now running TMO release KitKat, TWRP 2.6.3.1, can't get CMxx sound to work right on phone calls)
[Moto X Android Development] 338lm:
Thanks for your advice!

When I do this:

1. in TWRP select "Reboot -> Bootloader" (or power cycle while holding down the vol-down key)

2. In bootloader select "Normal boot"

Then the phone boots to Android.

If I try to start from the phone being off, then it always boots to TWRP.

If I choose "reboot system" in TWRP, it just boots back to TWRP again.

Based on what you said, it appears that /system is bootable. Any other suggestions, please? Thanks again.
[Moto X Android Development] onesikpuppy:
Does that re-lock the bootloader?
[Moto X Android Development] Slack3r:
Flashed it on my dev edition running 4.4 stock... first time it didn't do anything, but I flashed it again and it started working... :confused:

Seems to have pushed SuperSU successfully as well.
[Moto X Android Development] gavron:
This thread: http://androidforums.com/micromax-a85/542214-phone-boots-recovery-only.html

suggest wiping cache and dalvik cache.

I would try wiping both and then trying to boot normally via bootloader, get it to rebuild the

cache ("android is upgrading applications") then when all is good, try plain old reboot, and see what that gets you.

If that doesn't work, restore /system from a backup (you didn't really answer that so I'm guessing you didn't do one)

or reinstall it.

E
[Moto X Android Development] 338lm:
You're right, I can't restore /system because I don't have a backup :(

I cleared the cache and dalvik, then rebooted and let it rebuild the cache. Another reboot and it still goes straight to recovery.

I did a master reset, and it still goes straight to recovery.

Thanks a lot for the suggestions. Any other ideas, please?
[Moto X Android Development] gavron:
Gotcha.

1. BACKUP EVERYTHING NOW. It might help later. Make sure to include /data and /system.

2. Wipe DATA, CACHE, DALVIK cache and retry booting normally.

If that works, install things manually...

If not, reinstall /system. If you have the SBF you can flash it. If you have an update.zip format you can use TWRP "install".

If that works, THEN restore /data and see if it works. If not, install things manually.

E
[Moto X Android Development] flashallthetime:
You may need to rsdlite back to stock or try flashing stock recovery

Sent on my Moto X
[Moto X Android Development] 338lm:
Thanks, I'll get started.

I'd like to go back to full stock. Can I use the T-Mobile .zip here http://xdaforums.com/showthread.php?t=2538394, unzip, and just run TMO_RETAIL_XT1053_4.4-13.11.1Q2.X-69-3_MR2_1FF.bat???
[Moto X Android Development] flashallthetime:
Which carrier are you? You need to open the sbf zip and find the XML file, open it up and just delete the getvar line only and save it.
[Moto X Android Development] 338lm:
I'm on TMobile. Open the sbf zip in the file that I download from that other thread? Sorry, the instructions have been hard to find.
[Moto X Android Development] flashallthetime:
Here's the thread for rsdlite http://xdaforums.com/showthread.php?t=2446515

Just make sure you have the latest drivers from moto device manager.

Download the sbf zip that you have already found, unzip it and you will see an XML file, open it and you will see a line with getvar max download and delete only that line and save. There's a video with the link above. Just be prepared to lose all your data, so copy what ever you want on your computer, yes you need to delete use data, its just better to clean the system completely to stock. You will need to flash twrp recovery afterwards and supersu too
[Moto X Android Development] 338lm:
Thanks! Got it fixed! Appreciate the help!
[Moto X Android Development] flashallthetime:
That's was fast? Did you flash the sbf firmware?
[Moto X Android Development] 338lm:
So, my reply should have been more informative in case others run in to this same issue.

I flashed stock firmware from this thread http://xdaforums.com/showthread.php?t=2538394, which flashed the stock recovery.

When I rebooted, it automatically booted to stock recovery with the Android and red exclamation point. I left the phone in this state while I was working on following the steps in your post, but the thread you linked to has a dead link. I couldn't download any image files because the web site that hosts them appears to be down.

After several minutes, with the phone still on the stock recovery screen, I noticed that the phone rebooted on it's own and loaded in to Android. When I rebooted again, no recovery. It started working perfectly again. It was as if the stock recovery needed to time out or something. I wish I could say it was more skill than that, but I think I got pretty lucky.

I was able to flash TWRP and have not had any issues since. I still appreciate all your help! Thanks again!
[Moto X Android Development] flashallthetime:
Cool, funny it booted to to recovery because it normally boots to the system, every moto is different and I keep saying its frigging finicky. Glad it worked
[Moto X Android Development] dexywexy:
Could the OP please be updated to clarify a few things?

1. Mention the fact that you MUST use mfastboot to get this to flash correctly

2. Remind people that they need to have the bootloader unlocked (I just think it makes it clearer if it's noted)

I got my new dev edition (GSM) today, and followed the instructions in the OP. I've got the latest fastboot from the adt-bundle, but flashing with that vs mfastboot would never actually work. Going into recovery from the bootloader after the flash would just result in the stock recovery screen.

Once I downloaded mfastboot (and stuck it in platform-tools, since it needed the AdbWinApi.dll, stupid Windows...) and flashed with that, I was able to boot into recovery and have TWRP show up with no problems.
[Moto X Android Development] GoClifGo05:
Use Mfastboot not fastboot.....

Sent from my Moto X DE
[Moto X Android Development] MaKTaiL:
Can someone PLEASE ANSWER MY QUESTION? Thank you.

Enviado de meu XT1058 usando Tapatalk
[Moto X Android Development] Classpro:
I just got my wife a MotoX on Republic Wireless. I understand it uses a custom rom to work with its wifi calling system. I don't want to change the rom, but I would like to make a nandroid backup and root to use titaniumBU and teather apps. Can someone point me in the right direction? Do I need to unlock the bootloader, root and install this TWRP? Thanks.
[Moto X Android Development] balaams_ass:
Hmmm

Unlocked Verizon DevEd 4.4 followed instructions for flashing TWRP per OP. Rebooting in to recovery and selecting recovery gives sick Andy image with message "No Command"

Thoughts ? Thanks !

Update

- Don't reboot. Go immediately into recovery. I guess this should be obvious but it wasn't to me. I also had to manually install SuperUser. I was not prompted.
[Moto X Android Development] mschumacher69:
That's right, partially. You actually need to install TWRP before you root because it's TWRP that allows you to root.

---------- Post added at 09:30 PM ---------- Previous post was at 09:28 PM ----------

Have u installed 4.4 as an OTA or as a full SBF? Because I know if you've installed it as an OTA, you'll have trouble installing TWRP, so you would have to flash the full 4.4 SBF using RSDLite before u install TWRP. [MENTION=4661942]flashallthetime[/MENTION] knows more about this.
[Moto X Android Development] dexywexy:
As I posted on the previous page, make sure you use mfastboot (Motorola's version of fastboot). On my GSM DevEd going into recovery immediately after flashing the TWRP image with the regular fastboot still had the device going into stock recovery.

Also, the "do you want to root" prompt only comes up when you reboot while inside TWRP. It won't show up when it starts up...
[Moto X Android Development] Travisdroidx2:
On my Verizon Dev edition I fastboot recovery no problem. I did however use mfasfboot to flash the system.img
[Moto X Android Development] Cubfan99:
How about USB OTG support on this? TWRP Recovery has that option on other phones, but doesn't work on this. I totally need this. :)
[Moto X Android Development] robross0606:
TWRP not flashing

Bootloader has been confirmed unlocked on my TMO 4.4 MotoX. Trying to flash recovery and not working:

Rebooting with adb bootloader when plugged into USB reboots the device back to normal OS.

Trying to shut down with "Power Off" from OS while plugged into USB also reboots to normal OS.

Unplugging USB and powering off works fine. Able to get to fastboot with POWER+VOL DOWN.

Plugged USB once in fastboot and recognized as device on PC.

Attempting to flash twrp yields this:

(bootloader) Variable not supported!
target reported max download size of 805306368 bytes
sending 'recovery' (9854 KB)...
OKAY [ 0.862s]
writing 'recovery'...
OKAY [ 0.988s]
finished. total time: 1.852s

Selecting "recovery" from HBOOT reboots to normal OS.

Powering off and then attempting POWER+VOL DOWN reboot to "No Command" message.

Powering off and then attempting POWER+VOL UP reboots to normal OS.

What am I missing here? What's with the "Variable not supported!" error?

---------- Post added at 11:37 AM ---------- Previous post was at 11:32 AM ----------

Nevermind. Had to press VOL UP after selecting Recovery from HBOOT. Seems like an unnecessarily confusing step. Way different than my previous MyTouch 4G process. Then again, I was using EXT recovery which unfortunately isn't available for the X (yet).
[Moto X Android Development] :
Rude dude!

Sent from my Moto X cell phone telephone...
[Moto X Android Development] MaKTaiL:
It's not rude. I tried asking the same question three times already in a period of a month. I waited several days before asking again but everyone just ignores my post like it wasn't even there. I was trying to get some attention this time but you were the only one who cared to respond it (even if it wasn't to answer what I was asking).
[Moto X Android Development] :
Maybe no one knows? Never thought of that? And caps on like that is considered Rude. Sorry your frustrated, but not getting an answer is usually cause no one knows.... Or they didn't like how you asked.

Maybe start your own thread in Q & A.... More people will see it.

Sent from my Moto X cell phone telephone...

---------- Post added at 02:17 PM ---------- Previous post was at 02:13 PM ----------

I read 2 pages of this thread and found your answer.

XDA is about reading, learning and development.... I found your answer in 30 seconds... In this very thread. You have waited days for someone to answer a question you could have discovered your self in 30 seconds.

Just saying. Good luck! ;)

Sent from my Moto X cell phone telephone...
[Moto X Android Development] kingnaldo28:
Install recovery but now my system is not mounting, any help
[Moto X Android Development] wooddale:
Just unlocked my verizon dev edition moto x cant seem to get twrp to install any sugestions? Thanks
[Moto X Android Development] flashallthetime:
After you flash recovery do not reboot but go directly to recovery and I should stick, select recovery and push the volume up button

Sent on my Moto X
[Moto X Android Development] spyz88:
For some reason when I try to backup my ROM with nandroid it says it can't mount /data or /system. I have /data encrypted and its not asking me for a password. I reflashed TWRP and CWM and I got the same error in CWM. I checked and write protection isn't on. Its a Dev Edition GSM. Anyone know how to fix it?
[Moto X Android Development] GoClifGo05:
[MENTION=4301147]MaKTaiL[/MENTION] you shouldn't use this one. Changes were made so it would work for 4.4... I wouldn't risk it, just use the old one for now.

Sent from my Moto X DE
[Moto X Android Development] sdxda:
Im new to TWRP. I did the flash and it worked just fine.

However, I cannot seem to be able to mount the sdcard. I want to mount the sdcard so that I can copy a file to it from windows and then use it in twrp to flash. I used to be able to do this on Clockwork mod on another device.

I tried to do this in twrp and nothing seems to happen. I think once it said failed to install xt1060 driver in windows. I have the tmobile version so that is incorrect. Does this twrp version only work on non tmobile version?
[Moto X Android Development] immortal_yash:
how did you add full f2fs support to twrp please need help to build the same for moto g :)
[Moto X Android Development] dems86:
I was wondering if anyone has come across a tested CWM recovery for our Moto X and 4.4, I can't really seem to find any reference to one, at least not since 4.4 came out. With 4.4 this TWRP seems to be the defacto. I looked here and noticed a few, but not sure if any have been tested/used with 4.4/fully working.

http://androidhosting.org/Devs/Dhacker29/MotoX/

I noticed there were a couple versions including 6.0.4.5 which was just uploaded today. Any ideas?!?!
[Moto X Android Development] chaoslimits:
Has anyone been able to get ADB working in recovery?
[Moto X Android Development] c1nd3r:
TMo KitKat TWRP and SuperSU

Not sure if it has been mentioned here, but I used the img file with android 4.4 flash used the qbking77 vid on youtube as a reference

[YOUTUBE]2fzih8xkki0[/YOUTUBE]
[Moto X Android Development] rebretz000:
Is there a difference between this TWRP and the one DHacker just released?
[Moto X Android Development] Cubfan99:
Still needs USB OTG support.
[Moto X Android Development] felipendc2012:
Thank you So Much !!! DUDE !!!

[MENTION=4243514]Hashcode[/MENTION]

Dude .. Thanks so much for this wonderful and amazing *** TWRP-2.6.3.1-ghost-4.4 ***

Partner it helped me a lot!! :cool:

Dude I love you!! :good:

I do not know how to thank! :laugh:

Dude you are the best!!

My Moto X did not want to format the date always gave error, and he was always restarting! and I have no more warranty support because I had unlocked the bootloader. :rolleyes:

Man, I was terrified! :crying:

More thanks to that your tool. You saved me! :victory:

Thank you!

I hope you have success! In your life! :good: :fingers-crossed:

and all his works!

A strong hug!

(The Brazil thanks you) : :laugh: :good:
[Moto X Android Development] amluto:
This version (TWRP-2.6.3.1-ghost-4.4) doesn't seem to work with an encrypted /data.
[Moto X Android Development] Temoi19:
Hi guys, I flashed AT&T firmware yesterday and forgot to add the recovery. I do not have access to a computer for a few days...I was just wondering if there is a way to get this TWRP on my phone without a computer?

Any help would be greatly appreciated!

Thanks
[Moto X Android Development] :
Since you can't flash zips with stock recovery.... I doubt it. Not that there's a zip twrp for this phone anyway. I don't think...?
[Moto X Android Development] spyz88:
Is this going to be fixed? I submitted a bug report but do not see how to contact Hashcode. This and the /system not mounting seems to be an issue that needs to be resolved.
[Moto X Android Development] gokart2:
Not unless someone makes it with the open-recovery-script and loads it to goo.im.......

Now I'm trying to understand something, I noticed while using ART compiler that wiping cache and dalvik cache does indeed clear the ART cache. Is the TWRP dalvik wipe actually just a generic runtime compiler partition cache wipe and ART still falls into the category?
[Moto X Android Development] tigim101:
I bought a second hand moto X with the bootloader already unlocked (I get the white screen message on startup) but no recovery or root. So to install TWRP, I need to download the android SDK, hold down the power and volume down buttons while the device is connected to my computer, open a command prompt and navigate to (this is where im confused, to I just set the path to the sdk folder? or do I have to open sdk manager and install packages?) and then type in the provided command line. Is there anything else I need to download to do this if the boot loader is already unlocked?