yashsingh1/xdaforums huggingface dataset:
[Nexus 4 General] efrant:
Not sure exactly what you are saying, but if you are suggestion that you should reboot into your custom recovery to apply the update, the answer is YES. If you have a custom recovery installed, you should not click on the "install system update" in Android. You should only do that if you have the stock recovery installed.

As far as the bootloops that people were having, it is unrelated. The issue that people keep having is related to one thing: their inability to understand that in order for a stock OTA update to install, you need to have all of the complete stock system files and a complete stock boot partition, and a complete stock radio partition.

People still don't grasp the fact that if you had root, chances are, something is not stock. If you've installed Xposed framework, you are not stock. If you have deleted system apps you never use, you are not stock. If you replace system apps with newer versions, you are not stock. If you changed the menu buttons, you are not stock. If you flash something (e.g., LTE "enabler") that enables a functionality that was not there initially, you are not stock. If you deodexed your ROM, you are not stock. Bottom line: ANYTHING you do that changes the boot partition, the radio partition, or any file in /system will leave you not stock. Period.
[Nexus 4 General] Cor-master:
Hey if your using windows, rename the file to "update" not "update.zip", otherwise your get a "cannot read command sideload" error in the console. This is because the file will actually be named update.zip.zip because of windows hiding extensions
[Nexus 4 General] Outrager:
Quick question:

The only "modification" I want to make is installing TWRP and changing the vibration intensity from 70 -> 100 in the franco kernel updater app (I haven't installed his kernel).

Everything else is stock.

Will I still be able to install OTAs through TWRP? Or will I need to change the vibration intensity back to 70 first? Or do I need to flash all the stock stuff on top of my system first?
[Nexus 4 General] RASTAVIPER:
Flashing system.img did the trick.

Thanks for all support.

Unleashed by my Nexus 4
[Nexus 4 General] DirgeExtinction:
I'm on stock rooted KRT16S with custom recovery. Did have a custom kernel, but flashed stock kernel. I tried to flash the OTA, but it keeps giving me a Status 7 error saying "system/bin/thermald has unexpected contents. What would I need to fix to flash the OTA zip?
[Nexus 4 General] sordna:
The custom kernel modified or renamed the stock thermald file. You need to rename it back (it may be there with a "bak" suffix) or you could copy it from a factory image. Either way you'll need to remount your /system in rw mode.

Other option is to skip the OTA and flash the latest factory image when it becomes available. See section C in the OP. Take care to avoid fastvoot -w option and avoid flashing userdata.img if you want to avoid losing to your data.
[Nexus 4 General] mattgren:
Pretty much the same here. I neglected to flash the SuperSU updater before booting into android but was able to boot back into TWRP without a problem and then flash it.

Thanks to all for the tips on the thread! :)
[Nexus 4 General] RohanM:
I have downloaded this 51.9 MB zip & i fit in scenario B..

Having latest ver of CWM as well. should I just flash it in CWM ?

before rebooting can I flash super su so afterwords no need to flash CWM again for rooting purpose....
[Nexus 4 General] Ibrahim.Rahman:
Yes. But you will have to re-flash cwm after flashing this OTA
[Nexus 4 General] RohanM:
yeah but I am thinking to use full stock. BTW after flsashing OTA before rebooting just flash latest super su right ?
[Nexus 4 General] Ibrahim.Rahman:
You would end up with cwm instead of stock recovery if you flash SuperSU after flashing the OTA. If you want to go back to stock just try enabling the OTA survival feature in SuperSU and then flashing 4.4.1
[Nexus 4 General] RohanM:
I reid flashing & got status 7 error, build.prop = I had edited means chaged the DPI ones.. Will replace with original..

BTW I need to enable that OTA survival option in super su app ?

---------- Post added at 03:55 PM ---------- Previous post was at 03:46 PM ----------

ahh for survival mode super user PRO is required, so I am using free ver.. I guess I will end us keeping CWM after OTA then..
[Nexus 4 General] Ibrahim.Rahman:
By enabling OTA survival you will most probably stay rooted with stock recovery.

BTW if you edited some files, wouldn't you fit under Scenario C?

---------- Post added at 03:30 PM ---------- Previous post was at 03:26 PM ----------

You can enable pro by selecting the last option in the settings of the free version without purchasing
[Nexus 4 General] RohanM:
Actually I forgot that I have edited build prop to change dpi.. :p

Just sw ur reply, btw I have flashed 4.4.1 & also flashed super su, bingo, successfully updated. :cowboy:

Thanks for ur help bro.
[Nexus 4 General] Ibrahim.Rahman:
You're welcome! :)
[Nexus 4 General] lukikai:
The OTA isn't coming yet? Right?
[Nexus 4 General] RohanM:
sideload it!
[Nexus 4 General] lukikai:
I don't have time to do this :(
[Nexus 4 General] RohanM:
I just did it, took hardly 5 mins, just download zip & flash in CWM or TWRP.. (If u are on total stock.)
[Nexus 4 General] aaatoel:
Just sideload it! Thanks for the info! :)
[Nexus 4 General] Ibrahim.Rahman:
Wouldn't total stock mean having a stock recovery?
[Nexus 4 General] RohanM:
Did not get u ? I guess the procedure we did was not actual sideloading, cause it needs stock recovery right ?
[Nexus 4 General] Ibrahim.Rahman:
You said 'flash in CWM or TWRP (if you are on total stock). But total stock means having a stock recovery not cwm or twrp.

And sideload is a different process than flashing from within the custom recovery but it does not necessarily need a stock recovery. You can sideload a zip while having a custom recovery as well.
[Nexus 4 General] miticogirl:
Can I sideload to 4.4.1 if I'm on krt16o ? Im stock rooted and TWRP. Or do I have to install first krt16s and then sideload to 4.4.1 ?
[Nexus 4 General] nithin1992:
Sideload to krt16s and then sideload to 4.4.1

Sent from my Nexus 4
[Nexus 4 General] miticogirl:
When I sideload to krt16s I got error in TWRP
[Nexus 4 General] El Daddy:
OK. What does the error say?
[Nexus 4 General] Nezam:
anyone in india recieved it?

Sent from my Nexus⁴ running 4.4
[Nexus 4 General] miticogirl:
I had restore stock recovery in toolkit and when I sideload manualy via adb it doesent work and when I sideload via toolkit it shows android with red ! and then I click vol + and power choose sideload and it says 'system/build.prop has unexpected contents error in /tmp/update.zip (status 7)﻿"
[Nexus 4 General] El Daddy:
You edited the build.prop. replace it with the stock build.prop or flash the system image.
[Nexus 4 General] miticogirl:
Can you send me it and write what permissions should I set ?
[Nexus 4 General] DirgeExtinction:
I downloaded the factory image, but can't view its contents on my phone. I'm not gonna be home until tomorrow. Would you or anyone please be kind enough to post the stock thermald file from KRT16S?
[Nexus 4 General] The1Shark:
Nothing works for me.

Flashed boot.img from KRT16s factory image, flashed system.img flashed recovery flashed the Australian continent ..

Still getting the annoying "unexpected content" error.

But I'm not surprised, even the KRT16S OTA from JB didn't work for me.

So , as before I will wait for a complete 4.4.1 rom flashable via CWR.

By the way, every time I flash the KRT16S factory image I am losing the ability to start the wi-fi hotspoot (tethering) as described in the link below which I "solved" by flashing a complete ROM made from ASOP.

http://code.google.com/p/android/issues/detail?id=62516
[Nexus 4 General] Ibrahim.Rahman:
This one?

(Sorry It wasn't letting me upload the file so I made a zip)
[Nexus 4 General] RASTAVIPER:
Which version of TWRP r u using?

You should have latest 2.6.3 installed.
[Nexus 4 General] Outrager:
Does anyone know if changing the vibration intensity in the Franco Kernel Updater app or the Trickster Mod app affects the OTA update?

If so, will just changing it back to the default value of 70 fix it?
[Nexus 4 General] ykumar00:
Try Flashing stock recovery.img using fastboot. Then flash custom recovery of your choice.
[Nexus 4 General] sordna:
Kernel settings do NOT affect OTA, they do not make changes to the filesystem. This is also why an app is needed to set them every time you boot.

Note however that you will need to flash stock boot.img and undo any file changes the fk kernel ramdisk made, since it renames an .so file to .so.bak ... Search /system with a file manager recursively for *.bak and you'll find it.
[Nexus 4 General] RealiZms:
I'm trying to sideload it can't seem to get the power+vol up...is it simultaneous? in succession?

Somebody help me with my button method lol.

Edit: I got it. It's in quick succession...kinda funky but alright :)
[Nexus 4 General] shobuddy:
I'm on rooted 4.4 with stock rom and TWRP 2.6.3. I should be able to use TWRP to flash the filed linked below and then I will be on 4.4.1, right?

http://www.androidfilehost.com/?fid=23252070760973254
[Nexus 4 General] __GOLD_:
Hello all,

I alreday read a lot but maybe I really don't understand everithing..

I have a stock ROM and a custom Kernel, so I can't go directly for 4.4.1.

I can go tere but all the time need to erase everithing in my Phone and restore all over again...

is a litle boring...

So what is the way that I can upgrade without lost anything?

i already try make by TWR isntal the zip file but give me erros missing MD5...

I used to use tollk kit. and recovery mode. In my case TWR.

I reed to instal system.img from 4.4. But how can do that?

Sorry if my question is too basic. But I already try to use ADB mode but I think that is more for expert's and not for me....

Waiting for your comments.
[Nexus 4 General] Ibrahim.Rahman:
Yes. But you might lose your custom recovery unless you flash SuperSU after flashing the OTA (atleast that's what happens in CWM)
[Nexus 4 General] RealiZms:
Well adb sideloading is the only way for you to keep your data....Aside from waiting for the OTA....It's not hard. Pretty easy actually. You'll just need to flash the stock kernel first.
[Nexus 4 General] Ibrahim.Rahman:
You can just flash the stock kernel instead of the whole image or you can flash the complete factory image without losing your data by editing the flash-all.bat file and removing '-w' and then running it.
[Nexus 4 General] __GOLD_:
Already install the stock kernel.

Now says MD5 found.

But give me the follow error: /system/hw/power.msm8960.so has unexpected contents.

Error executing updater binary in zip

So I need to clear my phone again isn't it?
[Nexus 4 General] Outrager:
Thank you. I don't plan on using a 3rd party kernel. Just want that stronger vibration.
[Nexus 4 General] sordna:
See my post, about 8 posts earlier, regarding files renamed by custom kernel to .bak

You need to mount /system read-write and rename those files to their original name.
[Nexus 4 General] __GOLD_:
I will do that... and see what happens...
[Nexus 4 General] RealiZms:
Not sure. However it sounds like you are trying to flash the zip in a custom recovery. Not sure what you are doing. Or how you are doing it. If you follow the adb sideload method you won't get any errors
[Nexus 4 General] __GOLD_:
Yes I'm doing by custom recovery.

ADB sideload I really don't know how it works... try to redd but isn't not so easy...
[Nexus 4 General] RealiZms:
Nope. It's one of those things that sounds a lot harder than it actually is..Good luck!
[Nexus 4 General] __GOLD_:
I will try to read again and see how it woks.. but i really don't know...
[Nexus 4 General] sordna:
Adb diseload, or flashing on custom recovery are equivalent. Either will fail if your /system has been modified. See my earlier posts about restoring bak ! Then either method will work.
[Nexus 4 General] daddlefan:
Sorry, it is not quick succession, it is simultaneously by pressing and holding power first and then shortly press Vol. up, and

you achieve entrance to the recovery menu!
[Nexus 4 General] __GOLD_:
You are right fail again... so I will read you post.. I use Franco K...

Let me see if I can or not get on 4.4.1.. or I will erase all again.. that is the only think that I don't like...

---------- Post added at 05:46 PM ---------- Previous post was at 05:42 PM ----------

So is only go into the system loking for ".so.bak" and go back for an ".so" only that's right? What program did you use to find that files?

---------- Post added at 05:49 PM ---------- Previous post was at 05:46 PM ----------

Or tell me the files that I need to change the name....

---------- Post added at 06:00 PM ---------- Previous post was at 05:49 PM ----------

Thanks all.

But I really don't uderstand some stuff..

So I go back for stock anr erase everithing...

I think after I can install the OTA upadate...

This procedure is boring because I need always setup up my phone as I like...

If FK isn't so good I keep always as stock... and no mere worries..
[Nexus 4 General] azrash:
You don't have to erase everything. Just flash the system image of 4.4 and the OTA should now be able to flash normally.
[Nexus 4 General] ExDis:
Great post, just used your guide to update my Nexus 4 to 4.4.1

Thanks!
[Nexus 4 General] sordna:
Searching for files with a particular substring in the name is pretty basic feature for a file manager. ES File Explorer works fine, or you can even use the busybox "find" command in a terminal or adb shell.

I use Franco.kernel too, and rename those files all the time, it's pretty easy.
[Nexus 4 General] __GOLD_:
Already on 4.4.1... after completly reset :(

But done
[Nexus 4 General] DirgeExtinction:
Thanks, I'll try it out. :)

-edit- didn't work. :( there's this text about "404 error" in that zip. :(
[Nexus 4 General] Ibrahim.Rahman:
Ah too bad :/
[Nexus 4 General] zennonace:
unable to update-solved

I was on 4.4 KRT16S rooted using TWRP 2.6.3.3 and fraco kernel r197,converted quite a few apps to system using TiBU,But couldnt delete them as a result causing the update to fail,used a free app called root browser to delete the apks i had originally converted using TiBU by going to system>app and deleting the apk from there......then flashed the system.img from the KRT16S factory image and the update now works.....hope this helps other frustrated n4 owners out there....
[Nexus 4 General] efrant:
Flashing the system image deletes everything you converted to system apps anyway...
[Nexus 4 General] zennonace:
Didn't know that..... Thanks for the info efrant
[Nexus 4 General] skhwndr:
libart.so error

tried updating in CWM.

got this error: "/system/lib/libart.so has unexpected contents"

I had installed whatsapp art patch but i forgot to backup the original libart.so file.

what should I do?

thanks in advance.

never mind. found flashable zip with original libart.so elsewhere on xda.
[Nexus 4 General] jlk_250:
Okay, I am trying to update to 4.4.1 after rooting it and making LTE mods while it was at the latest version of 4.4. I am getting the "Status 7 error exclaiming "/system/build.prop has unexpected contents" which in turn aborted the installation. " problem that is expected when mods have been made. So what do I do in this case? I did not make a copy of the file before I modified it. I understand I could flash the stock 4.4 image and then the 4.4.1 update will work but won't I lose everything if I do that? Please help a noob out.
[Nexus 4 General] sordna:
You won't lose your data when you flash the stock ROM as long as you remove any -w option from fastboot, and avoid flashing userdata.img
[Nexus 4 General] lonaysta:
Manually install the OTA package from 4.4 to 4.4.1 problem.

Stock Nexus 4 running 4.4, and windows 8.1 pro x64. seems the USB driver does not support windows 8.1 pro for adb updates. When my phone is in the normal mode, it can be successfully connected to the computer and pass the adb devices test. However, when I enter recovery(stock) and choose to apply updates via adb sideload, the computer does not recognize the phone under this "waiting for the package to be sent" mode. Yellow exclamation mark in Device Manager, and "windows was unable to install your nexus 4" when I try to manually choose the directory of the USB driver, which works when the phone is in the normal mode rather than recovery. Anyone has a driver that works for windows 8.1 pro x64?
[Nexus 4 General] efrant:
Yes. 1wayjonny's universal driver works. However, you need to make sure that you delete (not just uninstall) ALL previous Android drivers (including hidden ones in device manager), otherwise it won't work. In other words, when you right click on the device and click uninstall, you need to put a check I the "delete" box.

(I also use Windows 8.1 Pro 64-bit.)
[Nexus 4 General] WOP_Drive:
http://xdaforums.com/showthread.php?p=48239172
[Nexus 4 General] ngr.hd:
Haven't received the update yet. When can a Canada bought Nexus user expect the same?
[Nexus 4 General] TwistyValhalla:
Finally had some time to flash 4.4.1. First thing I noticed is that the UI feels more responsive. Thanks for the ota zip!
[Nexus 4 General] avinashjirapure:
Application not installed

I am facing a new issue after upgrading to 4.4.1. After uninstalling some application I am not able to re-install its apk back. I am getting error

"Application not installed"

Earlier I thought its because of ART mode so I switched back to dalvik but still finding same issue there too. I have also tried by clearing cache from stock-recovery.

Does it related to dalvik-cache?

Any one else also finding same issue ... what could be the solution??? :confused:
[Nexus 4 General] Ibrahim.Rahman:
Google pushes updates randomly in batches. If you dont wanna wait, just flash/sideload it manually.
[Nexus 4 General] sordna:
You only cleared cache? Try clearing dalvik too.
[Nexus 4 General] mdaamir1989:
I am currently stock 4.4 with Franco Kernel r197 + Xposed framwework + gravity box .

If anyone could kindly give proper steps on how to install the update successfully , possibly with fastboot commands and to when to install the recovery it would be very grateful of you . Tried to read the last few pages of the thread but got lost with so many changes to be done.

Thanks in advance.
[Nexus 4 General] Ibrahim.Rahman:
Follow this guide to get back to stock 4.4 KRT16S.

[Note: This guide is for KRT16O so download KRT16S from here instead and use that factory image: https://dl.google.com/dl/android/aosp/occam-krt16s-factory-2006f418.tgz

After flashing the 4.4 image, copy update.zip to your platform-tools, select apply update from adb in the recovery menu on your phone, open a command prompt in your platform-tools folder and run adb sideload <update>.zip [Refer to Section A in OP]

Reboot into bootloader and run the following in CMD - "fastboot flash recovery <recovery>.img

Flash anything else you want to flash.
[Nexus 4 General] mdaamir1989:
If my understanding is correct i am to follow the Section C in this guide which requires me to flash stock again .

But would it be possible that i apply the update on my current configuration ?

ie I would need steps that would allow me to flash on top of my existing configuration(4.4 KRT16S + Franco kernel + Xposed module) without the necessity to wipe/factory reset .
[Nexus 4 General] Ibrahim.Rahman:
Yes you fit in the Section C, and getting back to stock is required. If you follow the guide I referred to, your data will NOT be wiped as long as you edit and remove -w from flash-all.bat before running it. But you will have to flash the Franco kernel and Xposed module again.

As far as I'm aware, applying an update directly on your configuration will fail.
[Nexus 4 General] mdaamir1989:
Cool thing . Thanks for the help :):good:
[Nexus 4 General] Ibrahim.Rahman:
No problem!
[Nexus 4 General] RealiZms:
find anything wrong with this post?

You are aware simultaneous means at the same time?

In fact I might make your post my signature!
[Nexus 4 General] csantiviago:
Got 4.4.2 OTA, how do I get the link?
[Nexus 4 General] nikanorov:
4.4.2 OTA URL: http://android.clients.google.com/p....signed-occam-KOT49H-from-KOT49E.0ec632f5.zip
[Nexus 4 General] efrant:
Did you accept yet? If not, look in /cache and give us the name of the zip file located there.

EDIT: Nevermind. Link posted.
[Nexus 4 General] csantiviago:
Anyone else with invalid signature error?
[Nexus 4 General] steviewevie:
Anyone got the stock boot.img for 4.4.1? The stock images don't seem to be up on Google yet :(
[Nexus 4 General] __GOLD_:
Another update...

Now I need erase all over again :(

I can't upgrade from other way.... Or this one could be done for the custom recovery directly (My case TPWR)?
[Nexus 4 General] efrant:
:confused: You never needed to erase...
[Nexus 4 General] har9:
OTA

Has anybody actually gotten the OTA from a notification or system updates in the settings. not from sideloading it?
[Nexus 4 General] sunny4691:
Followed these steps exactly and am on 4.2.2 now :) , many thanks for the help bro.
[Nexus 4 General] CheesyNutz:
is this suffering from the no auto brightness and no auto rotation ?
[Nexus 4 General] Slender Troll:
Re: [INFO] Nexus OTA Help-Desk

I'm going to have to do it this way because I don't have a computer. Still waiting for the OTA.

Sent from my Nexus 4/Nexus 7
[Nexus 4 General] undercover:
Damn, this is getting annoying....

Flashed stock images (twice now)

reboot to sideload

adb devices show my serial

adb sideload .... just loads adb cmds and does nothing...

About to try from custom recovery. But damn this is annoying.

Looks like

fastboot boot customrecovery.img

solved it, flashing now from within recovery. Can't believe it wouldn't sideload though.

DOne it. Colours seem to be better ;)
[Nexus 4 General] newalopez:
First time with a Nexus device, why updates are coming by region? N10 and N4 still on 4.2.1, no update available here in Guatemala.
[Nexus 4 General] eskeyy:
Not by region, its totaly random probably :)
[Nexus 4 General] heat361:
To make my life easier I'm just going to do

flash-all. In cmd
[Nexus 4 General] yokuyuki:
I had this same problem because I had a custom kernel that modified the powerhal like Franco's and I flashed a stock kernel to fix it and it didn't work. It only worked when I flashed the stock kernel then deleted the old powerhal and restored the powerhal backup. I'm guessing OTA checks if there are all files in the /system/lib/hw directory matches a known signature and if it doesn't match, it doesn't work. The extra powerhal backup probably threw it off.
[Nexus 4 General] eskeyy:
Easier is click right on nexus 4 in device menager and update manualy driver, just choose one from list ,once I used for samsung adb device and once for qualcomm adb and everything works as should (dont remember exactly names but something like this should be on list if any of driver for adb is installed)
[Nexus 4 General] usafle:
Strange problem, I downloaded the update manually and placed it in the root of my SDcard (not sure if I had to rename it to "update.zip" if that makes a difference?)

Upon trying to run the update in CWM, I get this error:

asset failed "/system/lib/hw/alsa.msm8960.so"

What is that? Where can I get the original to replace it so I can continue on with the 4.2.2.
[Nexus 4 General] eskeyy:
You have an modyfication in system files, easiest way is flash system.img from factory image (links in first post) and than try again
[Nexus 4 General] usafle:
That basically puts me back to stock everything right? Stock home screen, stock apps, etc...etc... or does it just replace the OS and leaves all the apps and stuff intact?

I figured I might have to do that, but was concerned about rebuilding everything from scratch, hence my hesitation in doing this....
[Nexus 4 General] eskeyy:
No, just system, everything will be without change if you flash just system.img there you have factory image I dont see link in first post so it can be useful https://developers.google.com/android/nexus/images#occam