yashsingh1/xdaforums huggingface dataset:
[Android Themes] ChrisHoppyBot:
Here's a picture of the control panel.

I have put together a drawer that slides out to push, lift and support the control panel. When the drawer is pushed back, the control panel hides within the table.
[Nexus 4 Q&A, Help & Troubleshooting] Jubakuba:
ADB Backups

:

SDcard backup

:

adb pull /sdcard/ /sdcard/

(This will pull all of your sdcard contents to an "sdcard" folder in your C:\ directory)

Applications and their data

:

Take note, that you'll need to be using CyanogenMod's method for setting up ADB to do this. The ADB AIO application installs an older SDK without this functionality. First, get your drivers installed (detailed in post one). Once you get ADB installed (post one), navigate to the C:\android-sdk-windows\platform-tools folder on your computer. Hold shift and right click. Select "Open Command Window Here."

Input this while your phone is turned on and USB Debugging is Enabled:

To do so; you must first go to Settings>About>Build Number and click seven times.

The actual setting can then be found in Settings>Developer Options>USB Debugging

Type this:

adb backup -apk -noshared -all -nosystem

(Hit Enter)

Your phone will ask for a password. Input one and remember it.

Once the process completes: continue with unlocking and rooting your phone.

Restoration

:

Upon unlocking and rooting your phone: open up ADB again.

Enter this code:

adb restore backup.ab

(Hit Enter)

Input the password you saved to this file earlier, and wait for the restore to complete.

To restore your SDcard backup, first move the "sdcard" folder that was made in the backup process to your platform-tools folder.

Then run:

adb push sdcard /sdcard/
[Nexus 4 Q&A, Help & Troubleshooting] Pedro Peguero Jr.:
Do you have to install "ADB" ?
[Nexus 4 Q&A, Help & Troubleshooting] Jubakuba:
As far as like...clicking it and letting the windows installer install...no.

The exe file will read the commands in cmd without "installation."
[Nexus 4 Q&A, Help & Troubleshooting] ak700:
Nice Work!
[Nexus 4 Q&A, Help & Troubleshooting] KidCarter93:
I've just added this guide to the Nexus 4 Complete Index :)
[Nexus 4 Q&A, Help & Troubleshooting] slowpc:
Great work!!! nice and clean reading!
[Nexus 4 Q&A, Help & Troubleshooting] jayluke:
Can this guide include information on how to re-lock bootloader and unroot the device? Does this informaiton exist?

I need to RMA my phone due to dead pixels and I want to make sure I dont have any issues with the warranty.
[Nexus 4 Q&A, Help & Troubleshooting] Jubakuba:
Post 3.

fastboot oem lock

Locks the device.
[Nexus 4 Q&A, Help & Troubleshooting] ymshulman:
How long is the first boot, after unlocking the bootloader, supposed to take? Mine's sitting there for quite a while already. (I had a lot of stuff installed, but still, this is really long.)

EDIT: When rebooting the custom recovery, you have to say "yes" to the message it gives you, something about keeping some recovery. I had originally said no because I didn't flash it, I just booted it once.
[Nexus 4 Q&A, Help & Troubleshooting] wizshaw:
I just got my nexus yesterday, and this isnt the first phone that I have rooted.... however... my settings on the thing are extremely basic..

How do I enable usb debugging if I dont have the option in the settings?

Thanks

Chris

---------- Post added at 03:19 PM ---------- Previous post was at 03:14 PM ----------

I just got my nexus yesterday, and this isnt the first phone that I have rooted.... however... my settings on the thing are extremely basic..

How do I enable usb debugging if I dont have the option in the settings?

Thanks

Chris

Edit: Got an app to enable it... still not in the menu though.
[Nexus 4 Q&A, Help & Troubleshooting] Jubakuba:
Oh geeze!

I forgot.

Settings>about>version number I think...

Click 7 times to enable developer options.

Will update op soon.
[Nexus 4 Q&A, Help & Troubleshooting] rwald:
Quick question: is there a reason the first post links to SuperSU version 0.98, when version 0.99 is the most recent? If version 0.99 has known issues with the Nexus 4, I don't want to use it on my device.
[Nexus 4 Q&A, Help & Troubleshooting] hankdu:
The 0.99 version came out after this guide was posted. I was offered to upgrade to the new version of supersu from 0.98 and so far no problem at all.
[Nexus 4 Q&A, Help & Troubleshooting] sambao21:
Does this work on the latest version of JB (4.2.1)?
[Nexus 4 Q&A, Help & Troubleshooting] Chochiwpg:
When installing a new ROM it says to perform a factory reset through CWM, which will remove all apps and data but should keep all your pictures, videos, songs etc.

It doesn't mention to wipe the System partition as well. Is this not necessary when flashing ROMs on a Nexus?

Prior to owning the N4 I had the Galaxy S 2 and it was always stated in the OP instructions to wipe data/factory reset, wipe system, clear cache, clear dalvik and then flash ROM and Gapps.

However, I don't notice in any guides or instructions for N4 ROMS to wipe the system partition, just the data partition. Is there a reason for this or is it not necessary to wipe the system partition? Thanks. Great guide by the way.

Peace
[Nexus 4 Q&A, Help & Troubleshooting] mavrick1591:
thank u for ur effort
[Nexus 4 Q&A, Help & Troubleshooting] Hatzy:
I actually have a question along these lines.

I just came from a LG G2X so things were different for me whenever I flashed ROM's/kernels. For one thing, I had an external sd card so whenever CWM made it's backups, they went to that automatically and I didn't have to worry about wiping since everything was on the external. This phone doesn't have an external so where do the backups go? From the looks of the new CWM 6.0.2.0, the backups (and blobs now apparently) go to /data/media/clockworkmod. Well I guess my question here is if you have to wipe /data for installing new ROM's, how would I restore a backup because they would have been deleted off the /data partition. I tried adb pulling /data/media/clockworkmod to my computer but it won't go. Don't know if it's because that partition is mounted while the phone is in use or what. I tried the mount/umount command that OP listed but it won't work for me. Don't want to flash ANYTHING on this phone until I know for a fact I can get to the backups that I'm creating.
[Nexus 4 Q&A, Help & Troubleshooting] u4atharva:
Download NRT 1.6.3 and you can easily install all the drivers that you need with just a simple click of a button ;) :good:
[Nexus 4 Q&A, Help & Troubleshooting] happycadaver:
It seems that NRT is Win-only. What about Mac users?
[Nexus 4 Q&A, Help & Troubleshooting] karx23:
In Mac and Linux you don't need to install drivers.
[Nexus 4 Q&A, Help & Troubleshooting] kinghu:
Simple and easy using this to root my wife's new 16gb Nexus 4 via a Mac. Thanks for the guide.

It's an upgrade from a Note (N7000) and is a massive difference in speed and smoothness. Even with a Note II I'm a little envious.

-- From my N7102
[Nexus 4 Q&A, Help & Troubleshooting] happycadaver:
Oops, didn't see the Mac option in the first post. Will try it. Thx!
[Nexus 4 Q&A, Help & Troubleshooting] t989BeLikeItDo:
You might want to update this guide as it is outdated. The wiki pages no longer exist, and the method listed is much more complicated than the tools provided in the Original Android Developement forum.
[Nexus 4 Q&A, Help & Troubleshooting] Chromium:
The method used is not outdated, and most other guides will go through similar steps.

Although these toolkits make it easy and quick, they make people confused about what it is that they are actually doing.

Then you end up with people posting things like "Do i have a custom recovery", "Dead android with exlamation HAALLPP !!!", "What is a phone", etc...

If you do it manually you will understand what each step does, and it will be better for you and everyone else in the long run. :)

Also unlocking/flashing recovery/rooting on this device is already quite simple. It really isnt that complicated.
[Nexus 4 Q&A, Help & Troubleshooting] t989BeLikeItDo:
I understand that, but there are items on his guide that are no longer working!

Option One no longer points to any sort of guide or "how to." CyanogenMod's Guide no longer exists.

Because it no longer exists, Option Two is no longer easy to follow, as he quotes Option One in it.

Without having proper reading material, how can you expect someone to successfully navigate Option Three?

I've been around the block when flashing ROMs and playing with drivers, and this "guide" legitimately left me confused. Without a doubt the toolkits and guides found in the Original Android Development forum were able help me unlock and root my phone much more effectively than this guide here.

You might think this guide is detailed enough to do its job, but without those working links it doesn't do a very good one of explaining to someone how to actually go about this process.
[Nexus 4 Q&A, Help & Troubleshooting] Toledo_JAB:
Instead of spamming the thread with these posts, you could have just sent the OP a PM about the links.

That is what I did when the thread was reported.
[Nexus 4 Q&A, Help & Troubleshooting] Jubakuba:
Was on a Backpacking trip, sorry for the slow response.

Done...

Although I don't have a Windows machine at all anymore (opted to completely nuke my Windows partition now in favor of Linux only) those directions should be direct enough to work. And to the guy complaining about the confusing guide...

The one broken link explained what is already explained in the OP of Naked Driver's link (although...his images are down at the moment, lol).
[Nexus 4 Q&A, Help & Troubleshooting] mahesh1989:
kernel

Iam using matrix kernel with PA rom.

Can I install franco kernel directly....or is there any different process I need to follow..

Can I flash a franco kernel in the same way I did with the matrix kernel..?
[Nexus 4 Q&A, Help & Troubleshooting] :
make a full backup in case it goes wrong. as far as i know there are some problem if you want so change from franco to another kernel.

if want to be sure and you have the stock kernel of your rom flash this first, than flash franco.
[Nexus 4 Q&A, Help & Troubleshooting] teamjm:
is there a way of going fastboot mode using adb? phone's been stuck it bootloop for half a day already.
[Nexus 4 Q&A, Help & Troubleshooting] Chromium:
If its stuck in a bootloop, you should be able to to turn it off by holding the power button for around 10 seconds. Then boot back into the bootloader using volume down and power, and do what u need to do.

The adb command would be:

adb reboot bootloader
[Nexus 4 Q&A, Help & Troubleshooting] IceHermes:
thanks

thanks study~~~~
[Nexus 4 Q&A, Help & Troubleshooting] jimbohurt:
Thanks for this post, very helpful for a noob like me :)

So i downloaded the 400mb ish zip and extracted it into C:\ and whenever i open something it closes right away. Ive oped adb, fast boot and even the sdk manager and they pop up quick and then close. I even have right clicked and ran as administrator. Any help would be very apperciated, thanks :)

EDIT Nevermind! It was a java path issue.

Now i have a different question referring to the backup post under the app data section it mentions that i need to use 'CyanogenMod's method for setting up ADB to do this' what does that mean? And how can i do it? Thanks :)
[Nexus 4 Q&A, Help & Troubleshooting] iambrian:
my new nexus 4 won't accept root?

I picked up my N4 yesterday and easily unlocked the bootloader. Since I have been trying to root it but it won't allow me. I am too new here to post image links so here is what the command line error is..

sending 'recovery' (7556 KB)...

FAILED (data transfer failure (unknown error))

finished. total time: -0.000s

It then just issues a new prompt. Sometimes it says out of memory which is absurd.

Any help would be appreciated thanks.
[Nexus 4 Q&A, Help & Troubleshooting] Chromium:
Maybe a bad download of the recovery? Try redownloading and confirm that the md5 sum matches.

Also try using different usb ports. Specifically if you are using a desktop, the ones in the back of the computer, as they are directly connected to the motherboard, rather than the ones in the front.
[Nexus 4 Q&A, Help & Troubleshooting] playingwithfire:
"This" refers to flashing of SuperSU.

Is that still correct? I was able to reboot the phone while holding down volume down and the touch recovery I flashed earlier booted up just fine.

Also, I'm with an earlier poster. I can't get adb to work unless I put the phone in PTP (You do that through the drop down menu->"Connected as ???"). When the phone is in MTP it just keep saying that device is not found.

One last thing, when installing SuperSU from recovery, you have to select "install from SD card" then select the "0" folder to go to internal storage. I have no idea what the "sdcard" folder for Nexus 4 is.

Overall great guide, really straight forward.
[Nexus 4 Q&A, Help & Troubleshooting] wmwinn:
I have had this same issue. It was due to USB cable being plugged into the front port of the PC. Try using a port in the back of the PC, see if that helps.
[Nexus 4 Q&A, Help & Troubleshooting] jgro1976:
So I just got a warranty replacement N4, previous one hooked up to my Win7 machine no problem, transferring files, no problem. Been through a couple different steps, tried uninstalling/reinstalling the drivers, etc. It detects the device as Camera (PTP), but not as a media device (MTP).

I've been using the N4 toolkit to do everything, and it's worked in the past.

Any thoughts on why this new phone won't connect to my W7 machine? I should also note that my MAC with Android file transfer sees it just fine.
[Nexus 4 Q&A, Help & Troubleshooting] Federico_96:
Is there a way to check if adb has been installed correctly? I'm using wugfresh toolkit,i already made the drivers test and it went fine,but i don't know if adb has been included in this test too,and I noticed that even if the drivers test said that all is ok,in my device manager i still see a yellow exclamation mark near to the MTP device...another question,if i plug my device with usb debugging on, should i be able to transfer files in the memory? beacuse i can't see my device

With a command prompt i moved in the adb directory and typed adb devices,it said daemon not running,daemon started running successfully,and it showed a serial number and "offline", is this correct?
[Nexus 4 Q&A, Help & Troubleshooting] djeordje:
Hi,

You need to install the MTP (Media Transfer Protocol) driver. Search it on windows site.

Good luck.
[Nexus 4 Q&A, Help & Troubleshooting] zeffy621:
So just making sure, This works for android 4.2.2?
[Nexus 4 Q&A, Help & Troubleshooting] Chromium:
Yep.
[Nexus 4 Q&A, Help & Troubleshooting] Roobwz:
Hey guys I'm a noob but that doesn't matter... My only question is... Do I have to root my n4 to get a custom kernel ? I know I have to be rooted if I want a custom ROM :)

Thanks in advance
[Nexus 4 Q&A, Help & Troubleshooting] Chromium:
You don't need to be rooted for a kernel or a ROM. You just need a custom recovery.
[Nexus 4 Q&A, Help & Troubleshooting] DroidBois:
I take it of course that rooting voids Google warranty? Not that I think I can live without root any longer.. Vanilla Android really sucks balls compared to something like Cyanogen... MTP instead of USB file transfer, no Quick Tile customisation, etc WTF???

Bring on Cyanogen... how's that ROM working for everyone? I just want something streamlined and reliable. I just want to simplify my life and have the control to be able to do so, without having to dig in to a damn menu instead of using Quick Tiles for example, or use this ridiculously unreliable and just plain hopeless MTP thing, via Windows, which is borked half the time anyway, when USB was working just fine..

I hope Google are not becoming another Apple, always knowing best what we need and locking everything down to the point of being useless.

Anyway, bring on root and Cyanogen.
[Nexus 4 Q&A, Help & Troubleshooting] DroidBois:
Universal Nexus Linux Toolkit v2.1.0?

I'm thinking rooting my Nexus 4 and Nexus 10 with Universal Nexus Linux Toolkit v2.1.0 is the best approach - I am using Linux Mint 64 bit though. Any warnings or tips before I do? Of course I will back up first. Saves messing around with Windows drivers or whatever.

I simply can not live with this MTP @*!(!(! any more, and need more flexibility / customisation.

http://xdaforums.com/showthread.php?t=1999065
[Nexus 4 Q&A, Help & Troubleshooting] GroteBozewolf:
I was wondering if there is a simple way to update my current CWM recovery to the latest 6.0.3.3 touch without the need of adb or fastboot.

Rommanager (free) only allows flashing the non - touch version.
[Nexus 4 Q&A, Help & Troubleshooting] efrant:
If you have root, then yes.

1) Download the recovery you want to /sdcard and rename it to recovery.img

2) Open up a terminal emulator (there are a few free ones on Google Play) and type su and press enter. Your prompt should change from $ to #.

3) Type the following command and press enter: dd if=/sdcard/recovery.img of=/dev/block/platform/msm_sdcc.1/by-name/recovery

4) Done. :)
[Nexus 4 Q&A, Help & Troubleshooting] GroteBozewolf:
Thanks, but if I see this, I guess that hooking it up to my pc is less work typing :D
[Nexus 4 Q&A, Help & Troubleshooting] efrant:
It's one line of typing. Are you seriously saying that is too much? :eek:
[Nexus 4 Q&A, Help & Troubleshooting] GroteBozewolf:
No, it's not too much, but getting a terminal emulator from the Play Store and then typing that line, just takes more time than hooking it up. I really hoped for a "manual" recovery flash from ROM Manager or so.
[Nexus 4 Q&A, Help & Troubleshooting] abaaaabbbb63:
https://play.google.com/store/apps/details?id=com.cgollner.flashify

Worked for me.
[Nexus 4 Q&A, Help & Troubleshooting] sujith1994:
one zillion thanks to you!!!

i wasnt able to root my phone through nexus 4 toolkit but your guide made it possible to root my phone thanks a lot!! :crying:
[Nexus 4 Q&A, Help & Troubleshooting] aanonymoushuman:
Root 4.3??
[Nexus 4 Q&A, Help & Troubleshooting] abaaaabbbb63:
Flash this:

https://plus.google.com/+Chainfire/posts/WqS2E9kkN1L
[Nexus 4 Q&A, Help & Troubleshooting] GroteBozewolf:
I think ChainFire explicitly requested not to post a direct link to the download but to his G+ post. He is updating all the time and this link is probably old now.
[Nexus 4 Q&A, Help & Troubleshooting] abaaaabbbb63:
Ok then. Link to Google+ post added. I didn't know he posted that.

I just googled SuperSU JWR66N and that came up :silly:
[Nexus 4 Q&A, Help & Troubleshooting] schmit:
FYI, the link is still in your reply above.. and as you said.. it is already outdated.
[Nexus 4 Q&A, Help & Troubleshooting] punitthereddevil:
Guys does this work for 4.3 as well...? Or there are any alterations in the procedure...?

*****Save your fingers the work and hit "Thanks" instead of typing it...!!*****

NEXUS⁴ Stock Android 4.3
[Nexus 4 Q&A, Help & Troubleshooting] XxLostSoulxX:
Sorry i haven't read through all of this however i followed the nexus 4 root website and used the v1.41 SuperSU and once i opened it said there is no su binary nor can it install, "this is a problem".

WTF i have unlocked the device and flashed cwm 6.0.2.3 however after i flashed supersu 1.41 because im on 4.3 it wont work
[Nexus 4 Q&A, Help & Troubleshooting] abaaaabbbb63:
You have to flash the 4.3 supersu. Download it from chainfire's G+ post:

https://plus.google.com/app/basic/stream/z12rw1urfveawxfxm04cjl1aoor5ezninhc
[Nexus 4 Q&A, Help & Troubleshooting] punitthereddevil:
But in your link it says for leaked s4 Google edition only...u sure this works with n4 too...?

*****Save your fingers the work and hit "Thanks" instead of typing it...!!*****

NEXUS⁴ Stock Android 4.3
[Nexus 4 Q&A, Help & Troubleshooting] obguy:
I used SuperSU 1.51 and the method in the OP on my n4 (4.3) to reroot and it worked great.

The zip file; not the Play store app.
[Nexus 4 Q&A, Help & Troubleshooting] abaaaabbbb63:
I'm 140% sure it works.
[Nexus 4 Q&A, Help & Troubleshooting] Akhil:
Hello guys!

Is there any method to root nexus 4 running on 4.3 without unlocking?
[Nexus 4 Q&A, Help & Troubleshooting] abaaaabbbb63:
Nope.
[Nexus 4 Q&A, Help & Troubleshooting] punitthereddevil:
I successfully rooted and flashed the cwm recovery via rom manager as mentioned in op...

Cwm recovery does stick and I have no problems with that...but every time I exit cwm recovery, I get this message

"ROM will flash stock recovery on boot. Fix?"

So far I have been just saying no and proceeding further...what am I actually supposed to do...?

*****Save your fingers the work and hit "Thanks" instead of typing it...!!*****

NEXUS⁴ Stock Android 4.3
[Nexus 4 Q&A, Help & Troubleshooting] Akhil:
Thank you so much for a quick reply.

Can you tell me something about "adb backup" ? Is it safe for backing up and if yes how to restore from this adb backup?
[Nexus 4 Q&A, Help & Troubleshooting] abaaaabbbb63:
You can unlock bootloader without wiping data. I presume that's what you want.

You must do the following:

1. Download the .img of a custom recovery (TWRP or CWM).

2.Unlock bootloader with the" fastboot oem unlock "command. From now on, you are not allowed to boot normally.

3. Imediately after unlocking, use "fastboot flash recovery "path to recovery.img""

4. Boot directly in recovery.

5. Wipe cache.

6. Now it's safe to reboot. You should have all your data.

The trick is not to boot after unlocking until you wipe cache.
[Nexus 4 Q&A, Help & Troubleshooting] Akhil:
Exactly. Thank you for writing this guide.

I know how to unlock,use fast boot etc etc ,so that's not a problem for me. The only problem is my data.

I will try your method but i will take backup of some of my games using helium.

Once again thanks a ton.

Just one more question, in 2nd step you wrote that" from now on you can't boot normally" does this imply for every time i boot?
[Nexus 4 Q&A, Help & Troubleshooting] abaaaabbbb63:
Nope. Just until you clear cache. After that, you can use your phone normally.
[Nexus 4 Q&A, Help & Troubleshooting] abaaaabbbb63:
Saying no will do the job.
[Nexus 4 Q&A, Help & Troubleshooting] punitthereddevil:
One last thing...

When I try to uninstall system apps using titanium backup, I get a message like this...

*****Save your fingers the work and hit "Thanks" instead of typing it...!!*****

NEXUS⁴ Stock Android 4.3
[Nexus 4 Q&A, Help & Troubleshooting] abaaaabbbb63:
Are you on the latest version of Titanium Backup? The one that supports 4.3.
[Nexus 4 Q&A, Help & Troubleshooting] punitthereddevil:
Oh right...that's really dumb of me...I'll update now...thanks...:p

*****Save your fingers the work and hit "Thanks" instead of typing it...!!*****

NEXUS⁴ Stock Android 4.3
[Nexus 4 Q&A, Help & Troubleshooting] dan.westmoreland:
Root Kit Method - Drivers?

I tried the root kit method but when uninstalling old drivers and re-installing ADP drivers, the check leaves me with "can't find device." I don't want to continue with unlocking and rooting until I have a success message there.

Any advice?
[Nexus 4 Q&A, Help & Troubleshooting] AustinPaolillo:
Just fixed that myself

Make sure you have 4.3 set up on toolkit

Remove old drivers

Reboot comp

When it comes up as nexus 4 again in device manager, right click, update driver, browse or type in the new driver

Should work, idk, Im tired

Good luck
[Nexus 4 Q&A, Help & Troubleshooting] dan.westmoreland:
What do you mean by, "Make sure you have 4.3 set up on toolkit"?

Thanks a lot for your help!