[Nexus 5 General] Araan45:
Note:​

I'm going to assume you have the Fastboot and ADB Drivers installed and the boot loader is unlocked! ​

Why is this here?

This thread is made to help new users install the developers preview through what I think is the fastest way and safest way too through the command prompt on Windows.

Responsibility!

If your device becomes bricked, makes toast for you, and anything else I did not mention its simply not my fault since you took it upon your self to do this method.​

Credits!​

​

Thanks Google for this lovely Operating System. Thank you Chain Fire for providing this method to root Android Lollipop and for your app and boot.img too! Thanks to LG for manufacturing this great device to use and enjoy stock Android. Finally, big thanks to TWRP for providing us with this recovery!​

​

​

​

​

The Steps!​

​

​

​

​

Step 1: Download the Lollipop preview HERE, extract it and open the folder with all the image files along with the radio and bootloader image too.

Step 2: Drop all the images to your folder that contains the ADB and Fastboot files

Step 3: Open the folder that contains the ADB and Fastboot files

Step 4: Hold the shift key and right click and click "Open command window here"

Caution! Make sure you back up everything before you begin the process if not its not my fault you forgot to back up.

Step 5: Make sure your device is in fastboot and connected. We are going to replace the boot loader for a newer one. Please make sure the boot loader image name first before we began because i'm just going to use boot loader as a example the real file name will be different. Type the command shown below.

fastboot flash bootloader bootloader.img

Step 6: Now we are going to flash the Radio as also stated above be sure to check the image name before we flash.

fastboot flash radio radio.img

Step 7: Now we are going to flash userdata. This part you don't have to worry about the file name you can just copy and paste the command but, I would double check.

fastboot flash userdata userdata.img

Step 8: Now going to flash boot or the kernel just as step 8 and here from out I will let you know when you have to worry about the file name again.

fastboot flash boot boot.img

Step 9: Now were flashing the system files.

fastboot flash system system.img

Step 10: Now were flashing the a custom recovery (twrp for this example) so we can install the SuperSU files later. You can get the recovery image HERE and rename it "Trecovery" and place it to the same folder. After flashing it go to the recovery and from there reboot it.

fastboot flash recovery Trecovey.img

Yay! We got Android Lollipop now we have to root it.​

​

​

​

​

Step 1: Let Andriod Lollipop boot up and go download SuperSu on your device by going to Chainfire SuperSU thread and click on his installable zip link and download SuperSU 2.14 or above. On your computer download his modified boot image HERE and rename it Rboot.img and move it your folder where the ADB and Fastboot files are.

Step 2: On your computer go to fastboot again on your phone and type the code in below.

fastboot flash boot Rboot.img

Step 3: Go to recovery and install the SuperSU zip as usual, reboot, and that's it. Enjoy!