x720
Incoherent Poster
Stuff I've been waiting for
There's no way of flashing a recovery on a Nexus 4 other than fastboot mode. You need to understand that every hardware has it's own method of flashing. Xperia can be done using the method mentioned by you above. The same was the case for my old Motorola Defy+, though my previous Motorola Photon 4G required bootloader unlock to flash recovery via fastboot.Instructions
You will find these files useful if you have used the Android Open-Source Project, flashed custom builds on your device, and wish to return that device to its factory state.
In order to use these files, you need to have the fastboot tool in your PATH. That tool is compiled as part of every configuration of the Android Open-Source Project and is the tool used to flash custom builds on your device. On GNU/Linux systems, this also implies that you have configured USB access as mentioned in the machine setup instructions.Your device needs to be in fastboot mode, with the bootloader unlocked. The relevant key combinations and commands are documented on the page about building for devices.
You need to uncompress each download before use, which creates a new directory for that exact download. That directory contains a ./flash-all.sh script, which handles the various operations, installs the necessary bootloader, baseband firmware(s), and operating system. Note that this operation deletes all user data by default.After restoring a factory image, it is recommended that you lock the bootloader, for security reasons.