After unlocking the boot loader of the device, owner can flash the device with customized roms, or when you screwed up with the customized rom, you can still try to flash the device with the official rom available from Google's download site.
Assuming you now have the rom to be used to flash the device, and have android tools, such adb, fastboot, on your computer, you may follow the steps below to flash the rom onto the device.
Before flashing the device, please make sure to back up all of your data files on your device. It is always safe to keep back up of your data.
1. Open a DOS command window (if you are using Windows machine) or a command prompt ( on Unix machine).
2. Connect your device to your PC with the USB cable.
3. Please make sure there is enough battery left on your device.
4. In the command prompt, run adb command, i.e., adb devices, to check if the device is recognized.
5. If the device is recognized, then run adb command, i.e., , adb reboot bootloader, to get the device into boot loader mode.
6. In the command prompt, run command, fastboot flash zip the-full-path-to-the-rom-zip-file .
7. In the command prompt, you will see the computer is sending the file to the device, and files are extracted out from the zip, and deployed.
8. Wait until the flash process is finished.
9. In the command prompt, run command to reboot the device if it is not rebooted automatically:
adb reboot, or fastboot reboot.
10. In case, the flashing process fails in the middle, it would remind you to flash again immediately. Please run the command, fastboot flash zip the-full-path-to-the-rom-zip-file, again.
11. In some cases, the 2nd and following runs of command above also fails, you will need to run the other flashing command, such as, fastboot oem rebootRUU, first, then run the flash zip command above.
After the device is flashed with the new rom, it would go through the setting up processes.
You may also consider locking it up again: fastboot oem lock
No comments:
Post a Comment