{"id":2942,"date":"2015-09-25T17:30:54","date_gmt":"2015-09-26T00:30:54","guid":{"rendered":"http:\/\/www.psychocats.net\/ubuntucat\/?p=2942"},"modified":"2015-09-27T13:03:45","modified_gmt":"2015-09-27T20:03:45","slug":"unrooting-returning-to-stock-the-moto-x-2013","status":"publish","type":"post","link":"https:\/\/www.psychocats.net\/ubuntucat\/unrooting-returning-to-stock-the-moto-x-2013\/","title":{"rendered":"Unrooting (returning to stock) the Moto X 2013"},"content":{"rendered":"<h2>Some Background<\/h2>\n<p>I did my first <em>proper<\/em> unroot of my Moto X 2013 recently, and I learned something interesting in the process. In the past, when I&#8217;ve rooted and unrooted my Moto X 2013, I&#8217;d request\/download the factory image straight from the Motorola website and restore that back.<\/p>\n<p><a href=\"http:\/\/www.psychocats.net\/ubuntucat\/wp-content\/uploads\/unsuccessful.png\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/www.psychocats.net\/ubuntucat\/wp-content\/uploads\/unsuccessful-169x300.png\" alt=\"unsuccessful\" width=\"169\" height=\"300\" class=\"alignleft size-medium wp-image-2947\" srcset=\"https:\/\/www.psychocats.net\/ubuntucat\/wp-content\/uploads\/unsuccessful-169x300.png 169w, https:\/\/www.psychocats.net\/ubuntucat\/wp-content\/uploads\/unsuccessful-576x1024.png 576w, https:\/\/www.psychocats.net\/ubuntucat\/wp-content\/uploads\/unsuccessful.png 720w\" sizes=\"auto, (max-width: 169px) 100vw, 169px\" \/><\/a><br \/>Recently, though, I tried to take an OTA (over-the-air) update from Motorola, and it would download the update, try to install the update, and then error out. I&#8217;d then get a message about how the update was unsuccessful. I tried reflashing the recovery and the system. Reflashing everything, clearing the cache, clearing the user data. The OTA update (<em>from Motorola<\/em>, mind you) did not like the factory image from Motorola&#8217;s website.<\/p>\n<p>The only way I could get it to work (big shoutout to <a href=\"http:\/\/forum.xda-developers.com\/member.php?u=3015269\" target=\"_blank\">mastarifla from the XDA forums<\/a> for the tip) was downloading a factory image from a third-party website. Then the OTA update (from Motorola) liked it and installed the update successfully. Go figure.<\/p>\n<p>Some of you all may be skeptical about downloading &#8220;factory images&#8221; frmo third-party websites, and that&#8217;s fine, but this was the only one that I could get an official OTA from Motorola to install on properly. Your mileage may vary.<\/p>\n<h2>Prerequisites and Files to Download<\/h2>\n<p>Before you begin, make sure you do the following:<\/p>\n<ol>\n<li><strong>Back up<\/strong> any important data&mdash;either to the Cloud or your computer&#8217;s hard drive or both. This includes but isn&#8217;t limited to photos, music, apps, bookmarks.<\/li>\n<li>Download the appropriate <strong>moto-fastboot<\/strong> files for your operating system from <a href=\"http:\/\/forum.xda-developers.com\/showthread.php?t=1138092\" target=\"_blank\">the first post in this thread<\/a>. For some reason, the regular fastboot can&#8217;t do some of the larger files, so a special moto-fastboot has to be used.<\/li>\n<li>Download the appropriate <a href=\"http:\/\/motofirmware.center\/files\/category\/11-moto-x-1st-generation\/\" target=\"_blank\"><strong>factory build files<\/strong> for your model of Moto X<\/a>.<\/li>\n<\/ol>\n<h2>Note for Windows users<\/h2>\n<p>\nI don&#8217;t use Windows, but I&#8217;ve heard that you can use <a href=\"http:\/\/rsdlite.com\/\" target=\"_blank\">RSD Lite<\/a> to restore the phone instead of running the commands below. Unfortunately, I can&#8217;t walk you through those steps. You can find details <a href=\"http:\/\/forum.xda-developers.com\/moto-x\/general\/official-moto-x-stagefright-patched-libs-t3200734\/post62971300#post62971300\" target=\"_blank\">here<\/a>.<\/p>\n<h2>Actual Steps<\/h2>\n<p>\nI&#8217;m basing these off of what I did on Mac OS X. There&#8217;s a terminal in Windows and one in Linux, too, so similar principles will apply, but the exact steps may be slightly different.<\/p>\n<ol>\n<li>Once the factory build is downloaded, double-click it to unzip it.<\/li>\n<li>Move the unzipped moto-fastboot file into the unzipped folder. For Macs, that would be <em>moto-fastboot-x64<\/em>.<\/li>\n<li>Open up the \/Applications\/Utilities\/Terminal.app and type in\n<div class=\"terminal\">cd <\/div>\n<p> with a space at the end<\/li>\n<li>Drag the factory build unzipped folder to the terminal, and then hit Enter. Your terminal should now be focused on that directory.<\/li>\n<li>With your phone unplugged, hold down the power button until it prompts you to power off. Then power it off when prompted.<\/li>\n<li>While holding the volume-down key, tap the power button and wait for it to boot up. It should boot into something called &#8220;fastboot mode&#8221; with a black screen and some colored text.<\/li>\n<li>Keeping the phone in fastboot mode, connect it to your computer via USB.<\/li>\n<li>Run the following commands (note: it may be better to copy and paste them one by one than to do them all at once in a script or to retype them manually).\n<div class=\"terminal\">\n.\/moto-fastboot-osx64 erase cache<br \/>\n.\/moto-fastboot-osx64 erase userdata<br \/>\n.\/moto-fastboot-osx64 flash partition gpt.bin<br \/>\n.\/moto-fastboot-osx64 flash motoboot motoboot.img<br \/>\n.\/moto-fastboot-osx64 flash logo logo.bin<br \/>\n.\/moto-fastboot-osx64 flash motoboot motoboot.img<br \/>\n.\/moto-fastboot-osx64 flash logo logo.bin<br \/>\n.\/moto-fastboot-osx64 flash boot boot.img<br \/>\n.\/moto-fastboot-osx64 flash recovery recovery.img<br \/>\n.\/moto-fastboot-osx64 flash system system.img<br \/>\n.\/moto-fastboot-osx64 flash modem NON-HLOS.bin<br \/>\n.\/moto-fastboot-osx64 erase modemst1<br \/>\n.\/moto-fastboot-osx64 erase modemst2<br \/>\n.\/moto-fastboot-osx64 flash fsg fsg.mbn<br \/>\n.\/moto-fastboot-osx64 erase customize<br \/>\n.\/moto-fastboot-osx64 erase clogo<br \/>\n.\/moto-fastboot-osx64 oem fb_mode_clear\n<\/div>\n<\/ol>\n<p>It&#8217;s possible that erasing <em>userdata<\/em> may not be necessary. More details in <a href=\"http:\/\/forum.xda-developers.com\/moto-x\/general\/xt1053-222-27-5-stagefright-ota-update-t3210786\" target=\"_blank\">XT1053 222.27.5 Stagefright OTA Update Guide<\/a>.<\/p>\n<p><a href=\"http:\/\/www.psychocats.net\/ubuntucat\/wp-content\/uploads\/successful.png\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/www.psychocats.net\/ubuntucat\/wp-content\/uploads\/successful-169x300.png\" alt=\"successful\" width=\"169\" height=\"300\" class=\"alignleft size-medium wp-image-2948\" srcset=\"https:\/\/www.psychocats.net\/ubuntucat\/wp-content\/uploads\/successful-169x300.png 169w, https:\/\/www.psychocats.net\/ubuntucat\/wp-content\/uploads\/successful-576x1024.png 576w, https:\/\/www.psychocats.net\/ubuntucat\/wp-content\/uploads\/successful.png 720w\" sizes=\"auto, (max-width: 169px) 100vw, 169px\" \/><\/a><br \/>After that, when you reboot your Moto X, it should be back to factory settings <em>and<\/em> able to take OTA updates.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Some Background I did my first proper unroot of my Moto X 2013 recently, and I learned something interesting in the process. In the past, when I&#8217;ve rooted and unrooted my Moto X 2013, I&#8217;d request\/download the factory image straight from the Motorola website and restore that back. Recently, though, I tried to take an&hellip; <a class=\"more-link\" href=\"https:\/\/www.psychocats.net\/ubuntucat\/unrooting-returning-to-stock-the-moto-x-2013\/\">Continue reading <span class=\"screen-reader-text\">Unrooting (returning to stock) the Moto X 2013<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[869,895,933,932,931],"class_list":["post-2942","post","type-post","status-publish","format-standard","hentry","category-uncategorized","tag-moto-x","tag-moto-x-2013","tag-ota","tag-return-to-stock","tag-unroot","entry"],"_links":{"self":[{"href":"https:\/\/www.psychocats.net\/ubuntucat\/wp-json\/wp\/v2\/posts\/2942","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.psychocats.net\/ubuntucat\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.psychocats.net\/ubuntucat\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.psychocats.net\/ubuntucat\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.psychocats.net\/ubuntucat\/wp-json\/wp\/v2\/comments?post=2942"}],"version-history":[{"count":6,"href":"https:\/\/www.psychocats.net\/ubuntucat\/wp-json\/wp\/v2\/posts\/2942\/revisions"}],"predecessor-version":[{"id":2951,"href":"https:\/\/www.psychocats.net\/ubuntucat\/wp-json\/wp\/v2\/posts\/2942\/revisions\/2951"}],"wp:attachment":[{"href":"https:\/\/www.psychocats.net\/ubuntucat\/wp-json\/wp\/v2\/media?parent=2942"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.psychocats.net\/ubuntucat\/wp-json\/wp\/v2\/categories?post=2942"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.psychocats.net\/ubuntucat\/wp-json\/wp\/v2\/tags?post=2942"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}