yashsingh1/xdaforums huggingface dataset:
[Nexus 7 General] osm0sis:
Yeah no problems. The reason it errors out is root for stock 4.3 required SuperSU and Superuser to replace install-recovery.sh to run their daemons. Once replaced they lock the file from tampering, and that locking (called ioctrl, or chattr +i) is why the OTAs are ****ting the bed over the permissions. ;)

If you're running a custom ROM or kernel with native su daemon service calls added to one of the .rc files, then you can safely chattr -i install-recovery.sh and delete it or whatever.
[Nexus 7 General] rhyang:
debuggerd from JWR66V ?

I used the grouper.zip above, but it failed on the checksum for debuggerd. I think it's because I have stickmount installed. Renaming the debuggerd.backup back to debuggerd didn't help. Tried to find the factory image for JWR66V, but looks like Google took the link down. Anybody still have it ?
[Nexus 7 General] NeoMagus:
http://web.djodjo.org/dwn.php?ff=12..._gn_nakasi:nakasi-jwr66v-factory-d341d356.tgz
[Nexus 7 General] oldblue910:
http://randomphantasmagoria.com/firmware/nexus-7/nakasi. Click the "images" link on the row for JWR66V.
[Nexus 7 General] rhyang:
Sweet, it worked. I've attached the debuggerd from that image.
[Nexus 7 General] aktasch:
assert failed: apply_patch_check Videos.apk

Hello,

I receive original OTA file for my nexus 7 but upgrade failed. So tried to sideload and flash OTA file with custom recovery but these also failed.

Flash error is something like that "assert failed: apply_patch_check ... Videos.apk".

Then i find out that i disabled Videos.apk and have 4 more google apps disabled. When apps disabled names changes

from Videos.apk to Videos.apk_ and update script fails.

As a solution first re-enabled all google apps, than flash OTA file with custom recovery. Upgrade is successful.

Now my build is JWR66Y.

Good luck all.

Attached OTA file i used.
[Nexus 7 General] Kiziek:
WORKS!

Updated to JWR66Y with grouper.zip via TWRP, had to fix SU permissions (TWRP fixed it for me).
[Nexus 7 General] elfacki20:
u were right...Works for me too!!! :)
[Nexus 7 General] andrewk2x:
Can someone attach me BrowserProviderProxy.apk from system/app jwr66v??Thanks

Edit:I download aosp browser installer from play store,and restore the apk that i was looking for..Now i have jwr66y.
[Nexus 7 General] anuragnirmal:
Paranoid Android

Can i flash the grouper.zip over PA 3.98?
[Nexus 7 General] NoSubstitute:
Worked just fine!

I used that grouper.zip and also flashed SuperSU afterwards, without booting to system in between (probably not necessary). Worked like a charm.
[Nexus 7 General] andrewk2x:
No..You must be on stock rom+kernel.
[Nexus 7 General] TheManii:
Since JWR66Y is out, can someone grab every other ota?

Post #484

We already missed our chance at the majority of <x> -> JWR66V for grouperg.

If you do, remember that you must be eligible for any ota to be able to get them all.

Wait until you can get JWR66V -> JWR66Y if you do wish to get them.
[Nexus 7 General] xclusiv8:
Worked like a charm. Thank you.

---------- Post added at 10:02 PM ---------- Previous post was at 10:01 PM ----------

Im on stock rom but not on stock kernel. Flashed the zip on page 54 without any problems. =)
[Nexus 7 General] hyperspacey:
Getting the same issue, though I don't have TWRP installed can I fastboot boot twrp instead of fastboot flashing it and still OTA after an SU permissions fix?
[Nexus 7 General] Kiziek:
I'm not a specialist, to be honest I'm noob. After failure with ADB sideload (nakasi and grouper) I've instaled TWRP via Nexus Root Toolkit, then tried 8b2531d9d9a686c7dcf347513ce8141d59a251c6.signed-nakasi-JWR66Y-from-JWR66V.8b2531d9 with no succes, after that I've used grouper.zip, and it worked. After update instalation was succes, TWRP asked me if I want to repair SU permissions, gave YES to that and thats all. Everything works fine, with ROOT.
[Nexus 7 General] xclusiv8:
What is this TWRP everyone talks about?
[Nexus 7 General] Kiziek:
THIS
[Nexus 7 General] xclusiv8:
Thank you. :)
[Nexus 7 General] hyperspacey:
Grouper.zip seems to be the deciding factor. Thanks for the info. If you need to you, can use the command "boot" instead of "flash" when you need to use, say, TWRP, and it just boots into that recovery instead of overwriting stock.
[Nexus 7 General] pleasant:
Which one shud i download from these two

I have

Nexus 7 wifi

Currently on jwr66v

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

JWR66V from JDQ39 - http://android.clients.google.com/pa...9.ab67ca07.zip

JWR66V from JDQ39B - http://android.clients.google.com/pa...B.3fdfb600.zip

---------- Post added at 10:28 AM ---------- Previous post was at 10:18 AM ----------

Moreover how to install this update iam on custom kernel
[Nexus 7 General] hmanxx:
Facing problem with status 7 on complete stock rom with root yet just want to install package from Google direct .

Use the following method that work for me.

Prerequisite :Busybox, Terminal program

In /system/etc

Assuming you have busybox installed, open a terminal session and enter these commands:
su
cd /system/etc
mount -o remount,rw /system
chattr -i install-recovery.sh

And then reboot to recovery to retry the OTA installation.

Above commands were found on Nexus 4 forum. Not my stuff , but work for me ..i find it have least risk as no unknown update package involved..only change of permission .
[Nexus 7 General] MrH.uk:
Could someone help me? I'm a complete newbie so please bear with me.

I currently have firmware JWR66N and I'd like to install the firmware that fixes touch issues but I'm not sure where to start. I'm rooted with stock recovery. If someone could tell me step by step what I need to download and do I'd appreciate it.
[Nexus 7 General] igerup:
I have status 7 error mesages too, but that script doesn't help.
[Nexus 7 General] shab_2008:
Hi there ,

My device is on Clean Rom 4 , and if I'm right I'm not able to use flashable update by twrp ! Is this correct ? If so, where can I download flashable stock update by twrp ?

Thanks
[Nexus 7 General] ABBolle:
After I got the status 7 error message, I unrooted my nexus and then I was able to install the update. Before starting the system, I flashed the supersu zip and everything was fine. :)

Gesendet von meinem Nexus 7 mit Tapatalk 4
[Nexus 7 General] osm0sis:
Bingo! I explained why and posted something similar a few pages back as well:

http://xdaforums.com/showpost.php?p=44890307&postcount=530

Unrooting also works for the same reason.
[Nexus 7 General] shakalaca:
android.clients.google.com/packages/data/ota/google_nakasi/6cfd93b91cc5c6b4431e34ee1f47663b9301c187.signed-nakasi-JWR66Y-from-JDQ39B.6cfd93b9.zip

android.clients.google.com/packages/data/ota/google_nakasi/36aa4a7cda5f8616dccfc4480a4592b06762b0a6.signed-nakasi-JWR66Y-from-JDQ39.36aa4a7c.zip

android.clients.google.com/packages/data/ota/google_nakasi/338da85cdf190bfe2713e660cc80a3a4094e9894.signed-nakasi-JWR66Y-from-JOP40D.338da85c.zip

android.clients.google.com/packages/data/ota/google_nakasi/59fb7912bfa96682d4bf56c2a501a4adefbb8f1e.signed-nakasi-JWR66Y-from-JOP40C.59fb7912.zip
[Nexus 7 General] hwa107:
Do you think I need to +i back after I settle with everything? Or SuperSU will do it for me?

Thanks!
[Nexus 7 General] osm0sis:
If you aren't using a custom kernel to run the SuperSU/Superuser daemon (either by native service built into the kernel ramdisk, or via init.d script) then you should probably +i it again to make sure it can't be tampered with, since it's the only thing ensuring you have root.

chattr +i = the "immutable" bit. :)
[Nexus 7 General] hwa107:
Thank you, doing it now. :)
[Nexus 7 General] he_pennypacker:
Hi all. I got stuck when I tried to apply the OTA update to my nakasig device on stock (JWR66V + root + TWRP) to JWR66Y. I got an error about updating failed in recovery, and I lost TWRP and root too.

Anyway, after much investigation I came across the same diagnosis as you, although I solved it slightly differently. Following this post;

http://xdaforums.com/showpost.php?p=44886292&postcount=102

...I made the same changes to the nakasig OTA update from Google. I rebooted into TWRP and applied my patched update plus Chain SU just to be sure. Success!

If anyone want to try, I've attached the patched update.

For reference, I edited \META-INF\com\google\android\updater-script and commented out the following lines;

# ui_print("Removing unneeded files...");
# delete("/system/recovery.img");

# ui_print("Unpacking new recovery...");
# package_extract_dir("recovery", "/system");

# set_perm(0, 0, 0544, "/system/etc/install-recovery.sh");

I also deleted the \recovery folder, and the following files in \META-INF\ ;

CERT.RSA

CERT.SF

MANIFEST.MF

(these files/folders were deleted to match the patched updater by efrant in the linked post.

HTH, no guarantees, but it worked for me.
[Nexus 7 General] greeneyez15o:
My system update failed and im tryin over n over again but wen I click system update it says that system is up to date when it is not im still on v... wat do I have to clear to try again . Im on the wifi nexus
[Nexus 7 General] jackjsa:
Update failed.Help me please !!!! T^T
[Nexus 7 General] greeneyez15o:
i finally got update but lost root, and twrp. . . can anyone tell me which version of supersu zip can i flash using computer to regain root access ?
[Nexus 7 General] SammySneed-DD:
Android is Upgrading

Hi all, I was wondering if any one has come across this issue regarding the ota update.

So I read through all this post and eventually managed to get the update (grouper.zip) working after replacing some system files, I believe it was to do with a version of beats audio drivers that I used to have installed, anyway so after the grouper done its thing I rebooted and got this brief message

android is upgrading

starting apps

Everything seems fine but I get this message every time I reboot my nexus7

I am a semi noob at all this but I manage to get my way through most things by reading and investigating as with my JB cfw446 PS3,

but I have not seen a comment about this - unless I missed it so any help would be of great thanks.
[Nexus 7 General] Kiziek:
Piracy is bad

Shame on YOU! It's nothing to be proud of.
[Nexus 7 General] Fotogravin:
Wrong forum? JWE66N is for nexus 4, this is nexus 7 forum
[Nexus 7 General] MrH.uk:
I'm using JWR66N not E66N. My device is the 2013 Nexus 7.
[Nexus 7 General] oldblue910:
Thanks, buddy. First post updated. Any chance you could check for nakasig as well? [MENTION=3289998]TheManii[/MENTION] can help with all the build.prop settings.
[Nexus 7 General] Fotogravin:
Well, that was just a small mistyping. I now see that the new N7 has also that firmware. But still: Nexus 7 (2013) also has a dedicated forum. So you'd better ask your question there.

The new version should be available for OTA-updating (settings - about tablet - system updates), or you can download the factory image from http://developers.google.com/android/nexus/images. Using the factory image will unlock the bootloader, so if you have locked bootloader using that image will also erase everything on you N7!

I guess this should work any nexus: Unzip factory image. If you don't change anything flash-all.bat will erase the entire content of your N7, so I guess you want to alter some things in it: remove the line fastboot erase userdata and remove -w from fastboot update -w xxx.zip (don't know the exact name of that zip). Save. Then run flash-all.bat (or if on linux or mac, do the same with flash-all.sh instead)

You'll loose root and custom recovery if you had it, so you need to reinstall custom recovery and then flash the right supersu.zip if you want to have custom recovery and root.
[Nexus 7 General] TheManii:
I dont remember who posted these, but they're missing from the OP:

http://android.clients.google.com/packages/data/ota/google_nakasi/f9da7cd09b9433c04981d00fe2ada7f68cc217bd.signed-nakasi-JWR66V-from-JOP40C.f9da7cd0.zip
http://android.clients.google.com/packages/data/ota/google_nakasi/cd8c400b7323ee870d3721ad0dc3e931a8a1254b.signed-nakasi-JWR66V-from-JOP40D.cd8c400b.zip

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

To check nakasig OTAs on a grouper (ie OG N7 wifi)

Change in your build.prop:

ro.product.name=nakasig
ro.product.device=tilapia
ro.build.product=tilapia

Then change the below for each specific rom:
[Nexus 7 General] oldblue910:
Yeah missed those. Thanks.
[Nexus 7 General] choybel:
After deciding to take on some of the steps here, I encountered several problems so I might as well state them all in the hopes of getting solutions for each of them, although I know some of them is not entirely related to OTA. Anyway here they are:

1. Before I came to this thread I read one that instructed me to go to stock recovery first and since I had custom recovery installed via toolkit I went ahead and re-installed stock recovery, again via toolkit. I am using wugfresh toolkit, let me just say this as reference. So after it installed, I went to boot to recovery (on the part where I must press power + vol up button) but instead noticed that my computer was asking for APX driver and just a blank screen. So now, I think my stock recovery is messed up, Am I right to assume this? Any suggestions that didn't require full revert to stock ROM thus full erase of data.

2. After several tries, I gave up and so I re-installed twrp and tried installing the OTA in the original link via custom recovery and of course I got an error, which read: "Error flashing zip .....". This is my second problem.

3. and so after reading through threads and replies within, I saw a suggestion involving modified OTA zip file that can be directly installed via twrp so I immediately gave it a shot and got the same error as number 2. So, what am I missing here?

Please help me guys...will really appreciate it. Thanks!

EDIT:

Here's the complete log:

Updating partition details...

Installing '/sdcard/!ReadyToFlash/grouper.zip'...

Checking for MD5 file...

Skipping MD5 check: no MD5 file found.

Warning: No file_contexts

Verifying current system...

assert failed: apply_patch_check("/system/build.prop", "0850b9497a2a1c0aa6fb3ef9...dunno whats next here"

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

Error flashing zip '/sdcard/!ReadyToFlash/grouper.zip'

Updating partition details...
[Nexus 7 General] Gitah.:
For some reason the update from JWR66V to JWR66Y (Nexus 7 wifi) fails.

Here's a picture:

http://i.imgur.com/0C5FT36.jpg

I am rooted btw.
[Nexus 7 General] TheManii:
You modified your build.prop, you have to unmodify it first if you want to update via patch
[Nexus 7 General] choybel:
Ah yes, now I remember...I installed the noozy/beats audio patch. Ahm...how do I uninstall/unmodify this, please? :silly:

Edit: Solved that problem, but now encountered a new error...

says:

set_perm: some changes failed

E:Error executing updater binary in zip etc....

Help please...
[Nexus 7 General] TheManii:
Did you root? Most of the rooting methods seem(?) to be overzealous and use "chattr +i" (immutable bit), which means the updater chokes when it cant modify that file.

Unroot also and it should be able to pass it.
[Nexus 7 General] choybel:
but that would beat the purpose...Is there no way to fix this in this method, via twrp?
[Nexus 7 General] Gitah.:
I am having the same issue.
[Nexus 7 General] eliboy:
I get the OTA (directly from update menu), installed, but i still have JWR66V :)
[Nexus 7 General] moses6533:
This post really belongs in the Wugfresh toolkit thread, but i can't post there because i don't have enough posts. Anyhow, tried using toolkit 1.7.1 to flash the JWR66Y from JWR66V using the stock + unroot option, and it pretty much bricked my Nexus 7. It was just stuck at fastboot and when you hit start it would say boot failed. I tried several times with different settings and all ended with the same result. I even tried using the toolkit to temp boot into TWRP, and it said no OS found. So i ended up using the guide for the Nexus 4 and manually ran the fastboot commands to load the images, but it seemed to wipe EVERYTHING, titanium backups, TWRP backups... oh well.
[Nexus 7 General] jellymelly:
Happened to me too while flashing stock 4.3 google rom using Wugfresh.

I got the same "boot failed" screen and stupidly turned it off. Then I couldn't turn it back on - couldn't even get to the google splash screen. Needless to say I couldn't even get into fastboot to flash things, and now it's at Asus' office waiting to be fixed/replaced.

This seems to be a common issue too. Moral of the story - don't flash 4.3 based roms using a toolkit.
[Nexus 7 General] Boozezela:
Download SuperSU so that you will be able to regain root after the update.

This is a version that can be flashed from recovery. http://download.chainfire.eu/345/SuperSU/UPDATE-SuperSU-v1.51.zip

- Reboot into recovery (I am using TWRP)

- Mount /system

- Launch a shell via ADB (adb shell)

- Run the following commands from the shell

# cd /system/etc

/system/etc # chattr -i install-recovery.sh

- Close the shell

- Install the OTA update (from recovery)

- Install UPDATE-SuperSU-v1.51.zip (from recovery)

- Reboot (from recovery)

Edit: I have attached the post OTA JWR66V to JWR66Y debuggerd . It is for nakasi (Nexus 7 wifi).

SHA1: d8ee8b6a18f902e8842a0bf706a35f4359ef73d8

You (all) can replace it in /system/bin before running the OTA if you have stickmount installed and the update script is complaining about it.
[Nexus 7 General] Gitah.:
How can I do this?
[Nexus 7 General] choybel:
Ahm, How do I do "- Launch a shell via ADB (adb shell)"?
[Nexus 7 General] Boozezela:
- Install the adb drivers

- Install Android SDK or google for a minimal adb toolkit

- Open a dos prompt and type adb shell (return)
[Nexus 7 General] bigbop:
I'm beginning to think I should just reinstall the OS then upgrade.

Those R binaries appear to be screwing some things up.
[Nexus 7 General] osm0sis:
Yep. Reflash the factory images, then CWM/TWRP to install the OTA zip.
[Nexus 7 General] digver:
Did you wipe your cache and dalvik before flashing? I wiped before flashing and I think that is why it failed for me. I redownloaded the file, flashed without a wipe, and it went through okay
[Nexus 7 General] Poulsen8r:
Just edit the updater-script and remove the checks. AS LONG AS YOU KNOW YOU ARE FLASHING THE RIGHT PACKAGE ON THE RIGHT DEVICE, you will be fine. Otherwise, you'll probably get a soft brick. Worked fine for me with CWM and Franco.

QUICK TUTE:

1.	Download the zip. I’m on JRO03D so I download the update package for JRO03D to JZO54K.

2.	Extract the zip to a working directory on your PC. Let’s say C:\update\.

3.	Navigate to “C:\update\META-INF\com\google\android”. There will be two files. One of them will be updater-script.

4.	Edit updater-script using your favourite text editor. You need to remove lines that say EXACTLY AS FOLLOWS:

assert(apply_patch_check(…

In the case of my zip it was lines 7 to 475.

5.	Save the script.

6.	Navigate to the root of the extracted files. In this case C:\update\

7.	Select all of the files and repack the zip using 7-zip, select store as the compression level.

8.	Copy to SD and Flash using CWM.

Yes I could upload the zips (anyone could), but I CBF and it's dead easy to do it yourself. Learn something, DIY FTW! OMG HAX BBQ.
[Nexus 7 General] Picc0:
Root?

Can i root the nexus with the new firmware on it, using Nexus7 Toolkit?
[Nexus 7 General] Winesnob:
JB stock recovery now allows updating via USB or ADB without rooting or unlocking the boot loader. Anyone tried this?
[Nexus 7 General] oldblue910:
I did. That's how I flashed it. You have to be using the latest version of ADB (download platform tools in the Android SDK manager) since the older versions don't have support for "adb sideload". But assuming you're using the latest version of ADB, simply save that file somewhere on your computer, reboot into stock recovery, choose "Flash Update from ADB". Once you do that, go to a command prompt, change to whatever directory your OTA file is in and just type in adb sideload otafile.zip and it's as simple as that.
[Nexus 7 General] metalwraith:
For me once it verifies the current system it says "E: Error in /sdcard" due to Launcher2.apk

And my current system stock JRO03D, but rooted, and put the buildprop back to the way it was. I checked the file everything looks ok from what I can tell.

Here's the screenshot of the error message.
[Nexus 7 General] oldblue910:
That means you're using some kind of modified launcher. You must be running a completely bone stock installation in order for the OTA to succeed. Any changes made to any files on the system partition will result in a failure every time. Flash back to complete stock and try again. :)
[Nexus 7 General] metalwraith:
I didn't think the launcher was modified... but yeah wiped it all clean and did stock. All updated and re-rooted' etc. Just updating my apps now.
[Nexus 7 General] spaceman860:
The factory images for 4.1.2 is up

Sent from my BAKED N7
[Nexus 7 General] oldblue910:
First post updated and the images are also mirrored at randomphantasmagoria.com!
[Nexus 7 General] EthanFirst:
hxxp://android.clients.google.com/packages/ota/google_nakasi/d41da8f61729.signed-nakasi-JZO54K-from-JRO03S.d41da8f6.zip
[Nexus 7 General] oldblue910:
You, sir, are THE MAN! Thank you. First post updated! I'm mirroring the OTA file on randomphantasmagoria.com as I speak.
[Nexus 7 General] oldblue910:
Hey mods, any chance we could get this thread stickied? Seems like it should be useful to a lot of people in this forum.
[Nexus 7 General] bigbop:
Yeah! -I finally was able to reflash the update on my N7.

Essentially, I had added a line to the build.prop file to allow home screen rotation. This was causing the update script to abort.

I finally used a terminal app to remount /system as rw and copied back the original build.prop.

What's interesting here is that I edited and took out the last line I added but the checksum was still wrong even though the file matched the original perfectly. I even checked it with a hex editor to see if there were extra bytes - all good. Still can't figure out why the checksum was different.

All happy now though with the update.
[Nexus 7 General] RobSalgado:
Hi everyone. I have a brand new N7 (less than 24hrs). Everything is stock, and unroot. The firmware JRO03S. I just download the new firmware for this in the first post, i rename the file to update.zip

And now? What can i do? How can I go to stock recovery? There is a combination buttons like the Galaxy S2? Please help.
[Nexus 7 General] melischa:
Thanks, worked for me. Rooted, stock + Franco kernel. Used voodoo ota to keep root.

Piece of cake.
[Nexus 7 General] lalahai:
Hi, can you add JRO03D image file to the list, I had a hard time finding this, and it might come in handy for some user out there in the future

heres the link :

https://dl.google.com/dl/android/aosp/nakasi-jro03d-factory-e102ba72.tgz
[Nexus 7 General] oldblue910:
I had no idea that link was still live. I added it back to the first post.

Normally when a new set of factory images are available, the old ones get removed from the server entirely. Looks like JRO03D didn't get deleted. Until it does, I'll keep the link in the first post. Nice catch! Thanks for that. :)

Also, in the future, you can find the older factory images at my website: http://randomphantasmagoria.com/firmware/nexus-7/nakasi. I mirror them all so they're available to the community when Google inevitably takes them down.
[Nexus 7 General] choybel:
After typing this command, it says permission denied...:crying:
[Nexus 7 General] Gitah.:
Well, I just tried to unroot it using superSU before flashing, the OTA installed successfully and then I re-flashed superSU. It was faster this way after all.
[Nexus 7 General] Boozezela:
See Gitah's suggestion.

Or try the following commands from the adb shell:

$ su

# mount -o rw,remount /system

then try chattr -i again

How ever if you have rebooted into recovery, you should already be root (su) when you access the shell and /system should already be writeable.
[Nexus 7 General] slybunda:
I cant install the update manually, something about browserproxyprovider error.
[Nexus 7 General] Gitah.:
Did you install the AOSP browser?