yashsingh1/xdaforums huggingface dataset:
[Nexus 4 General] Chromium:
I'm here

Sent using xda-developers app
[Nexus 4 General] sunnysomyani:
sir now what should i choose

reboot system now

install zip

wipe data/factory reset

backup and restore

mounts and storage

advance

plz tell me which should i choose
[Nexus 4 General] Chromium:
Well it depends... What do you want to do? Install a ROM? Root stock?

Sent using xda-developers app
[Nexus 4 General] sunnysomyani:
sir plz tell me

---------- Post added at 08:04 PM ---------- Previous post was at 08:03 PM ----------

my mn4 is not rooted yet but i have unlocked the bootloader and i want to root my phone so now what should i do

plz suggest me

---------- Post added at 08:05 PM ---------- Previous post was at 08:04 PM ----------

i want to root my n4 and i want to backup my stock rom before installing any custom roms
[Nexus 4 General] Chromium:
Everything is in the op. Copy the supersu zip to the phone and flash it.

Sent using xda-developers app
[Nexus 4 General] sunnysomyani:
so first shoul i reboot or directly flash the super su file and then reboot plz sugesst and sir after flashing super su file will i have to wipe cache or something like that
[Nexus 4 General] Chromium:
Flash it directly without rebooting first. Then wipe cache and dalvik, and reboot.

Sent using xda-developers app
[Nexus 4 General] sunnysomyani:
ok sir done with that but sir its showing android is upgrading what is it is everythiong going good
[Nexus 4 General] azrash:
Let it do it's thing, you should boot up to a rooted Android once it finished
[Nexus 4 General] sunnysomyani:
Thanks everbuddy who have helped me specially chromium sir he was everytime with me thank thank u very much all

---------- Post added at 08:24 PM ---------- Previous post was at 08:24 PM ----------

And before installing any rom i want to take full backup if my stock rom how should i do it
[Nexus 4 General] Chromium:
Go into recovery then into the backup section. You can make nandroid backups there.
[Nexus 4 General] jeffakajeff:
Has anyone tried sending a custom recovery Via fastboot after upgrading to android 4.4 (factory image)?

My device just hangs on "downloading".

It allowed me to downgrade the bootloader version. Tried to flash recovery with the same issues.
[Nexus 4 General] sunnysomyani:
And after that if anything goes wrong i can restore this stock rom is it so
[Nexus 4 General] arffrhn:
Yes..by using the same recovery you use to make that nand backup. Cwm backup only restorable on cwm recovery. The same goes to twrp.
[Nexus 4 General] sunnysomyani:
Ok thanks forbtge info dude very thank u
[Nexus 4 General] sunnysomyani:
when i always select reboot system now on cwm it shows

root access possibly lost, fix?

and shows options

1 no

2 no

3 no

4 no

5 no

6 yes fix root (/system/xbin/su)

7 no

8 no

go back

tried fix root once but problem is still there

plz help anybuddy
[Nexus 4 General] arffrhn:
Try flashing the SuperSU.zip again. Btw..that's not a problem..just choose that yes whenever you want to reboot.
[Nexus 4 General] sunnysomyani:
should i falsh super su again
[Nexus 4 General] arffrhn:
Yeah.
[Nexus 4 General] joemcua:
This is very detailed & understandable except for one thing... what does CMD/Terminal means? And how do I make it appear using WinXP?

Sent from my Nexus 4 (Stock & Untouched)
[Nexus 4 General] arffrhn:
CMD is a short form for Command Prompt that can be found in pc/laptop. How to open on WinXP? Look here.

On the other hand, terminal is what we refer to an app named Terminal Emulator. It functions the same as CMD on pc but we use it in android devices. As android is using linux system, so we use both of them to run/execute linux commands.
[Nexus 4 General] sunnysomyani:
help me please

when we flash custom roms we have to first clear the data then cache etc etc through cwm but when we clear data it also deletes the backup taken by cwm of our working rom and if i flashed a custom rom and it failed to boot then how shuold i restore my pure google os so please help me about this thing plz im very xcited to flash cm 10.2 on n4 but this quiry is blocking me to do that so p;lz help anybuddy
[Nexus 4 General] arffrhn:
AFAIK, cwm recovery and twrp does not wipe your internal sd card (emulated 0). It just wipe the phone storage. In stock recovery, yes, factory reset will clears the internal sd card as well. Therefore, if you perform reset using cwm/twrp, your data (pics, music, backups, etc.) will all still be intact.
[Nexus 4 General] joemcua:
Can anyone tell me the difference bet touch & non-touch type? And what's safer to use?

Sent from my Nexus 4
[Nexus 4 General] arffrhn:
Touch is when you have touch screen interface while non touch means you have to navigate using volume rocker and power button. In terms of safety, all of them are safe to use. All of them have the same purpose albeit the different interface and navigating style.
[Nexus 4 General] shobuddy:
Will this method work on Kitkat?
[Nexus 4 General] arffrhn:
Yes it will work in KitKat.
[Nexus 4 General] ac009:
Hi there!

I'm complete noob at this, and I just started following your guide with my new Nexus 4..very excited. I just completed installing the Custom Recovery and everything is going smoothly thus far. I am taking a pause now before I root it and go into next steps.

My question is, I am looking at some of the popular ROMs such as Paranoid, Cyanogen and Rasbeanjelly.

Do I simply download these ROMs and follow the next steps of the guide under Rooting and installing the ROM?

What about a Kernel? How do I know which one to install?

Sidenote: which ROM is best for batterylife + stock stability? Thanks!!
[Nexus 4 General] spaceman860:
All ROMs come with a kernel most of the time its stock or faux kernel

Sent from my Nexus 4
[Nexus 4 General] Chromium:
Thanks again. I successfully unlocked, flashed a recovery and rooted.

However i had a bit of an issue. After unlocking the bootloader and flashing the recovery, i decided to reboot the phone into android, and from there i would copy the superuser zip. But when i rebooted it got stuck on the boot animation. I had a bit of a panic attack, but i managed to resolve it by shutting it off, booting into recovery, and wiping the cache. It then booted android properly and i went on with copying the su zip and flashing it.

Also the phone didnt seem to get wiped by unlocking the bootloader. (apps, and pics are still there)
[Nexus 4 General] Throwback24:
Thank you! I tried using the tool kit and kept failing time and time again. This was kind of hard for me lol but I finally got it rooted!
[Nexus 4 General] DJBhardwaj:
I'm glad that this guide is being useful. If it goes on like this, I shall request a Moderator to sticky this topic.

Also, thanks to those who're here to help other.
[Nexus 4 General] dsjd:
I am getting an error " adb is not recognized as an internal or external command " ...Do i have to use the command "cd C:\android-sdk-windows\platform-tools " first?
[Nexus 4 General] DJBhardwaj:
Yes.

Bur If you want to use it from any location on your PC, you need to define Environment Variables for the same. To do so, follow these:

1) Right click on Computer and go to Properties.

2) Click on Advanced system settings, on the left pane.

3) Under Advanced tab, click on Environment Variables.

4) Scroll down under System variables and edit the Path variable.

5) Add the paths to your SDK's /platform-tools and /tools.

For Eg.

C:\android-sdk-windows\platform-tools;C:\android-sdk-windows\tools

Note: Here ";" defines the end of a path, so make sure to add it.

6) Click Ok and save it.

7) Reboot your machine.

Now, you can execute the SDK commands from any location on your PC. :good:
[Nexus 4 General] Chromium:
This no longer seems to be working if your phone is on official 4.3 (meaning you have the 4.3 bootloader). It will only give you a bootloop and then you will end up having to do a full wipe, resulting in losing your data. Only do this is you are on 4.2.

I just read this and realized this is exactly what happened to me.

For those who don't want their phone wiped after unlocking boot loader, this is what u can do:

1. Unlock bootloader

2. DO NOT reboot into android. After the boot loader is unlocked it will go back to the boot loader screen...just leave it there.

3. Flash the custom recovery of your choice

4. When the recovery is successfully flashed choose recovery mode from the bootloader, and once the recovery has booted wipe the cache from there. (If u don't wipe cache the phone will get stuck on the boot animation)

5. After wiping the cache, go ahead and reboot into android, and you will notice your stuff is still there :)

6. Then u can proceed to rooting by booting back into recovery and flashing the super user zip
[Nexus 4 General] dsjd:
Are my drivers installed properly?Is the above response normal ???
[Nexus 4 General] spaceman860:
It says it's offline because it's a new security feature: in your device a popup with a hash key should be shown asking you whether you would allow the PC to connect to your device. After accepting that, the device can be accessed from the PC. Make sure you have the updated adb tool

Sent from my Nexus 4
[Nexus 4 General] punitthereddevil:
Really good guide...can u please make a video of the process...? This method is totally different from the way I rooted my galaxy ace...so m not feeling confident enough to go ahead and do it on nexus 4...
[Nexus 4 General] DJBhardwaj:
Nexus devices always have the best and the simplest methods. I can assure of its validity.

I'm sorry, but I don't have the appropriate time to do so.
[Nexus 4 General] dsjd:
Thanks for the reply... What do you mean by update adb.. How do I update an adb..
[Nexus 4 General] spaceman860:
type "adb version" to verify that you have the latest version of ADB. If its versions 1.0.31or newer your OK.

Sent from my Nexus 4
[Nexus 4 General] DJBhardwaj:
Its always advised to use the latest SDK available, So you won't run around any such errors :good:
[Nexus 4 General] dsjd:
I amm going to root my phone and flash panaroid android..On d dpanaroid android page it said

what does this mean?My nexus 4 is running 4.2.2
[Nexus 4 General] Chromium:
Its generally meant for people still on versions of jellybean older than 4.2.2. If you were on something older you would have to update your radio, bootloader, etc.

But if you have the official stock update of 4.2.2 on your nexus, you dont need to worry about this stuff. Just follow the guide and you should be fine.
[Nexus 4 General] dsjd:
What is the latest version of supersu ....is this it?

http://download.chainfire.eu/282/SuperSU/
[Nexus 4 General] spaceman860:
No find the newest here

http://xdaforums.com/showthread.php?t=1538053

[03.03.2013] SuperSU v1.25

Sent from my Nexus 4
[Nexus 4 General] dsjd:
dam :( ...i already flashed using the older version ...but there in an update for it in google play...is it ok for me to update supersu in google play?
[Nexus 4 General] jnhsd0319:
recovery problem?

Hello, thanks for the great guide! It helped me alot.

However I think I have encountered a problem.

Everytime I wipe my system/cache/dalvik in order to flash a new ROM

my recovery (twrp 2.6.3.3) gives me an error saying that it can't mount E;//.

So I have to connect my phone to adb and flash recoveries everytime I want a new ROM.

Is this a bug with this version of twrp or am I doing something wrong?

Thank you.
[Nexus 4 General] r8revealed:
Kind of an urgent problem as well, A friend of mine has had a bootloop on the Nexus 4 using this guide.

Upon installing CWM, the phone fell into a bootloop (Superuser hasnt been installed yet). After that, just in case, we did a Wipe data factory reset, wipe cache partition, and then wipe dalvik cache and no luck. The device has an unlocked bootloader and everything else went flawlessly. What can be done now to get the phone rooted and up and running? (An unroot is a possible solution, but maybe something else can be done so that an unroot wont be necessary).
[Nexus 4 General] SpaceCity78:
Is there a way for me to root my nexus 4 without computer
[Nexus 4 General] Prez1:
Thanks for the info!
[Nexus 4 General] avlisF:
I already update my nexus 4 to kitkat through OTA. Can I still use this method to install a custom rom?
[Nexus 4 General] erham66429:
Hi tku for your tutorial, it's very helpfull for noob like me :D

btw can i ask you something, why before flashing custom kernel using TWRP we need to wipe dalvik cache and cache...

My friend flashing custom kernel without wipe dalvik cache and cache and it also worked well :confused:
[Nexus 4 General] arffrhn:
You don't need to wipe them. It is optional but recommended as wiping them will clears the stored cache used by your system with the old kernel. After flashing new ones with cache wiped, the system will generate a new clean one for your new kernel.
[Nexus 4 General] erham66429:
Thanks bro... it's better to wipe cache first before flashing new kernel :)
[Nexus 4 General] trev13net:
Bump/Help

I have the same problem here...tried using twrp and cwm and it still stuck on the reboot logo (4 circles) please help!
[Nexus 4 General] anupash:
Can you try this?

Reboot to fastboot mode or when powering on the device hold the volume down key and the power on key.

In the fastboot mode run the following :

I) fastboot -w

ii) fastboot erase boot

iii) fastboot format system

Then

fastboot reboot-bootloader

Using the down arrow key navigate to the recovery and use power menu to select. Flash everything again. Hope it works.
[Nexus 4 General] htrapy:
after superuser.zip file now whenever reboot through custo recovery, i get an error

Root Access Possibly Lost Fix?

THIS CANNOT BE UNDONE

1. YES fix root (/system/xbin/su)

2. NO do not fix

I also faced the same problem earier and i think bcz of which i was having problems on flashing custom roms (whenever i flashed custom rom my phone won't get through initial setting(settings that we get after full system wipe), it continously used to show an error that "Phone crashed, press ok or cancel" and on selecting ok i would get same error, so get rid of this problem i returned to stock rom,stock recovery, locked bootloader but no again i'm facing the same problem....
[Nexus 4 General] arffrhn:
I think you're not using the latest cwm. My suggestion is to use l latest twrp instead of cwm.
[Nexus 4 General] htrapy:
On flashing Custom Rom, my phone is stucked with continous FC ("Phone Crashed","Press OK") after the phone boots.

I had faced the same problem earlier so someone on XDA suggested to use twrp recovery. Then i flashed the purity rom and it worked fine, but then as you may know now, as PA is out, so flashed it and again i'm getting continuous fc error....
[Nexus 4 General] Ibrahim.Rahman:
Rooting doesn't require a computer. However, if you're referring to the pre-rooting process (unlocking bootloader, flashing custom recovery etc), you won't be able to proceed without a computer.
[Nexus 4 General] Downloaded7:
Fantastic thread. I have been messing around with custom ROMs for a while but nothing has explained these processes as well as the OP. My only question pertains to the process of making sure drivers and the fastboot binary functional on Mac OS X. I have always had trouble getting my devices recognized by fastboot on my mac, and so have frequently used toolkits to do the work for me, but I don't like not knowing what is happening to my phone in the process. The linked fastboot binary file is a .exe, which are not recognized by OS X, correct? How can I make sure fastboot is functional on my Mac?

Thanks!
[Nexus 4 General] DJBhardwaj:
Thank you for the appreciation :)

This guide shall help you setup Android SDK on Mac. After its done, Download this, extract , rename "fastboot-mac" to "fastboot" and place it inside the <android sdk>/tools folder
[Nexus 4 General] Downloaded7:
I tried to follow the linked ADB setup guide but my devices still don't get detected in terminal :(.
[Nexus 4 General] arffrhn:
Maybe the driver wasn't installed properly. Got this problem too at first.
[Nexus 4 General] sharadm20:
My nexus 4 is on debugging mode and there is no device driver

[Noob Question]How to install google-usb-driver?(For nexus Ofcourse?)
[Nexus 4 General] DJBhardwaj:
USB drivers ain't needed since Galaxy Nexus.

Setting up android sdk is what that matters.
[Nexus 4 General] sharadm20:
more ques??

i have sdk which i installed 2 yrs back it when i run "adb devices" it shows my device is offline is it due to older adb version??

and fastboot.exe is not present in my platform-tool folder what do i do??
[Nexus 4 General] DJBhardwaj:
Download the fastboot binary and place it in the tools folder.

Make sure usb debugging is enabled for adb. If its already enabled, message me on my hangouts, I'll try and help.
[Nexus 4 General] Downloaded7:
Were you using Mac OS X?
[Nexus 4 General] The_Other_Guy:
My Nexus 4 is on 4.4.2 Stock, no root and bootloader still locked. Can I root it using Framaroot and then flash a custom recovery using GooManager in order to avoid unlocking the bootloader first and loosing my data?

I want to stay on my stock ROM and kernel for the time being.

Thanks in advance, this thread has already taught me a lot!

EDIT: Tried framaroot, none of the exploits worked. Guess it's an issue with 4.4.2
[Nexus 4 General] ayieo7:
Guys need help... I follow the instruction.. Unlock bootloader then flash recovery. After reboot my device stuck at bootanimation..... Any solution here?
[Nexus 4 General] mymeatb18:
You need to wipe data/factory reset when unlocking bootloader on 4.3
[Nexus 4 General] shiongha:
Hi I rooted my phone once and I wanted my phone to be back normal so I decided to unroot and lock the device using nexus 4 toolkit. My phone still works fine but there is one problem. I can't factory format my nexus 4. Whenever I try to format it, phone would shut down as it should be expected go happen, but gets stuck on google logo forever.

Same if I try to go into recovery mode. What can I do to make my phone as it was when I first opened from my box?
[Nexus 4 General] mymeatb18:
Download factory image and unzip and run the flash all.bat
[Nexus 4 General] Charle692:
Hey everyone. So unfortunately my samsung galaxy s2x died on me yesterday where the power button is stuck and is creating a constant bootloop. So I was in need of a new phone. So I decided to get this one. As I've been using custom roms for a while I couldn't last long before i decided to try out some custom roms on this device. So I followed this guide to unlock and flash a custom bootloader. But I ran into problems as it seems many others have about this bootloop issue. I first flashed TWRP 2.6.3.3 which seems to have been the latest one. The first problem i ran into was that twrp wouldn't allow me to wipe cache and system. It said can't mount E://. So I decided to try to flash CWMR 6.0.4.3 touch and alast i was able to wipe the cache and data. Or so I thought. When I tried to get back into my phone I was greeted with the bootloop. To me it seems that the cache and system partitions aren't getting wiped properly and are causing a bootloop. Does this make any sense? Any ideas? thanks guys.

EDIT: I've actually tried all of the latest recoveries and nothing seems to be wiping properly and thus I'm stuck at the bootlogo. Ok seems like the cache partition is being wiped and so is the system partition. But when i go into advance and try to mount the data partition it gives me an error.
[Nexus 4 General] Charle692:
Decided to make another post. So I decided to flash the stock rom back using the nexus toolkit as it seems like the data partition was having problems. Gonna try the process again. Alright so for everyone having bootloop problems use the nexus toolkit to revert back to stock. Once that's done it will have overwritten your custom bootloader. So go into download mode again and flash a new custom recovery via fastboot. Once that is done go into the custom recovery and perform a wipe. You should then be able to boot back into your stock rom. You can now also flash custom roms. :)
[Nexus 4 General] mymeatb18:
If u unlock boot loader while on 4.3 and above you have to wipe data otherwise u will have bootloop.

Unlock boot loader

Flash recovery

Reboot into recovery and wipe data factory reset

Flash ROM and good to go
[Nexus 4 General] Charle692:
That's exactly what I did but the problem is TWRP reported an error that the /data partition could not mount. So I decided to try CWMR and there i was able to perform a wipe successfully but it was still bootlooping. I wen't back into the recovery and tried to wipe again where i realized that it wasn't wiping the /data partition properly as well. The recoveries were not wiping. So to fix this I though maybe i'll use the super wipe and flash it to wipe everything. But I couldn't even flash anything because the /data partition wasn't mounting and thus I couldn't access my /sdcard. I'm following the guide to the T.

1) go into bootloader mode

2) unlock the device

3) flash a recovery of your choice via fastboot

4) then boot into recovery and wipe/factory reset

5) then boot into rom or flash.

The problem arises at 3 where I can't wipe since the /data partition isn't mounting correctly. Something is happening when coming from 4.4.2 where once you do this process you can't wipe anything. It seems like the sdcard isn't functioning properly. To solve this though for other having the same issue the only way I could fix it was.

1) Download nexus toolkit.

2) Update the toolkit and select yes to any download pop-ups.

3) Make sure your drivers are correctly installed.

4) Under the "back to stock" section, tick the soft-bricked/Bootloop option and then click Flash Stock + Unroot

5) Follow on screen instructions. Once done your device should be able to boot into the stock rom but your custom recovery has been erased.

6) Boot into bootloader mode

7) via fastboot flash a custom recovery (Step 2 - 10 in the op's guide)

8) boot directly into the custom recovery and perform a wipe. (It should now work)

9) you can now boot into the stock rom(Give it some time) or flash a new custom rom.
[Nexus 4 General] drifter006:
So when I wipe/factory reset, the recovery won't just delete the ROM that I placed into my root storage?
[Nexus 4 General] DJBhardwaj:
Data reset just erases the data partition and not the sdcard or storage.
[Nexus 4 General] baxtex:
I'm not sure what I'm doing wrong here, but my CMD does not recognice anything with Fastboot. It can't recognice the command. I'm not sure i've installed the dirvers correct so I followed this guide: http://xdaforums.com/nexus-4/general/drivers-nexus-4-driver-windows-t1992345

and in my device manager it says Android bootloader interface.
[Nexus 4 General] Boyairek:
Great tutorial, thanks !
[Nexus 4 General] IseeDEADbodies:
Very good tutorial, helped a lot. I've just finished with the rooting (which went very smooth and easy), but i have one question though :

Now i want to put a different (custom) kernel without using custom ROM. But since i'm quite noob at this, im kinda scared and i wish to ask before doing whatever. Now i've searched the Nexus 4 original android development page, but i didn't really understand which kernel to download. It says that most of them are for 4.2 jelly bean, but haven't saw any for 4.4.2 kitkat (which i use). So basicly my question is, can someone help me to understand which one is compatible for me. If it matters, i've rooted my Nexus via CWM 6.0.4.3 and superSU 1,80

Thank in advance, and sorry for the lame question.

P.S. - I wanted to flash a custom kernel, because i've heard that it can provice better battery life.
[Nexus 4 General] arffrhn:
Go to Original Android Development section or Android Development section here in XDA. Both sections are flooded with 4.4.x kernel. You only need to choose.

It is better that you update your recovery to latest cwm/twrp (I prefers twrp though).
[Nexus 4 General] IseeDEADbodies:
Is it going to wipe all my data again ? And is it necessary to update to last version so i can flash kernels for 4.4.x, or is it okay to leave it with this one ?

Thank you in advance again :)