File: check_hammerhead_kot49h_system.zip
[url=http://goo.gl/xLlREk]Google Drive[/url]
[url=http://goo.gl/lNRLlk]Mega[/url]
MD5: 3a810e0d67e2f7b17af947a9c46664ec *check_hammerhead_kot49h_system.zip
#!/bin/bash
# This requires 1 argument: the update zip filename
update_zip=$1
if [ -z ${update_zip} ]; then
echo "Need to let me know the name of the ota zip file!"
exit 1
fi
system_zip=${2:-$(ls system*.zip)}
extract_dir=/tmp/update_zip_check
update_dir="META-INF/com/google/android"
[ -d "${extract_dir}" ] && rm -rf "${extract_dir}"
mkdir "${extract_dir}"
echo "Updating updater-script for checking and replacing files."
unzip -q -d "${extract_dir}" "${update_zip}" "${update_dir}/update-binary" "${update_dir}/updater-script"
# The following was the old way of updating files
#unzip -q "${system_zip}" $(grep -e 'mount' -e 'getprop' -e 'assert(apply_patch_check(' -e 'assert(apply_patch_space(' ${extract_dir}/${update_dir}/updater-script | sed 's|^assert(\(apply_patch_check("/\)\([^"]*\)\(.*")\));|ifelse(\1\2\3, "", (package_extract_file("\2", "/\2"); ui_print("\/\2")));|' | tee -i ${extract_dir}/${update_dir}/updater-script_check | grep -e 'ifelse' | sed 's|^ifelse(apply_patch_check("/system/\([^"]*\)".*|\1|') -d ${extract_dir}
unzip -q -d "${extract_dir}" "${system_zip}" $(grep -e 'mount' -e 'getprop' -e '^apply_patch_check(' -e '^apply_patch_space(' ${extract_dir}/${update_dir}/updater-script | sed 's!^\(apply_patch_.*\) || abort("\\"/system/\(.*\)\\" .*);$!\1 || (ui_print("/\2 unexpected; replacing"); package_extract_file("\2", "/system/\2"));!' | sed 's!abort!ui_print!' | tee -i ${extract_dir}/${update_dir}/updater-script_check | grep -e '^apply_patch_check("/' | sed 's|^apply_patch_check("/system/\([^"]*\)".*|\1|')
mv "${extract_dir}/${update_dir}/updater-script_check" "${extract_dir}/${update_dir}/updater-script"
cur_dir="$(/bin/pwd)"
cd "${extract_dir}"
echo "Now creating the zip file for flashing."
zip -qr "${cur_dir}/check_system.zip" *
cd "${cur_dir}"
rm -rf "${extract_dir}"
echo 'Done! Please remember to backup any APKs you have replaced on the /system partition of your device; this file will replace with the stock version for your build.'
You need to uninstall xposed and flash the stock kernel then follow BSo I need some help figuring out which instructions apply to my situation.
Here's where I am:
- Unlocked bootloader
- Stock ROM
- Rooted with SuperSu (v 1.94)
- Franco kernel
- Custom recovery (TWRP)
- Xposed Framework w/ various modules installed
What steps do I need to take?
I misinterpreted the post! Thanks!There were no updates to the bootloader. You don't need to re-flash
Sent from my Nexus 5 using XDA Free mobile app
Okay. So do I download the zip file in the original post, rename it to OTA.zip and flash that via TWRP?You need to uninstall xposed and flash the stock kernel
Sent from my Nexus 5 using XDA Free mobile app
You do not have to unlock the bootloader. Follow the first scenario. It will not wipe your datamy nexus running stock unrooted locked bootloader. for flashing ota zip, i have to unlock bootloader? if not then all data will get wiped after flashing zip?
Thanks!You need to uninstall xposed and flash the stock kernel then follow B
This will also work for you http://forum.xda-developers.com/showthread.php?p=53109563
Sent from my Nexus 5 using XDA Free mobile app
You don't have to unlock the bootloader to flash this zip. You will need adb, though. Just boot into recovery, select the sideload option and then run 'adb sideload <ota_zip>' from your computer (after you've plugged in your phone to USB, of course).my nexus running stock unrooted locked bootloader. for flashing ota zip, i have to unlock bootloader? if not then all data will get wiped after flashing zip?
Do you have adb installed? Google 15 second adb drivers xda.I am on stock everything, not rooted, I am stuck at device not found error.
i have installed the sdk. Please help.
this helped me. in device manager it was showing normal when phone was on, but as soon as i go into recovery and abd download, the device manager showed a exclamation mark. Then one needs to follow above steps.When that happens go to the device manager in Windows and I would bet you will see the Nexus 5 listed in the other category with a warning icon on it. Right click the Nexus 5 and select Update Driver and tell it that you want to manually pick the drivers from the list. Pick the Android phone category and then the ADB drivers. If Android is not an option in the list then that means that the drivers are not installed for some reason. In that case you need to download the Google USB drivers from Google and point the device manager driver updates to the folder that contains those new download the drivers.
Dude,be careful with that multirom thing.If possible get back to stock everything.One guy got dead phone after updating to 4.4.3 from multirom http://forum.xda-developers.com/google-nexus-5/help/help-nexus-5-dead-flashing-4-4-3-t2771019Hi, can I use Special Scenario #1 to update from 4.4.2 to 4.4.3 if I have MultiROM installed? Will it be affected in any way? Will I lost my other ROMs or their data? Thank you
Try running the steps in Section A. Is there a particular reason you don't want a custom recovery?Hello, I wonder what I do in my case, I have the stock ROM with root done by Auto-CF-Root, Xposed Framework installed and stock Recovery.
From what I read, I have to uninstall Xposed Framework and then proceed to Section A or Section B, however I can't go to Section A, because I have root and I can't go to section B, because I don't have custom recovery, what should I do?
I just want to update and continue with root, don't want custom recovery.
Thanks for the attention.
It seems like you've modified the Velvet.apk file in /system previously. I have posted a zip file that can fix it for you or you can flash back to stock (just the system partition).4.4.2 custom recovery rooted, no modifications (so I thought) updating via OTA zip in recovery getting this error 7 (priv-app/Velvet.apk has unexpected contents)
I erased google search and downloaded the version from play store so I'm not sure why I keep getting this error.
Thoughts?
Thanks! Because I won't put any custom rom on my device, use only root to remove some applications that don't use and Xposed to add some features that I find interesting.Try running the steps in Section A. Is there a particular reason you don't want a custom recovery?
If you have deleted apps from the system partition, there is a high probability that the OTA will fail (something has unexpected contents), but you can still give it a shot without messing up anything. If it does fail, you will need to flash the factory system image to fix this (see jd1639's post)Thanks! Because I won't put any custom rom on my device, use only root to remove some applications that don't use and Xposed to add some features that I find interesting.