yashsingh1/xdaforums huggingface dataset:
[Nexus 4 General] DaveDesire:
Ok, guys I'm having a few issues if anyone could help me.

When attempting to flash the OTA .zip through recovery, or sideload via adb, I get a 'Assert failed' error.

I am rooted running the stock JOP40D with CWM recovery. Stock radio (M9...1700.33) and stock kernel (3.4.0-perf-ge039dcb). I've tried flashing the stock JOP40D boot.img first and it made no difference. I would just flash the whole JDQ39 image but I don't want to lose all my data and settings.

Does anyone have a link to the stock JOP40D system.img (couldn't find it in the OP) so I can try flashing that, or could anyone enlighten me as to what the problem is?

Thanks :o
[Nexus 4 General] El Daddy:
Re: [INFO] Nexus OTA Help-Desk

You can pull the system image from the full imaged linked in Section C1a.

What does it read after assert failed? It will tell you what its failing on.
[Nexus 4 General] DaveDesire:
It says:

'assert failed: apply_patch_check (/system/app/SystemUI.apk".

E:Error in sdcard/0/OTAfilename.zip

(Status 7)

Installation aborted.'

So I guess it's a system app that's been edited/changed? Could it be my blue navigation buttons? :o
[Nexus 4 General] eskeyy:
Im sure its your buttons, flash sytem,img and you can update without problems. Like was mentioned before you find system,img in factory image
[Nexus 4 General] DaveDesire:
Sorry for the noobie question but how do I pull the system.img from the factory image (what with it not being on my phone)?

adb pull...
[Nexus 4 General] eskeyy:
just download tgz file with factory image from there http://d-h.st/iy0 open with winrar inside you will find zip file and inside this zip you find system.img
[Nexus 4 General] DaveDesire:
I had no idea you could extract tgz files with winrar, thanks.

But it's still not working. I sideloaded the JOP40D system.img, then attempted to flash the OTA and I got the same error :/

Anyone any ideas?
[Nexus 4 General] eskeyy:
Try one more time flash system, boot and recovery from JOP40D
[Nexus 4 General] spaceman860:
Re: [INFO] Nexus OTA Help-Desk

You have to use fastboot and do

fastboot flash system system.img

Then sideload the ota link

Sent from my Nexus 4
[Nexus 4 General] DaveDesire:
Ah yes, I'm an idiot.

OTA successfully flashed. Thanks guys :D
[Nexus 4 General] Deeco7:
Re: [INFO] Nexus OTA Help-Desk

After updating over OTA 4.2.2, I can no longer enter 'Security' in 'Settings' it always stops responding, what's the fix?
[Nexus 4 General] eskeyy:
Flash system,img from newest factory image https://developers.google.com/android/nexus/images#occamjdq39
[Nexus 4 General] Deeco7:
Re: [INFO] Nexus OTA Help-Desk

Via recovery? Will it affect data etc?
[Nexus 4 General] eskeyy:
via fastboot, no lost data
[Nexus 4 General] WolfpackFan1970:
Re: [INFO] Nexus OTA Help-Desk

Only need to press Power button & volume Down Button.
[Nexus 4 General] cristian274:
Yes, it is still JOP40D, are there any problems regarding the build number while install the OTA update? How can i get the OTA update notification again?
[Nexus 4 General] eskeyy:
You can wait for notification or you can do it manually using methods from first post
[Nexus 4 General] cristian274:
Yes, but i mean usually when the notification will appear again because i prefer install through OTA to do it manually
[Nexus 4 General] El Daddy:
Only Google's random number generator knows. :D

If I were to guess I would say soon.
[Nexus 4 General] eskeyy:
Exactly, it may be few minutes or few days
[Nexus 4 General] yogeshmha:
Re: [INFO] Nexus OTA Help-Desk

Those are system apps for 4.2.2 sir. I have tried bit didn't work
[Nexus 4 General] efrant:
Why is that? There is absolutely zero difference (in the end result) between installing an update manually, installing it over-the-air, or flashing the factory images.

or weeks...
[Nexus 4 General] travon802:
I was actually on stock 4.2 rooted without any modifications other than Franco's r62 kernel

1. Replaced powerhal file described here

2. 'fastboot flash boot boot.img' to replace Franco's kernel (I did not flash system.img at all because I made no changes to stock).

3. Wiped dalvik cache.

4. Flashed 4.2.1 update in CWM. If you have CWM recovery, it will ask you to disable flashing stock recovery and the unroot process.

5. Flashed 4.2.2 update in CWM. New 4.2.2 radio was flashed automatically.

6. Flashed Franco r80 kernel to support 4.2.2

Recovery and root permissions were retained. No data lost at all.
[Nexus 4 General] donbronco:
AW: [INFO] Nexus OTA Hel

Hey guys, tried to flash the update .zip yesterday via cwm recovery, but always get 'error 7' don't know what that exactly means. I'm on stock ROM with unlocked bootloader a modded music (system) apk and some changes to the framework, due to metamorph themes. Anybody with the same error or maybe a solution ?
[Nexus 4 General] El Daddy:
Re: [INFO] Nexus OTA Help-Desk

Well you kind of answered your own question. At the top of the OP I listed what is required for the ota to complete successfully.

With all those modifications your best bet is to flash the JOP40D system image with fast boot then apply the ota. See section C.
[Nexus 4 General] donbronco:
yeah sorryy, wasn´t sure if the modded google music.apk was a real problem
[Nexus 4 General] SacredAce:
Coming from rooted Stock 4.2.1 (no modifications) with Franco kernel, and wondering if I could do the following without any problems:

Do a full app+data backup (using TWRP recovery), flash the full JOP40D factory image, root and unlock, flash Franco kernel back, restore app and data from backup.
[Nexus 4 General] eskeyy:
You dont need flash whole image, flash only system and boot from JOP40D, do update to 4.2.2 then flash franoco's kernel and you dont lose any data (unlock? you have locked bootloader?)
[Nexus 4 General] SacredAce:
Re: [INFO] Nexus OTA Help-Desk

Unlocked bootloader. Thx for the info!
[Nexus 4 General] Utini:
Thank you a lot.. this procedure worked perfectly for my Nexus 4 (rooted, CWM recovery, franco kernel, stock 4.2.1, unlocked bootloader):

fastboot flash system.img & boot.img from 4.2.1

flash 4.2.2 update.zip (the 53mb file)

flash super su

flash franco kernel

without loosing any data or having bugs i am now at 4.2.2 with root, cwm recovery, franco kernel, unlocked bootloader

Thanks again :)
[Nexus 4 General] asdfghjkzxc:
on the nexus 4 part had "ringtone" thread. but i can't find it.

n4 users share which use ringtones. could you find this thread?
[Nexus 4 General] eskeyy:
Wrong thread for that. Its OTA help desk (mean about updating android version) not help me becouse i dont know how to find something ( i think google do that better than we)
[Nexus 4 General] asdfghjkzxc:
Ynt: [INFO] Nexus OTA Help-Desk

sorry guys. :/

Nexus 4 cihazımdan Tapatalk 2 ile gönderildi
[Nexus 4 General] Lownita:
What would be the better way, flashing bootloader/modem/rom in recovery or going stock 4.2.2 and root again?
[Nexus 4 General] Evil_munki:
Thanks for the guide and signposting the links, done everything correctly with no errors.
[Nexus 4 General] eskeyy:
If you have stock rom with modifications then is enough if you flash system and boot via fastboot, factory image is better if you have custom rom
[Nexus 4 General] Deeco7:
Which method do you advise? Using this method will wipe data.
[Nexus 4 General] efrant:
That will only wipe data in the following cases: 1) you unlock your bootloader, or 2) you flash the userdata image. So unless you are going to do one of those, it will not wipe anything. The steps that wipe your device are clearly indicated in that post.
[Nexus 4 General] Deeco7:
Oh I see...I have already done these steps before hand, so it will not affect my data.

I will use the N4 Toolkit to flash the img. Thanks! ;)
[Nexus 4 General] AdamLC:
Thanks for the guide! I was rooted on a stock ROM with some system modifications.

Flashed boot and system images again and I'm fully upgraded now :)
[Nexus 4 General] iboj007:
This worked perfect for me. I had Franco Kernel R72 on my phone and got the OTA notice. When I tried to apply it, it gave me an error message. Deleted the file named above and renamed the original file, gave it permissions, rebooted the phone and the OTA worked. Just wanted to let anyone know in case they were apprehensive about flashing the .img files.
[Nexus 4 General] SacredAce:
Do you have a custom recovery?
[Nexus 4 General] iboj007:
No. Stock everything except bootloader unlocked and rooted.
[Nexus 4 General] SacredAce:
Ok, thx! Just one more thing to check, you did the OTA while still using Franco's Kernel, didn't flash the stock before applying the OTA?

If so, it should be possible to update to OTA, just by doing the power.msm8960.so trick, and then do the OTA directly (with stock recovery) or from ZIP file (with custom recovery).
[Nexus 4 General] cobyman7035:
if i have stock + franco kernel + CWM menu, i can't use that trick to do the OTA?
[Nexus 4 General] digitalfrost:
I need help. I was using MiNCO v6 with Franco Kernel and thought it would be a good idea to just flash occam-jdq39 over it. Now the device won't boot and hangs at the nexus logo. Here's a log of what I did:

me@machine ~/Downloads/occam-jdq39 % fastboot oem unlock
...
FAILED (remote: Already Unlocked)
finished. total time: 0.001s
1 me@machine ~/Downloads/occam-jdq39 % fastboot flash bootloader bootloader-mako-makoz10o.img
sending 'bootloader' (2188 KB)...
OKAY [ 0.139s]
writing 'bootloader'...
OKAY [ 0.329s]
finished. total time: 0.468s
me@machine ~/Downloads/occam-jdq39 % fastboot reboot-bootloader
rebooting into bootloader...
OKAY [ 0.001s]
finished. total time: 0.001s
me@machine ~/Downloads/occam-jdq39 % astboot flash radio radio-mako-m9615a-cefwmazm-2.0.1700.48.img
zsh: correct 'astboot' to 'fastboot' [nyae]? y
sending 'radio' (54593 KB)...
OKAY [ 3.415s]
writing 'radio'...
OKAY [ 3.255s]
finished. total time: 6.670s
me@machine ~/Downloads/occam-jdq39 % fastboot reboot-bootloader
rebooting into bootloader...
OKAY [ 0.001s]
finished. total time: 0.001s
me@machine ~/Downloads/occam-jdq39 % fastboot flash system system.img
sending 'system' (523357 KB)...
OKAY [ 32.712s]
writing 'system'...
OKAY [ 34.255s]
finished. total time: 66.967s
me@machine ~/Downloads/occam-jdq39 % fastboot flash userdata userdata.img
sending 'userdata' (98413 KB)...
OKAY [ 6.153s]
writing 'userdata'...
OKAY [ 5.849s]
finished. total time: 12.002s
me@machine ~/Downloads/occam-jdq39 % fastboot flash boot boot.img
sending 'boot' (5898 KB)...
OKAY [ 0.371s]
writing 'boot'...
OKAY [ 0.377s]
finished. total time: 0.748s
me@machine ~/Downloads/occam-jdq39 % fastboot flash recovery recovery.img
sending 'recovery' (6398 KB)...
OKAY [ 0.402s]
writing 'recovery'...
OKAY [ 0.377s]
finished. total time: 0.779s
me@machine ~/Downloads/occam-jdq39 % fastboot erase cache
erasing 'cache'...
OKAY [ 0.027s]
finished. total time: 0.027s
me@machine ~/Downloads/occam-jdq39 % fastboot reboot
rebooting...

finished. total time: 0.001s

What should I do? The /sdcard is wiped so my backup is gone :( Why won't it boot? I have waited several minutes...
[Nexus 4 General] El Daddy:
Re: [INFO] Nexus OTA Help-Desk

Boot into recovery and wipe cache
[Nexus 4 General] digitalfrost:
I flashed twrp-2.4.1.0-mako and wiped cache, still nothing.
[Nexus 4 General] El Daddy:
Re: [INFO] Nexus OTA Help-Desk

I should have specified. In the stock recovery wipe cache.
[Nexus 4 General] digitalfrost:
e: Got stock recovery working, wiped cache.

For those who didn't know, like me, Power+Vol-Up shows the menu ;)

It booted! Thank you so much <3
[Nexus 4 General] El Daddy:
Re: [INFO] Nexus OTA Help-Desk

I explained how to open the menu in the op. Press power and the volume up and let go of both immediately.
[Nexus 4 General] meangreenie:
installed stock recovery via fastboot and tried sideload.

have the prompt (i think it's down volume not up) on the nexus 4 and sent the adb sideload update.zip command.. but adb seems not to recognise the sideload command :( and just list it's available command up the dos screen ??
[Nexus 4 General] picachux:
I was having trouble too, I had forgotten to turn on USB Debugging and my ADB was out of date.
[Nexus 4 General] yahoowizard:
I have a stock rom, stock kernel, custom recovery, and some modifications to the system files such as when I installed the AOSP browser. Last time, I just undid whatever I did with the AOSP browser, then re-did it later on, but I'm wondering if there's a different way.
[Nexus 4 General] EvoXOhio:
I am running stock rooted and the update failed following the instructions in OP.
[Nexus 4 General] El Daddy:
when you see the list of adb commands, that means whatever you typed after "adb" wasn't recognized. Make sure you didn't make any typos and you are pointed to the correct directory.
[Nexus 4 General] El Daddy:
What was the failure? Status 7?

If it is failing there is something modified.
[Nexus 4 General] Cor-master:
OK I enter recovery, it says "no command". I hold volume and power up, and the phone reboots.
[Nexus 4 General] El Daddy:
When you see the android laying down press power then immediately press volume up and release. The menu will appear.

I'll edit the OP to clarify.
[Nexus 4 General] DXM31:
Everything is stock except unlocked bootloader and rooted w/busybox.

I did not uninstall system apps but I did disable them Google wallet, books...

So when the OTA shows up on my phone I should be able to just update.

Correct?
[Nexus 4 General] Vintos:
I did the same mistake. You have to press them simultaneously and not hold them pressed. Try it a couple of time and you will get it.
[Nexus 4 General] Cor-master:
I"m in, but when I type the adb command, all I get is a huge long list of commands. What gives?
[Nexus 4 General] El Daddy:
I think we might be seeing issues with older adb versions? Have you updated adb recently? Here's a link to the latest version: http://xdaforums.com/showthread.php?t=2144709
[Nexus 4 General] meangreenie:
you need newer adb

anyone help with this problem.......

assert failed: apply patch check ("EMMC: /dev/block/platform/msm_sdcc.1/by-name/boot:631xxxxxxxxgreatbiglongnumber..........")

i cant think of anything thats not standard.. i have a different launcher running but that shouldn't matter?
[Nexus 4 General] Cor-master:
I have not, I downloaded that, but I'm completly lost. I just have a folder on my desktop with fastboot.exe and adb.exe on my desktop that I"ve been using for a year now. I can't find either file in that download...where do I go from here? THanks
[Nexus 4 General] davidgs:
Re: [INFO] Nexus OTA Help-Desk

I had scenario 2 and followed section B from the OP (using CWM 6.0.2.3) everything went smoothly, and flashed correctly! The only different thing I did was wiping cache and dalvik before flashing (old habits).

Thanks!
[Nexus 4 General] BrandoHD:
I am having this same issue also, have you ever used Franco Kernel?
[Nexus 4 General] Cor-master:
Ok look that link just gave me a folder full of adb code. Where do I get adb.exe? Anyone?
[Nexus 4 General] yahoowizard:
delete.
[Nexus 4 General] El Daddy:
Extract the .zip you should see 4 files:

adb

AdbWinApi.dll

AdbWinUsbApi.dll

fastboot

Replace the files you were using before with these new ones.
[Nexus 4 General] Cor-master:
Did I download the right folder? the compressed file has like 50 folders in it, says "platform tools x86"
[Nexus 4 General] pacotheslayer:
aokp rom. status 7 error.

I am on a mac. i tried directly flashing the update through my phone by downloading it straight to my phone but it stated installation aborted. When i flash the stock, will i have to reroot in order to place other roms on my device. What if i want to go back to my original stock android experience. What do i do?
[Nexus 4 General] El Daddy:
I'm not exactly sure what you are asking.

From your post title you are on AOKP? If so, you cannot flash the OTA on top of a custom rom. Follow section C, option one.

If you want to root later, flastboot flash a custom recovery and the flash the SU.zip.
[Nexus 4 General] omnibot80:
falling under the first scenario, adb recognizes the device when it's on but not in the recovery. what am i missing?
[Nexus 4 General] petrolin:
hi guys, finally i decided to flash system.img but downloading the whole image factory from first post is sooooo slow and got error before fially downloaded. Anyone has the extracted system.img? thanks, i will keep downloading the file in the occam-jop40d-factory-ca7602f0.tgz
[Nexus 4 General] El Daddy:
Did you update to the latest adb? Also, adb won't be active in recovery until you select apply update from adb.
[Nexus 4 General] omnibot80:
yeah, i dl'd the lastest sdk and used that adb, didn't work (yes at the recovery 'apply' screen)

also tried the adb from first post, same thing.
[Nexus 4 General] El Daddy:
Hmm. You opened cmd the adb directory, right?

Check your device manager and make sure adb interface shows up.

Other than that, I'm not sure what the problem could be.
[Nexus 4 General] omnibot80:
yeah, i guess i'll just be patient and wait for the OTA. oh well
[Nexus 4 General] El Daddy:
I don't have the system.img uploaded. If dev-host is having dl issues it won't do much good for me to upload it there anyway. You can download the full image from a different source. http://www.randomphantasmagoria.com/firmware/nexus-4/occam/
[Nexus 4 General] El Daddy:
You could put the ota.zip on your phone, fastboot boot a custom recovery and then flash the ota from said recovery. If fastboot is working for you.
[Nexus 4 General] petrolin:
thanks guys, it worked!!!!
[Nexus 4 General] Deeco7:
I flashed the 'system.img' and now can access the 'Security' settings. However I lost root and when trying to re-root via Toolkit, I'm always getting stuck at 'Waiting for USB debugging to be enabled', I tried disconnecting/reconnecting and nothing happens...all drivers are installed.
[Nexus 4 General] El Daddy:
Re: [INFO] Nexus OTA Help-Desk

I don't give support for the toolkit.

However, if you want to use fastboot here are the instructions.

Download the custom recovery of your choice and move it to the folder where fastboot is located on your PC.

Copy the SU.zip from the OP on your phone. Boot into the bootloader.

Open the command prompt from the folder in which fastboot is located.

Type the command: fastboot flash recovery nameofrecovery.img

Reboot into recovery and flash the su.zip.

Reboot. Now you're rooted.
[Nexus 4 General] Deeco7:
Yes, but I don't want to install a custom recovery.
[Nexus 4 General] El Daddy:
Re: [INFO] Nexus OTA Help-Desk

Then do the command fastboot boot recovery nameofrecovery.img instead.
[Nexus 4 General] eskeyy:
Even if you flash custom recovery it will not be permanently, after instaling su you will have a question about you want custom recovery permament or not, if you chose no then after reboot you will have stock recovery
[Nexus 4 General] Deeco7:
I don't get it. I can't do anything because of the Toolkit not recognizing my debugging on.
[Nexus 4 General] El Daddy:
Re: [INFO] Nexus OTA Help-Desk

I didn't give you instructions for the toolkit. I gave them for fastboot.
[Nexus 4 General] eskeyy:
Better try adb/fastboot without toolkit, im not sure but toolkit can be not ready to work with 4.2.2. In newest android after connecting to pc, phone show you window with specific pc number (i dont remember how it is called) and option to confirm. You must have newest adb for that, it is new security option, I'm not sure it is really this but it can be reason for not working toolkit
[Nexus 4 General] Deeco7:
Forgive me, I'm stressed right now, confused as ****.

I get 'cannot load 'recovery': No error' when I try to boot recover.img of CWM.
[Nexus 4 General] El Daddy:
Re: [INFO] Nexus OTA Help-Desk

If you are using windows just name it 'recovery' as it will auto name the extension. If you name it recovery.img it will actually be recovery.img.img
[Nexus 4 General] Deeco7:
"Then do the command fastboot boot recovery nameofrecovery.img instead."

I did what you said, which the command was wrong...additional 'recovery'. lol, anyways got it to boot.

Thanks for you help guys! ;)
[Nexus 4 General] trumanwu:
I am not sure if there is anyone who asked the same question before. (I am reading from page 1 now...)

just post my question before I find the answer.

I am using custom kernel (faux123) + TWRP recovery + unlocked bootloader + rooted.

I would like to update to 4.2.2 but I want to keep LTE.

Is it possible? how should I proceed?
[Nexus 4 General] Ballastatuz:
Re: [INFO] Nexus OTA Help-Desk

I am on stock ROM with cwm and frank kernel. Is there an easy zip where I can flash the stock kernel back so I can get the ota?
[Nexus 4 General] impruv:
I am on stock + franco but I have followed the steps to flash the kernel back to stock. When I try to flash the OTA file through CWM I get the following error

It is also the Status 7 error. Any help?
[Nexus 4 General] eskeyy:
Odp: [INFO] Nexus OTA Help-Desk

You have modded ui (custom buttons or something like that) flash system.img from factory image (JOP40D) via fastboot and then flash update again

---------- Post added at 09:55 AM ---------- Previous post was at 09:46 AM ----------

Flash boot.img and system.img from JOP40D factory image via fastboot.

Flash update via recovery.

Flash radio from JOP40D via fastboot.

Eventually flash faux kernel or any other if you wish.
[Nexus 4 General] vikas_toad:
How much time does it take for the 4.2.2 ota update to reach every nexus 4 in all regions..I live in Asia-India and I already checked like for 1,000,000,000 times for the ota update. it just shows that your system is up to date.I am asking because my friends galaxy nexus has already received a 4.2.2 ota update where as my nexus 4 still hasn't updated. I am running completely stock and don't wish to unlock just yet and so waiting for the over the air update is only option for now but honestly I am all out of patience now that even the galaxy nexus has been updated to 4.2.2 over the air
[Nexus 4 General] eskeyy:
Updates are totally random, some people can have them after 5 minuts from release another can wait even weeks, its not depend from region where you live. You can receive you update and your neighbour can still wait.For update via adb sideload you don't need unlocked bootloader. You must do as is in Scenario 1, Section A in first post
[Nexus 4 General] Tarun95:
Re: [INFO] Nexus OTA Help-Desk

Go to settings then apps then all. Go and force stop Google framework services and then clear its data and check for update. :)
[Nexus 4 General] vikas_toad:
What i meant was, i don't want to do anything other than ota just yet

Any problems or effects doing that?
[Nexus 4 General] eskeyy:
It dont do anything, just update, you will be still completly stock and with locked bootloader, its just option for manual update. About metod mentioned by Tarun95 it sometimes works sometimes is not (for me personaly never worked but many people say its works) clearing data sometimes may cause errors with google play.
[Nexus 4 General] Dovucoe:
Couple of queries:

If I have a "enhanced" stock kernel e.g. Faux / harsh's, I still need to flash the stock kernel back right? OTA won't work?

Am I right to say that the general principle is to return to stock and then do the OTA update? Or stock minus recovery and flash the update zip through a custom recovery?

For option 1(a) (stock rom with custom kernel), from Google's stock image, I only want the files inside image-occam-jdq39.zip. I can ignore the bootloader and radio right? Unless I'm flashing to new version directly as per option #3?

When following efrant's guide, I should be rebooting only once - after I've gone back to stock as much as possible? Should I manually trigger a wipe of /cache and Dalvik cache via custom recovery once the kernel has been changed?
[Nexus 4 General] nickmorgs:
Thanks, I tried it but it didn't work for me.

I'm in the UK on the Orange network. Stock Nexus 4 and still waiting for the OTA update to 4.2.2.

At least with the info in this guide I know the unroot worked.