[Nexus 4 General] iH8ra!n:
DISCLAIMER

[COLOR="Red"]/*
* Your warranty is now void.
*
* I am not responsible for bricked devices, broken hearts,
* thermonuclear war, you getting fired because the alarm app failed, or
* unfulfilled sexual partners. Please do some research if you have any
* concerns about features included in this ROM before flashing it! YOU are
* choosing to make these modifications, and if you point the finger at me
* for messing up your device, I will point that finger back at you and laugh. */[/COLOR]

WHAT IS A REOCVERY

Every phone comes with a Stock Recovery. If you make a factory reset, or something very internal is getting updated or changed, the Recovery does its Job. If you root your phone, you will need to have a Recovery, which with you can flash zips (ROMs, GApps, whatever), take a backup, restore, wipe the cache and so on.​

INFO ABOUT THIS STUFF

There are many Recoveris in the Android Development section, and because in their DEV-Threads there are so many people asking how to flash it, I decided to make a flash instruction.​

LET'S GET IT STARTED

METHOD 1: Flash a Recovery via PC:

0. Download a working Recovery image on your PC, for example the official ClockworkMod Touch Recovery v6.0.2.3!

1. Make sure you have ADB and Fastboot drivers installed on your PC! If you can't understand it, google for a tutorial in your language!

2. After you installed ADB and Fastboot drivers on your PC, you have to connect your phone in fastboot mode (Bootloader > Fastboot) via USB Cable to your PC. Then it should say "Fastboot USB" on your phone's screen. Open a command prompt on Windows - for that, click on the Windows button on your keyboard and in the search field type "cmd"! After, type - with phone connected- :

cd C:\path to recovery\

and enter!

3. Then, type:

fastboot flash recovery recovery.img

and wait for it to finish. Select "reboot bootloader", then "recovery" and you should be done!

4. Wait a few seconds, until in cmd it says "finished total time x.x.x.x.". Then disconnect your phone, close the cmd window. In Fastboot select "Reboot Bootloader". Wait for it to reboot. Select "Bootloader", wait for HBOOT finishing its thing. Then select "Recovery"!

SKIP THE STEPS 1-4 FROM METHOD 2 and go ahead with STEP 5!

​

METHOD 2: Flash a Recovery via Terminal Emulator (your mobile phone):

You need to be rooted to work with this mehtod!

0.0. Download a working Recovery image on your Nexus 4, for example the official ClockworkMod Touch Recovery v6.0.2.3! Make sure it isn't in a subfolder!

1. Make sure you have the Terminal Emulator installed on your device!

2. Open the Terminal Emulator on your device and type:

su

and hit enter! In the SuperUser-Pop-Up-Window select "accept/allow"!

3. Again: Make sure that the recovery.img is NOT in a subfolder!

Then, type:

flash_image recovery /storage/nameofrecovery.img

and hit enter!

4. You might get a stream of almost identical looking code after hitting the enter key, this is normal, as long as you got no error messages in the code and you got a "#" at the end!

Then you can type in this:

reboot recovery

and hit enter! This will take you to your new recovery's home screen.

5.

If you want to set up ROM Manager to work with the just flashed Recovery (recommended, 'cause otherwise ROM Manager won't work properly!):

Press the Menu-Softkey-Button > Manual Flash Installation > "OK" > confirm Device Type (should say "Google Nexus 4" > "ClockworkMod 3.x+" > "OK", and you're done! :)​

METHOD 3: Flash a ClockworkMod Recovery via ROM Manager:

1. Make sure you have the ROM Manager installed on your Nexus 4.

2. Open ROM Manager and tap on "Install ClockworkMod Recovery".

3. Follow the on-screen instructions!​

HOW TO BOOT INTO A RECOVERY

Power your phone off. Hold down volume down+up and the power button at the same time. Navigate with the Volume Up/Down Button, until in the green arrow it says "Recovery", then enter with the Power Button.​

NOW YOU CAN...

...feel free to ask me if you did not understand anything

...flash a Custom ROM on your phone via "install zip from sdcard" > "choose zip from sdcard"

...do a factory reset/full wipe via "factory reset/full wipe"

...only wipe the cache via "wipe cache partition"

...wipe Battery Stats and the dalvik cache via "advanced" > "wipe dalvik cache"/"wipe battery stats"​