Skip to content

Flashing my smartphone

These last few days, my smartphone has some serious problems. So I decided to reinstall and upgrade the Android system by rooting the device. 😀
After browsing and reading from forums, here are the steps that I did.
I put my device in fastboot mode (power off, then press the power and volume down buttons simultaneously).
On my desktop, in my case I used Ubuntu, open a terminal, and go to the directory where I installed the Android SDK tools (or make sure ‘fastboot’ is in your $PATH).
At the prompt, type :
$ sudo fastboot oem get_unlock_data
The returned string will be used to retrieve the unlock key.
Example: On my machine, the returned string format would be
$ sudo fastboot oem get_unlock_data
(bootloader) 0A40040192024205#4C4D3556313230
(bootloader) 30373731363031303332323239#BD00
(bootloader) 8A672BA4746C2CE02328A2AC0C39F95
(bootloader) 1A3E5#1F53280002000000000000000
(bootloader) 0000000
OKAY [ 0.249s]
finished. total time: 0.249s

Paste together the 5 lines of output into one continuous string without ‘(bootloader)’ or ‘INFO’ or white spaces. My string looks like this:
Then the next step is flash my device.
Here are flashing commands:
sudo fastboot flash partition gpt.bin
sudo fastboot flash motoboot motoboot.img
sudo fastboot flash logo logo.bin
sudo fastboot flash boot boot.img
sudo fastboot flash recovery recovery.img
sudo fastboot flash system system.img_sparsechunk.0
sudo fastboot flash system system.img_sparsechunk.1
sudo fastboot flash system system.img_sparsechunk.2
sudo fastboot flash modem NON-HLOS.bin
sudo fastboot erase modemst1
sudo fastboot erase modemst2
sudo fastboot flash fsg fsg.mbn
sudo fastboot erase cache
sudo fastboot erase userdata
sudo fastboot reboot

Voila… smartphone now is like a brand new with a new Android.

Leave a Reply

Your email address will not be published. Required fields are marked *