Take the 2-minute tour ×
Android Enthusiasts Stack Exchange is a question and answer site for enthusiasts and power users of the Android operating system. It's 100% free, no registration required.

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 http://source.android.com/source/building.html, 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: http://stackoverflow.com/questions/11090473/how-to-get-nexus-s-version-4-0-4-icecreamsandwich-to-register-as-a-device-on)

share|improve this question

2 Answers 2

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.

Prerequisites:

  • 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:

http://wiki.cyanogenmod.com/wiki/Nexus_S:_Full_Update_Guide
http://wiki.yobi.be/wiki/Android#Restoring_.28most_of.29_factory_ROM_.282.3.3.29_with_fastboot

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

 
discard

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.