Tips Updates

Fix for “error: update package missing system.img” on Android 5.0 Factory Images for Nexus devices

It seems there’s some issue with Google’s batch script included in the Android 5.0 Lollipop factory images. Users are reporting that upon flashing the Lollipop factory image using flash-all.bat…

It seems there’s some issue with Google’s batch script included in the Android 5.0 Lollipop factory images. Users are reporting that upon flashing the Lollipop factory image using flash-all.bat…

56 Comments
Fix for “error: update package missing system.img” on Android 5.0 Factory Images for Nexus devices
Shivam

Shivam Shivam is our resident designer and web developer who also enjoys writing. He loves to meditate, drive on the freeways and hunt for snipers during his Call Of Duty playtime. Email: [email protected]

It seems there’s some issue with Google’s batch script included in the Android 5.0 Lollipop factory images. Users are reporting that upon flashing the Lollipop factory image using flash-all.bat file the command window fails to install the factory image and shows the following error: “error: update package missing system.img”.

Google’s Conley Owens acknowledged this issue and recommended to use the latest Fastboot from the SDK. However, even after using the latest SDK, the problem seems to persist. Here’s the whole message Conley put up on Google groups [Android building]:

We’re hearing from users who are getting a “missing system.img” error when trying to flash a device.  If you are seeing this issue, please use the latest fastboot.

You can get it from the SDK at https://developer.android.com/sdk/index.html or you can build it in the AOSP source tree by running `make fastboot`.

So how do you fix the missing system.img error?

Using the latest Fastboot doesn’t helps, so to get rid of the missing system.img error you gotta flash the files manually, without using the included batch script in the factory image as it’s failing to find the system.img file.

Follow the simple steps below to see how to install the factory image manually:

  1. Assuming you’ve already extracted the factory image, look for the image-xxx-xxx.zip file inside the factory image.
  2. Unzip/extract the image-xxx-xxx.zip file to a separate folder on your PC, you’ll get the following files:
    • boot.img
    • cache.img
    • recovery.img
    • system.img
    • userdata.img
    • system.img
  3. Copy/paste the bootloader and radio image too from the factory image to the folder where you extracted files in Step 2 above.
  4. [Skip this step if you already have a working adb/fastboot setup!] Copy/paste the contents of this adb_and_fastboot_files.zip file to the same folder again from Step 2 above.
  5. Open the folder where all your files are now present, it should look like this:
    All files in one folder
    └ If you skipped the Step 4 above, then ignore the highlighted files in the screenshot above. Rest of files, though, should be present in your folder.
  6. Open a command window inside the folder where all your files are. For this “Shift + Right click” on any empty white space inside the folder and select “Open command window here” from the context menu.
  7. Now issue the following commands one by one to install/flash Android 5.0 Lollipop factory image manually on your Nexus device:
    fastboot flash bootloader bootloader.img

    └ Use the file name of bootloader image instead of bootloader.img. For example, Nexus 5’s bootloader will have the name “bootloader-hammerhead-hhz12d.img”

    fastboot flash radio radio.img

    └ Use the file name of your radio image. For Nexus 5, it’s “radio-hammerhead-m8974a-2.0.50.2.21.img”

    fastboot reboot-bootloader
    fastboot flash recovery recovery.img
    fastboot flash boot boot.img
    fastboot flash system system.img

    └ Be patient with the system.img file, it’s the biggest file of all so will take time installing.

  8. Once system.img is flashed successfully. Reboot your device by issuing the following command:
    fastboot reboot
  9. Your device will now reboot with the latest and greatest Android update of all, Android 5.0 Lollipop. Be extremely excited for this!

This will be your device’s first boot on Android 5.0, so be patient if takes long to boot.

56 responses to “Fix for “error: update package missing system.img” on Android 5.0 Factory Images for Nexus devices”

  1. Guest Avatar

    Thanks for this!

  2. Guest Avatar

    Thanks, worked perfectly on my Nexus 7 2013 version, really appreciate it

  3. Connor Avatar

    Thanks for this!

  4. Connor Avatar

    Thanks for this!

  5. JT Avatar

    Thanks, worked perfectly on my Nexus 7 2013 version, really appreciate it

  6. JT Avatar

    Thanks, worked perfectly on my Nexus 7 2013 version, really appreciate it

  7. Guest Avatar

    During the installation of system.img this error is showing “FAILED (data transfer failure (Too many links))” Help please!

  8. Guest Avatar

    During the installation of system.img this error is showing “FAILED (data transfer failure (Too many links))” Help please!

    Edit: downloaded the image again and now this error is showing “FAILED (status read failed (Too many links))”

    Edit2: It worked!!! When there was an error, I just had to restart the phone and start over again, at the 5th time everything went smooth! Thanks guys!

  9. Rafa la Mancha Avatar
    Rafa la Mancha

    During the installation of system.img this error is showing “FAILED (data transfer failure (Too many links))” Help please!

  10. Rafa la Mancha Avatar
    Rafa la Mancha

    During the installation of system.img this error is showing “FAILED (data transfer failure (Too many links))” Help please!

  11. Rafa la Mancha Avatar
    Rafa la Mancha

    During the installation of system.img this error is showing “FAILED (data transfer failure (Too many links))” Help please!

    Edit: downloaded the image again and now this error is showing “FAILED (status read failed (Too many links))”

    Edit2: It worked!!! When there was an error, I just had to restart the phone and start over again, at the 5th time everything went smooth! Thanks guys!

  12. Guest Avatar

    Thank you! worked perfectly on Nexus 5.

  13. Rahul Patil Avatar
    Rahul Patil

    Thank you! worked perfectly on Nexus 5.

  14. Rahul Patil Avatar
    Rahul Patil

    Thank you! worked perfectly on Nexus 5.

  15. Guest Avatar

    Thanks so much for this. Worked perfectly on my Nexus 4!

  16. Guest Avatar

    my screen is black with the back button in the bottom left corner, don’t know what to do

    1. Androiding Staff Avatar
      Androiding Staff

      Looks like you didn’t flash the userdata.img file. Anyway, boot into recovery mode and do a “wipe data/ factory reset”.

  17. sc456a Avatar

    Thanks so much for this. Worked perfectly on my Nexus 4!

  18. sc456a Avatar

    Thanks so much for this. Worked perfectly on my Nexus 4!

  19. sc456a Avatar

    Thanks so much for this. Worked perfectly on my Nexus 4!

  20. KJ Avatar

    my screen is black with the back button in the bottom left corner, don’t know what to do

    1. Shivam Avatar

      Looks like you didn’t flash the userdata.img file. Anyway, boot into recovery mode and do a “wipe data/ factory reset”.

  21. KJ Avatar

    my screen is black with the back button in the bottom left corner, don’t know what to do

    1. Shivam Avatar

      Looks like you didn’t flash the userdata.img file. Anyway, boot into recovery mode and do a “wipe data/ factory reset”.

  22. Guest Avatar

    hi
    i cant download adb and fastboot files , the link doesnt work
    if its possible upload it again
    tnx

    1. Androiding Staff Avatar
      Androiding Staff

      The link is working fine. It’s directly from our servers so you shouldn’t have any trouble with it, try again.

    2. Guest Avatar

      tnx for your answer shivam . i downloaded it .

      but i have other problem , in cmd when i type : fastboot flash system system.img it syas : cannot load system.img

    3. Androiding Staff Avatar
      Androiding Staff

      That means the system.img file isn’t the same folder where your fastboot files are. Make sure all your .img files and fastboot files are in one folder (as shown in a screenshot in the post above).

    4. Guest Avatar

      I have the same problem…..cannot load system.img but I`m certain that all the files are in the platform-tool folder. what should I do?

  23. milad Avatar

    hi
    i cant download adb and fastboot files , the link doesnt work
    if its possible upload it again
    tnx

    1. Shivam Avatar

      The link is working fine. It’s directly from our servers so you shouldn’t have any trouble with it, try again.

      1. milad Avatar

        tnx for your answer shivam . i downloaded it .

        but i have other problem , in cmd when i type : fastboot flash system system.img it syas : cannot load system.img

        1. Shivam Avatar

          That means the system.img file isn’t the same folder where your fastboot files are. Make sure all your .img files and fastboot files are in one folder (as shown in a screenshot in the post above).

        2. Shivam Avatar

          That means the system.img file isn’t the same folder where your fastboot files are. Make sure all your .img files and fastboot files are in one folder (as shown in a screenshot in the post above).

        3. Shivam Avatar

          That means the system.img file isn’t the same folder where your fastboot files are. Make sure all your .img files and fastboot files are in one folder (as shown in a screenshot in the post above).

          1. Marko Avatar

            I have the same problem…..cannot load system.img but I`m certain that all the files are in the platform-tool folder. what should I do?

  24. milad Avatar

    hi
    i cant download adb and fastboot files , the link doesnt work
    if its possible upload it again
    tnx

    1. Shivam Avatar

      The link is working fine. It’s directly from our servers so you shouldn’t have any trouble with it, try again.

      1. milad Avatar

        tnx for your answer shivam . i downloaded it .

        but i have other problem , in cmd when i type : fastboot flash system system.img it syas : cannot load system.img

        1. Shivam Avatar

          That means the system.img file isn’t the same folder where your fastboot files are. Make sure all your .img files and fastboot files are in one folder (as shown in a screenshot in the post above).

          1. Marko Avatar

            I have the same problem…..cannot load system.img but I`m certain that all the files are in the platform-tool folder. what should I do?

  25. Guest Avatar

    Thank you very much this worked perfectly on Nexus 5. I thought I’ll have to stop from 4.4.4 cos of this error but great thanks to you I’m enjoying LOLIPOP now :)….

  26. Shanaka Avatar

    Thank you very much this worked perfectly on Nexus 5. I thought I’ll have to stop from 4.4.4 cos of this error but great thanks to you I’m enjoying LOLIPOP now :)….

  27. Shanaka Avatar

    Thank you very much this worked perfectly on Nexus 5. I thought I’ll have to stop from 4.4.4 cos of this error but great thanks to you I’m enjoying LOLIPOP now :)….

  28. Guest Avatar

    gracias por el aporte, realmente me sirvió. por fin lollipop!!

  29. Nelmix Guerrero Avatar
    Nelmix Guerrero

    gracias por el aporte, realmente me sirvió. por fin lollipop!!

  30. Nelmix Guerrero Avatar
    Nelmix Guerrero

    gracias por el aporte, realmente me sirvió. por fin lollipop!!

  31. Guest Avatar

    very helpfull!!! cheers!!!

  32. Ankur Avatar

    very helpfull!!! cheers!!!

  33. Ankur Avatar

    very helpfull!!! cheers!!!

  34. Guest Avatar

    thanks for this great tutorial now i have moved onto android L

  35. Matthew Avatar
    Matthew

    thanks for this great tutorial now i have moved onto android L

  36. Matthew Avatar
    Matthew

    thanks for this great tutorial now i have moved onto android L

  37. Guest Avatar
    Guest

    thank you, excellent tutorial

  38. SoGrumpy Avatar
    SoGrumpy

    thank you, excellent tutorial

  39. SoGrumpy Avatar
    SoGrumpy

    thank you, excellent tutorial