6.8.13

Install Android factory image from Linux-Ubuntu

A short how-to about restore factory image, downloaded from here, of a nexus device using a Linux distribution. Only administrator user can do this properly.

First, You need Android sdk and unlocked bootloader. Then, go into the platform-tools of your android sdk and follow next instructions.
Extract the zip downloaded somewhere (for simplicity in the same folder of adb and fastboot in platform-tools).
Connect your device and enable debug mode in developer options.
Reboot the device in the fastboot mode:
# ./adb reboot bootloader
- To check if device is connected:
# ./fastboot devices
- If you need to unlock bootloader:
# ./fastboot oem unlock
- If you want to delete all data on the phone:
# ./fastboot erase cache
# ./fastboot erase boot
# ./fastboot erase recovery
# ./fastboot erase system
# ./fastboot erase userdata
- Now flash the bootloader (eg: distribution of Android 4.3 for a Galaxy Nexus)
# ./fastboot flash bootloader ./yakju-jwr66v/bootloader-maguro-primemd04.img
# ./fastboot reboot-bootloader
- Now flash the radio (eg: distribution of Android 4.3 for a Galaxy Nexus)
# ./fastboot flash radio ./yakju-jwr66v/radio-maguro-i9250xxlj1.img
# ./fastboot reboot-bootloader
- Now flash the image (eg: distribution of Android 4.3 for a Galaxy Nexus)
# ./fastboot -w update ./yakju-jwr66v/image-yakju-jwr66v.zip

An error like this here is normal:
archive does not contain 'boot.sig'
archive does not contain 'recovery.sig'
archive does not contain 'system.sig'

The procedure lasts tipically 5-10 minutes. After this you have a fresh Android distribution on your Nexus phone! Cool!

Nessun commento:

Posta un commento