{"id":2910,"date":"2015-05-11T20:27:58","date_gmt":"2015-05-12T03:27:58","guid":{"rendered":"http:\/\/www.psychocats.net\/ubuntucat\/?p=2910"},"modified":"2015-09-25T09:40:00","modified_gmt":"2015-09-25T16:40:00","slug":"installing-a-custom-rom-on-an-unlocked-moto-x-2013","status":"publish","type":"post","link":"https:\/\/www.psychocats.net\/ubuntucat\/installing-a-custom-rom-on-an-unlocked-moto-x-2013\/","title":{"rendered":"Installing a custom rom on an unlocked Moto X 2013"},"content":{"rendered":"<p>I&#8217;ve been rooting and installing custom roms on Android phones since 2009. In general, it&#8217;s been a fairly standard procedure. With the Moto X 2013 (and this may apply to the 2014 as well&mdash;I don&#8217;t know&mdash;I can vouch only for the 2013), the procedure is slightly different.<\/p>\n<p><a href=\"#unlockbootloader\">Unlock bootloader<\/a><br \/>\n<!-- <a href=\"#factoryimage\">Get factory image<\/a><br \/> --><br \/>\n<a href=\"#mfastboot\">Get Motorola&#8217;s fastboot<\/a><br \/>\n<a href=\"#twrp\">Get TWRP<\/a><br \/>\n<a href=\"#customrom\">Get the custom rom you want<\/a><br \/>\n<a href=\"#flashrecovery\">Flash TWRP recovery to phone<\/a><br \/>\n<a href=\"#flashingrom\">Flashing the rom (and Google Apps)<\/a>\n<\/p>\n<h2><a name=\"unlockbootloader\">Unlock bootloader<\/a><\/h2>\n<p>Go to <a href=\"https:\/\/motorola-global-portal.custhelp.com\/app\/standalone\/bootloader\/unlock-your-device-a\" target=\"_blank\">the Motorola website<\/a> to request to unlock your phone&#8217;s bootloader. If you got a phone not locked to a carrier, there should be no issue with this.<\/p>\n<p>\nThe first time you unlock your bootloader, it will erase everything on your phone. Back up important stuff before you unlock the bootloader!\n<\/p>\n<p><!-- \n\n<h2><a name=\"factoryimage\">Get factory image<\/a><\/h2>\n\n\n\n\n<p>In case you decide you want to ever unroot and go back to the original Motorola factory image, you should now (before you do anything else) request from Motorola <a href=\"https:\/\/motorola-global-portal.custhelp.com\/app\/standalone\/bootloader\/recovery-images\" target=\"_blank\">the original factory image for your Moto X<\/a>. This may take a day or two. You'll make a request, and then you'll get an email with a link to the file. It's basically like a shared Google Doc file that you'll get read-only permission to view.<\/p>\n\n\n\n\n<p>The last one I got was 4.4.4. If you want to get that one from a third-party and want to double-check the MD5 hash, the file name is <em>TMO_RETAIL_XT1053_4.4.4_213.44.1.ghost_row.Retail.en.US_MR4_CFC.tgz<\/em>, and the hash is <em>22773e5981cb04f6286a12e9488d0db5<\/em>.<\/p>\n\n\n--><\/p>\n<h2><a name=\"mfastboot\">Get Motorola&#8217;s fastboot<\/a><\/h2>\n<p>I&#8217;m not sure why, but apparently Motorola has its own fastboot, so you&#8217;re supposed to use that one instead of the regular fastboot you&#8217;d find in the Android SDK (Google has also switched things up so if you go to get the Android SDK, you&#8217;ll get an Android IDE app instead of just the raw files).<\/p>\n<p>The weird thing is it&#8217;s very difficult to find this Moto Fastboot anywhere on the Motorola website. I&#8217;ve found it only via third parties.<\/p>\n<p><a href=\"https:\/\/gist.github.com\/crazed\/7670423\" target=\"_blank\">Here<\/a> you can find a link to <a href=\"http:\/\/forum.xda-developers.com\/attachment.php?attachmentid=635333&#038;d=130890301\" target=\"_blank\">the Mac version<\/a>.<\/p>\n<p>And <a href=\"http:\/\/mark.cdmaforums.com\/ADB.htm\" target=\"_blank\">here<\/a> you can find a link to <a href=\"http:\/\/mark.cdmaforums.com\/X-STUFF\/mfastboot-442.zip\" target=\"_blank\">the Windows version<\/a>.<\/p>\n<p>I wasn&#8217;t able to track down Linux versions, but they supposedly exist.<\/p>\n<h2><a name=\"twrp\">Get TWRP<\/a><\/h2>\n<p>Next, you want to download the TWRP (Team Win Recovery Project) recovery for the Moto X 2013 (codenamed <em>ghost<\/em>). You can find the latest version on <a href=\"https:\/\/dl.twrp.me\/ghost\/\" target=\"_blank\">the TWRP website<\/a>.<\/p>\n<h2><a name=\"customrom\">Get the custom rom you want<\/a><\/h2>\n<p>\nFor this example, I&#8217;m going to recommend <a href=\"https:\/\/nxrom.us\/motox.html\" target=\"_blank\">the Nexus Experience<\/a>, but you can pick whatever rom you want. Unless you know you <em>don&#8217;t<\/em> want Google Apps, be sure to download not just the rom but also the Google Apps .zip.\n<\/p>\n<p>\nSo one file should look something like <strong>Android5.1.1_NX_R9.4_MotoX2013.zip<\/strong> and another something like <strong>NX-GAPPS_L_Release3.3_Full.zip<\/strong>.\n<\/p>\n<p>\nPlug your phone into your computer, and then copy those two files to the top-level <strong>\/sdcard<\/strong> directory on your phone.\n<\/p>\n<h2><a name=\"flashrecovery\">Flash TWRP recovery to phone<\/a><\/h2>\n<p>I&#8217;m sure there&#8217;s a Windows equivalent for this using DOS, but I&#8217;ve done this only on a Mac, so I&#8217;m not 100% sure on the Windows procedure.<\/p>\n<p>For Mac, put the TWRP file (something like <strong>twrp-2.8.6.0-ghost.img<\/strong>) in the same directory as your <strong>moto-fastboot-osx64<\/strong> file (may be slightly different for Windows and Linux users, of course). For simplicity&#8217;s sake, rename the TWRP file to be <strong>twrp.img<\/strong>.<\/p>\n<p>Turn your Moto X 2013 off. Unplug it from your computer. Then, while holding the volume-down button down, press the power button. Don&#8217;t let go of the volume-down button until your phone boots into fastboot mode.<\/p>\n<p>Then, plug your phone back into your computer via USB.<\/p>\n<p>In the Terminal.app (similar but different for Windows and Linux), navigate to the directory where your moto fastboot and twrp .img files are. If you don&#8217;t know how to do that, type <strong>cd <\/strong> in the terminal (with a space after it), and then drag the folder over to the terminal. Then hit Enter.<\/p>\n<p>Then, run the commands <\/p>\n<div class=\"terminal\">.\/moto-fastboot-osx64 flash recovery twrp.img<\/div>\n<\/p>\n<h2><a name=\"flashingrom\">Flashing the rom (and Google Apps)<\/a><\/h2>\n<p>You should still be at the fastboot screen, press the volume-down button once to highlight <strong>Recovery<\/strong>, and then press the volume-up button once to select it.<\/p>\n<p>You should then see the <em>teamwin<\/em> logo.<\/p>\n<p>After that, you&#8217;ll get some touch-screen options.<\/p>\n<p>First, select <strong>Wipe<\/strong> to wipe your current installation (you already backed up before unlocking the bootloader, right?). Then do a swipe to factory reset.<\/p>\n<p>Once you&#8217;re done, hit the back button to go back to the main menu. Next, select <strong>Install<\/strong>. Find your main rom (e.g., <em>Android5.1.1_NX_R9.4_MotoX2013.zip<\/em>) and flash that.<\/p>\n<p>Go back to <strong>Install<\/strong> and flash Google Apps if you want (e.g., <em>NX-GAPPS_L_Release3.3_Full.zip<\/em>). If you don&#8217;t know if you want Google Apps, flash it, just to be safe.<\/p>\n<p>Then, go back to the main menu and select <strong>Reboot<\/strong> and then <Strong>System<\/strong>.<\/p>\n<p>It may take a while for your rom to boot up the first time, but then you&#8217;re all set to use your custom rooted rom!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I&#8217;ve been rooting and installing custom roms on Android phones since 2009. In general, it&#8217;s been a fairly standard procedure. With the Moto X 2013 (and this may apply to the 2014 as well&mdash;I don&#8217;t know&mdash;I can vouch only for the 2013), the procedure is slightly different. Unlock bootloader Get Motorola&#8217;s fastboot Get TWRP Get&hellip; <a class=\"more-link\" href=\"https:\/\/www.psychocats.net\/ubuntucat\/installing-a-custom-rom-on-an-unlocked-moto-x-2013\/\">Continue reading <span class=\"screen-reader-text\">Installing a custom rom on an unlocked 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":[641,869,895,897,896,286,898],"class_list":["post-2910","post","type-post","status-publish","format-standard","hentry","category-uncategorized","tag-android","tag-moto-x","tag-moto-x-2013","tag-nexus-experience","tag-rom","tag-root","tag-twrp","entry"],"_links":{"self":[{"href":"https:\/\/www.psychocats.net\/ubuntucat\/wp-json\/wp\/v2\/posts\/2910","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=2910"}],"version-history":[{"count":8,"href":"https:\/\/www.psychocats.net\/ubuntucat\/wp-json\/wp\/v2\/posts\/2910\/revisions"}],"predecessor-version":[{"id":2943,"href":"https:\/\/www.psychocats.net\/ubuntucat\/wp-json\/wp\/v2\/posts\/2910\/revisions\/2943"}],"wp:attachment":[{"href":"https:\/\/www.psychocats.net\/ubuntucat\/wp-json\/wp\/v2\/media?parent=2910"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.psychocats.net\/ubuntucat\/wp-json\/wp\/v2\/categories?post=2910"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.psychocats.net\/ubuntucat\/wp-json\/wp\/v2\/tags?post=2910"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}