yashsingh1/xdaforums huggingface dataset:
[Nexus 4 Q&A, Help & Troubleshooting] laba86:
Flash Problem

Hi there,

I don't know where to ask exactly but I think this topic fits the best to my problem.

My device is a Nexus 4. I downloaded and installed the nexus root toolkit of

wugfresh dot com

It unlocked my bootloader, rooted it and installed twrp recovery. Moreover it installed Busybox und SuperUser.

After it was done, I booted into recovery mode to make a backup of the current stock system.

Everything went fine so far.

Next I installed GooManager. With GooManager I downloaded the lastest CM and GApps, because I wanted try this ROM.

I selected "Flash ROM" in GooManager and chose both the CM zip and the GApps zip.

Then it asked to wipe cache/dalvik cache, which I checked.

And now I am not sure if this was a mistake, but it asked to wipe (factory reset), I thought I would be good and checked it too.

Now it rebooted into recovery mode, but it didn't go any further than to the main menu of twrp. A waited a while but nothing happend. Then I selected the flash option of twrp to flash the ROM by myself. Again selected the 2 zip files.

Unfortunately it said "failure" but I don't know exactly which failure occured.

I thought okay whatever I restore my stock backup which I did whith twrp at the beginning, but it is gone now.

Therefore I just rebooted the system und now my apps like busybox, superuser are gone and the backup was deleted as well.

Any idea what happend or what I did wrong? I thought it isn't possible to delete the backup files of twrp just by wiping for another ROM.

I'd be very grateful if anybody could give some information what to do better next time.

Thanks
[Nexus 4 Q&A, Help & Troubleshooting] Chad_Petree:
One two last questions (I promise :o ) i unlocked my phone and rooted it already , if I relock it , would it delete my data and apps too or that only happens when you unlock it ?

If I relock it what status would it day when you boot into bootloader locked or relocked ?
[Nexus 4 Q&A, Help & Troubleshooting] Jubakuba:
I read precisely this far and got bored.

I don't use toolkits, so I'm no help to you.

Only happens when you unlock.

Some apps (like the one linked in the Returning to Stock without USB portion of this guide) allow you to unlock without wiping if you currently have root.

It will say locked.

I assume you're worrying about returning it or something of that manner...

We have no flags set on our devices upon restoration to factory defaults and locking.

Efrant makes excellent guides on this process. I recommend you check it out.
[Nexus 4 Q&A, Help & Troubleshooting] laba86:
I read your instructions to unlock and root my phone manually, but the problem is the section of installing the drivers.

The links aren't referring to an explanation on how to install the drivers correctly or which drivers are needed.

Which drivers do I need for my Nexus 4 and how do I install them?

thanks

Okay finally I got the drivers installed...
[Nexus 4 Q&A, Help & Troubleshooting] csm725:
Hey guys,

The link to the CM wiki where you mentioned we should follow Steps 16-27 is broken.

What did those steps say?

Thanks.

-csm
[Nexus 4 Q&A, Help & Troubleshooting] -Gerto-:
Hello, first of all; thank you for this guide.

Worked perfectly to unlock & root!

One question though, when following steps at the end, I decided to go the manual route for keeping the recovery instead of ROM Manager / Root Explorer, however on this step:

mv /system/etc/install-recovery.sh /system/etc/install-recovery.bak

I get the message "No such file or directory"

When navigating to the directory /system/etc and doing an ls I get the following filelist:

DxHDCP.cfg
NOTICE.html.gz
apns-conf.xml
audio_effects.conf
audio_policy.conf
bluetooth
dbus.conf
dhcpcd
diag.cfg
event-log-tags
fallback_fonts.xml
firmware
gps.conf
hosts
init.goldfish.sh
init.mako.bt.sh
kickstart_checker.sh
libnfc-brcm.conf
media_codecs.xml
media_profiles.xml
mkshrc
nfcee_access.xml
permissions
ppp
preferred-apps
recovery-resource.dat
security
snd_soc_msm
system_fonts.xml
thermald.conf
updatecmds
wifi

I have rebooted a few times, and it seems like the custom recovery sticks around. Did the "install-recovery.sh" just disappear automatically? :confused: Phone arrived an hour ago, and I only followed steps in tutorial (since wiki link is broken; I followed driver installation steps from "Universal Naked Driver" post)

Maybe it's a good thing if the custom recovery sticks, but I think it'd be a lot better to also have the original around as a backup, no?

Also, I tried doing an OTA update since another post says it shouldn't be a problem, but it automatically goes into custom recovery and says it's an "untrusted package" , so I cancelled for now.

TIA
[Nexus 4 Q&A, Help & Troubleshooting] fenstre:
I also don't think my phone came with those files. But I'm not sure, because I wasn't paying attention--someone else indicated that CWM can remove them automatically?
[Nexus 4 Q&A, Help & Troubleshooting] kevinlux:
Hi guys... i quote ...the links to cyanogen guide to install drivers are broken :(

Someone could help ?

Cheers.
[Nexus 4 Q&A, Help & Troubleshooting] BLADESMAN1889:
I currently have adb installed via Knives & Forks program. Is this enough for me or do I need to get the sdk package ?

**edit**

Have installed SDK - Seems a lot easier than when I was first starting out on Android for first time 2yrs ago (& my first proper computer)
[Nexus 4 Q&A, Help & Troubleshooting] bleuiko:
Hi All, I successfully unlocked the bootloader but when I try to flash recovery, I get a out of memory error; could someone please help?

I also try to just boot recovery because all I want is to install SuperSU... I get this:

C:\android-sdk\platform-tools>fastboot boot recovery-clockwork-6.0.2.3-mako.img

downloading 'boot.img'...

FAILED (data transfer failure (Unknown error))

finished. total time: 0.005s
[Nexus 4 Q&A, Help & Troubleshooting] puncha1580:
Cool... Happy to know that you were able to root your device!!!
[Nexus 4 Q&A, Help & Troubleshooting] droidd3v:
Hey guys, I've got my nexus 4 for about a year and a half now and its running stock rom 4.4.2. I'm now planning to change it up a bit and wanted to root my phone first. Can someone tell me if the guides posted in the first post of this thread are still valid? I mean is there a different method or newer version of those apps for rooting the phone on 4.4.2??
[Nexus 4 Q&A, Help & Troubleshooting] upilguebu:
Yes, you can use that method to root your phone, 2 weeks ago I rooted my mako while running on stock rom 4.4.2 . Good Luck !
[Nexus 4 Q&A, Help & Troubleshooting] :
I got as far as beginning the steps to root my phone and I'm now stonewalled. I was able to unlock it successfully and it rebooted. Now at the adb command prompt I get [ error: device not found ] when I try any commands. The phone still shows up in windows as Nexus 4 and I can transfer files or browse it but it will not respond to the adb commands at all.

I tried uninstalling and reinstalling the phone in device manager

and tried the PDAnet drivers

and tried to install the google drivers in the sdk but they are not recognized at all.

I'm on a Win7 64 bit PC up to date.

I have the drivers installed from here as specified in the first post. Same thing. device not found.

Solved: Had to keep switching USB modes and re-enabling Debug mode. No pattern to it, camera mode worked when media mode didn't and vice versa. Very frustrating.
[Nexus 4 Q&A, Help & Troubleshooting] arffrhn:
I understand how you feel. I had this problem once. You can't use mtp because you have debug mode on. Just flash back full stock then factory reset (full reset including sd card). Then, the problem is gone. You can use mtp with debug on. :)
[Nexus 4 Q&A, Help & Troubleshooting] SaMi_InF:
How can i Re-lock bootloader without using PC ? because the windowses don't recognized my phone !
[Nexus 4 Q&A, Help & Troubleshooting] muzaffarkhan95:
Update your windows media, then it will recognize!
[Nexus 4 Q&A, Help & Troubleshooting] darkeagle03:
Great guide! I followed it and was able to unlock and root my phone. However, I have one irritating problem: it reset my Device ID. I couldn't make a Titanium Backup because my phone wasn't rooted (that was the whole point of this) and I don't know where to even find my old Device ID from the adb backups, or anywhere else, let alone restore it. Unfortunately, this was never mentioned in the guide, so I didn't know its importance, and now at least 1 or 2 of my apps won't recognize their restored data because of it. This includes my favorite phone game that I've been playing for months and will lose all my progress :(

Does anyone know how I can find and restore my original Device ID? I think the guide should include steps for this, or at least a warning so people know to look if the apps that are important to them will be irrevocably reset (if that is indeed the case)
[Nexus 4 Q&A, Help & Troubleshooting] kittuboy:
So while trying to flash back from CM11 to stock 4.4.3, I ran the "flash-all.bat" script and got the error I have shown. (Yes, my bootloader is unlocked and I am not a hopeless n00b.) Now I'm stuck with a half-assed phone that refuses to boot :(

Any help would be appreciated!

EDIT: My bad memory. Attached file now.
[Nexus 4 Q&A, Help & Troubleshooting] todorcim:
Top line device not found....fastboot drivers not installed?
[Nexus 4 Q&A, Help & Troubleshooting] kittuboy:
Whoops. Forgot to mention that I modified the bat file a little. I added "adb reboot-bootloader" as the first command so it would directly reboot instead of me having to press and hold the power button each time. Needless to say, this time I already had it in bootloader, so adb wouldn't know about it.

<<cue sheepish grin>>

In any case, the issue is resolved. I used wug's toolkit and all is well. Yes, I know it's no fun, but the phone wouldn't boot. Installed toolkit, pointed it at the factory image, clicked here and there, and now I have a phone that works except for the nav bar. (Long story, that.)
[Nexus 4 Q&A, Help & Troubleshooting] Gieke85:
Awesome thread, thanks!

2 questions tho:

- Can I relock my nexus 4 after the SU zip has been applied if I want to keep the stock rom (for security reasons if my phone is ever stolen)?

- I've heard of rooting without unlocking. If I read your guide correctly I will need to unlock before rooting?

(these questions have probably been asked in the 60 pages before, but the "search this thread" doesnt seem to work)
[Nexus 4 Q&A, Help & Troubleshooting] jd1639:
1. Yes you can relock. Keep in mind though that unlocking it again will wipe your device. Or look for bootunlocker in the play store

2. You can't root without a custom recovery which means you have to unlock to get the custom recovery on.
[Nexus 4 Q&A, Help & Troubleshooting] Gieke85:
Thanks for your help jd1639, I managed to not brick my phone!

but now I have 1 more question. In CWM when I click "reboot now" it give me the following message:

So far I've clicked NO and root seems to work just fine. Should I click fix or just keep it the way it is?
[Nexus 4 Q&A, Help & Troubleshooting] jd1639:
I always click no and never had a problem
[Nexus 4 Q&A, Help & Troubleshooting] salxtai:
4.4.4 compatilbe w this guide?

Did a search and couldn't find any specific confirmation so figured I'd better double-check that this guide and its downloadable components are applicable for kitkat 4.4.4 update that came out OTA about a week ago?

I'd appreciate any confirmation - hoping to unlock and root so I can try the Matr1x kernel and hopefully get better battery life out of my dying nexus 4 (biding my time until a Google play edition S5 comes out). Cheers in advance!
[Nexus 4 Q&A, Help & Troubleshooting] muzaffarkhan95:
Flash latest supersu, it wont ask then!!

Make a habbit of flashing supersu with the rom everytime!! And if it happens click on yes fix it!!
[Nexus 4 Q&A, Help & Troubleshooting] Alessioromatm:
Does this guide work with android 4.4.4 ?
[Nexus 4 Q&A, Help & Troubleshooting] jd1639:
Of course
[Nexus 4 Q&A, Help & Troubleshooting] Nizzy92:
HELP ! Rooting failed !

So I tried rooting my phone and followed the instructions I found on rootnexus.com

My device failed to root and didnt boot. Its now stuck in download mode.

I want to install the stock rom and its not going into fastboot mode, its just stuck in download mode.

Any help would be appreciated
[Nexus 4 Q&A, Help & Troubleshooting] :
Helpful Hand?

Stuck in download mode, hold power button

Do you know how to restore to stock ROM? Use flash-all
[Nexus 4 Q&A, Help & Troubleshooting] :
No internet/data

I was hoping I'd be able to pull this off because I've rooted an old LG P-999 without incident. I followed these instructions and after rebooting after the SuperSU install, my phone has no internet capability. The time was off and I had to re-enable "get time from carrier" but even after fixing that, I have no internet connection on either data or wifi. :( Nexus 4 running 4.4.4

Here are screenshots of Phone info if they'll help:

http://image.bayimg.com/9b1bb4ad1c35195652d90a901db5a12e9a3d932f.jpg

http://image.bayimg.com/20c8b9ee0ef4bcfc198aa43c303fee7dac267931.jpg

Thank you!
[Nexus 4 Q&A, Help & Troubleshooting] kurtph1969:
Help needed trying to Root Nexus 4

Hi,

I am trying to root my Nexus 4 using the LG Nexus 4 Toolkit V2.0.0

I used the built in method. I am now stuck on a screen that says:

"Booting into Android using an Insecure Boot Image"..

downloading 'boot.img'

In fastboot on the phone it just says 'downloading...' been stuck on this for 30 mins +. I am scared to reboot the boot loader in case it is damaged / not present. I would REALLY appreciate some help with this. I have experience in rooting. I had to use the Toolkit as I do not seem to have recovery on my phone (I get 'no command' when I try to select Recovery). Many thanks in advance.... Kurt
[Nexus 4 Q&A, Help & Troubleshooting] jd1639:
Just reboot. I would highly recommend you don't use a tool kit but rather use fastboot to either boot into a recovery or install a recovery. Then simply flash supersu zip in the recovery
[Nexus 4 Q&A, Help & Troubleshooting] kurtph1969:
Thank you so much for the quick reply!

I just rebooted as you suggested and everything was fine. I have had previous experience of hard bricking a device by flashing an incorrect recovery hence my caution. Thanks again!
[Nexus 4 Q&A, Help & Troubleshooting] Kai7os:
I've been stuck on bootloop after trying to sideload multiple ROMS (PA, CM). it just doesn't boot. Also when I try to push files from ADB it pushes them, but when I try to install a Zip through CWM i get an error saying E:Can't Mount /sdcard even tho It sideload installs.. What can I try and get out of this mess??
[Nexus 4 Q&A, Help & Troubleshooting] jd1639:
Are you clean flashing then? Wiping system, data and the caches
[Nexus 4 Q&A, Help & Troubleshooting] Kai7os:
Tried to wipe/factory restore from CWM and I noticed I'm getting an error:

Is this even normal?

EDIT: Anyway I've tried wiping and sideloading Zips and its just stuck on bootloop. I am getting different boot animations tho..
[Nexus 4 Q&A, Help & Troubleshooting] jd1639:
I think at this point I'd flash the factory image and start over
[Nexus 4 Q&A, Help & Troubleshooting] stylazation:
I have rooted phone.

with clock work 6.0.4.7

Installed Android L Preview ROM for Nexus 4

Everything runs fine.

Problem/Error.

While on charge it is showing charging on USB even while connected to the socket it should be Charging normal/ Ac Charger/ charging.

disadvantages: device heating up. Charging slow.

Turning of the phone.

Charging while turned off, starts charging then it reboots into the recovery. after few seconds.

Please need help.
[Nexus 4 Q&A, Help & Troubleshooting] kittuboy:
Best case, charger has a problem and might need replacement. Try using different charger, different socket.

Worst case, the USB port is borked and that will need to be replaced.
[Nexus 4 Q&A, Help & Troubleshooting] stylazation:
Flashed stock 4.4.4 nexus 4 ROM. Everything working fine now. Android L preview ROM had issues. Fixed.
[Nexus 4 Q&A, Help & Troubleshooting] sn0wm4n:
Flashing SU binaries not rooting properly

Hey guys,

I recently tried to root my nexus 4 and it pretty much all went according to play. Bootloader unlocked succesfully, flashing clockworkmod recovery gave no problems either.

Then, at first the root was succesful. I had root permissions, superSU app didnt give an error and it did as a rooted phone is supposed to do.

Then I wanted to make a nandroid backup on my phone but I didnt have enough storage available, so what i did was backup everything with ADB to my laptop and do a factory reset, make a nandroid backup and restore from my laptop. This all worked but I lost root acces in the process somewhere in the process.

After this is tried flashing multiple superuser binaries. I tried 0.99, 1.69 and 2.02, expecting some results from the latter as it was the most recent one i found. The problem is none of them rooted the phone. I got the warning when rebooting that this might make me lose root acces so i tried it with and without using the opted auto fix, but neither worked. Starting superSU gives me the error that no binaries are installed, but when i look in the system map there is one. Can't get root acces with any other apps either.

I now don't have much idea's of what to do next. I initially wanted to unlock bootloader to flash paranoid android, but i dont know whether not having root acces might be a problem for this, and whether flashing paranoid android might restore root acces (got build in root IIRC, correct me if i'm wrong).

I'm running 4.4.4 and didnt update while having root, so the 4.3 root problem probably isn't my problem, not sure though.

Thanks in advance
[Nexus 4 Q&A, Help & Troubleshooting] jd1639:
Get rid of cwm and use twrp. Either find a twrp zip and flash it in cwm. Our find a twrp image and flash it in fastboot.
[Nexus 4 Q&A, Help & Troubleshooting] sn0wm4n:
It worked! Thanks!
[Nexus 4 Q&A, Help & Troubleshooting] alexandrehos:
Very nice!! Thank you
[Nexus 4 Q&A, Help & Troubleshooting] bnitty:
when I type "adb reboot bootloader" into the command window I get an "adb is not recognized as an internal or external command" error message...
[Nexus 4 Q&A, Help & Troubleshooting] jd1639:
Have you instated adb on your pc? Google 15 second adb install xda
[Nexus 4 Q&A, Help & Troubleshooting] bnitty:
thanks! i did that now i get an "error: device offline" message
[Nexus 4 Q&A, Help & Troubleshooting] jd1639:
What are you trying to do? Do you have usb debugging enabled in developer options?
[Nexus 4 Q&A, Help & Troubleshooting] bnitty:
yes debugging is checked. i'm trying to root my wife's N4
[Nexus 4 Q&A, Help & Troubleshooting] jd1639:
To get into the bootloader power off the device. Then press and hold the vol down, then press and hold power. You'll feel it vibrate, release the buttons and your in the bootloader.
[Nexus 4 Q&A, Help & Troubleshooting] Planterz:
www.towelroot.com
[Nexus 4 Q&A, Help & Troubleshooting] bnitty:
I got it working. Thanks
[Nexus 4 Q&A, Help & Troubleshooting] darkkid85:
Hey Guys,

I want to root my nexus 4 without unlocking bootloader.

When i try to download towelroot it give me virus notification

Can someone kindly attach the clean towelroot apk file?

Ramu
[Nexus 4 Q&A, Help & Troubleshooting] jd1639:
You need to go to https://towelroot.com
[Nexus 4 Q&A, Help & Troubleshooting] darkkid85:
it gives me a virus notification, when i click on that lambda symbol from his site.

the request was to attach the apk if possible, or any other mediafire link

Ramu
[Nexus 4 Q&A, Help & Troubleshooting] jd1639:
It may look like a virus but 1000's of users have used it without issue. Out is hacking your device after all
[Nexus 4 Q&A, Help & Troubleshooting] darkkid85:
thanks its all good, appreicate ur help! :good:

it still gave me a virus notification, i ignored it and went ahead and ran the apk.

I deleted the apk, after i confirmed root

Appreciate ur time
[Nexus 4 Q&A, Help & Troubleshooting] kirastrike:
Solved query. Disregard post
[Nexus 4 Q&A, Help & Troubleshooting] Solid Mercury:
Does the first post still applies to android 4.4.4?
[Nexus 4 Q&A, Help & Troubleshooting] jd1639:
Yes
[Nexus 4 Q&A, Help & Troubleshooting] WarioNeila86:
It worked as expected, thank you very much for this guide!
[Nexus 4 Q&A, Help & Troubleshooting] Mr_S:
Worked great thanks
[Nexus 4 Q&A, Help & Troubleshooting] Fiscelan:
Android L rooted

Guys,

If you want to have the latest Android L into your Nexus4, then the latest Android port L is deemed stable and is available here:

http://xdaforums.com/nexus-4/development/lpv-79-mako-port-beta-t2807446

The port is laready rooted, I've been using it for a few days and works well. The battery life is also much improved. :good:
[Nexus 4 Q&A, Help & Troubleshooting] Kravhen:
This guide VS Towelroot VS Cyanogenmod installer?

Ive been reading a few different guides to rooting and this one is by far the best, clearest and most complete I've come across. Thanks for that!

However, I still have a few questions since it's been a few years since this guide was posted. I assume it still works because its still stickied, but I was wondering, what are the pros and cons of using Towelroot instead?

Or more importantly, since I know i want cyanogenmod when i finally root my nexus4, is it just better to use their installer to do everything for me? Or are there some cons not mentioned in their FAQ about doing it this way?

Thanks for all the help!
[Nexus 4 Q&A, Help & Troubleshooting] jd1639:
The advantage of using this method is you learn more about how to use your device. Root is root and this method or towelroot will get you to the same destination. But I'd use trwp to flash cm and not their installer
[Nexus 4 Q&A, Help & Troubleshooting] kittuboy:
Unless you hate having to type out a few lines in a command terminal, you shouldn't go for toolkits. Not that they don't work, but that you'll learn more doing it manually. Flash a custom recovery (TWRP is the de facto standard) and use it to root. Then download the image for CM that you want to flash and flash that too. If your files are already on your phone and you have TWRP ready, the while process from rooting to setting up CM should take you as much time as it takes to make a coffee. All the best!
[Nexus 4 Q&A, Help & Troubleshooting] Jtanishq:
I want to revert back to stock 4.4.4 from Lollipop by XDA Senior Member C-o-M.

Note : I've used ADB for all this process Not a noob. I've used toolkits before. First time using ADB and fastboot

So, when C-o-M released the first build of Lollipop for Nexus 4 i was too eager to try that out. Now. As the Official Lollipop rollouts are coming near i want to go back to stock 4.4.4 so that i can receive the OTA. The problem flashing back to stock is that whenever i flash TWRP, im able to browse through the TWRP screen. But when i reboot my phone i lose the custom recovery.:crying: I have followed many threads but none helped me out. And at beginning i was able to see my device whenever i typed adb devices and fastboot devices. But now when i type fastboot devices theres nothing coming under the command. If anyone can help me out with step-by-step guide that'd be too helpful. :)
[Nexus 4 Q&A, Help & Troubleshooting] SannanWasique:
Root on Lollipop & APK Installation Issue 'Manually'

Hi guys ,

I sorted out my soft keys issue from this LINK on 4.4.4. (four months back)

Today Device suggested me an update for lollipop, I updated the phone with the success. Now if m trying to run GravityBox/SU, It says phone is not rooted or re root it manually.

1) I need to ask how it goes for lollipop?

2) Same method for root is not working for me.

and another problem m facing ..

If I touch the install button, it is not responding but the cancel button.
[Nexus 4 Q&A, Help & Troubleshooting] venu123:
Nope, GravityBox and Xposed dont work as yet with lollipop.

To root your device, use Chainfire's Auto-root, theres a thread for it in the N4 forum here.
[Nexus 4 Q&A, Help & Troubleshooting] SannanWasique:
Thanks , I have rooted my phone.

any alternatives regarding GravityBox and Xposed ?
[Nexus 4 Q&A, Help & Troubleshooting] venu123:
Not yet, guess we'll have to wait.