yashsingh1/xdaforums huggingface dataset:
[Nexus 4 Q&A, Help & Troubleshooting] s2046:
I can't get my device to be recognised properly in fastboot mode.

It always says: The device cannot start. (code 10)

I've tried the SDK, the Naked Driver .72, and the standalone driver. Uninstalled and reinstalled the drivers several times. I've tried with 3 different USB cables, plugged straight into my PC, with all other USB devices unplugged. Tried in several ports.

What am I doing wrong here?
[Nexus 4 Q&A, Help & Troubleshooting] jr67:
Did you restart your computer after reinstalling the drivers? Does ADB work?
[Nexus 4 Q&A, Help & Troubleshooting] efrant:
If you haven't clicked on "Have disk" at at any point when updating the driver, then you are doing it wrong.
[Nexus 4 Q&A, Help & Troubleshooting] vindikleuk:
The method of root this guide uses is to flash superuser, correct? It is installed via a recovery image, a custom one if I'm correct. Now, I'm wondering: the root method of this thread also talks about flashing through a recovery, also a custom one. Yet, in that thread it says the root method won't flash a custom recovery. Can anyone explain the difference between the root methods used in this thread, and the other one? I'm planning on rooting my phone soon, but also plan on keeping my recovery intact for OTA update reasons.
[Nexus 4 Q&A, Help & Troubleshooting] nitin.chobhe:
First of all, the device should be listed. Google it and you should be able to get it there.

Second get the older version of CWM recovery. Probably 6.0.3.5... latest version has some issues with it.
[Nexus 4 Q&A, Help & Troubleshooting] insistents:
Ive got a problem, when i delete the nexus 4 driver when its plugged, it completly disapear from the device list, thus i cant install the driver manually, is there a solution?
[Nexus 4 Q&A, Help & Troubleshooting] arifhazwan:
What OS are you using and what do you mean by you cant install the driver manually?
[Nexus 4 Q&A, Help & Troubleshooting] shengovind:
Unplug phone.. Uninstall all drivers from programs and features or some other place... Restart computer... Connect phone.. It'll recognize.. If it recognizes and does nothing then you'll have to manually install universal naked drivers.. Search for them... This works most of the time.. Try toggling USB debugging..

If nothing works try one of the drivers that comes with toolkits or pdanet must work..

sent from my Prevert nexus
[Nexus 4 Q&A, Help & Troubleshooting] insistents:
Thanks got the adb driver, installed SU and stuff, but now i cant get to custom recovery (Getting a lying android with red exclamation instead), so i downloaded rom manager and try to flash but i get a error when its done downloading.
[Nexus 4 Q&A, Help & Troubleshooting] nitin.chobhe:
When you get that red mark, press power and volume up button. Check if that helps...
[Nexus 4 Q&A, Help & Troubleshooting] OhDae-su:
Android with red exclamation mark means you have the stock recovery on your device-not a custom one.

Since you got the adb drivers is your device accessible via adb and fastboot?

Use fastboot commands to flash TWRP or CWM. If you done that flash SuperSu 1.65 via recovery to get root back. Don't install it-flash it...
[Nexus 4 Q&A, Help & Troubleshooting] Kushalized:
Greetings!

Is any way to change font style without rooting nexus 4? Please Help

Sent from my Nexus 4
[Nexus 4 Q&A, Help & Troubleshooting] Chromium:
No, to install fonts you need to have access to the /system partition which you do not have unless you are rooted.

Rooting a nexus is very easy though.
[Nexus 4 Q&A, Help & Troubleshooting] valefour:
Just want to verify, when going from 4.2.x to 4.3 I will need to update bootloader correct? And is there anything else I need to update?

Going from 4.2 miui to AOKP 4.3.

sent from over there somewhere
[Nexus 4 Q&A, Help & Troubleshooting] Kushalized:
Yeah its easy but I have heard that after rooting it has problems to receive system updates from google.

Anyway alternative way?

Please advise.
[Nexus 4 Q&A, Help & Troubleshooting] abaaaabbbb63:
You have misunderstood what you have heard. You can still receive updates from google, despite having a custom recovery and/or root, as long as you have the stock ROM and Kernel.
[Nexus 4 Q&A, Help & Troubleshooting] Rohit02:
Yeah update the bootloader and the radio. .84 is the latest and z20i is the latest bootloader.

You can find the download link in PA thread in original dev section. :good:

Press thanks if I helped you. :good:
[Nexus 4 Q&A, Help & Troubleshooting] Kushalized:
Thanks for the advise. Please guide me further, I read your thread " http://xdaforums.com/showthread.php?t=2367406 " which was quiet useful.

In your thread in the section of " Questions and Misconceptions "

In the second question " If I am rooted, will I receive OTA updates?

Yes, and no.

You will be able to download the update by having installed the Stock ROM with stock kernel, though it will not be installed automatically, due to the fact that you have a custom recovery. You will need to install it manually."

Please guide how to install a STOCK ROM AND KERNEL manually after rooting the device.

Thanks in anticipation.
[Nexus 4 Q&A, Help & Troubleshooting] Chromium:
You already have the stock ROM and kernel installed after rooting the device. The only difference is that you will have a custom recovery and the supersu binaries, which will not affect your ability to receive otas.

Sent using xda-developers app
[Nexus 4 Q&A, Help & Troubleshooting] bmwjnky:
I was able to unlock and root but for some reason when in CW recovery it does not see my .zip files for trying to flash super user or a custom rom. Any ideas where I may have gone wrong? I had no issues with this stuff with my Nexus S so its a little frustrating to not have it working right on my N4.
[Nexus 4 Q&A, Help & Troubleshooting] abaaaabbbb63:
Make sure you follow the right path. Open /0.
[Nexus 4 Q&A, Help & Troubleshooting] Ibrahim.Rahman:
Hi.

I just rooted my phone and now a lock icon shows up on boot at the bottom of the screen. Can you tell me why is it there and how to make it go away?
[Nexus 4 Q&A, Help & Troubleshooting] Chromium:
That is not there because of root. That is there because you have unlocked your bootloader. Your options:

-Relock your bootloader (this will be problematic if you have a custom recovery)

-Learn how to extract a bootloader img and modify it so that the padlock doesnt show up (You will likely end up hard bricking your phone)

Both options are terrible ideas and are not recommended, so its best that you just forget about the image or learn to deal with it :)
[Nexus 4 Q&A, Help & Troubleshooting] Ibrahim.Rahman:
Well its not doing any damage so yeah I'll just leave it like that. Thanks.
[Nexus 4 Q&A, Help & Troubleshooting] Ibrahim.Rahman:
The guide links to an older version of SuperSU (v0.98) http://download.chainfire.eu/282/SuperSU/ and as a result, the binaries cannot be not installed.

Flash instead, the updated SuperSU v1.65 from here
[Nexus 4 Q&A, Help & Troubleshooting] Mask_Dynamo:
Not able to create folder even though my phone is rooted

Hi, I have been trying to create a folder 'cpufreq' inside 'sys/devices/system/cpu/cpuX' (where cpuX= cpu2 and cpu3, since cpu0 and cpu1 already have this folder) and then paste scaling_available_frequencies file in it, but even though my phone is rooted and I have given write permission to the folder 'sys', it wont create this particular folder in there neither copy or create any files or folders there. It seems like even after having root permission I cannot do as I wish with my system. Any help??

My basic aim is to control all my four cpu cores using tasker app so that I can assign min and max frequencies as well as the governers to those cores individually as required. However, using tasker I get the options to set frequencies and governers for my first two cpu cores (i.e. cpu0 and cpu1) but same is not true with other two cpu cores. When I try to assign any particular governer to cpu2 or cpu3 it gives me an error. I looked up in the help section of tasker app and it says

"Tasker needs to know what frequencies it can set the CPU to. It looks for the files /sys/devices/system/cpu/cpuX/cpufreq/scaling_available_frequencies, /sys/devices/system/cpu/cpuX/cpufreq/stats/time_in_state and /system/etc/scaling_available_frequencies (in that order). If you know what your CPU frequencies are, you could write them (space-separated, in numerical order) to the first (any number of CPUs) or last (1 CPU only) of those files." (link of help page: http://tasker.dinglisch.net/userguide/en/cpu.html)

It very clearly states that I can write those files but somehow I am not able to do just that, maybe I am missing a point here. Any help is greatly appreciated. I am using PACman rom with hellscore kernel.
[Nexus 4 Q&A, Help & Troubleshooting] efrant:
There is nothing wrong with locking your bootloader if you have a custom recovery.

If you want to lock your bootloader, you can download [MENTION=4551856]segv11[/MENTION]'s BootUnlocker app and use it to lock the bootloader.
[Nexus 4 Q&A, Help & Troubleshooting] Chromium:
Really? I remember reading a couple weeks ago that in order for you to relock the bootloader you need to have the stock recovery installed.

I'll post a link if i can find it.
[Nexus 4 Q&A, Help & Troubleshooting] efrant:
Nope. The bootloader is independent of what you have flashed to your device. You can lock the bootloader with everything non-stock (aside from the bootloader obviously) if you so desire.
[Nexus 4 Q&A, Help & Troubleshooting] Chromium:
Yea you are right. I was referring to this, but i just realized that he was talking about security rather than if it was possible or not. Anyways, sorry for the confusion. :o
[Nexus 4 Q&A, Help & Troubleshooting] tomleadger:
Problem with SuperSU

Hi im new here. i flashed supersu but getting error the there is no SU binary installed and SuperSU cannot install it. This is a problem.

Help!
[Nexus 4 Q&A, Help & Troubleshooting] Ibrahim.Rahman:
Try flashing the latest version of SuperSU http://download.chainfire.eu/351/SuperSU/UPDATE-SuperSU-v1.65.zip

The link in the OP leads to an older version.
[Nexus 4 Q&A, Help & Troubleshooting] tomleadger:
Thanks! Worked like a charm!! Rooted now!! :D
[Nexus 4 Q&A, Help & Troubleshooting] Ibrahim.Rahman:
Glad to hear!
[Nexus 4 Q&A, Help & Troubleshooting] marisat:
miui update

Hello to all users of this great forum.

A question I can nexus 4 miui rom v5 I do not allow these to update it directly on the menu, I have a file for the script but do not know where I Metere.
[Nexus 4 Q&A, Help & Troubleshooting] abaaaabbbb63:
Ummm... try being a little bit more clear.
[Nexus 4 Q&A, Help & Troubleshooting] viamais.net:
With this method it is possible to make Root continue updating via OTA Nexus 4?
[Nexus 4 Q&A, Help & Troubleshooting] abaaaabbbb63:
Yes, but you'll have to manually install the OTA zip from your custom recovery.
[Nexus 4 Q&A, Help & Troubleshooting] viamais.net:
Thank you. Excuse my ignorance, but where do I get the links to download the ZIP file to OTA?
[Nexus 4 Q&A, Help & Troubleshooting] abaaaabbbb63:
You download the ota from Settings>About Phone>Software update.
[Nexus 4 Q&A, Help & Troubleshooting] coneidus:
About the driver

Hi,

Just got my nexus4 and i´ve installed the android-sdk. After that, i´ve installed the "platform-tools" and "google usb driver" packages.

Since the device is listed with the "adb devices" command, there´s no need to install the drivers mentioned in the OP, right?

Edit: I´ve tested both drivers (google and naked) and it seems to work in the same way. The phone is recognized as first as "unauthorized" and then as "device".
[Nexus 4 Q&A, Help & Troubleshooting] faillord_adam:
I've got the the "adb reboot bootloader" stage, but when I try flashing ClockWorkMod with fastboot, it just gets stuck at "< waiting for device >"

'fastboot devices' prints 'no permissions	fastboot'

Am I missing something incredibly obvious?

EDIT: fixed by running flash command with sudo
[Nexus 4 Q&A, Help & Troubleshooting] Isdrasil:
some problems

OK, problem here...

I tried to unlock, cwm, su, etc. In the process i get to an issue which (as far as i know) could only be fixed by a factory image.

I got the drivers and ADB setup, bootloader unlocked and on to recovery. but i can't get in to recovery! i shows a android with open chest and a exclamation sign above it (telling something is wrong i guess). tried again but can't get past it. Installing CWM works, but then i can't boot into android. everytime i reboot i get stuck in recovery.

someone any idea what went wrong here and how to fix?
[Nexus 4 Q&A, Help & Troubleshooting] Chromium:
Looks like cwm isnt actually being installed properly. The android with the open chest actually is not an error. Its the splash screen to the stock recovery. To enter the menu hold power then tap volume up, and then release both buttons at the same time. Then choose wipe data/factory reset.
[Nexus 4 Q&A, Help & Troubleshooting] Isdrasil:
I know, but only thing that happens when i hold power then tap volume up is a shutdown. Now i've done the Play Store CyanogenMod installer thingy. seems like everything is working ok for now...

edit: had TWRP installed as recovery, won't reboot again.. kept going back to recovery. Read that it might be a better way to use USB storage than the MTP in android, cause i can't put any files on SD via USB
[Nexus 4 Q&A, Help & Troubleshooting] SsBloodY:
After I install CWM should I install SuperSU prior to CyanogenMod for instance or I can install SuperSu from Playstore later?
[Nexus 4 Q&A, Help & Troubleshooting] shengovind:
Cyanogen mod has superuser already installed.. No need to flash supersu prior to cm..

You can download and use supersu later from the play store if you don't like superuser or if it doesn't work well
[Nexus 4 Q&A, Help & Troubleshooting] Jequan:
Just wanted to say thanks for this very well written up guide.
[Nexus 4 Q&A, Help & Troubleshooting] YogliB:
Thanks! :D
[Nexus 4 Q&A, Help & Troubleshooting] Nezam:
Can someone help me in rooting the phone running kitkat??

I was using wugfresh toolkit but it just gets stuck on the Google logo whilst temporary booting into modified boot.img

please help anyone??

Sent from my Nexus⁴ running 4.4
[Nexus 4 Q&A, Help & Troubleshooting] shengovind:
http://xdaforums.com/showthread.php?p=34744793
[Nexus 4 Q&A, Help & Troubleshooting] carioca_da_gema:
Settings 'blocked' so can't root

I received the OTA update to 4.4 and installed - wiping my root privileges etc.

AND for some reason that I haven't quite figured out the TWRP utility led me to re-install an older backup. This is where the fun began: I had Avast Mobile Security and Anti-theft installed, which protect the Playstore and Settings tabs from bein accessed - unless I input a P.I.N.

So it wouldn't accept my P.I.N.; why, because the backup must have kept an older P.I.N.! The backup also did not include the Avast Anti-Theft module...

So I needed to get into settings to select developer options, ADB mode. Tried for hours yesty and today - no chance.

Avast don't really help, because their support does not read past the first sentence in the support request...

Does anyone have any idea as to how to get past this block? Thanks!
[Nexus 4 Q&A, Help & Troubleshooting] consolation:
It will probably be quicker to flash the latest factory image and then just setup your phone from scratch.
[Nexus 4 Q&A, Help & Troubleshooting] kabecilhas:
Any tutorial like this, (except the NEXUS ROOT TOOLKIT, i can't make that program recognize my phone)

to Lock Bootloader and Unroot again?

Im noob on this

Thanks
[Nexus 4 Q&A, Help & Troubleshooting] carioca_da_gema:
doesn't work...

Thanks for the suggestion, mate, but this doesn't workbecause I can't change the USB connection status (access to settings blocked by Avast). N4 shows up as Media Device and trying to flash the stock image fails because no ADB device is found...

I may try sneaking in from a Linux machine, see if that lets me manipulate the system, but I doubt it.

Unless Avast can remotely access the N4 (which according to their permissions they must be able to), I'm well and truly stuffed!

Cheers,

LMH

Another bright idea: I remembered I had installed Google Android Device Manager. So I called up the program on my PC, let Google ring the N4 to make sure it still worked, then ERASED everything on the phone!

When the process was finished, I found that Avast (and its secure boot!) had been deleted.

So I quick-smart enabled the developer options again - but haven't dared go further yet LOL EDIT: Yes, reflashed stock and rooted using Wugfresh's NRT 1.78, then stopped apps from loading until I'd re-installed Avast and linked it to the mobile again, complete with P.I.N.

But I also relinked it to Android Device Manager - you never know...

It's something I'd recommend to others as well.

Cheers,

LMH
[Nexus 4 Q&A, Help & Troubleshooting] :
KitKat flashing SuperSU doesn't work

My Nexus 4 was rooted on 4.3 with SuperSU and stock recovery (used ./fastboot boot recovery instead of flash recovery) and working perfectly fine. Then I ran the OTA update to KitKat, booted with ./fastboot boot recovery (CWM) and flashed SuperSU 1.8. No errors were reported.

Now the SuperSU app is reporting a missing binary… AND it can’t be uninstalled. When I go into Apps-SuperSu there’s an option to Disable, but none to uninstall.

I’ve tried flashing SuperSu to an older version to no avail. Even when I do, I can uninstall updates but ultimately still can’t completely uninstall the app. No other previously root-approved apps are working, but I can browse / using ES File Explorer and I can see the su binary in /system/xbin but not in /system/bin (or even a hard link in /system/bin)

I’ve tried the whole disable wireless/uninstall stuff mentioned in other threads (the SuperSU 1.8 thread) but can't post there since this is my first time.

Any ideas short of wiping it out and starting over? I really don’t want to do that!
[Nexus 4 Q&A, Help & Troubleshooting] karan_singh_9008:
Hi,

Nice guide.

Thanks a tonne.

Though, I feel the following would be more appropriate:

To backup SD card data

adb pull /sdcard/ <PATH-NAME>/<FOLDER-NAME>

Eg (on MAC)

./adb pull /sdcard ./sdcard_backup/

adb push <PATH-NAME>/<FOLDER-NAME> /sdcard/

Eg (again on MAC)

./adb push ./sdcard_backup/ /sdcard/

Regards,

K
[Nexus 4 Q&A, Help & Troubleshooting] Defahgo:
Same problem here, mate :crying:

Can't get it to fixed yet.
[Nexus 4 Q&A, Help & Troubleshooting] Berrydroidcafe:
It might be as easy as going to the website and downloading the UPDATE-SuperSU-v1.80.zip file. My issue was a little different because of an update to busybox I lost root, but flashing that file worked. Just a suggestion.

KitKat or Almond Joy?
[Nexus 4 Q&A, Help & Troubleshooting] :
A good suggestion. I forgot to mention that's exactly the method I used to (attempt) the re-root. Downloaded 1.8 from Chainfire's site, put it on the SD card, rebooted with ./fastboot boot cwmimage.img ran the update, then missing su binary! Maybe an update will fix this.
[Nexus 4 Q&A, Help & Troubleshooting] lunakris:
Thanks!
[Nexus 4 Q&A, Help & Troubleshooting] bmoke:
Here is what worked for me between yesterday and today. I had a working version of 4.2.2, rooted, with an unlocked bootloader. I followed the short tutorial at link http://xdaforums.com/showpost.php?p=47626850&postcount=1. Basically, this involved executing 1 batch file via ADB and the command prompt. It took about 4 minutes. The batch file was edited, to remove 1 command parameter (-w). This change avoided a wipe of all user data. As a result, I migrated all of my programs and data, from 4.2.2 to 4.4 in one step. Very smooth. The old busy box app was not changed or lost. I did lose the TWRP recovery feature and I did lose SuperSu. This was not a problem. So, if I did mess up the SuperSu config tomorrow, for example, I would not hesitate to reflash the whole 4.4 image again, since I did not lose any user data.

Then to restore root, I copied the latest SuperSu [Chainfire version 1.8] to the Nexus 4 SD card. And, I copied the TWRP recovery file [mako 2.6.3.3] to my PC Android SDK folder with my ADB and Fastboot executeables. I did an ADB Reboot Bootloader, via the usb cable. This restarted the phone and placed it into Fastboot mode. I did this with the phone ON and operating normally. Then I issued a Fastboot Flash Recovery recoveryimagename.img. That took about 5 seconds to execute and complete. Next, I could then go into Recovery and flash the SuperSu zip file, from my SD card. Another 5 seconds. I found the latest TWRP recovery file after searching at http://teamw.in/project/twrp2.

The existing Busybox was previously installed and worked immediately and directly with the new TWRP recovery and SuperSu programs.

Bottom line, in the future, I know what worked for me and it was really simple and short to implement. So, if pushed to fix a new problem, I would simply go back and flash the factory image for a fresh start. In all, I read the tutorials from users efrant, BojanMK, WugFresh, and Jabakuba. I am no expert, but these tutorials all had the same workflow, from different author viewpoints, that helped my confidence. I am very happy with the update.

Bill M
[Nexus 4 Q&A, Help & Troubleshooting] :
Thanks Bill. I followed your instructions (but with 4.4 already running) and had no luck, but it did get me thinking about flashing 4.4 as an update. Then I broke the cardinal rule of troubleshooting and made two changes at once so I don't know which one did it.

I cleared the cache partition from ./fastboot boot cwm

I replied 'No' when cwm told me "ROM may flash stock recovery on boot. Fix?"

Whatever it was (I'm suspicious it was erasing the cache partition), I'm now rooted with SuperSU 1.80. Thanks! :D
[Nexus 4 Q&A, Help & Troubleshooting] shengovind:
Means that you lost recovery... Now you'll have stock recovery..
[Nexus 4 Q&A, Help & Troubleshooting] ajcain19:
Hi Guys/Gals,

I've been lurking this thread for a while, but I'm completely confused. I have the 2013 Nexus 4 on stock 4.4 Kit Kat (KRT16s) and I want to get root access. I've searched multiple threads and the rooting process is very confusing because some say that you need to unlock the bootloader first and others says don't even mention the bootloader.

Can someone please point me to a complete "thorough" walk through to root my Nexus 4? I don't really need to flash roms, but I'd like to add root apps to increase the volume and overclock the phone. I've rooted my past two phones, so I'm familiar with some things already. Thanks, I appreciate any help.
[Nexus 4 Q&A, Help & Troubleshooting] abaaaabbbb63:
You can't root without unlocking the bootloader. Use Helium Backup to backup all your stuff before unlocking the bootloader.

You can use this if you don't want a custom recovery:

http://xdaforums.com/showthread.php?t=2025274
[Nexus 4 Q&A, Help & Troubleshooting] shengovind:
You can.. But it isn't recommended by me.. Use framaroot and use gandalf exploit.. Then you cab flash recovery if you want..
[Nexus 4 Q&A, Help & Troubleshooting] saifulh2304:
thanks for your hardwork :)
[Nexus 4 Q&A, Help & Troubleshooting] Praveer:
Will be rooting my mobile. Wanted to know whether the adb backup does backup of everything except SMS right? Also is the adb method working fine coz some users mentioned that restoring often fails.

Thank you
[Nexus 4 Q&A, Help & Troubleshooting] pascalthebest:
thanks for your hardwork !
[Nexus 4 Q&A, Help & Troubleshooting] lexroad:
Thx for this, I just got my hands on a second hand nexus 4, and was panicking a little until I found this :D .

Is it strange that I didn't have to install cwm from rom manager again? I could boot into it 3 times already.
[Nexus 4 Q&A, Help & Troubleshooting] karimo0o:
I've went through the guide step by step

and I keep having the following massage : [error: device not found]

even though the driver is installed

and Debugging is on
[Nexus 4 Q&A, Help & Troubleshooting] abaaaabbbb63:
At which point in the guide?

To execute fastboot commands, your phone must be in fastboot mode.