Moto X 1st gen recently recieved an OTA update which fixes the Stagefright bug that was discovered recently in the Android source code. The new update patches the bug making your device secure from the vulnerabilities of Stagefright bug.

Must Read: All You Need to Know About Stagefright Bug on Android

If you are rooted have installed a custom recovery you won’t be able to install the OTA update directly on your device. You would have to install the stock firmware or stock recovery  first to install the OTA update successfully on your device. Follow this guide if you are rooted and have installed a custom recovery on your Moto X.

Things You Will Need

Steps To Follow

There are two methods for updating your device, first one is a bit complicated compared to the second one. In first method we will flash the stock firmware first which will  install the stock recovery on your device and then you will be able to install OTA without any issues. The second method is the easy method in which you just need to flash a zip in the custom recovery, like installing any other ROM.

Method 1

  1. Boot into the custom recovery(TWRP) installed on your device and make a full backup, then connect your phone to your computer and transfer the backup files to your computer.
  2. Reboot your phone into the bootloader, by using the physical key combination (power off your device and then press and hold the power and volume down key for ~4 seconds).
  3. Download the Stock 5.1 Image from here, do NOT use Motorola’s Recovery Image to do this procedure, it will fail, and extract the contents to a folder on your computer.
  4. Download the attached mfastboot zip according to your PC’s operating system and unzip the contents to the same folder on your computer (if you are having issues with mfastboot try mfastboot-v2.zip reefuge’s version and see if it helps!).
  5. Open up a command prompt in the directory (Right click while holding down Shift Key> Open Command Window here) and use the following commands to flash the Android 5.1 Stock Image, erasing the partitions is not required but it is highly recommended, as you can easily restore the TWRP data partition after doing these steps if you want your personal data back.
    Code:
    not required, but recommended!
    mfastboot erase userdata
    mfastboot erase cache
    mfastboot erase customize
    mfastboot erase clogo
    required
    mfastboot flash partition gpt.bin
    mfastboot flash motoboot motoboot.img
    mfastboot reboot-bootloader
    mfastboot flash logo logo.bin
    mfastboot flash boot boot.img
    mfastboot flash recovery recovery.img
    mfastboot -P flash system system.img
    mfastboot flash modem NON-HLOS.bin
    mfastboot erase modemst1
    mfastboot erase modemst2
    mfastboot flash fsg fsg.mbn
    mfastboot reboot
  6. Reboot your phone and do your initial 5.1 phone setup, and then immediately check for System Updates.
  7. Download the OTA update, once its downloaded install it.
  8. Congrats! you have successfully updated your device.

Method 2

  1. Download the zip file from here.
  2. Reboot your device into recovery.
  3. Make a nandroid backup.
  4. Perform factory reset. (Not  necessary but recommended).
  5. Wipe Cache/Dalvik Cache.
  6. Install zip.
  7. Reboot
  8. Done!

Well the method two is recommended as it is easy to follow and does not require a PC. You can consider any method of your choice both should work fine. Let us know any troubles you face while updating your device in the comments section below.

This site uses Akismet to reduce spam. Learn how your comment data is processed.