[Official Image 5.0.1] How to flash/install Android Lollipop 5.0.1 on Nexus 5 (No Root) | All Free Perks

Ads (728x90)

Guide to Install Official Android 5.0.1 on Nexus 5

Note: No Root is required to do this.

WARNING!!!

This process will wipe your phone completely. Backup your storage before you continue.
I am also not responsible if anything goes wrong.

FOLLOW EVERY SINGLE STEP
or you will end up in a bootloop, or with a bricked phone, and we don't want that

Let's get started!!


Setting up


For this process, you will need to:

Install adb and fastboot drivers. To do this, use this simple program:
https://drive.google.com/open?id=0B0MKgCbUM0itSUhpUklCTFpzWkE&authuser=0

For MAC users:
http://forum.xda-developers.com/show....php?t=1917237
*Note: MAC users will have to write "./" before every command in this thread. For example : "./fastboot flash recovery recovery.img"

Linux users 
http://forum.xda-developers.com/showthread.php?t=921169

Download the latest factory images from here:
https://dl.google.com/dl/android/aosp/hammerhead-lrx22c-factory-0f9eda1b.tgz

★Extract the archive you downloaded (Use WinRAR).

★Unlock your bootloader (In case you haven't already)
http://forum.xda-developers.com/show....php?t=2507905


Flashing the factory images



There is more than one way to flash these images. Each give the same results, but the first is for lazy users 

Method 1Easy method.

★Power off your phone. 

★Boot it in fastboot by pressing and holding Power Button + Volume Down at the same time.

★Connect your phone to your PC through your USB cable.

★Execute the flash-all.bat script (for Windows) or flash-all.sh(for MAC and LINUX) in the folder where you extracted the factory images.
**!!** For MAC: You'll have to edit the flash-all.sh, and add "./" before every fastboot command.

★Wait for everything to flash.

★After everything finished, select "Recovery" using the volume buttons.

★When a small dead Android appears, press Power Button + Volume UP.

★Select "Wipe data/factory data reset"

★Reboot. Your phone should be stock. 


Method 2Long method (Same thing actually, but I'll mention it, just in case)

★Extract the image-hammerhead-krt16m.zip somewhere easy to access (On C:/image-hammerhead-krt16m for example). You will have the following files:



★In the same folder, from the original archive, extract "bootloader-hammerhead-XXXXXX.img" (rename it to bootloader.img) and "radio-hammerhead-XXXXXX.img" (rename it to radio.img)

★Power off your phone. 

★Boot it in fastboot by pressing and holding Power Button + Volume Down at the same time.

★Connect your phone to your PC through your USB cable.

★Open a CMD window.

★Type the following commands, in this order (If you have a different folder, change the path)
Code:
fastboot flash bootloader C:/image-hammerhead-krt16m/bootloader.img
fastboot reboot-bootloader
fastboot flash radio C:/image-hammerhead-krt16m/radio.img
fastboot reboot-bootloader
fastboot flash system C:/image-hammerhead-krt16m/system.img
fastboot flash userdata C:/image-hammerhead-krt16m/userdata.img 
(Note: this command will wipe your device (including /sdcard), EVEN if your bootloader is already unlocked.)

fastboot flash boot C:/image-hammerhead-krt16m/boot.img
fastboot flash recovery C:/image-hammerhead-krt16m/recovery.img
fastboot erase cache
★After everything finished, select "Recovery" using the volume buttons.

★When a small Android appears, press Power Button + Volume UP.

★Select "Wipe data/factory data reset"

★Reboot. Your phone should be stock. 

For both methods:

Optional But necessary for warranty purposes - Locking your bootloader+ Resetting the tamper flag 


The Nexus 5 has a thing implemented in the bootloader called a tamper flag. This shows if the bootloader was ever unlocked, kind of like the flash counter with Samsung devices. You can check it out by using this command
Code:
fastboot oem device-info
. If the tamper flag value is "true", then you'll have to reset it. The following steps will reset this flag, and lock your bootloader.

•So, first, go here: http://forum.xda-developers.com/show....php?t=2239421
Under "Flashable Zips", you will find the Nexus BootUnlocker script. Download it.

•Put the zip on your internal storage.

•Download the latest TWRP recovery image for the Nexus 5 from here:http://techerrata.com/browse/twrp2/hammerhead. Rename it to TWRP.img.
Now boot it. You do this by booting your phone in fastboot, and typing the following command:
Code:
fastboot boot path/to/TWRP.img
*Replace path/to/TWRP.img with the path to where you placed the TWRP.img. For example: C:/Users/X/Desktop/TWRP.img
TWRP recovery should boot.

•When TWRP finished booting, select "Install", then navigate to the Nexus Bootunlocker zip, select and install it. After it finished, use the back arrow at the bottom of the screen to go back, and reboot.

Now your bootloader should be locked, and your tamper flag should show "false".

Source: XDA-Developers

Post a Comment