Tuesday, December 3, 2013

How To Manually Update Nexus 4 With The Factory Images From Google

Download the Factory Image from the following location

You will get a compressed file in .tar format
Put it in the  C:\  drive of your Windows system
Eg: occam-krt16s-factory-2006f418.tar is the compressed Android 4.4 image for the Nexus 4

Use 7z windows application to uncompress that file
You get a folder (for Eg: occam-krt16s) which contains various binaries and scripts
Similar to the following
1. bootloader-mako-makoz20i.img
2. radio-mako-m9615a-cefwmazm-2.0.1700.84.img
3. image-occam-krt16s.zip
4. flash-all.bat
5. flash-all.sh
6. flash-base.sh

In the same folder unzip the file image-occam-krt16s.zip
You should be able to see 4 binaries
1. boot.img
2. recovery.img
3. system.img
4. user data.img

Now we have all the binaries in the folder C:\occam-krt16s
Open the command prompt in the Windows system and go to the path  C:\occam-krt16s

If the Android SDK is installed on your PC, you should be able to run adb and fastboot commands in the command prompt
Enable "USB debugging" in the "Developer Options" in your Nexus 4 "Settings" menu
Connect the Nexus 4 to your Windows system and then Authorize the USB connection in your Nexus 4

Now run the command
adb devices
in the command prompt. You should be able to find your Nexus 4

Run the following commands one by one.
adb reboot bootloader

fastboot oem unlock

(This command prompts if we want to erase the device data.
Navigate using the volume up/down buttons on the left and select yes by pressing the power key.
Make sure you have a backup of your entire data like photos, videos, SMS, contacts etc.
By selecting yes all the data on the phone will be erased and the phone boots up.
Enable "Developer Options" by clicking on the "Build number" for 7 times in the "About phone" of the "Settings" menu.
Go back in the "Settings" menu and enable the "USB debugging" in the "Developer Options".
Authorize the USB connection in the Nexus 4)

Now run the following commands

adb reboot bootloader
fastboot flash bootloader bootloader-mako-makoz20i.img
fastboot reboot-bootloader
fastboot flash radio radio-mako-m9615a-cefwmazm-2.0.1700.84.img
fastboot reboot-bootloader
fastboot flash boot boot.img
fastboot flash recovery recovery.img
fastboot flash system system.img
fastboot flash userdata userdata.img
fastboot reboot-bootloader
fastboot -w
fastboot reboot-bootloader
fastboot oem lock
fastboot reboot

The Nexus 4 will be restarted. First time it will take a long time to boot the phone

Observe that your Nexus 4 has been updated by checking the "Android version" in the "About phone" in the "Settings" menu

All the Best folks :)

No comments:

Post a Comment