yashsingh1/xdaforums huggingface dataset:
[Nexus 4 General] WibblyW:
Nobody has seen a stock 5.1.1 OTA update yet.

And there's been no official statement N4's will get it either (only press speculation).

But it is expected and we just wait, right?
[Nexus 4 General] shankarcps:
Battery Drain

I am not sure if this is relavant thread .

After the OTA update to 5.1 , my Nexus 4 battery is draining like anything if i have my 3G data on or on Wi-Fi .

Is there a way i could prevent this battery drain . I am on full stock , non rooted.
[Nexus 4 General] GroteBozewolf:
Wrong thread, but check shop is using up the battery. Check this in the Android battery manager.
[Nexus 4 General] nickchung:
:-s I could not update to 5.1.1

My Nexus 4 use TWRP and is rooted. Can I update if I restore original recovery and un-root my device?
[Nexus 4 General] RASTAVIPER:
You need everything stock: recovery, kernel and system.

And of course no root.
[Nexus 4 General] sam 4x:
Hey, where can i get the stock kernel file for 5.1.1?

Sent from my Nexus 4
[Nexus 4 General] Stevica Smederevac:
From factory 5.1.1 img. Just extract boot img
[Nexus 4 General] heat361:
can someone please help me in trying to flash the cwm.img via fastboot, but fastboot keeps getting stuck at waiting for device

its still not working im just stuck at waiting for device

also in device and printers it says there is something wrong with android bootloader interface drivers
[Nexus 4 General] fersingb:
It worked perfectly for me with CWM 6.0.1.9. I received the OTA notification, downloaded the OTA and installed it.
[Nexus 4 General] usafle:
Yes, it was Sir. And I thank you for starting me down the correct path.

Dude, I want to kiss you on Valentine's Day... LoL Because now the phone is booting!!!!!
[Nexus 4 General] eskeyy:
I'm glad everything is ok now, I was thinking you messed up with your device because of me :P
[Nexus 4 General] peste19:
i updated my phone ota with 4.2.2 and lost my root however the bootloader is still unlocked, is there some easy way to root it?
[Nexus 4 General] efrant:
Read the section about root (Section E): http://goo.gl/6IHps
[Nexus 4 General] motoridersd:
I thought my only mod was a custom recovery (CWM), but the patch failed until I restored the system.img and boot.img.

First failure was when checking ApplicationsProvider.apk, then the second one was a the one people were getting when the boot.img was not stock.

All done now and phone is Optimizing Apps.

Thanks for the guide and resources!
[Nexus 4 General] peste19:
is there any other way than using custom recoveries?
[Nexus 4 General] eskeyy:
you can use adb sideload, instruction for that is in section a) in first post
[Nexus 4 General] peste19:
so i should re-apply the update?
[Nexus 4 General] eskeyy:
I was thinking you want to apply update, I'm wrong?
[Nexus 4 General] peste19:
I have already updated it over ota
[Nexus 4 General] eskeyy:
Than i dont understand your question, why you ask about custom recovery?
[Nexus 4 General] peste19:
because i was referred to the above and here was saying if i wanted to recover my root, i would have to flash custom recoveries and i was wondering if there is any alternative to regain my root besides custom recovery. I had my 4.2.1 rooted and i updated my phone ota with 4.2.2 and lost my root
[Nexus 4 General] eskeyy:
Its enough to boot into custom recovery without flashing. Type: fastboot boot recoveryname.img and then phone will boot in your custom recovery, flash su.zip using this recovery and after rebooting you should have root and stock recovery
[Nexus 4 General] efrant:
^^ This. You do not have to flash a custom recovery in order to root. If you followed the instructions in the link I gave you, you would have had root, with the stock recovery...
[Nexus 4 General] El Daddy:
Thanks to everyone who helped out answering questions while I was sleeping/working!

It seems that most people aren't having issues anymore, so hopefully that means I have most of the questions covered in the OP.

Does anyone feel I should add anything else? Mainly in the Q&A section?

Thanks!
[Nexus 4 General] Chad_Petree:
Re: [INFO] Nexus OTA Help-Desk

Help ! :( I just got the ota and I'm getting an error while im installing it , it says assert failed: apply patch check "system/app/music2.apk" I deleted Google music a week ago and I download the apk again today and put it in /system/app and data/app shouldn't this be enough ? What kind of permissions should I give the file? Right now looks like this
[Nexus 4 General] El Daddy:
You need Music2.odex too I believe.
[Nexus 4 General] noodles2224:
it looks like you dont have a stock odex rom.. you may have stock deodex.. gmail suppose to have odex file.. google music is suppose to be called Music2.apk and has an odex file.. I dont think you can just download those from the play store and be worry free.. the factory image is up at https://developers.google.com/android/nexus/images or download the odex here http://xdaforums.com/showthread.php?t=2148308 and grab the files you need.. basically itll tell you what files are needed when the update aborts..
[Nexus 4 General] Chad_Petree:
Im stock rooted, i dont have any roms or deoxed stock rom, i downloaded the google image from the official developers site but i dont see the apps folder where is it? :confused:
[Nexus 4 General] El Daddy:
They have taken the JOP40D image down. Just the JDQ39 image remains. I have added the JOP40D image to the OP.

My advice to you is to flash the JOP40D system.img that I have linked in the OP.
[Nexus 4 General] FunkiBluDawg:
I had deleted several system apps, like books, music etc and obviously the updated failed to installed.

Also tried to "restore" these apps by downloading the apks & odexs...but long story short it was painful & didnt work.

Finally I used the guide & extracted & flashed just the "system.img" from JOP40D.

Now updated to 4.2.2 fine using TWRP and without errors.

Thanks all !
[Nexus 4 General] Chad_Petree:
Edited
[Nexus 4 General] El Daddy:
If you just flash the system.img you won't lose any app data. It will just restore the /system partition to the state you need to OTA.

Basically, there is no way to upgrade to 4.2.2. without replacing all the files that were removed. Remember that for the future ;)
[Nexus 4 General] Chad_Petree:
Re: [INFO] Nexus OTA Help-Desk

i will like to try that as my last resource, im sure that the only thing i messed with was the music app because I knew ****ing up with my phone would prevent me from getting the ota. Could you tell me how to extract the apks from the image ?
[Nexus 4 General] heat361:
OK I finally got fast boot and adb to work,don't know how ,but i did it.The second it started working I relocked the boot loader. Now im completely stock and then I received the 4.2.2 update.

Maybe I'll unlock and root again when I feel better.

Thanks El Daddy and Efrant for your help.
[Nexus 4 General] Salty Wagyu:
Getting a Settings has stopped responding when I go into Settings > Security. Any idea why this happens?

I flashed back to stock kernel (from franco), restored the power.msm8960.so that franco modified, and then restored stock recovery via fastboot and let OTA do it's job. OTA went flawlessly, but Security option crashes. Everything else seems to be in order though, Bootloader/baseband/kernel have been updated, and adb/fastboot works fine.
[Nexus 4 General] eskeyy:
I have this same problem after sideload OTA zip file on stock rooted rom.
[Nexus 4 General] El Daddy:
It works fine on my phone. I'm not sure why that's happening. :-/
[Nexus 4 General] nature1:
I just did the framework trick and downloaded the OTA. It did not break my root still works fine after installing the OTA.
[Nexus 4 General] Chad_Petree:
Re: [INFO] Nexus OTA Help-Desk

Would it be possible for someone to create a zip with "boot .img , recovery.IMG and system IMG to flash it in clockwork mod recovery ? I'm done trying to get my Mac to recognize my phone to do this via adb , I give up :banghead: i have s-off , i think this could be very useful for people like me who deleted some stock apps but dont wanna lose our data and apps by restoring the phone or flashing a stock image
[Nexus 4 General] zim2dive:
I'm totally stock and the framework trick isn't working for me.. worked for me on the previous update, and worked for me on my N7 for this update.. just not my N4... any ideas?
[Nexus 4 General] nature1:
I did it the same way the other user has posted.

Settings---> Google framework-------> force stop------------> then clear data.

Then go to check update. I did it about 4 times and the OTA popped up. BTW I live in the New York City area and I am on T-mobile.
[Nexus 4 General] cowithgun:
What is even better than getting OTA in your phone when you woke up?

Kernel source for 4.2.2 released!

https://android.googlesource.com/kernel/msm/+/android-msm-mako-3.4-jb-mr1.1

Many developers will be busy at work :D
[Nexus 4 General] mdcykkk9:
Re: [INFO] Nexus OTA Help-Desk

After updating i have lost su and custom recovery... Is this normal?
[Nexus 4 General] El Daddy:
Re: [INFO] Nexus OTA Help-Desk

Yes it's normal as the ota overwrites recovery and /xbin

Flash custom recovery with fastboot and then apply su.zip in recovery.

See section B
[Nexus 4 General] Mahennemaha:
AW: [INFO] Nexus OTA Help-Desk

Thanks, worked for me at second try in Germany.

Gesendet von meinem Nexus 4 mit Tapatalk 2
[Nexus 4 General] keongkentyen:
About Nexus 4 boot problem

Hi,

I faced the problem which is open cmd and it was detect my device is not found.

I have install all the driver of Nexus 4 to my pc. When my Nexus 4 boot after "apply update for adb" time, it cannot detect my device already.

What is the problem actually ? i am curious about that.

Any info or guideline to me ?

Thanks Alot...
[Nexus 4 General] eskeyy:
When you see information about not connected device go to device menager, find nexus 4 and manually update driver, after that just type comand one more time and should work
[Nexus 4 General] JanusDC:
Re: [INFO] Nexus OTA Help-Desk

I know there is a thanks button, but I just want to say this: you are amazing! Thank you guys.
[Nexus 4 General] El Daddy:
If someone gets the OTA link please post it here. I'll add it to the OP. Thanks!
[Nexus 4 General] markwid:
4.2.2 OTA after using mskip toolkit

Hey, I am exactly in this situation as well. Have used mskip toolkit to root (all-in-1 option).

Suggestions here seems to be:

1. Flash stock recovery image

2. Do OTA update to 4.2.2.

3. Flash back custom recovery (CWM or TWRP)

Is this correct?
[Nexus 4 General] El Daddy:
Although I cannot confirm this myself. I have read previously that if you are running the stock rom with no modifications and just a custom recovery the OTA will apply successfully with the newer recoveries. You'll just have to confirm a few prompts in recovery.

If someone can confirm this for me I will add it to the OP.
[Nexus 4 General] spaceman860:
Re: [INFO] Nexus OTA Help-Desk

http://android.clients.google.com/p...4.signed-occam-JDQ39-from-JOP40D.de8b8d10.zip

Sent from my Nexus 4
[Nexus 4 General] El Daddy:
Got it up already. Thanks though!
[Nexus 4 General] androidfoshizzle:
Re: [INFO] Nexus OTA Help-Desk

I'm stock everything, I downloaded it and installed astro file.. Will that work to install it?

NEXUS 4 USER
[Nexus 4 General] akhan47:
My rom is currently Paranoid Android 3, can I just flash system.img and boot.img and then update or do I have to do a complete wipe?
[Nexus 4 General] El Daddy:
No you'll need to use a PC and adb sideload Section A

Coming from a custom rom I would recommend a full wipe. Section C1.
[Nexus 4 General] meangreenie:
trying to istall from custom recovery with stock rom/boot.img got error 7 build.prop

edit.. i think the full screen enabler changed it, anyone have the original?

edit2... nvm got past that error, now another :(
[Nexus 4 General] El Daddy:
Did you do any mods at all? Change DPI?
[Nexus 4 General] Vintos:
Hi

I am on stock everything and I can't get it to to the recovery menu from the recovery screen. It's the point where I have to hold power and Volume Up button.

I press them both at the same time, but nothing happens until I finally release them and the phone shuts down. I know it sounds ridiculous but am I missing something?

(I want to sideload over adb)

Thanks in advance
[Nexus 4 General] meangreenie:
i got past the build.prop error but have another now, checking log
[Nexus 4 General] akhan47:
Tap them quickly. Or try to just press one a split second before the other. It's a bit tricky sometimes.
[Nexus 4 General] El Daddy:
It can be a bit tricky at first but, easy once you get the hang of it. when you see the android laying down press power then immediately press volume up and release. The menu will appear.
[Nexus 4 General] daverup:
I can confirm that this worked for me from cwm 6.0.2.3, otherwise stock.

OTA applied, when I selected reboot system I selected the options to keep custom recovery and fix su.
[Nexus 4 General] El Daddy:
Thank you! I will add to the OP.

EDIT: Did you get the actual notification for the OTA or did you load the .zip on your phone and flash in CWR?
[Nexus 4 General] DowntownJeffBrown:
Re: [INFO] Nexus OTA Help-Desk

Thank u :thumbup:

Sent from my Nexus 4 using Xparent BlueTapatalk 2
[Nexus 4 General] Vintos:
thanks! I got it. I thought I had to keep them pressed. Update was successful :)

Here is the md5 of the update if anybody is interested :

1c752738f65acfd48f2d3b6e6e11a654
[Nexus 4 General] daverup:
I did not get a notification, and checking didn't show anything.

So, I loaded the zip and flashed from CWM
[Nexus 4 General] aaronrw:
If I revert back to my stock backup, and have TWRP installed, can I download the OTA .zip and just flash or must I have factory recovery as well? Also, will this install update everything this way? I mean radio, bootloader,etc? Thanks very useful thread!!!:good:
[Nexus 4 General] undercover:
Yup
[Nexus 4 General] aaronrw:
I'm dumb.....missed that completely in the OP!!!
[Nexus 4 General] El Daddy:
Re: [INFO] Nexus OTA Help-Desk

Yes. Any custom recovery is fine. Follow section B.
[Nexus 4 General] Maik82:
Απ: [INFO] Nexus OTA Help-Desk

I am in scenario 2 with Clockwork 6.0.2.3, i am trying section b instructions but the installation is aborted status 7. Any ideas?
[Nexus 4 General] El Daddy:
Re: [INFO] Nexus OTA Help-Desk

It means you aren't stock.

What does it say after status 7?
[Nexus 4 General] WURSTFABRiK1337:
AW: [INFO] Nexus OTA Help-Desk

I am on stock ROM but rooted and also changed some of the system apps...i tried to rename them so I don't get the status 7 error worked with currents.apk now it says assert failed with gmail2.apk tried everything like gmail.apk and so on...but it won't work some advices?
[Nexus 4 General] gangstar:
im all stock and still no ota! any trick?
[Nexus 4 General] Slender Troll:
Re: [INFO] Nexus OTA Help-Desk

Go to Settings>Apps swipe right to All then scroll down to Google Services Framework. Tap that, hit Force Stop then Clear Data. Go back and have your phone check for updates and you should be able to update.

Sent from my Nexus 4/Nexus 7
[Nexus 4 General] jayclarke:
Re: [INFO] Nexus OTA Help-Desk

Didnt work for me. Guessing its one of those hit and miss methods
[Nexus 4 General] eskeyy:
Odp: [INFO] Nexus OTA Help-Desk

Try section c , flash system.img

You too should flash system.img
[Nexus 4 General] NapoOrsoCapo:
Guys, just sharing my OTA update experience.

I got the OTA update this morning after forcing it twice.

My N4 is german, it is rooted, titanium, some apps that require root, TOUCH CONTROL included (so IMHO not completely stock)

All went smooth, I got back the rood using Voodoo RK, Touch Control do not work anymore though (was expected, Kernel issue, waiting for update).

So just an hint force OTA twice or more, first time may not work!
[Nexus 4 General] Maik82:
Απ: [INFO] Nexus OTA Help-Desk

Nothing, status 7 installation aborted..

Στάλθηκε από το Nexus 4 μου χρησιμοποιώντας Tapatalk 2
[Nexus 4 General] eskeyy:
Like I was writing before, you will use section 3, flash stock system.img and boot.img (you will not lost any data) and after that you can install update using cwm.
[Nexus 4 General] alltheway3:
I've got some mods, custom kernel and removed some stock apps so I think the easiest thing for me to do is just flash stock and OTA it.

My question is, how do I retain the Ti backup on my emulator "SD card" when I flash stock?

Thanks.
[Nexus 4 General] eskeyy:
you can as well use section 3, a), after that you will have stock system without wiping (just flash system and boot, you can use custom recovery to install update after that or you can flash stock recovery and wait for OTA notification or use sideload
[Nexus 4 General] efrant:
Re: [INFO] Nexus OTA Help-Desk

By flashing only the system and boot images, nothing gets erased.
[Nexus 4 General] Maik82:
Απ: [INFO] Nexus OTA Help-Desk

Where i find the system.img and how i flash it?
[Nexus 4 General] eskeyy:
In section 3, download factory image (link in section 3) inside you find zip package extract from there system image (optionaly boot image too) and flash using fastboot
[Nexus 4 General] markwid:
Encrypted /sdcard from company exchange security policy

Guys, noob here but need some help.

I am in scenario 2 with Clockwork 6.0.2.3, i am trying section b instructions. Hit a snag when trying to install OTA zip file from sdcard.

Unable to access & mount sdcard in Clockwork because of encryption imposed by company exchange security policy.

Any ideas?

Or do I have to go back to stock by flashing the complete JOP40D image and start from scratch?
[Nexus 4 General] alltheway3:
Thanks, I just noticed it says this in the first page also, but it also says to flash recovery.img. Whats the reason for not doing so?

"If you want to keep your data & settings and are running the stock rom; only flash boot.img, system.img, and recovery.img with fastboot.

Here is the JOP40D factory image if you need it. occam-jop40d-factory-ca7602f0.tgz - 327.21 MB"
[Nexus 4 General] eskeyy:
its depend you wanna stock recovery or not, if you want use custom recovery to install update then dont flash recovery.img
[Nexus 4 General] Deeco7:
I'm on Stock, with Unlocked Boot Loader and Root; which scenario applies to me?
[Nexus 4 General] eskeyy:
Scenario 1, Section A
[Nexus 4 General] petrolin:
rooted phone with cf-auto-root, all stock. I moved sound search from system app. When i try to install 4.2.2 the phone reboots and then show an error (android with triangle exclamation). I tried to check the recovery mode and then i found there is an error also here, it is shown "no commands". I download sound search apk and put it in the right place, but same error. Cant understand this error
[Nexus 4 General] Deeco7:
Are you sure? I have Root.
[Nexus 4 General] eskeyy:
petrolin flash system.img

---------- Post added at 11:04 AM ---------- Previous post was at 11:03 AM ----------

Yes, Im sure, root and unlocked bootloader it is no problem, only if you have any modification or removed something than you should flash system.img
[Nexus 4 General] ruzkay:
AW: [INFO] Nexus OTA Help-Desk

Yes I did. It came the first time I tried and that was yesterday.
[Nexus 4 General] El Daddy:
Flashing stock recovery is optional. I'll add it for clarity.
[Nexus 4 General] aaronrw:
Re: [INFO] Nexus OTA Help-Desk

If I get the OTA through the air.... Can I install it with TWRP installed?
[Nexus 4 General] alltheway3:
Okay thanks. I'm starting to learn what all the imgs do now :)

I decided to flash complete stock onto my phone. Now following section A:

Downloaded android-adb_fastboot-16.01.zip Unzipped it.

Downloaded 4.2.2 JDQ39-from-JOP40D OTA link - renamed it update.zip

Put update.zip inside android-adb_fastboot-16.01

Put my phone into bootloader, then into stock recovery, then onto the screen that says "now send the package you ant to apply to the device..."

Opened up terminal, CD to desktop then CD to android-adb_fastboot-16.01

Then I did the below in terminal:

Jamess-iMac:android-adb_fastboot-16.01 James$ adb sideload update.zip

-bash: adb: command not found

Jamess-iMac:android-adb_fastboot-16.01 James$

As you probably noticed, I'm running mac. However, I also tried it in windows and got "device not found".

When fastbooting with mac, I know that you have to type ./fastboot instead of fastboot. Is there a mac equivalent to adb sideload?

Thanks.
[Nexus 4 General] eskeyy:
First of all i think this package is for windows so it will not work on mac (im not sure of that) and second when you use it on windows you need driver installed
[Nexus 4 General] alltheway3:
Not to worry. I figured its easier to install CWM and just flash the update. Hopefully it'll work now :)

Just a strange point to add - before I flashed stock, I had the option of OTA update. After stock, it won't show this option, even if I choose system update in settings. Weird.
[Nexus 4 General] eskeyy:
Sometimes its works like that, just download update.zip from first post, transfer to sdcard and install with CWM, if you want drivers for future read this http://xdaforums.com/showthread.php?t=2010338 you can find there a lot useful information.
[Nexus 4 General] alltheway3:
Eek. After it had finished flashing the OTA.zip, I pressed reboot and it came up with a warning that said "WARNING ROM MAY FLASH STOCK ON REBOOT, DO YOU WANT TO DISABLE THIS". This isnt on the first page so I assumed I had to click "yes" and I have 4.2.2 now :) Might be worth adding to guide?
[Nexus 4 General] El Daddy:
Re: [INFO] Nexus OTA Help-Desk

If it is a newer version of twrp it should allow you to complete the ota.
[Nexus 4 General] eskeyy:
This is information from CWM, becouse you agreed for disabling you have now CWM recovery, if you will be chosen no then update will flash stock recovery
[Nexus 4 General] aaronrw:
I'm using the latest 2.4. whatever so it should suffice? Thanks again this thread is really helpful
[Nexus 4 General] nexus2go:
Thanks for steps from OP. I followed Section C and instead of flash back to 4.2.1, I just flash with completely 4.2.2. Got stuck on X boot then boot back to stock recovery and clear cache, now I'm back on business again.
[Nexus 4 General] spaceman860:
Re: [INFO] Nexus OTA Help-Desk

Yes but if you do it by clicking on the update notification it will do it automatically and not give you a chance to flash the su zip after so you'll lose root and recovery. I would go to recovery manually so you can flash the su zip at the same time

Sent from my Nexus 4
[Nexus 4 General] efrant:
The adb included in the attachment in the first post is only for Windows, not for MacOS or Linux. They use different files. And yes, you would need to put ./ in front of adb
[Nexus 4 General] nycelitemaster:
Re: [INFO] Nexus OTA Help-Desk

I did ota and didnt lose root, i was using stock recovery and stock rom.

Sent from my Nexus 4
[Nexus 4 General] markwid:
Solved

Did a bit of reading and figured out that TWRP 2.4.1 can handle encrypted sdcard. So, I am on 4.2.2 now using a slight modification to section b instructions.

a. Switch to TWRP 2.4.1 instead of CWM 6.0.2.3

1) Download the OTA.zip and copy to your phone.

1a) Download SU.zip and copy to your phone.

2) Boot into recovery (TWRP will ask for password to decrypt sdcard)

3) Flash the OTA

4) Reboot

5) Lost root -> flash TWRP again and flash supersu

6) Reboot

Hopefully this helps someone else with this problem.
[Nexus 4 General] jgreemo:
Awesome guide!

I had to flash the system.img and boot.img files to get it back to stock due to the Status 7 error. Stock rom and kernel, but I had deleted some system files. I noticed that flashing those files had the phone indicating I was at 4.2.2 but I hadn't flashed the OTA, so not sure if the full update was installed. Went ahead and flashed the OTA anyways via CWM, then SU and everything is back up and running.

Thanks for a putting up a great resource!
[Nexus 4 General] zim2dive:
After doing a total of probably 20 times (over the past day) it finally worked.

It did make me switch to Wifi to do the download... not sure if anyone odds of working would increase if they try over Wifi instead (I was always over cell data)
[Nexus 4 General] skezza:
Getting very bored of waiting for my OTA, if I sideload, do I lose my apps
[Nexus 4 General] eskeyy:
No