yashsingh1/xdaforums huggingface dataset:
[Nexus 4 General] djsubterrain:
Just do the following :

Download the cwm recovery for Nexus 4 and flash it with the following (by placing the file inside the same folder your adb files are in) :

It should say successful or whatever and then you can boot into the rom

Copy over the latest supersu file (1.69 just now) from here

Copy it to your "sdcard" on the phone

Restart the phone while holding down "vol down" until the bootloader is shown

Choose recovery

When the recovery shows choose install zip and browse to the supersu zip file you just copied and install it

You should now be rooted

Reboot again then boot the rom

Install Root Checker.

That will let you know if you are rooted properly. (Just a hint if you get a dialog box coming up asking you to allow the app to use root then you ARE rooted :) )

Good luck ;)
[Nexus 4 General] jawmail:
Yes if your bootloader is unlocked, if not fastboot oem unlock first.
[Nexus 4 General] kr33p0:
TX man, last question how do I do this without losing my current data and stuff on the phone? Is it possible like the flash all -w supposedly was?
[Nexus 4 General] djsubterrain:
Well your data is on the data partition so as long as you don't format that then it should be ok but the data for apps may not be the same on 4.4 as they were on 4.3 so to be honest you should really back up anything you don't want to lose first and then install on a cleanly formatted phone
[Nexus 4 General] kr33p0:
Since you seem to know stuff, unlike me having only done this once upon a time, I don't remember the cmd commands for flashing parts and can't find the thread... I remember it was in the rooting the n4 but that was almost a year ago and I can't find it now :( can you remind me or link it if you can pls
[Nexus 4 General] djsubterrain:
Try this :)

http://www.youtube.com/watch?v=sqo_O7MzTac

I used these instructions and when I got stuck I just unpacked the rom and flashed each part one by one making sure they were each successful.

I've put all the files you'll need (apart from the 4.4 rom obviously) in this rar file, just unpack it to a folder (I would suggest c:\root to make it easy on yourself), to unpack it you'll need winrar.

Here's a help page on using fastboot

This is the contents of the flash-all file that you get with the rom..

If you want to you could unpack the "image-occam-krt16o.zip" zip file for the rom into the same folder and make a .bat file with the following :

..or you could just enter each command one by one into the cmd window.

Make sure you've backed up anything you don't want to lose because you're basically wiping your phone and installing from scratch on a new version, if you forget to back something up don't blame me ;)
[Nexus 4 General] kthejoker20:
Im gonna wait for the OTA then i won't lose data
[Nexus 4 General] djsubterrain:
You sure about that?
[Nexus 4 General] rajendra82:
I installed using a slightly modified version of the batch file that removed -w, which did not wipe. I re flashed SuperSU 1.69 in TWRP, and reinstalled SuperSU from the Play Store. It opens up fine for me, but any time an app asks for root permissions, SuperSU force closes instead of prompting for the allow or deny options. I have tried flashing SuperSU again in recovery and uninstalled/reinstalled it, and cleared data, but nothing seems to keep it from crashing. Any ideas how to fix this?
[Nexus 4 General] PhoenixMike:
Still stuck at bootloop

I'm probably the only one here who's still stuck at the animation bootloop.

I've reflashed and locked and unlocked the bootloader. Nothing helps.

Did anyone else have another suggestion? My phone is basically a brick at this point.
[Nexus 4 General] arffrhn:
Try re-download the package as maybe it is caused by broken packages. Also try factory reset and wipe cache after flashing the stock images.
[Nexus 4 General] PhoenixMike:
I already flashed and wiped. Doesn't work.

Went back to 4.3 and all is fine. Will redownload the 4.4 file and see.
[Nexus 4 General] arffrhn:
If you can still enters fastboot mode then it's only a softbrick. Don't worry. Well the instruction from the OP is very brief so maybe you made a mistake along the way while flashing it. Use this guide here for a detailed process. And look here to see how the .img should be placed to run the flash all.bat as stated in the OP.
[Nexus 4 General] PhoenixMike:
Thanks. I edited my previous response. Turns out everything is fine and running 4.3. Currently downloading 4.4 again to see how it works. I noticed that the one I have is only 426MB and the new one is 427MB....
[Nexus 4 General] MersauX:
Flashed over stock 4.3 without the -w command, works like a charm so far.
[Nexus 4 General] Drmol:
There might be something wrong with the current SuperSU version as more people have reported FCs on KitKat.

Check this out: https://plus.google.com/+Chainfire/posts/P2Aqd3jBrgb
[Nexus 4 General] Barbatos19:
Try wugs toolkit. You may try bringing g back the bootloader and recovery then try sideload instead of fastboot.
[Nexus 4 General] rajendra82:
I saw his google+ post after I posted here, and tried the delete updates fix. That does the trick, and now SuperSU no longer FCs for me.
[Nexus 4 General] arunjako:
Funny thing.. The gallery app isnt appearing in the recent apps no matter what i do.. The only way is to press the recents button when im actually in the app.. Not a big prob but is anyone else getting this..?
[Nexus 4 General] amartinpascual:
I found the bug! Is the radio!

4.3 With The 4.2.2 Radio, the phone works! The bad news is the 4.4 and the 4.2.2 Radio the phone does not work.
[Nexus 4 General] Metal5150:
My 16GB nexus just shows 5Gb storage (not the usual 12GB). Someone else? Are different images for 8 and 16 Gb versions? Thanks a lot for opening post!!!
[Nexus 4 General] arffrhn:
Have you tried factory reset? Or if factory reset won't do the trick, try this one here. http://xdaforums.com/showthread.php?t=2033692 :)
[Nexus 4 General] jatink007:
Yep. happening wid me too!

---------- Post added at 10:38 AM ---------- Previous post was at 10:33 AM ----------

I am having problems with the volume slider on the screen. Can you check it while playing music? Mine doesnt slide while increasing/decreasing by hand
[Nexus 4 General] pisanty:
Is transparency available on lock screen yet?
[Nexus 4 General] Barbatos19:
Update to 4.4 radio .97 or try the 4.3 radio. Works with orthers
[Nexus 4 General] amartinpascual:
Don´t works
[Nexus 4 General] MersauX:
No issues here, just tested it, works both using the rocker and sliding on the screen.
[Nexus 4 General] jatink007:
Any idea what could be the possible solution? Coz i did a full wipe

Edit: Started working after restart!! My bad :D
[Nexus 4 General] WibblyW:
Is there ANY difference in the outcome if I use the factory image (& removing the wipe option) vs. sideloading the OTA (when it's available) on a stock unrooted 4.3 N4?
[Nexus 4 General] Rusty!:
No, the end result will be identical.
[Nexus 4 General] burnski:
I did the full flash, worked flawlessly. Then I flashed CWM, and SuperSU - no problems to report.
[Nexus 4 General] Davey212:
Failed fastboot flash and no ADB

so I flashed the KRT16O image to my N4 in fastboot. Everything seemed to go normally:

./flash-all.sh

< waiting for device >

sending 'bootloader' (2203 KB)...

OKAY [ 0.077s]

writing 'bootloader'...

OKAY [ 0.306s]

finished. total time: 0.383s

rebooting into bootloader...

OKAY [ 0.001s]

finished. total time: 0.001s

sending 'radio' (45537 KB)...

OKAY [ 1.540s]

writing 'radio'...

OKAY [ 2.714s]

finished. total time: 4.254s

archive does not contain 'boot.sig'

archive does not contain 'recovery.sig'

archive does not contain 'system.sig'

--------------------------------------------

Bootloader Version...: MAKOZ30d

Baseband Version.....: M9615A-CEFWMAZM-2.0.1700.97

Serial Number........: 04f8c9afd75a655c

--------------------------------------------

checking product...

OKAY [ 0.002s]

checking version-bootloader...

OKAY [ 0.002s]

checking version-baseband...

OKAY [ 0.002s]

sending 'boot' (6336 KB)...

OKAY [ 0.286s]

writing 'boot'...

OKAY [ 0.359s]

sending 'recovery' (6884 KB)...

OKAY [ 0.411s]

writing 'recovery'...

OKAY [ 0.415s]

sending 'system' (700500 KB)...

OKAY [ 26.420s]

writing 'system'...

OKAY [ 44.097s]

erasing 'userdata'...

OKAY [ 0.385s]

erasing 'cache'...

OKAY [ 0.043s]

rebooting...

Then phone is stuck at boot logo, won't ever get past it. I check the MD5, tried flashing 4.3 image, same thing. I then flashed CWM and trying to push a ROM in ADB so I can get my N4 going again, and my Mac in ADB won't see the phone when I use the devices command, even tho the Mac sees it in fastboot. Flashing an a stock Google image in fastboot gets the phone stuck and I can't push a ROM in ADB, what gives? Any idea?
[Nexus 4 General] arunjako:
If the phone gets stuck at boot screen, lock ur bootloader, unlock it again and boot it.. Worked for me
[Nexus 4 General] sordna:
And give it 10 minutes. Don't give up too soon, it's common for the first boot to take over 5 minutes.
[Nexus 4 General] jessec:
Does anyone else use a Mac and have issues with MTP now?

I had AOKP JB 4.3 ROM before, and MTP wasn't consistent... now with the 4.4 image it won't stay connected for more than 5-10seconds. Android File Transfer loads, shows the filesystem, I can maybe copy one small file at a time, then it disconnects and says check USB cables, etc... I have a Macbook, only 2 USB ports - tried both, also tried 2 different cables. My Acer Iconia A500 tablet works fine with one of these cables using MTP so I really don't think it's the USB port or cable, but more so with N4 and/or KK. Or maybe just the general combination.

Makes it pretty difficult to restore stuff to my phone if I can't manage it (luckily I've used AirDroid, which has it's share of issues, so when that failed I set up ES File Explorer as an FTP server and copied file that way).

Spoke with a friend with N4 & Mac, and he's noticing a similar thing.

EDIT: Phone is right now plugged into a Windows 8 laptop, and seems to be working fine with one of the tested cables. This is strange. A500 works on Mac, N4 doesn't, but using same cable it works in Windows 8 - so it's not the phone, cable, or either computer, just the general combination that's making it fail for whatever reason.
[Nexus 4 General] Hmmy 4444:
follow this instruction if ur phone is still stucking on boot animation

http://xdaforums.com/showthread.php?t=2531374
[Nexus 4 General] jessec:
I did what was mentioned a multitude of times in this thread - fastboot oem lock followed by fastboot oem unlock. Quite a quick and easy fix for me anyway, and just ran the flash-all.sh on Mac and was up and running. I just recently got the phone from a friend so I didn't bother keeping the data, let it wipe everything to start fresh.
[Nexus 4 General] underskyzx:
Shouldn't the radio that comes inside the factory image zip work?

After extracting the zip and the zip inside this zip I have this file:

radio-mako-m9615a-cefwmazm-2.0.1700.84

This one works? no?

So confused first time on Nexus 4 :confused:
[Nexus 4 General] amartinpascual:
Don´t works for me, lock and unlock bootloader again neither :(
[Nexus 4 General] purpse:
Downloaded. Flashed with fastboot. Switched to ART. Waiting for apps to be optimised. All going smoothly so far.
[Nexus 4 General] Imperticus:
Damn, forgot that... clean wiped it :(

but thankfully backup up important stuff on laptop just before flashing.

No GEL.. just stock launcher2
[Nexus 4 General] imoumni:
If anyone had trouble with 5ghz wifi on 4.3, can you please report if kitkat fixes the issue
[Nexus 4 General] Frickelpit:
--------------------------------------------
Bootloader Version...: MAKOZ30d
Baseband Version.....: M9615A-CEFWMAZM-2.0.1700.97
[Nexus 4 General] PunkOz:
Is this smoother and faster than the N5 port? ART works with whatsapp in this build?
[Nexus 4 General] xxgg:
Just wondering,,, why is called "occam" ? and not mako ?
[Nexus 4 General] memi_pt:
well.

somebody tell The difference between this Rom and ported N5!

---------- Post added at 01:07 AM ---------- Previous post was at 01:06 AM ----------

well.

somebody tell The difference between this Rom and ported N5!
[Nexus 4 General] newtonfb:
Is there any disadvantages of using ART? Why isnt it enabled by default? Its not even enabled by default on my N5 which i dont get. Thanks
[Nexus 4 General] Imperticus:
personally feels a tad bit smoother than port, and hopefully better battery life with proper libs (but too early to tell that now). No GEL on this, so you have install the apk separately if you want it.
[Nexus 4 General] stevew84:
This ROM is actually MADE FOR THE N4...while the other was made for the N5. Really, the port was just a heavily themed version of 4.3. (because everything under the hood was still 4.3).
[Nexus 4 General] Imperticus:
its till very beta, google still testing it. plus enabling ART breaks some apps inc whatsapp, titanium backup etc.
[Nexus 4 General] Wassupdog:
Thanks for posting it.

I'm a little newbie with flashing roms through the fastboot and I got few questions.

First, this is 100% Google's rom, right?

No 3rd party developers or anything like that? just pure Google?

Second, after I flash it through the fastboot, Can I still go back to 4.3 and unlock the bootloader and root?

Does unlocked bootloader and root are required for this fastboot flashing process?

Thanks in advance!
[Nexus 4 General] brushmate:
For example no transparent bars, old homescreen and appdrawer and no Google now integration on the homescreen. I'm coming from a N5 port and I think I will go back to a port until Goolge adds the same features to the N4.
[Nexus 4 General] stevew84:
No one else is having problems installing this via Fastboot? I'm really the only one? I just went back to 4.2.2 stock ROM, I'm stuck on the "waiting for device" prompt via fastboot.
[Nexus 4 General] carepack:
it will be released the next day's.

if you can' wait...

1. Google Search http://www.androidpolice.com/2013/1...y-fixes-gel-on-tablets-and-more-apk-download/

2. Experience Launcher http://www.androidpolice.com/2013/1...once-you-get-your-kitkat-update-apk-download/

Flash in this order
[Nexus 4 General] pikachukaki:
Thanks [MENTION=4756498]gn4life[/MENTION]
[Nexus 4 General] mhasan90:
had the same one, rebooted it to fastboot by power+volup and then power+voldown and it worked.
[Nexus 4 General] stevew84:
I've been in fastboot multiple times and still stuck at that damn prompt.
[Nexus 4 General] memi_pt:
..............

Somebody says that Transparency solve by Google now Update! is it true?

So everything is better except launcher?

N5 launcher is available in APK?
[Nexus 4 General] Jason_V:
Thanks! Worked like a charm from 4.3 rooted. Removed the -w and ran the BAT. After apps were optimized, I rebooted and installed CWM / SuperSU and I'm back in business after 15 minutes.

I spent considerably more time backing everything up.
[Nexus 4 General] Barbatos19:
still depends upon your device. sometimes work on other sometimes does not. give it a try.
[Nexus 4 General] underskyzx:
Is it normal that the power menu doesn't have the reboot option?

also the launcher, when you hold a desktop icon and swipe/throw it up to exclude, the google search bar disappear, it looks a little bugged

---------- Post added at 08:17 PM ---------- Previous post was at 08:15 PM ----------

it shows in bootloader that the baseband is the .97 but the file has the .84 name:confused:
[Nexus 4 General] hamedunix:
Been using Nexus 4 from 4.2.2 to 4.4 and have never had a reboot options on the boot menu.
[Nexus 4 General] underskyzx:
Does your wifi icon shows the up/down arrows? mine is static
[Nexus 4 General] kr33p0:
After I got different errors and helpful advice from you guys here, I was able to flash the bootloader and radio but at flashing the ROM my cmd crashes :( and the phone stays at downloading. Luckily I can restart it and it still works. My phone gets stuck at downloading if I try to flash the kernel. It seems something is always bugged, either comp or phone while flashing something so I guess I will wait for an OTA but my question is: can I use an OTA with a custom kernel but stock ROM and recovery? Or do I have to flash kernel for sure to have an OTA. As far as I know any ROM flashes the kernel too. TX
[Nexus 4 General] Barbatos19:
thats right sir, while flashing u will see the real name of the bootloader which is .97 not the file name because google might forgotten to rename the file. Try, if it works on you.
[Nexus 4 General] sordna:
They moved that feature in the quick settings panel (the one you get when swiping 2 fingers down from to of the screen). Also, you will see a color change in the WiFi icon depending on your internet connectivity in there too. Not a good change IMO, it is far more useful to see this at the top of the screen while actively using the phone.
[Nexus 4 General] jessec:
It was done for good reason (too many redraws, battery drain), as was changing from blue to white icons due to the transparency and blue not showing up as well on as many backgrounds as white does.

http://www.androidpolice.com/2013/1...nd-only-shows-connectivity-in-quick-settings/

I'm all for this, as I really never found the little up and down arrows useful, I never looked at them to determine activity or connectivity.. not as useful as the colour vs grey icon anyway. Much rather have improved battery and more spare processing power over it
[Nexus 4 General] Hmmy 4444:
jst re download the factory image... n keep ur phone in bootloader mode n run this

---------- Post added at 05:01 PM ---------- Previous post was at 04:57 PM ----------

try this out bro, jst keep the file in the folder wth out extracting it n connect the phone. n it will work trust me. i was stuck too, bt this method worked
[Nexus 4 General] jessec:
And... updated binary released already

https://developers.google.com/android/nexus/images#occamkrt16s

4.4 (KRT16S)
[Nexus 4 General] :
Anyone know why I can't get the voice input on my keyboard?
[Nexus 4 General] sumasage:
So is KRT16S different from KRT16O?
[Nexus 4 General] spidey88:
Guys,I have a quick question..referring to "remove the wipe command (-w) if you do not want it to wipe your device", does it means all my apps and data inside those app will be retained? thanks
[Nexus 4 General] jessec:
File sizes are different, so factually, yes.

What is actually found... nothing as of yet. Seems to be just minor bug fixes most likely, but time will tell.

I've referenced the known file differences here, as well as screen shot from the current about screen in krt16s:

http://xdaforums.com/showpost.php?p=47643379&postcount=38
[Nexus 4 General] RASTAVIPER:
Strange root problem here.

After installing factory image over 4.3 without flashing userdata.img, everything seems to work fine except rooting.

I flashed su 1.69 through TWRP, boot into system and no supersu in applications. Installed the Supersu app through Play Store, still no go.

I updates also the Busybox just to be sure and when I open it it gives me message about no root.

Any ideas?
[Nexus 4 General] iori:
one simple question

I am completely stock 4.3, no root and locked bootloader

And I dont want to wipe and start over again installing apps

So does this mean I cant use this method and wait for OTA instead?

I have tried this method and failed to flash

it's said not supported in locked device, screenshot attached

and it's said that I need bootloader version MAKOz30d, what does this mean?

thank you for any respond

anyway for those stucked in 'waiting for device', use adb to reboot into bootloader with command 'adb reboot bootloader'

it worked for me
[Nexus 4 General] jessec:
You can't update this way with a locked device, wait for OTA or back up everything and unlock it (which will cause a full wipe)
[Nexus 4 General] iori:
thank you

:good:
[Nexus 4 General] RASTAVIPER:
I am putting the solution for Root problem, after I found it from chainfire page.

It worked great for me with version 1.69

1) Install SuperSU from Play

(2) Disable Wi-Fi and mobile data (optional, but may help)

(3) Repeat:

(3-a) Go to Settings -> Apps -> SuperSU

(3-b) Use the uninstall updates button, if not availabe, exit this loop

(3-c) Reboot

(4) Enable data again

(5) If you now have an old SuperSU version, install latest from Play again

Unleashed by my Nexus 4
[Nexus 4 General] rgbc:
Do you have Google voice typing enabled?
[Nexus 4 General] rgbc:
Could you not just flash SuperSU or SuperUser from recovery and be done with it?

SuperSu http://download.chainfire.eu/282

http://download.chainfire.eu/282/SuperSU/CWM-SuperSU-v0.98.zip?retrieve_file=1

Superuser: http://www.clockworkmod.com/rommana...s&name=ClockworkMod&deviceName=Google Nexus 4

http://download.clockworkmod.com/superuser/superuser.zip
[Nexus 4 General] Drmol:
Quick question as I have no idea how this actually works:

Does BusyBox function correctly no matter what android version I use and can I install it with the app on stock KRT16S without any problems?
[Nexus 4 General] RASTAVIPER:
Probably you haven't ready my previous post 598, where I was mentioning that flashing su through TWRP didn't work.

It's some weird problem with 4.4 and I don't know if it appears to everyone.
[Nexus 4 General] arffrhn:
SuperSu works just fine with cwm though. Then you can just flash twrp zip file after flashing supersu.

---------- Post added at 02:53 PM ---------- Previous post was at 02:52 PM ----------

Yeah..it works on any android version. You just need to have root access first before installing busybox.
[Nexus 4 General] shubhdeep99:
Why the electric symbol of charging still showing even after full charged...

Sorry did not noticed in jelly bean if this was there also....

But not in my any other android phone...
[Nexus 4 General] arunjako:
Thats normal.. Maybe to show that ur phone is still connected to the charger??
[Nexus 4 General] Tib44:
i have a nexus 4 in 4.3 JWR66Y bootloader locked stock rom

what should i do to install android 4.4 KRT16S without loosing my data ?

I just have to follow the instruction or should I do something more like unlocking bootloader ?

Will it works on windows 8.1 64 bits ?

thanks
[Nexus 4 General] kr33p0:
Hi again guys, a big thanks for all the advice and sorry for the constant questions.

I did exactly as the above is written, except that the latest image to download from google is ...krt16s, and following the steps everything worked except now it will not boot :( after the google logo disappears my screen flashes blank every few seconds but nothing else happens. I let it do that for a few minutes but then stopped it as I don't want to ruin anything. I can get into fastboot and recovery. What do I do now? Any advice? TX

UPDATE after reflashing the recovery to stock recovery it gets to the 4 colored balls spinning during boot where it has been for the past 10 min.
[Nexus 4 General] arffrhn:
Have you tried factory reset? If you're in stock recovery, all data will be lost though. Hope you have made a backup prior to the flashing process.
[Nexus 4 General] kr33p0:
how do I factory reset in stock recover? I don't see any options there. I saw a suggestion to clear cache and factory reset but I don't know how to launch the commands in stock recovery.
[Nexus 4 General] idebasis:
Nexus 4 KitKat Interface isn't the same as Nexus 5

Hey Guys! I just flashed the Google Factory Image for Nexus 4. All went well and the device is updated. However, I do not see the new interface of KitKat like it is on Nexus 5 (new launcher, OK Google and stuff..you know what I mean). Something wrong? Do I need to install something else? Please suggest.

Thanks :)
[Nexus 4 General] kr33p0:
You have to install the launcher and search separately,

for new google launcher:

1. Google Search http://www.androidpolice.com/2013/11...-apk-download/

2. Experience Launcher http://www.androidpolice.com/2013/11...-apk-download/

Flash in this order

Oh and after 2 hours I got 4.4 on! I had to re-flash several times, clear caches, factory reset to fix disk size issue, but after all that went wrong did, I have 4.4 :)
[Nexus 4 General] mj56gt:
After the update, my N4 has been restored to the factory recovery and lost root. How can I unlock the bootloader without losing data? Thanks!