Last active
November 28, 2020 17:37
-
-
Save eexit/4176f8264f35e63a79b09c16a31e2792 to your computer and use it in GitHub Desktop.
Revisions
-
eexit revised this gist
Oct 18, 2016 . 1 changed file with 1 addition and 0 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -82,6 +82,7 @@ If you need a complete factory reset (including data/app reset), you can basical $ ./moto-fastboot-osx64 erase customize $ ./moto-fastboot-osx64 erase clogo $ ./moto-fastboot-osx64 oem fb_mode_clear $ ./moto-fastboot-osx64 reboot ### References -
eexit revised this gist
Oct 18, 2016 . 1 changed file with 2 additions and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -64,9 +64,11 @@ You can ensure you have the right version by checking version/model/build, etc. If you need a complete factory reset (including data/app reset), you can basically play all the commands that are in `rom/flashfile.xml`: $ ./moto-fastboot-osx64 getvar max-download-size $ ./moto-fastboot-osx64 oem fb_mode_set $ ./moto-fastboot-osx64 flash partition rom/gpt.bin $ ./moto-fastboot-osx64 flash motoboot rom/motoboot.img $ ./moto-fastboot-osx64 reboot-bootloader $ ./moto-fastboot-osx64 flash logo rom/logo.bin $ ./moto-fastboot-osx64 flash boot rom/boot.img $ ./moto-fastboot-osx64 flash recovery rom/recovery.img @@ -79,7 +81,6 @@ If you need a complete factory reset (including data/app reset), you can basical $ ./moto-fastboot-osx64 erase userdata $ ./moto-fastboot-osx64 erase customize $ ./moto-fastboot-osx64 erase clogo $ ./moto-fastboot-osx64 oem fb_mode_clear ### References -
eexit revised this gist
Oct 18, 2016 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -31,7 +31,7 @@ $ unzip moto-fastboot-osx.zip -d moto-fastboot-osx $ cd moto-fastboot-osx 2. Grab the appropriate stock firmware [here](http://forum.xda-developers.com/devdb/project/?id=10785#downloads) (or [here](http://firmware.center/firmware/Motorola/Moto%20X%20%281st%20gen-2013%29/Stock/XT1052/)) (you want the one that matches your Android build number in Settings > About phone > System version) $ unzip XT1052_GHOST_RETEU_5.1_LPA23.12-15_cid7_CFC.xml.zip -d rom Archive: XT1052_GHOST_RETEU_5.1_LPA23.12-15_cid7_CFC.xml.zip -
eexit renamed this gist
May 27, 2016 . 1 changed file with 0 additions and 0 deletions.There are no files selected for viewing
File renamed without changes. -
eexit revised this gist
May 27, 2016 . 1 changed file with 17 additions and 17 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -64,23 +64,23 @@ You can ensure you have the right version by checking version/model/build, etc. If you need a complete factory reset (including data/app reset), you can basically play all the commands that are in `rom/flashfile.xml`: $ ./moto-fastboot-osx64 oem fb_mode_set $ ./moto-fastboot-osx64 flash partition rom/gpt.bin $ ./moto-fastboot-osx64 flash motoboot rom/motoboot.img $ ./moto-fastboot-osx64 flash logo rom/logo.bin $ ./moto-fastboot-osx64 flash boot rom/boot.img $ ./moto-fastboot-osx64 flash recovery rom/recovery.img $ ./moto-fastboot-osx64 flash system rom/system.img $ ./moto-fastboot-osx64 flash modem rom/NON-HLOS.bin $ ./moto-fastboot-osx64 erase modemst1 $ ./moto-fastboot-osx64 erase modemst2 $ ./moto-fastboot-osx64 flash fsg rom/fsg.bin $ ./moto-fastboot-osx64 erase cache $ ./moto-fastboot-osx64 erase userdata $ ./moto-fastboot-osx64 erase customize $ ./moto-fastboot-osx64 erase clogo $ ./moto-fastboot-osx64 erase clogo $ ./moto-fastboot-osx64 oem fb_mode_clear ### References -
eexit revised this gist
May 27, 2016 . 1 changed file with 46 additions and 48 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -4,85 +4,83 @@ 1. Downloads the [Android SDK Command Line Tools](https://developer.android.com/studio/index.html#downloads) $ unzip android-sdk-macosx.zip $ cd android-sdk-macosx 2. Create a backup folder $ mkdir backup 3. Plug your phone and make sure you have the Developer Options enabled (tap 7 times on Settings > About phone > Build number) 4. Make sure you can interact with your phone from the Terminal $ ./platform-tools/adb devices List of devices attached XXXXXXXXXX device 5. Backup your SDCard content $ ./platform-tools/adb pull -p /storage/sdcard0/ ./backup/ $ ... ## Flash stock images back 1. Grab the OSX moto-fastboot version of fastboot [here](http://forum.xda-developers.com/showthread.php?t=1138092) $ unzip moto-fastboot-osx.zip -d moto-fastboot-osx $ cd moto-fastboot-osx 2. Grab the appropriate stock firmware [here](http://firmware.center/firmware/Motorola/Moto%20X%20%281st%20gen-2013%29/Stock/XT1052/) (you want the one that matches your Android build number in Settings > About phone > System version) $ unzip XT1052_GHOST_RETEU_5.1_LPA23.12-15_cid7_CFC.xml.zip -d rom Archive: XT1052_GHOST_RETEU_5.1_LPA23.12-15_cid7_CFC.xml.zip inflating: rom/motoboot.img inflating: rom/recovery.img inflating: rom/fsg.mbn inflating: rom/gpt.bin inflating: rom/boot.img inflating: rom/system.img inflating: rom/logo.bin inflating: rom/NON-HLOS.bin inflating: rom/flashfile.xml inflating: rom/servicefile.xml inflating: rom/factory_version_info_cfc.txt You can ensure you have the right version by checking version/model/build, etc. in `factory_version_info_cfc.txt`. 3. Boot your phone into the bootloader (Power down phone > Hold Volume Down and Power > Release Power button after a few seconds) 4. Verify your phone is available $ ./moto-fastboot-osx64 devices XXXXXXXXXX fastboot 6. Generally, flashing these images is enough $ ./moto-fastboot-osx64 flash boot rom/boot.img $ ./moto-fastboot-osx64 flash recovery rom/recovery.img $ ./moto-fastboot-osx64 flash system system.img $ ./moto-fastboot-osx64 reboot If you need a complete factory reset (including data/app reset), you can basically play all the commands that are in `rom/flashfile.xml`: $ ./moto-fastboot-osx64 oem fb_mode_set $ ./moto-fastboot-osx64 flash partition rom/gpt.bin $ ./moto-fastboot-osx64 flash motoboot rom/motoboot.img $ ./moto-fastboot-osx64 flash logo rom/logo.bin $ ./moto-fastboot-osx64 flash boot rom/boot.img $ ./moto-fastboot-osx64 flash recovery rom/recovery.img $ ./moto-fastboot-osx64 flash system rom/system.img $ ./moto-fastboot-osx64 flash modem rom/NON-HLOS.bin $ ./moto-fastboot-osx64 erase modemst1 $ ./moto-fastboot-osx64 erase modemst2 $ ./moto-fastboot-osx64 flash fsg rom/fsg.bin $ ./moto-fastboot-osx64 erase cache $ ./moto-fastboot-osx64 erase userdata $ ./moto-fastboot-osx64 erase customize $ ./moto-fastboot-osx64 erase clogo $ ./moto-fastboot-osx64 erase clogo $ ./moto-fastboot-osx64 oem fb_mode_clear ### References -
eexit created this gist
May 27, 2016 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,90 @@ # Getting a Moto X back to stock on OSX ## Backup, first! 1. Downloads the [Android SDK Command Line Tools](https://developer.android.com/studio/index.html#downloads) $ unzip android-sdk-macosx.zip $ cd android-sdk-macosx 2. Create a backup folder $ mkdir backup 3. Plug your phone and make sure you have the Developer Options enabled (tap 7 times on Settings > About phone > Build number) 4. Make sure you can interact with your phone from the Terminal $ ./platform-tools/adb devices List of devices attached XXXXXXXXXX device 5. Backup your SDCard content $ ./platform-tools/adb pull -p /storage/sdcard0/ ./backup/ $ ... ## Flash stock images back 1. Grab the OSX moto-fastboot version of fastboot [here](http://forum.xda-developers.com/showthread.php?t=1138092) $ unzip moto-fastboot-osx.zip -d moto-fastboot-osx $ cd moto-fastboot-osx 2. Grab the appropriate stock firmware [here](http://firmware.center/firmware/Motorola/Moto%20X%20%281st%20gen-2013%29/Stock/XT1052/) (you want the one that matches your Android build number in Settings > About phone > System version) $ unzip XT1052_GHOST_RETEU_5.1_LPA23.12-15_cid7_CFC.xml.zip -d rom Archive: XT1052_GHOST_RETEU_5.1_LPA23.12-15_cid7_CFC.xml.zip inflating: rom/motoboot.img inflating: rom/recovery.img inflating: rom/fsg.mbn inflating: rom/gpt.bin inflating: rom/boot.img inflating: rom/system.img inflating: rom/logo.bin inflating: rom/NON-HLOS.bin inflating: rom/flashfile.xml inflating: rom/servicefile.xml inflating: rom/factory_version_info_cfc.txt You can ensure you have the right version by checking version/model/build, etc. in `factory_version_info_cfc.txt`. 3. Boot your phone into the bootloader (Power down phone > Hold Volume Down and Power > Release Power button after a few seconds) 4. Verify your phone is available $ ./moto-fastboot-osx64 devices XXXXXXXXXX fastboot 6. Generally, flashing these images is enough $ ./moto-fastboot-osx64 flash boot rom/boot.img $ ./moto-fastboot-osx64 flash recovery rom/recovery.img $ ./moto-fastboot-osx64 flash system system.img $ ./moto-fastboot-osx64 reboot If you need a complete factory reset (including data/app reset), you can basically play all the commands that are in `rom/flashfile.xml`: $ ./moto-fastboot-osx64 oem fb_mode_set $ ./moto-fastboot-osx64 flash partition rom/gpt.bin $ ./moto-fastboot-osx64 flash motoboot rom/motoboot.img $ ./moto-fastboot-osx64 flash logo rom/logo.bin $ ./moto-fastboot-osx64 flash boot rom/boot.img $ ./moto-fastboot-osx64 flash recovery rom/recovery.img $ ./moto-fastboot-osx64 flash system rom/system.img $ ./moto-fastboot-osx64 flash modem rom/NON-HLOS.bin $ ./moto-fastboot-osx64 erase modemst1 $ ./moto-fastboot-osx64 erase modemst2 $ ./moto-fastboot-osx64 flash fsg rom/fsg.bin $ ./moto-fastboot-osx64 erase cache $ ./moto-fastboot-osx64 erase userdata $ ./moto-fastboot-osx64 erase customize $ ./moto-fastboot-osx64 erase clogo $ ./moto-fastboot-osx64 erase clogo $ ./moto-fastboot-osx64 oem fb_mode_clear ### References - http://mark.cdmaforums.com/MotoX-ReturnToStock.html - http://forum.xda-developers.com/moto-x/general/guide-moto-x-return-to-100-stock-using-t2446515