Factory Reset Android Developer Phone without password I used to have an Android developer phone (an ancient HTC Innovation) that I recently gave to a friend. Now we're trying to unlock it so he can use it. We put in the unlock password too many times, so now the phone is asking us for my Google password, even if we turn the phone on and off again. Unfortunately, the phone doesn't have Internet access and I changed my Google account password since the last time I used the phone, so I have no idea what password to put in to unlock it.

How can we unlock or factory reset the phone so my friend can use it?
If fastboot is installed on the handset (or commonly called bootloader), it might be best to re-flash via usage of USB cable and the handset with the cable plugged in. 

In order to achieve this, a original image file is needed for this to work. The essence of fastboot, is that from the command line, the handset can be re-formatted and told to boot specific kernels without touching the original on the handset.

Consider the options used in the fastboot binary command line application, as in:

usage: fastboot [ &lt;option&gt; ] &lt;command&gt;

commands:
  update &lt;filename&gt;                        reflash device from update.zip
  flashall                                 flash boot + recovery + system
  flash &lt;partition&gt; [ &lt;filename&gt; ]         write a file to a flash partition
  erase &lt;partition&gt;                        erase a flash partition
  getvar &lt;variable&gt;                        display a bootloader variable
  boot &lt;kernel&gt; [ &lt;ramdisk&gt; ]              download and boot kernel
  flash:raw boot &lt;kernel&gt; [ &lt;ramdisk&gt; ]    create bootimage and flash it
  devices                                  list all connected devices
  continue                                 continue with autoboot
  reboot                                   reboot device normally
  reboot-bootloader                        reboot device into bootloader
  help                                     show this help message

options:
  -w                                       erase userdata and cache
  -s &lt;serial number&gt;                       specify device serial number
  -p &lt;product&gt;                             specify product name
  -c &lt;cmdline&gt;                             override kernel commandline
  -i &lt;vendor id&gt;                           specify a custom USB vendor id
  -b &lt;base_addr&gt;                           specify a custom kernel base address
  -n &lt;page size&gt;                           specify the nand page size. default: 2048


Thus, the command line to wipe cleanly and flash the original image file would be this:


fastboot erase system to wipe the /system partition cleanly.
fastboot erase data to wipe the /data partition cleanly.
fastboot flash system original_system_image.img 


The optional step may as well be, to flash the original boot image which can be achieved in this manner - fastboot flash boot original_boot_image.img.

If you happen to have the original update.zip for your handset, it might be easier to do it in this fashion, instead of the three steps above listed, as in fastboot update update.zip.