yashsingh1/xdaforums huggingface dataset:
[Nexus 4 General] jolaviska:
Thanks I unrooted in SuperSU 1.51 and used JDQ39 again but still receiving the same error.

Also wiped the cache and dalvik cache before.

Here is the error:

Verifying current system...

assert failed: apply_patch_check("/system/app/Phonesky.apk", "4dd851... (it goes on)

Error flashing zip '/sdcard/ebc8bad .....
[Nexus 4 General] gialakias:
Download the lastest version of platform tools from google and install correctly the adb drivers for your nexus , plug your usb cable directly into the computer instead of using an adapter and through the back usb ports and reboot your phone and your computer. Normally it should work.

If I am not making a mistake the factory image is not cwm flashable. Correct me if I am wrong.
[Nexus 4 General] Blockberd:
You do not have the stock phone apk. You need to restore to all the stock apps or simply flash all .img files from the factory image of jwr66y. You can also flash the complete factory image but you will lose all apps and settings.

If you know which apps you replaced, i could try to pull them from the 4.2.2 factory image.

---------- Post added at 02:39 PM ---------- Previous post was at 02:36 PM ----------

Possible. But one could simply fastboot into stock recovery and flash the factory image from there. It is also not hard to flash stock recovery quickly and go from there.
[Nexus 4 General] gialakias:
You don't need the stock recovery to flash the factory image, only need to boot in the bootloader.
[Nexus 4 General] efrant:
All the radios are in the radio thread in CWM-flashable format. All the bootloaders are in the bootloader thread in CWM-flashable format.

I believe there is a stock recovery floating around as well, and there are a few stock ROMs in CWM-flashable format in the dev section.

You can't flash a factory image in recovery (stock or otherwise). It needs to be done in fastboot mode.

And if you skip flashing the userdata image, it will not wipe your apps/settings/data.
[Nexus 4 General] jolaviska:
But I did not change the stock phone apk and any other stock apks. How can this happen?

Should I try replacing the stock phone.apk? I could not find the jwr66y complete factory image in any case..
[Nexus 4 General] Blockberd:
Yeah. My fault. I just read "phone... apk". But its actually the Phonesky.apk. This APK is the new market. Possible that you do not have the market which the update requires you to have because the checksum check fails. If the checksum check fails for any apk which is patched the whole update will fail.

You can get the full factory image from here:

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

You want to download the 4.3 under the "Factory Images "occam" for Nexus 4" section.

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

Ah, ok. Thanks for the information. Good to know. :)

And yes, the factory recovery image is somewhere around here. I have one on my other system but I dont know which version it is. If someone is interested, I can try to attach it here in the thread.
[Nexus 4 General] jolaviska:
Oh yes you're right! I had the modded Market apk. Could you please pull the flashable stock Phonesky.apk from 4.2.2? I can't deal with the complete image now.
[Nexus 4 General] mj56gt:
I'm currently with JWR66N on my N4. Unlocked, rooted with custom recovery.

Three questions:

1) Any download link for 4.3 JWR66Y yet?

2) Can JWR66V be skipped when flashing JWR66Y, or I do have to have JWR66V first before flashing JWR66Y?

3) Any SuperSU available for flashing with JWR66V or JWR66Y?

Thanks!
[Nexus 4 General] El Daddy:
There is a N to Y OTA link. You can find it here. http://xdaforums.com/showthread.php?p=44921597
[Nexus 4 General] Blockberd:
Once i am back at a pc, i will try to organize the factory 4.2.2 and try to get you the apk + odex file from it.
[Nexus 4 General] mj56gt:
My N4 is unlocked, rooted with custom recovery. When I tried to upgrade from JWR66V to JWR66Y through TWRP (after temporary unroot), it failed for some reason. What could be the reason? I forget the error message. Is the V to Y file only 1932459 bytes?
[Nexus 4 General] Blockberd:
Yes the update is that small. Just flash the update zip manually (see first post for urls) and write down the error.

I assume you have some modded stock apks.
[Nexus 4 General] mj56gt:
Thanks for your kind help! I really appreciate it...

I just flashed it again after temporary unroot, and got the following error message:

...

Symlinks and permissions...

set_perm: some changes failed

E:Error executing updater binary in zip '/sdcard/...'

Updating partition details...

What does this mean?

Thanks...
[Nexus 4 General] Blockberd:
You are welcome.

That means that either the unroot was not successfull or some other permissions are screwed. You could try and look around for the zip of [MENTION=1566190]efrant[/MENTION]. He modded it to avoid permission issues with some recovery files.

You could also get the system.img of factory jwr66y image and flash that only in fastboot.

You are coming from another 4.3 build, right?
[Nexus 4 General] mj56gt:
Thanks again for the quick help!

Yes, I'm currently with JWR66V.

Sorry, where can I find the system.img of factory jwr66y image? What is the command line with fastboot? Flashing the factory jwr66y image before or after the update step?
[Nexus 4 General] Blockberd:
Type in google "android factory image". First result should bring you to the overview. You need to take the 4.3 for the N4.

Open or extract that file with 7-zip or similar. You can find the system.img there.

I dont know the complete command line out of my mind. But maybe [MENTION=962867]El Daddy[/MENTION] or [MENTION=1566190]efrant[/MENTION] can help out.

You flash the system.img instead of the update file.
[Nexus 4 General] El Daddy:
fastboot flash system system.img
[Nexus 4 General] mj56gt:
Thanks a lot for the quick help!

Do I need to temporarily unroot the phone first?

Also, after flashing the system image, how to regain the root? Flash the same SuperSU zip file as before?

Thanks again...
[Nexus 4 General] Blockberd:
Unroot should not matter. But you can do it anyway.

To root again you simply flash the supersu 1.51 zip in custom recovery again.
[Nexus 4 General] Ltinride:
Do you have the link for the SuperSu 1.51, I can't seem to find it...I guess I suck at searching. I try to "update binaries" through Su which supposedly I have 1.51 installed, but it just sits there installing but never does. I try to reboot and do it again, but same thing. Thank you.
[Nexus 4 General] sordna:
From the SuperSU thread:

http://download.chainfire.eu/supersu
[Nexus 4 General] Ltinride:
Thank you very much, I'll give this a go.
[Nexus 4 General] mj56gt:
Just to confirm: this step alone would not erase any data, right?

Thanks!
[Nexus 4 General] nexuses:
Hi eldaddy, and everybody again, I just got the update notification, I installed it by system, doesn't work.. Then I comed here and downloaded the OTA & tried to install it manually.. And this what I see every time..

* tried it with stock kernel ; doesn't work.

* tried it with CWM & TWRB : doesn't work.

So anybody tell me, please, what should I do?
[Nexus 4 General] El Daddy:
No it won't, but any apps modified, removed, or added to /system will be replaced with the stock apps.
[Nexus 4 General] efrant:
No, it will not erase any data.

EDIT: Ninja'd by El Daddy. :D

Flash this update file instead of the one you were flashing. Or, "unroot" and then flash your file.
[Nexus 4 General] nexuses:
Thank you very much, I don't know without this thread what I'll do!!

The custom update worked with me :)
[Nexus 4 General] mj56gt:
I was trying to check the MD5 checksum using the following command:

md5sum -c occam-jwr66y-factory-74b1deab.tgz

I got a long list of something like

...

md5sum: unrecognized line

...

What am I missing?

Thanks!
[Nexus 4 General] sordna:
That file has checksums removed, they are only needed by the stock recovery, which is why post #102 says this update is only to be used with CWM or TWRP (and you'd need to disable zip verification)
[Nexus 4 General] efrant:
He's actually asking about the factory image, not the update file I posted.

mj56gt, I'm not sure why you can't verify the hash. In any case, I wouldn't worry too much about it. Just extract the system.img file from within and flash it.
[Nexus 4 General] mj56gt:
Thanks for the quick help! But that factory image file is what I downloaded from the Google website, presumably stock ROM, right?
[Nexus 4 General] sordna:
I got confused, sorry. The answer is that "md5sum" cannot look INSIDE archives. In particular "md5sum -c" assumes you point it to a text file that contains lines of md5sums & filename pairs, and then verifies that the listed md5sum matches the actual file md5sum.

So it's the wrong command to use here, just use "md5sum filename" without -c if you want to check that your google download matches the listed md5sum on the website.
[Nexus 4 General] Blockberd:
Hey,

I am back at my system. If anyone needs any file from the stock factory images of JDQ39 (4.2.2), JWR66V (4.3) or JWR66Y (4.3), just let me know.

Also thanks [MENTION=962867]El Daddy[/MENTION] for helping me out few pages back. :) [MENTION=962867]El Daddy[/MENTION]:

Could you put a quick note to the first post about the "set_perm: some changes failed" issue and how to solve it? Looks like this happens most of the time here and it could maybe help a few to solve this after reading first post (if they read the first post ;)).

That would be cool. :D
[Nexus 4 General] El Daddy:
Yeah I'll get to it. Hopefully later tonight. I've been real busy the past few days and unfortunately this thread has taken a lower priority. Bad timing for an OTA! At least it wasn't a major one. :)
[Nexus 4 General] Blockberd:
[MENTION=4609269]jolaviska[/MENTION] was able to get it from a GAPPS package. But for everyone else and to finish what I promised I pulled this APK (there is no ODEX) from the factory image and attached it here. Hope it helps.
[Nexus 4 General] Blockberd:
Yeah, thats right. But at least there are some people around here helping out. But I cannot edit your 1st post. ;)

Maybe a small step-by-step explanation/how-to helps in the meantime:

If you face the "set_perm: some changes failed" issue, you should try:

- make sure you have SuperSU 1.51 ZIP and update ZIP on the phone

- unroot in SuperSU app

- reboot into recovery

- flash update ZIP

- while still in recovery flash SuperSU again

- reboot
[Nexus 4 General] bonqu:
I am having an issue applying the jwr66y update to my nexus 7. i get the following when applying in sideload

assert failed: apply_patch_check("/system/bin/debuggerd", "d8ee8b6a18f902e8842a0bf706a35f4359ef73d8", "led6fc2f1287d0dccdaa4e50b917c0cd3dfa6a")

Thanks for any help
[Nexus 4 General] Blockberd:
First you should make sure that you apply the proper zip for your current build to the new build.

If thats all fine then you have replaced or deleted some system apps so the checksum check fails and stops the update process.

2 options:

1) Restore the stock apps you changed/deleted and try again

or

2) Flash the system.img from the factory image of JWR66Y through fastboot if everything else is stock.

As we are talking about the N4 here, I am not so sure how it should be on the N7. But I think it should be 99% the same.

Just make sure you use the update ZIPs for the N7, though.
[Nexus 4 General] bonqu:
Sorry I'll repost in correct place
[Nexus 4 General] bioyuki:
If I'm fully stock other than root and the LTE fixes, can I just flash system.img to go from JWR66V to JWR66Y? Since it's such a minor update I'm assuming the bootloader, etc. haven't changed at all?
[Nexus 4 General] HeyyMyNameIs:
i recieved the OTA update long time ago but i have a custom bootanimation, glowdots, lockring etc.. is it possible to just undo my modifications by undoing them through the undo zip that zipthemer made? and for the boot anim. can i just use rom toolbox to return it to stock? after all this can i just apply the OTA?
[Nexus 4 General] slinder154:
Doesn't seem to be working with Franco Kernel, would I have to go back to stock kernel first?
[Nexus 4 General] sordna:
The zip from this post works, I did it while on franco r176, TWRP recovery, and rooted.
[Nexus 4 General] slinder154:
Right, I had my build.prop changed and that's why it didn't work. Thanks!
[Nexus 4 General] profdre:
Flashed system.img, now Nexus 4 is stuck at Google logo

Hello,

I just registered because I couldn't find a solution to my problem. I had a rooted Nexus 4 with CWM build JWR66N. I wanted to flash the OTA (JWR66N to JWR66Y) via CWM but error 7 occured. Therefore I unrooted via SuperSU and tried again. Still no luck. Then I read this in this thread here:

So I tried to flash via fastboot. I downloaded a Nexus 4 system dump build JWR66N (from androidfilehost) and unpacked the dump, renamed the system.ext4.win to system.img. The flashing process took 67 secs for 552988 KB and it said OK. Then I typed the reboot command and got stuck at the google screen. What can I do?
[Nexus 4 General] efrant:
Correct.

Just flash the JWR66Y system image.
[Nexus 4 General] roberto18:
Hello. I have received yesterday my OTA update. Before installing it, i have read this thread and i know, that to install this update, i have to be full stock, unrooted, stock kernel and stock rom. First, i have downloaded the ota update zip from efran and put into my device. Then i tried to unroot my device from the superSU app, rebooted, and while installing the update, im getting this error :

assert failed: apply_patch_check("/system/app/systemUI.apk:, "356b95b5a13c877633b0680a7157e5c47f8b3e83:, "378d61d721158b5ed53b2385005450d047aa8d67") E:Error in /sdcard/0/CWM_OTAupdate-occam-JWR66Y-from-JWR66V.zip (status 7) Instalation aborted

Really dont know why :/

My bootloader is unlocked, im rooted and havent uninstall any system apps. I have only installed battery circle mod and power menu with the reboot option.

Could you please help me, how to install this update ?
[Nexus 4 General] El Daddy:
You answered your own question.

"I have only installed battery circle mod and power menu with the reboot option."

Read the OP and look at the huge green writing.
[Nexus 4 General] Blockberd:
The battery and power menu mod is your problem. The systemui.apk is not stock anymore so it will fail the checksum check. Thus stopping the update process. You have soem options:

- You can search for an undo zip to flash

- You can put the two files from the attached ZIP to the "/system/app/" folder through any root explorer app

- You simply flash system.img from JWR66Y factory image through fastboot
[Nexus 4 General] profdre:
Thank you very much! This made my day...Nexus 4 is up and running with newest build. Can you tell me why I need to unarchive the factory image so many times to get to the system.img?

Greets!
[Nexus 4 General] Blockberd:
That's simply how Google/the AOSP decided to make the structure. It is normal and ok. It is similar to the question "Why is the sky blue?". ;)

But anyway... glad you were able to update your phone.
[Nexus 4 General] Ltinride:
I try to installed the patch which everyone is using from here

But I get this error even after Unrooting

assert failed: apply_patch_check("/system/build.prop","e366e937ec01a4e2

E:Error in /sdcard/0/CWM_OTAupdate-occam-JWR66Y-from-JWR66V.zip

I know I added a line at the end of the build.prop to take out the soft buttons from the bottom of the screen.

however, I deleted that line which should make the build.prop back to stock but still I get this message. Any ideas?

Thank you for the help.
[Nexus 4 General] Blockberd:
I pulled the build.prop from the stock JWR66V image. Grab it from the attachements. Hope it helps.
[Nexus 4 General] Ltinride:
That worked!!!! Thank you so much! I'm updated and rooted!
[Nexus 4 General] roberto18:
i have put those 2 files attached in the ZIP to the system/app folder and restarted my device. Battery icon is stock, but the power menu is still modded, that means with the restart option to recovery, bootloader or pure restart.

Is there any other way to uninstall that power menu mod ? Or i think, im gonna wait for another OTA....:/
[Nexus 4 General] sordna:
you can flash the stock system.img which will make sure all your system apps are 100% stock
[Nexus 4 General] roberto18:
You mean flash the factory image Rom? I'm not gonna do that definitely just for some minor fixes. Or you mean something else?

Send from my Nexus 4 using Tapatalk
[Nexus 4 General] efrant:
Why wouldn't you do that? It's essentially does the same thing as using an OTA update zip. Just flash the system.img file ONLY.

And what do you mean by "Or i think, im gonna wait for another OTA....:/"? Waiting for another OTA will not change the fact that you still won't be able to update via OTA because you modified system files.
[Nexus 4 General] Blockberd:
By flashing the system.img from factory JWR66Y in fastboot will not do much harm. You just have to root again.

You dont need to flash the whole factory image if you already have 4.3. If you come from 4.2.2 you need to flash boot.img, too.
[Nexus 4 General] sordna:
The ROM has a bunch of things such as boot.img (kernel), radio, recovery, system.img, userdata.img. The userdata.img would delete all your data, but the other individual img's like boot/recovery/system are safe to flash if you want to do an OTA, at most you will only loose your custom recovery and root, which are easy to put back in 30 seconds if your boot loader is unlocked.

Flashing system.img is often easier than hunting down prop, .apk, .odex files that you modified or deleted.
[Nexus 4 General] roberto18:
So, you're saying, that i should download the 4.3 factory image and flash only the system.img? Should that work and keep all my data? Can i do that through mobile Odin or do i need that in cwm?

Send from my Nexus 4 using Tapatalk
[Nexus 4 General] sordna:
I don't have experience with modile Odin, the way to normally flash system.img (and yes, you don't loose any data) is to connect your phone to USB cable, bring it to boot loader (power on the phone with volumedown+power) and then:

fastboot flash system system.img
[Nexus 4 General] roberto18:
i have downloaded the newest 4.3 android factory image. Should i unzip it and select just the system.img file in fastboot ? or the whole zip file ?
[Nexus 4 General] Blockberd:
If you are already on 4.3 you just fastboot flash system.img. If you are from 4.2.2 you also fastboot flash boot.img
[Nexus 4 General] efrant:
fastboot flash system system.img

fastboot flash boot boot.img
[Nexus 4 General] doublewings:
Received today OTA for JWR66Y from JDQ39. All stock, SuperSU rooted. Do I need to unroot before installing? Just want to double check.
[Nexus 4 General] Blockberd:
Yes, you have to unroot. And also make sure you don't have any stock apps removed or modified.
[Nexus 4 General] El Daddy:
Sometimes I wonder why I put in the work to update the OP. It seems like nobody reads it anyway... :confused:

On a lighter note. Thank you [MENTION=1566190]efrant[/MENTION], [MENTION=2998986]Blockberd[/MENTION] and others for providing support the past few days when I haven't been able to.
[Nexus 4 General] Blockberd:
Yeah. That's quite a shame. I am wondering the same... :(

At least I can give something back to XDA after it helped me alot.
[Nexus 4 General] Nathanation:
I'm running stock rooted, I applied the small 1.8mb system update early last week, reading your guide it suggested I should unroot but me being me I did a nandroid and selected the update whilst still rooted. The update flashed in twrp automatically, twrp then prompted me that root had been lost and offered to fix, I selected "yes, fix root"

Rebooted and upgraded just fine. I'm guessing the same will be true of the latest update too.
[Nexus 4 General] doublewings:
Sorry for asking dumb questions. I did read your OP and appreciate very much the efforts and help from you, and other contributors. It's just I can't see OTA JWR66Y from JDQ39 in it, at least not explicitly, therefore I want to double check.
[Nexus 4 General] El Daddy:
My post wasn't directed at you specifically. You just had the misfortune of the last post before mine. :). My apologies.
[Nexus 4 General] ZhekaS:
I wonder if there any drawback if flashing just the boot and system images via fastboot? It was the method I used to update to

JWR66V (along with flashing radio and bootloader, if I remember right) and JWR66Y, since the other methods didn't work for me.
[Nexus 4 General] Blockberd:
If someone is already on 4.3 and just applies the small update, it should be fine to just flash system.img.

Coming from 4.2.2 should flash at least system.img and boot.img if not radio and kernel, too.
[Nexus 4 General] roberto18:
I have successfully installed the newest ota update ;) instead of flashing the system.img i have found stock battery and power menu mod. Then I've installed the updated through cwm, superSU, and rebooted device. All went fine and smooth without issues.

Thanks all for help ;)

Send from my Nexus 4 using Tapatalk
[Nexus 4 General] bebjan:
hey so i updated the superSU. i just received a notification to install the downloaded updates on my nexus 4, can i just unroot using supersu and install the update from the notification, i am using a custom recovery TPRW

Second question how can flash the stock recovery back so that i can easily install OTA updates ?
[Nexus 4 General] Blockberd:
First question: Yes, you have to unroot in SuperSU, apply the update, reflash SuperSU 1.51, reboot.

Second: You don't need stock recovery. This OTA will fail even in stock recovery because of SuperSU.

But to flash stock recovery back you do the following:

- Grab stock recovery from around here (let me know if you can't find it. Will try to find it on my harddisks)

- Download latest Android SDK for fastboot.exe

- Boot phone into bootloader (volume down + power)

- From PC console window: fastboot flash recovery "path-to-stock-recovery.img"

But why should one flash stock recovery back? :confused:
[Nexus 4 General] Rusty!:
None whatsoever.
[Nexus 4 General] bebjan:
thanks

Can i flash the stock recovery using N-Cry tool ? i used it to root and unlock my phone

I wanted to to return to stock cause installing OTA updates seems to be hassel everytime or maybe ive never done it before so seems hard
[Nexus 4 General] Blockberd:
Installing the current OTA is a hassle because of SuperSU. With SuperSU + stock recovery you would have the same hassle (trust me... been there, done that...).

I don't know if it is possible using that tool. I don't use such tools. It is actually not that hard to boot the phone into bootloader and execute the fastboot exe from command window.

Go to http://xdaforums.com/showthread.php?t=2010338 and start reading at question "What is fastboot?"
[Nexus 4 General] bebjan:
so if we just lose supersu then we lose root and can we install updates like a normal locked phone ( does recovery matter ?)

BTW i just updated to latest version thank you for your help and guidance much appreciated
[Nexus 4 General] Blockberd:
Since 4.3 root actually matters while OTA update. That means you have to unroot, apply the OTA and maybe flash SuperSU again to get root back. That's it. I don't understand why some people make such a big deal out of it (not only here but also over here: http://xdaforums.com/showthread.php?t=2413535).

For this update recovery does not matter, too. But please refer to the first post of this thread for details about that:

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

You may thank the person who helped you by pressing the "Thanks" button (I am talking in general here!). :)
[Nexus 4 General] roberto18:
To get back the stock power menu and stock battery icon on the notification bar, you have to find another thread (can be found on xda forum). Just write 4 way button menu and there are also the stock zips ;)

That's the way I've gone back to full stock ;)

Send from my Nexus 4 using Tapatalk