2009年4月16日 星期四

Android ADP1 Official Original Images from HTC

Good news to people who have lost the original factory images! HTC has made the factory images available for download! And instructions to do so. Here is the link:

http://www.htc.com/www/support/android/adp.html

Two methods are listed. I myself have to go with fastboot way, as I have lost totally everything, i.e. no original factory bootloader.

Recovery


It seems like recovery mode would always flash the /sdcard/update.zip file. Sample ommand line to transfer file from PC to G1 are:
$adb push a-pc-file /sdcard/update.zip
$adb shell sync

The sync line is important as G1 runs Linux and sync is necessary to make sure everything is written to the sdcard, including file system buffers and page cache.

To enter recovery mode:
Reboot G1 with HOME button pressed. It should display a "!" icon.

To enable log output:
Press ALT+l (lower case L) to enable log output. Keyboard needs to be opened, of course.

To install the update:
Press ALT+s to install the update.

To write the image:
Press HOME and BACK keys together to write the image, update the firmware, and automatically reboot.

Flash New Images

To be safe, erase userdata and cache by the following:
$fastboot erase userdata
$fastboot erase cache

Alternatively, adding a -w option can effectively erase those areas too.
$fastboot update .zip [-w]

Useful Links

Google discussion group http://groups.google.com/group/Android-DevPhone-Updating