[Moto X Q&A] Mike7143:
[SOLVED]

Verizon Developer Edition. I just did a complete reset to 4.4, stock recovery and all. Booted up, got the 4.4.2 update, installed that. Flashed custom boot logo, then flashed TWRP again. Went to go wipe data/cache and accidentally wiped system. Now I've got no OS.

What do I do now? I've updated to 4.4.2 from 4.4 and can't revert back.

You'll need a good friend who can make a backup in TWRP of just the System partition. This friend probably should have an identical phone, in my case, we both have Verizon Developer Editions. He also needs to be giving you a TWRP system backup that matches what you most recently had flashed. In my case, I had just taken the 4.4.2 update. Luckily he had too already. A TWRP backup of the system partition from someone on 4.4 or 4.2.2 would, I'd guess, brick you. So best to find someone with an identical phone to you and matching software, otherwise I don't know what'd happen. There should be 3 files, a recovery.log, system.ext4.win, and system.win.md5. This is about 1GB so it'll take time to transfer/download/upload around the place.

I had downloaded the adb tools a while back from step 1 here: http://www.elementalxdesigns.com/ec...our-Moto-X-Developer-Edition-and-install-TWRP

You need adb and all the drivers and crap working for this

Put the 3 files in that folder, where adb is.

Next, boot into TWRP on your phone with no OS and make a backup of everything, should go quick as there's no system and I'd guess data is probably pretty empty...

Next, go back to TWRP main page and go to mounts, then mount the /Data partition.

Shift and right click in Windows Explorer where adb is and open command prompt, type in adb shell and you should get a prompt. Type ls and hit enter, should see contents of the /Data partition

Type cd sdcard/TWRP/BACKUPS and hit enter, then type ls and hit enter, you should see another folder named T something, this is the phone's serial number. Type "cd serial" where serial is the name of that T folder and hit enter again.

Type ls again and you should see a folder starting with 2014- or whatever year you may be reading this in... that's the folder that has the backup files you just made.

Type mkdir A and hit enter followed by typing ls again, now you should see that 2014- folder and another folder named A

Type exit to get out of shell. Now type adb push recovery.log /sdcard/TWRP/BACKUPS/XXXXXXXX/A where XXXXXXX is that T serial number, then hit enter. Should say it pushed a file in like .005s or something.

You can type adb shell again, enter, and navigate to the directory to make sure there's a recovery.log file in the A folder. If there is, good. If not, no good, you did something wrong. Don't forget to type exit to get out of shell and back into Windows command.

Now do the same for the next small file, so type adb push system.ext4.win.md5 /sdcard/TWRP/BACKUPS/XXXXXXXX/A where XXXXXXX is that T serial number, then hit enter. Should say it pushed a file in like .007s or something.

Finally, the big file. Don't panic like I did, it'll take some time, like 4 minutes maybe. Type adb push system.ext4.win /sdcard/TWRP/BACKUPS/XXXXXXXX/A where XXXXXXX is that T serial number, then hit enter. Should say it pushed a file in like 380s or something.

So, now you should have your TWRP system partition backup files in the A folder in the proper folder hierarchy. Now on the phone, just back out of mounts (hit middle button) and shut phone down and it'll warn you about there not being an OS.

Reboot recovery, Restore, you should now see the folder named A as an option. Hit that, and it should auto select System and nothing else. I did md5 check option. Slide to restore. Wait. Wait. Wait. Reboot.

If you're lucky, you'll see the boot animation and hopefully boot back into Android. It'll take a while the first go too so be patient.