[Nexus 4 Q&A, Help & Troubleshooting] Jubakuba:
Panic Section! (Something is Wrong)

Q: My phone won't boot!

A: The easiest option is to get into recovery and restore a nandroid using the above guide (pull battery to put phone in an off-state if needed).

However, more advanced options are available if you don't have a nandroid available (You're naughty).

Do you have another rom .zip available on your SD card? If so, simply use the above guide for installing a rom to get you booting again.

If not, you can download one on your PC. Boot into fastboot (the green Android with open chest menu). Navigate to recovery and select it with the power button.

Move the .zip to the C:\android-sdk-windows\platform-tools folder.

Open ADB.

Change the NAMEOFZIP.zip below to the correct file name...and perform the action.

adb push NAMEOFZIP.zip /sdcard/NAMEOFZIP.zip

(Hit enter)

You may have to reboot recovery to get the file to show up. Now follow the guide above for flashing a rom to get you booting again.

Did you install a tweak that modified only a file or two on your phone? (Find this out by opening the .zip and looking in the folders (ignore META-INF). Good news! We MAY be able to recover you completely. If this doesn't work...you'll have to follow another method.

Get your phone into fastboot (the boot-menu that allows you to select recovery/reboot/etc). Navigate to Recovery. Start up ADB. Pull the files that were modified out of the stock rom's .zip (using whatever tweak you were installing as reference to find what was changed) that you're on into the C:\android-sdk-windows\platform-tools folder. Now we're going to push these files onto your phone...replacing the tweaked ones and hopefully getting you booted again. Use this code, but change the values of the file name and where it should reside. This is only an example!

adb shell

(Hit Enter)

su

(Hit Enter)

mount -o remount,rw -t ext4 /dev/block/mmcblk0p1 /system

(Hit Enter)

This will mount your system so you can write to it.

exit

(Hit Enter)

This should exit shell and allow the use of adb commands again. You may need to type it a couple of times (until the #_ changes back to the platform_tools> prompt).

adb push framework-res.apk /system/framework/framework-res.apk

(Press enter after each file that you need to replace).

Note: This last option probably won't work. I'd just skip over it unless you're absolutely adamant about restoring your current setup and want to try everything possible.

Q: I want my SDcard files from my phone...but I'm in a situation where I need to flash stock images! This will erase my SD content. What can I do to save it?

A: Do you have a custom recovery installed? If not, download a custom recovery from post one in this guide and flash it using those instructions. You'll need to be in a custom recovery in order to obtain ADB access without booting your phone. Boot into recovery (With phone turned off: hold Power and Volume+ and Volume- until the bootloader pops up and navigate to "Recovery"). Run the command:

adb pull /sdcard/ /SDCARD/

(Hit Enter)

This will put all of your files into a folder called "SDCARD" in your C:\ drive. Keep in mind that this will take a LONG time. Maybe a couple of hours.

To restore once you're booting again:

Move the "SDCARD" folder you created from your C:\ drive to the platform-tools folder. *Then input:

adb push SDCARD /sdcard/

(Hit Enter)

Q: How do I make an "ADB Backup?"

A: An ADB Backup will backup your phones data (applications and their settings). Follow the guide HERE about ADB Backups.

Q: My phone gets really sluggish and often turns off or reboots on its own.

A: Without knowing anything about your situation...I'd say you either have severely bad data somewhere or some bad kernel tweaks. Use the rom install guide above, paying close attention to the part about backing up and restoring if you haven't already. In the case of a kernel problem, you're likely undervolting too low. Restore the stock kernel values and see if your problems subside.

Q: My phone screen won't turn on! This requires a battery pull to fix.

A: This is called a "Black Screen of Death" or BSOD. This is generally due to using a hotplug governor (one that turns cores off with the screen off) or possibly undervolting your device too low. Change governors or up your slots a bit.

Q: My phone is doing really weird things. Regardless of kernel/rom and even if I don't restore any data at all! Either that or I simply cannot boot up! My phone is possessed no matter what I do!

Download the stock IMAGES for your device and extract the files using 7-zip. Move all of the extracted files to your platform-tools folder. Open the flash-all.sh file with a text editor. Copy and paste the commands (one by one) and wait for each process to complete for continuing.

FAQ

Roms/Kernels

Q: What is the best rom?

A: The "best" rom is a matter of opinion. Do you like a certain customization and can't live without it? Use a rom that has that option.

Q: What is the best rom for battery life?

A: Roms themselves really shouldn't impact your battery all that much. They can have an impact, but if you're really looking for better battery I'd suggest swapping kernels or tweaking yours.

Q: What is the best rom for stability?

A: All of the roms out are "stable." They may have options that don't work correctly, but generally: this is user error. If you follow my advice on installing a rom, you'll end up with MUCH fewer bugs.

Q: What is the best kernel?

A: The best kernel is a matter of opinion. Some users may love one, while others swear by another. Find one you like and tweak it accordingly.

Q: How do I tweak a kernel for better battery?

A: Generally, you'll want to either change your governor and or undervolt and or underclock your kernel. This is done either by using SetCPU or similar apps, or with an option in your rom (usually labeled "performance" or something similar). Take note: extremely high/low voltages may cause instability. Never "set at boot" until you've thoroughly tested the options you've set. Testing includes low strain (like turning your screen off for an hour) and high strain (like playing a game for an hour) scenarios. To be extra safe: run the values for a couple days before setting them at boot. Follow the users ideas in the kernel's threads for some guidelines. However, remember that not all values will play nicely with all phones.

Miscellaneous

Q: Why isn't Google Wallet working at [store]?

A: I'm not sure if it's a Google Wallet problem, or a problem with the terminal. But I personally struggle to find a terminal that consistently works in my area. Something that has generally worked for me is to open wallet and go to Options>Reset Google Wallet. You must then re-add any cards you had.

Q: Does my ass look good in these shorts?

A: Yes.

Neat Ideas / How to Show Off the Nexus 4

-Get some NFC stickers. Tagstand has them available.

You can use these to make your phone perform certain tasks when you touch the sticker. Use NFC Task Launcher to define the tasks. These are capable of doing simple things like muting your volume to the more complex like turning on Tasker tasks that do things like auto-reply to text messages while you're at work.

-Do you have any suggestions? Submit them below!

***I take no responsibility for what happens to your phone due to following this guide! That being said, not only am I sure you'll be fine...but there are an endless amount of users who would be glad to help if you need it.***