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
Code:
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 .
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;
Code:
# 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.