Android Enthusiasts Stack Exchange is a question and answer site for enthusiasts and power users of the Android operating system. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I need to find a way to manually add in the system.img file of the Crespo build for Android onto a Nexus S phone. Has anyone flashed a Crespo build image (I think it boils down to a system.img file) in a way different than the manual? Such as flashing to the device directly on a Windows 7 machine?

I cannot use the commands as found in the directions at, such as "$ adb reboot bootloader" and "$ fastboot flashall -w" given that my Android build tree exists on a virtual machine (made via VirtualBox) that resides within a server computer (I can access this via RDP and VRDP, though VRDP isn't quite working at the moment to allow me to use the local USB ports of my remote computer).

(A relevant and linked question I have just asked which is also making figuring this out for myself very difficult and if anyone can answer that one as well that would be helpful:

share|improve this question

It's possible to inject your system.img into a previous nandroid backup done from clockworkmod and then restore that backup with the new system.img.


  • Installed clockworkmod recovery
  • desired system.img saved onto sdcard
  • do a fresh nandroid backup

To install the new system.img:

  1. boot to recovery
  2. create a nandroid backup to let's say /sdcard/clockworkmod/backup/[currenttimestamp]/
  3. replace /sdcard/clockworkmod/backup/[currenttimestamp]/system.img with your new one
  4. compute the md5sum of your new system.img
  5. update the md5sum in the system.img line in /sdcard/clockworkmod/backup/[currenttimestamp]/nandroid.md5 file with the value from [4.]
  6. restore your altered backup
  7. if needed, do a wipe
share|improve this answer
Thank you! This certainly works. – 9exceptionThrower9 Jun 22 '12 at 14:40

These sites also proved quite helpful in learning to manually flash a ROM to an Android phone device, in case anyone ever has to that him or herself:

The first is particularly useful for learning some critical "./fastboot" syntax and the second one is primarily useful for learning that to flash a complete Android system, you must, after backing up your old one, flash the system.img, recovery.img, and boot.img that are created from the Android code buidling process.

Note: From my quest to learn how to do this, I learned there are actually many ways to actually flash to your phone (including the solution presented by ce4)

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.