yashsingh1/xdaforums huggingface dataset:
[Nexus 4 General] arffrhn:
No, flashing kernel won't require any wipes. Just flash and be happy. :D

The thing is, cwm usually result in some misbehave with rooting if you don't use the latest vesion and yes, some rom (if you are interested) requires you to have latest recovery version. Use twrp. Never fails me so far. Link is in my signature. Also try hells core kernel. It's great. Link is also in my signature. :)

Edit: Additional info. Here we have 2 types of kernel. One is non-caf/aosp kernel. Another is caf/cm kernel. Just don't flash wrong kernel. Stock 4.4.2 uses aosp kernel.
[Nexus 4 General] vggokul:
no network + IMEI corrupted

hello,

i'm not able to connect to network and my IMEI number is corrupt. i tried to reset, unlock boot loader. but nothing worked. pls give a solution. My phone is not rooted.
[Nexus 4 General] RohanM:
How do u know that ur IMEI is corrupted ?
[Nexus 4 General] vggokul:
I found it in about phone option in settings.
[Nexus 4 General] arffrhn:
Unknown baseband and xxxx imei. That's how you know.:)

---------- Post added at 09:29 PM ---------- Previous post was at 09:29 PM ----------

Try flash back 4.2.2 factory image see if that works.
[Nexus 4 General] RohanM:
yup was just checking him.. :p
[Nexus 4 General] vggokul:
Tried it. Still the imei is "0". Any other option ?
[Nexus 4 General] arf92:
Security?

When the bootloader is looked, if my smartphone is stolen and the USB DEBUG is disable, the thief won't make to swap the ROM? I am safe?
[Nexus 4 General] plek12:
Thanks, that so helpful :) because i wanna start change ROM & Kernel
[Nexus 4 General] bergamin:
Bootloop after flashing TWRP

Hey guys... please help... I was going to root my N4 but after flashing TWRP I rebooted into recovery and my phone is now stuck in an infinite bootloop (it's locked in the 4 colored balls and occasionally reboots by itself. In the Google screen, there's the open locker in the bottom).

Details:

I was in stock 4.4.2

When it was going to boot to recovery, a TWRP screen appeared then it became black and entered in the bootloop.

I'm trying to hold the power button so it would restart but nothing happens.

I'm also trying to hold the power button + volume down to enter recovery with the same result.

My power button was pretty bad (that's why I was rooting - to wake it up with screen knock).

Please help me... I really like my N4

Thanks for any help! If more info needed please ask.
[Nexus 4 General] arffrhn:
Which version of twrp did you use? The open lock is a sign that you have unlocked bootloader. Nothing to worry about.
[Nexus 4 General] Caradhras:
Do you know if there is a way to save the data stored on the (virtual) SDCard on Android KitKat ? I've just broken the screen of my Nexus 4... No USB debugging, no root access... I wanted to follow your explanation here : http://xdaforums.com/showpost.php?p=44859053&postcount=8 but I'm afraid with your post below :)
[Nexus 4 General] pincher65:
Bootloader unlock?
[Nexus 4 General] Caradhras:
Yes but it seems that the bootloader unlocking results on a full wipe with recent versions of Android.
[Nexus 4 General] muzaffarkhan95:
nexus 4

can kernel be flashed thru commands frm CMD prompt??

i mean any other procedure rather than flashing it frm .zip?
[Nexus 4 General] pincher65:
fastboot flash boot boot.img
[Nexus 4 General] dougrb:
Hey all, quick question. Now, I've read through various parts of this thread, and realize that there is a strong disdain for the quick toolkit methods, but it seemed the fastest way to get rooted for me. I'm on a Mac, and used Windows via Parallels to get it all done. The tutorial I used was a video from This Thread And I'm happy to say that I had zero issues whatsoever. I used the SuperSU protocol by Chain Fire and then then the CMR for the custom recovery method. The other options were to use TWRP for recovery and a different SU protocol.

Now that my N4 is rooted, I just want to know if there is a specific way I have to go about installing custom ROM's to go along with how I rooted. Or can I simply download the ROM I want, and flash directly the same way as most other root methods? All I'm really looking to do, is to get my unrestricted tethering with T-Mobile back (I have unlimited data and had free tethering before I updated OTA from 4.4.1 to 4.4.2) and possibly get an LTE radio. Right now I'm still stock 4.4.2 build KOT49H.

Is that possible to do in one shot? I'm more concerned with the tethering than the LTE.. since I use the N4 as a hotspot for my tablet.

Any help would be greatly appreciated! :good:

D.
[Nexus 4 General] arffrhn:
Hi,

If you have succeeded in rooting and flashing custom recovery, then just go all out. Pick a rom and gapps and flash it all away in recovery. You can also flash the latest 4.4.3 custom roms from 4.4.2 too. Just remember to flash latest 4.4.3 radio as well.

Btw, to enable lte on the nexus 4, you need to flash one of the hybrid lte radio. Search in general thread section for hybrid radio thread. Bear in mind lte on nexus 4 works only for Band 4 lte connection.

Good luck. :)
[Nexus 4 General] Mato_xXx:
Hello im noob with my new N4 and i need root him and flash MIUI rom but when I root my N4 (4.4.3) with CWM touch and I try install MIUI it post me error status 7, why??? Witch android is best for rooting to plausible flash other roms or I need everytime reinstall radio or something???

Thanks for answers, HD2 was easy to flash :o

BTW sorry for my bad english.
[Nexus 4 General] zxexn:
Thanks

Thank you for the very thorough tutorial. Really appreciate your hardwork. Learned a lot.
[Nexus 4 General] Henry443:
Yes this thread is very useful and informative for me.

I really appreciate your work.
[Nexus 4 General] s30ckf:
First of all, many thanks to DJBhardwaj for setting up this useful and informative guide for newbie person (like me) to understand how to unlock, flash CMW, root, flash Custom ROM. Thanks to the community for info sharing and helping each others, it was great to read from page 1 until here.

I am now using Nexus 4 with everything stock, android version 4.4.4. Recently feel excited with MIUI v5 ROM and would like to spend an effort to flash this ROM to my device. Sorry for asking this as I hope that I can flash this tonight.. is this method apply on 4.4.4 kit kat?
[Nexus 4 General] Rohit02:
Yes just follow the MIUI thread instruction. You wont have problems:good:
[Nexus 4 General] s30ckf:
Sorry that I have one noob question here:

I saw the latest version of Android SDK tool here: http://developer.android.com/sdk/index.html (under View All Download and Sizes. In SDK Tools Only)

And under System Requirement, it didn't show Window 8 compatible, can I use this on Window 8 64 bits machine?

[EDIT] Five more questions:

1. how do I backup IMEI/EFS in Nexus 4?

2. I have installed the SDK Tools, I connect phone to PC via USB cable, it prompt out window showing the contents of sdcard, when I want to copy certain folder to PC, it appears "unspecified error", what is this about?

3. I saw there is already fastboot.exe (163KB file size) inside the C:\android-sdk-windows\platform-tools, do I still need to put the fastboot.exe file that provided at step 7 under Prerequisites?

4. For the unlocking without losing data posted here: http://xdaforums.com/showpost.php?p=41291371&postcount=28... it says that only do this if on 4.2 android system, now my device is 4.4.4, thus this is not applicable already? meaning after unlocking the data will be wiped ?

5. I saw there is Nexus 4 (with exclamation mark) under Device Manager, does this mean the driver is not setup properly? I didn't see the link to download drive in OP. Please advice.
[Nexus 4 General] steviemch:
Personally I'd advise you to use this => http://xdaforums.com/showthread.php?t=2588979 rather than the android SDK, it's a lot less hassle to set up, plus it's very lightweight (especially compared to the SDK.)

This Youtube video is helpful as a guide to set it up https://www.youtube.com/watch?v=maLWScgXflk

1. You really don't need to back up the IMEI/EFS on a nexus 4, that's mainly Samsung specific as far as I'm aware.

2. Not sure, check "connect as media device" whilst leaving adb debug unchecked in developer options. Try it out with the installer I linked above and see if it still happens.

3. Again try out the installer linked above and follow the guide.

4. If its only for 4.2 then don't use it, it's not that much hassle to restore your phone after a wipe.

5. Yep the driver isn't properly configured if it shows the exclamation mark.
[Nexus 4 General] s30ckf:
Thanks bro for the help, anyway I had manage to complete the unlocking, flashing CMW and custom ROM... through out the process, many have learnt.. either here and other sources...
[Nexus 4 General] t00ny45:
Oops!
[Nexus 4 General] lord_melchett:
No volume button to allow unlock

Is there a way to unlock the bootloader without the volume keys? I broke the screen and since (pre screen repair) the volume buttons stopped working. I have tried replacing the volume switch and it's not worked - there is something else stopping it working. I therefore have no way to confirm I want to unlock. I can run add to get to the unlock screen on the phone (in no problem getting in to fastboot) just no way to do what I want! Does anyone have any suggestions?
[Nexus 4 General] And_you_are:
I have owned my N4 for over two years, and understand the basis of the Android OS. But Im a big noob here when it comes to rooting, other ROMs, etc, so I have a few questions.

Here is what I am trying to accomplish; from what I have read, if using lolipop and you want apps to be able to toggle mobile data, you need to root; if you want to use Nandroid for a full backup, you need to root; if you want to record both sides of phone calls, you need to root. So when rooting, do I need to select a ROM to replace the stock lolipop with, like CM12? Or is rooting something separate that allows full access to control the hardware and software and i can keep using 5.0.1?

I am looking for a foolproof way to accomplish the tasks listed above without a huge investment of time.

Thanks.
[Nexus 4 General] DJBhardwaj:
Hey, first of all I didn't quite receive what you want to say here - "if using lolipop and you want apps to be able to toggle mobile data". Kindly explain, so that I could be more helpful towards it.

Next, root is not needed for a nandroid backup, a custom recovery like TWRP is needed for that. Root does not relate to it. For call recording, yes I have heard a bit, many call recording apps require root to be fully functional. Overall, you now have two options, you can either use a custom ROM or you can root your stock Lollipop (just install TWRP and flash SuperSU). The complete process is just a matter of 2 minutes. :cool:
[Nexus 4 General] szaurus:
Nexus 4 won't boot

My phone (nexus 4) won't boot now. I was going to install a custom ROM. for that, as part of the process, I installed CWM. Then I could not go into recovery mode anymore though the phone would boot. I got command error message when I tried to go to recovery mode. Then I flashed TWM and also installed SuperSU (through TWM). At that point, phone won't boot anymore. Anyone has any idea what I can do now? Also Windows 10 won't recognize it when in recovery mode :(
[Nexus 4 General] BitsNPices:
Very good post

Helped me a lot thanks :good:
[Nexus 4 General] Zaidqureshi2230:
My nexus 4 is not starting after I am rooting my device I thing you called that bootloop mode how to fix it please help me
[Nexus 4 General] arffrhn:
Try to force it into recovery mode and factory reset. You should be able to get into recovery mode if you are stuck in bootloop.
[Nexus 4 General] Roy360:
Not sure if I missed a step.

I installed 3.0.0, and while it worked it could not mount any of my partitions besides /cache. Sideload did not work either.

So I installed 2.8.6.0, upon first boot into recovery, it ran the OpenRecoveryScript and restarted. After that it kept restarting over and over again.

So I installed 2.8.7.0, and this time it just runs the OpenRecoveryScript each time I try to enter recovery, and then restarts

went back to 3.0.0.0 and now its doing the same thing as 2.8.7.0
[Nexus 4 General] Ommadawn101:
I followed your excellent guide, to the letter, and got caught in a trap.

I have unlocked the bootloader

Immediately after that I installed TWRP (which I believe to be a mistake)

TWRP gives you a warning about the custom recovery not sticking, so, it offers you to boot directly again into recovery, which I did.

And then, there was nothing else I could do, every option I selected, brought me back to TWRP recovery, could not boot system. And since unlocking the bootloader deletes everything on the device, I had no available rom to flash, nor could I mount my device on a PC to copy anything to the device.

Had to flash factory image using one of the not-so-recommended tools (according to you!), to resolve this.

That tool did a wonderful job! It brought my device back to life!

I believe you are missing a step.

After unlocking the bootloader, one must boot normally (at leat once!), in order to get a proper system working, and to be able to download and save custom rom etc on the device itself, before continuing to flash a custom recovery, root, etc.
[Nexus 4 General] 5m4r7ph0n36uru:
I guess you've done something wrong, as it isn't needed to fully reboot after unlocking and prior to flashing the custom recovery. Did it myself - after activation of USB debugging - using the commands in one single step and everything worked just fine.
[Nexus 4 General] Ommadawn101:
As I stated, I followed the guide to the letter.

The only thing which is not mentioned in the guide, is TWRP remark of booting immediately to recovery, after flashing the TWRP recovery, in order to retain recovery

When I got stuck in recovery, I searched the net for this situation, and found many references to the same situation as i was
[Nexus 4 General] calvinlam911:
I followed the guide and I have got a problem. After I unlock the bootloader, all the files in my mobile have gone. Also, I could not view my mobile through my PC (Windows 7). Therefore, I could not upload any files to my mobile.

I used the following step to solve it.

1. Install the mtp usb drive (Media Transfer Protocol Porting Kit in Microsoft website) in my PC.

2. In my mobile, boot to bootloader.

3. In my PC, go to the folder with fastboot.exe. Type "fastboot devices" and make sure that the PC can view my mobile.

4. In my mobile, go to CWM Custom Recovery.

5. In my PC, go to the folder with adb.exe, the ROM and GApps zip files. Type "adb push NAMEOFZIP.zip /sdcard/NAMEOFZIP.zip" (NAMEOFZIP is the name of the ROM or GApps file) to the ROM and GApps zip files to my mobile

5. Then, follow your steps to install the ROM and GApps file.
[Nexus 4 General] 5m4r7ph0n36uru:
I guess you didn't read the information on screen prior to unlocking which clearly state that device will be factory rested during this process [emoji6]

Send by the swarm intelligence of my coffee machine ?.
[Nexus 4 General] calvinlam911:
I read the information clearly and I understood that all the files in my mobile would be gone. :) However, I had problem when I tried to access my mobile in Recovery mode from my PC. So, I post the message and hope it can help someone.

Also, I got a warning message when I used TWRP 3.0. So, I used CWM instead.
[Nexus 4 General] Ommadawn101:
This is exactly the situation I encountered, and this is the reason I advise to change the guide and suggest to boot normally into android, after you unlock the bootloader, because all data is wiped, and so you don't have any rom to install. If you continue directly to custom recovery install, and you are caught in a loop there, you are seriousely stuck. Because you cannot access your device from PC, and you cannot mount anything using the custom recovery. There's nothing to mount!

Now people will come and say, nothing happened at my end. Of course, if all goes well, it's fine, but IF you get caught in a loop after flashing cusom recovery, immediately after unlocking bootloader, you are in serious ****.

So, it is better to do it step by step

Unlock bootloader

boot normally

only then go ahead and flash custom recovery/root, or whatever
[Nexus 4 General] jimjim79:
google play services keeps stopping

I have an issue with a message saying "google play services keeps stopping" pops up every 20 seconds.

I new to rom but this so forgive if the information is not complete enough.

What I'm using:

Nexus 4 8GB, mac , Android Debug Bridge version 1.0.31 (works in terminal , TeamWin (latest version) AOSP 7.0 V6

I was able to flash AOSP 7.0 V6 rom ok. But the Gapp had a error 70 in teamwin (think due to partition size being too small). So, after trying load of stuff, I installed the micro version of Gapps and then it installed, but i get that error message all the time.

Now I'm in developer mode I was able to mute the error message till next boot, which is good but not a fix.

I have tried resetting the cache for google play services, framework and google play then restarting but it didn't help

Does anyone know what I'm doing wrong to get this message please?
[Nexus 4 General] avinashjirapure:
That's known issue & it's permission related .... Just go into setting>app>google play services >permission.... & provide all permissions.

Hope it will help.
[Nexus 4 General] sftong2000:
Nexus 4 Shattered Screen, without USB Debugging Enabled

Hello Helpers, I shattered my Nexus 4 screen, and the phone has a Pin lock, and is currently in Airplane Mode with BlueTooth enabled. It does Not have USB debugging enabled.

My objective is just to pull out the video, audio, and pictures files, after which I would throw the phone away.

So is there a way I can enabled USB debugging or pull my files out? Following are what I have done, and none are successful in accessing the phone:

1) I have an OTG cable with a mouse. Nexus 4 would not recognize it. I did try to have this OTG Cable + Mouse plug into another Motorola phone and it worked, just not Nexus 4.

2) I plug my Nexus 4 into the PC through the USB cable, the Windows 10 recognize it but when I try to browse that Nexus 4, no files show up.

3) I installed the Android Studio 2.2.2, with various SDK (5.0 and 5.1 SDK) + Google USB driver. And then proceed to run the ADB "shell" or "devices" command located in folder "platform-tools", and the command line would tell me -- "error: no devices/emulators found", or "List of Devices attached" but with NO list of devices displayed. I even boot into Recovery Mode and the ADB command still not seeing any phone.

4) I even try the post here, and I could not get it working either -- http://xdaforums.com/showthread.php?t=2786395

i) I tried the steps listed here http://xdaforums.com/showpost.php?p=66731042&postcount=260 but it does not work for me. The step (2) here returned me "No devices", while step (3) is sort of confusing as it involves TWRP (??) and it said BootLoader would erase all my data files!

ii) Another post here in the same thread -- http://xdaforums.com/showpost.php?p=62398797&postcount=213 which mentions the use of "Flash through ADB". But then my phone does not have USB Debugging enabled, so how can ADB talk to the phone in the 1st place? And compile his codes in Android Studio perhaps?

iii) Another post of same thread -- http://xdaforums.com/showthread.php?p=61792353#post61792353 which is lengthy and involves self-custom kernel + compile using Kernel Kitchen. Would this really work?

Thanks

Sean
[Nexus 4 General] dark_prince:
Out of the blue my wife decided to factory reset the phone from phone settings and now it gets stuck every time at startup welcome screen at language selection. I cant get the phone into bootlaoder / recovery by pressing both buttons. As the phone turns off itself after 3-5 seconds when I turn it on by keeping both buttons pressed. If i release power button after pressing both buttons, I still end up into the welcome screen instead of bootloader. Please help, its been about 2 years I flashed my wife's Nexus 4 with Cyanogenmod 6 and forgot all the steps I did to make the recovery work.

I cant access adb if I connect the phone to PC, guess cyanogenmod doesnt come with ADB enabled.
[Nexus 4 General] ufa:
Hi,

I followed the guide, but after flashing recovery, I got a recovery bootloop. It has something to do with /data not being accessible

I attached the error screen

If someone has a clue about it, it would be amazing
[Nexus 4 General] Sprzedam Opla:
I have the same problem, you have this problem after installing twrp-3.1.1-0-mako.img ?? If so, then try to install an earlier version of recovery, I will try so soon, maybe something will change

---------- Post added at 07:08 PM ---------- Previous post was at 06:57 PM ----------

No, unfortunately that did not work, I still do not want to load the partition, now I will try with ClockworkMod recovery, and how it will not work, I will try to flash recovery from the post
[Nexus 4 General] ufa:
I flashed the google image again and then reflashed latest twrp version and all went good.
[Nexus 4 General] Sprzedam Opla:
I also flashed Google Image (recovery, system, radio, bootloader and other) but now, I dont know how to flash recovery without any errors, can u tell me how u flashed recovery ??
[Nexus 4 General] spaceman860:
Yes that will work fine

After you update it open the app so it can update su binary

Sent from my Nexus 4
[Nexus 4 General] DJBhardwaj:
I would like to show my appreciation to [MENTION=4433359]spaceman860[/MENTION], for pointing the users to right/latest download links.

Hereafter, I've updated the first post accordingly with the direct link to Chainfire's SuperSU Thread. The link to the latest version of flash-able SuperSU binary can be found on the same.

And for those who might want to inquire regarding the update, the latest version can be flashed easily over the earlier version without the need of any wipe/format.

If you still have any questions, please feel free to ask because some of these might add something new to your knowledge, as well as mine.
[Nexus 4 General] dsjd:
My phone is finally rooted and runing paranoid android..i wanted to know if it is safe to use rom manager app

https://play.google.com/store/apps/details?id=com.koushikdutta.rommanager&hl=en
[Nexus 4 General] DJBhardwaj:
Congratulations on your success and yes, it is fine to use ROM Manager App. :good:
[Nexus 4 General] dsjd:
Thanks :D I have cwm flashed.I downloaded the rom manager but i am runing into a problem.It is not dectecting that i already have cwm installed.
[Nexus 4 General] DJBhardwaj:
Its a known problem. It won't recognize until you perform the installation with ROM Manager itself. Press on "Recovery Setup" and follow the procedure.
[Nexus 4 General] jimbohurt:
Hello, thank you so much for making this thread. I am about to buy a Google Nexus 4 from the Google Play Store and I'm wondering do I need to unlock the bootloader before rooting? I would prefer to only root but is it necessary to unlock the bootloader first? The reason I ask this is because in the original post unlocking the bootloader comes before rooting. Thank you!
[Nexus 4 General] El Daddy:
Yes you'll need to unlock the bootloader first.
[Nexus 4 General] Chromium:
yes you need to unlock in order to flash a recovery, which will then allow you to flash supersu (root).

you can always relock your bootloader after, so dont worry too much.
[Nexus 4 General] jimbohurt:
You guys are awesome thanks so much, this thread doesn't make me feel stupid for being a noob which is really nice. haha.

Can I please ask one more thing, when I was going to get an HTC One instead of the Nexus 4 I was planning on flashing CyanogenMod so that I could have a more Google Android stock experience but because Nexus 4 is already stock Android what are the benefits of doing a custom rom? Thanks :)
[Nexus 4 General] El Daddy:
Custom Roms add many more features that aren't available in the stock ROM. Take a look through the Dev sections and check out the feature sets in the different roms.