yashsingh1/xdaforums huggingface dataset:
[Nexus 5 General] Sam_in_PGH:
I have 4.4 right now and trying to go up to 4.4.1

I am rooted/bootloader unlocked with TWRP. When I try to flash in recovery manually with download zip, I get a Failed error with error "E: error executing updater binary in zip"

What are step to update for a device like mine??
[Nexus 5 General] LaurenceGough:
I'd just thought I would post, if anyone is having trouble with drivers with adb then try these universal ones which were the only ones I could get to work, just unplug your Nexus first.

http://download.clockworkmod.com/test/UniversalAdbDriverSetup6.msi

Works a treat, even the Google ones didn't (after modding the .inf file as well).
[Nexus 5 General] ernexto:
Ops! I was stock and rooted, flashed upgrade and forgot to flash supersu right after. Now I lost root and cwm... how can i flash supersu?
[Nexus 5 General] dmuhamma:
Custom recovery via adb and then flash supersu.

http://techerrata.com/browse/twrp2/hammerhead
[Nexus 5 General] jackpollard:
Well I read all the posts and I'm still not as clear as I should be to move forward. I'm stock rom and recovery. I used CF-Auto-Root to gain root and I have xposed running. Can I just use Section a and just side load the update.

Thanks for a great thread!
[Nexus 5 General] JukeboxJohnny:
Had custom recovery, root, xposed, and gravity box installed.

Uninstall xposed and gravity box. Flashed the OTA via twrp.

Booted up, supersu says it needs some binary files.

Is this a wait for supersu to be updated problem?
[Nexus 5 General] efan3719:
Here's what i did and where i started from. I was stock rooted, custom CWM recovery, xposed installed and i had deleted some system apps. I tried to install the OTA zip and it failed because google earth was missing. So, i downloaded the previous factory image, extracted the system.img and flashed it only via fastboot. this put me back to stock enough to get the OTA to work. flashed the OTA in CWM just like a rom. lost root. CWM asked if i wanted to prevent stock recovery flash on reboot. i said yes. and it asked to save root. i said no. let the system boot up. made sure everything was ok. adb pushed supersu. rebooted to CWM and flashed it. got root back. everything is good to go.
[Nexus 5 General] Dreadsteel:
So I'm rooted with stock ROM and stock recovery.

Can I side load the update, then run cf root to get root back. And doing this won't wipe my data right?

Thanks in advance
[Nexus 5 General] Synyster06Gates:
I doubt it... I flashed 1.65 and the newest version is 1.80. I have had no problems.
[Nexus 5 General] efan3719:
dont think so. i'm not familar with that root method. i just do it manually. if it didnt erase your data before it shouldnt after this. OTAs generally leave the userdata space intact. how pissed would people be if they lost all their data everytime they installed an update? :laugh:
[Nexus 5 General] JukeboxJohnny:
As do I, but it's still saying:

http://i.imgur.com/CP8W33e.png
[Nexus 5 General] Dreadsteel:
i'm new at this lol

when i used cf-root to root my device for the first time, it told me that it will wipe user data, and it did.

since updating to 4.4.1 will un root my device, i was wondering if rooting again after the update will wipe my data again.

how would one go about manually rooting the nexus 5?

thanks for your help
[Nexus 5 General] Burrid:
I redownloaded the 4.4.2 zip and tried to flash with Clockworkmod, but it also failed.
[Nexus 5 General] jd1639:
It looks like you're going to have to use fastboot and flash the system and boot image from the 4.4 factory image. The update zips in the op with work in twrp or cwm, but your system can not be modified or they'll fail. Which it looks like what is happening in your case
[Nexus 5 General] Burrid:
I'm sorry but I'm not very good at this, what do you mean by use fastboot and flash the system and boot image from the 4.4 factory image?
[Nexus 5 General] jd1639:
Follow method 2 of this, but only flash the boot.img and system.img. http://xdaforums.com/showthread.php?p=47156064
[Nexus 5 General] Burrid:
Hmm is there no other way? I'm already spending my entire day to try to upgrade to 4.4.2. I think I'm getting too old to waste all these hours to get something to work.
[Nexus 5 General] jd1639:
I'm sure I got you beat on age. It's pretty easy, in essence you boot into bootloader mode and run two commands

fastboot flash system system.img

fastboot flash boot boot.img

Get the images, Google nexus 5 binaries, from the file you download. Use 7-zip to extract it and then in there there is another zip file. Extract that too and you'll find the boot.img and system.img
[Nexus 5 General] Burrid:
Well ok, I'll give it a try then! But last question, do I need to run these commands in a specific folder? Because when I type these commands, they don't do anything.
[Nexus 5 General] jd1639:
Run them from the same folder the image files are in
[Nexus 5 General] Burrid:
Oof it worked! Thanks a lot! I guess it was because I messed with the DPI settings of the phone and soft key buttons and such. You really need to get into the world of rooting to understand everything. I used to have time to spare, but when you have other more important stuff, tweaking your phone really takes too much time.

I finally understand now why people would choose a more closed of phone environment such as apple or windows phone or unrooted android.
[Nexus 5 General] jd1639:
Glad you got it working. Happy holidays
[Nexus 5 General] hongsedaima:
Very nice job!!!!

I have a 4.4 Nexus 5 with rooted stock rom and TWRP recovery,I can receive the ota but can't update it,there is some issue after reboot to recovery.I'm looking for a solution days.

BUT

I updated my device from 4.4 to 4.4.2 successful with OTA just now,after i read this thread and follow the steps according to #2,the "Special Scenario #1".

I'm very happy to say thank you. [MENTION=5097164]Lettuce![/MENTION] [MENTION=962867]El Daddy[/MENTION]

===========================================I AM SEPARATOR:laugh:===========================================

E:\sdk\platform-tools>adb devices
List of devices attached
**************** device

E:\sdk\platform-tools>adb push UPDATE-SuperSU-v1.86.zip /sdcard/
3690 KB/s (642400 bytes in 0.170s)

E:\sdk\platform-tools>adb push ota.zip /sdcard/
3908 KB/s (56611214 bytes in 14.145s)

E:\sdk\platform-tools>fastboot devices
**************** fastboot

E:\sdk\platform-tools>fastboot flash system system.img
erasing 'system'...
OKAY [ 0.932s]
sending 'system' (692940 KB)...
OKAY [ 33.933s]
writing 'system'...
OKAY [ 47.555s]
finished. total time: 82.421s

E:\sdk\platform-tools>fastboot flash boot boot.img
sending 'boot' (8620 KB)...
OKAY [ 0.643s]
writing 'boot'...
OKAY [ 0.737s]
finished. total time: 1.380s

E:\sdk\platform-tools>
[Nexus 5 General] xtremeryo:
I'm running 4.4.1 Kit Kat with franco's kernel. Google has already pushed to my device OTA 4.4.2. It now says "tap to install" in my notifications bar. I'm scared to tap this button as I'm not on stock yet.

How do I get back to 4.4.1 stock, as the factory images for 4.4.1 are not uploaded on developers.google.com?

Someone suggested I flash 4.4 boot.img and system.img even though I'm on 4.4.1. Will that work? I thought it was not recommended to flash things that are not your version. I want to be clear as I don't want to brick my phone or anything. Then I can tap the 4.4.2 OTA that is in my Notifications center?
[Nexus 5 General] efrant:
Flash the 4.4.2 images (except the userdata image) and it will be exactly equivalent to accepting the update.
[Nexus 5 General] DryEagle:
I can't apply OTA because of root etc, so I'd like some instructions please, I understand it's in the OP but I just want to be sure.

- Stock 4.4 Rom/Kernel

- Rooted

- TWRP

- Xposed / gravitybox installed

- bunch of system apps uninstalled (maybe 20ish of all kinda junk stuff, e.g. email, calculator, korean ime, i don't remember them all)

My phone has about 1.3gb free memory total (out of 16)

I want to update to 4.4.2 without losing installed apps / data. mostly for my games, because it takes much time to make progress in some of them, you know...

I can't just install 4.4.2 via ota / twrp / adb push because it fails, presumably because of missing system apk's.

I have paid titanium but I still can't make full backup of my stuff because i don't have enough space on the phone, it's a problem.

so, what is steps for me to get the stock update without losing installed apps/data?

or is it possible to install custom rom/kernel (e.g. aokp, chaos etc) without losing apps/data?

thanks a bunch
[Nexus 5 General] jd1639:
See the post right above yours
[Nexus 5 General] DryEagle:
so just to be clear, i download the stock 4.4.2 images, then flash (via twrp?):

system.img

cache.img

boot.img

recovery.img?

so all 4 of those skipping userdata.img? or do i skip recovery also since i'm using twrp? does the order matter, do them all at once or?

and this will keep all of my settings apps saves etc? then i just remove unwanted stock system stuff with titanium again?

also do i need to disable xposed first?

thanks
[Nexus 5 General] jd1639:
No. Flash them with fastboot while you're booted into the bootloader

Skip recovery.img
[Nexus 5 General] DryEagle:
ok well i messed up doing that and accidentally flashed the 4.4 files by mistake (downloaded the wrong thing) but then that let me flash the 4.4.2 ota via twrp so i guess it ended well anyway.

now, just another question, can i use this same method to flash in different roms/kernels without losing apps/data or do they need full wipes to actually work? i know all of them say they need full wipes in their threads but is that actually required or just helpful to reduce bugs and such?
[Nexus 5 General] jd1639:
Most likely you'll have to do full wipes, especially if you're going from roms of different bases. You can try without the wipes, make a nandroid before you do, but it'll probably not boot or have a lot of force closures of apps. Another trick that sometimes works is to do a full wipe, flash the rom and let it boot. Then go back into recovery and restore just the data partition of the nandroid you made before flashing the new rom. Good luck and happy learning
[Nexus 5 General] esemar:
I'm in the same club- installed TWRP on my stock nexus 4.4 phone and now can't update.

I understand the steps in the posts above, but wanted to get a definite answer- if I flash the 4.4.2 images (except userdata) does that wipe my phone? I'd like to go to 4.4.2 without wiping my phone.

If I can't get around wiping my phone, is the "backup" option in twrp manager enough so that I can restore everything? I know that's probably a very basic question, but it's hard to find definitive answers about this stuff. Thanks.
[Nexus 5 General] efrant:
No (as has been stated multiple times).
[Nexus 5 General] esemar:
Thanks for your patience, I was able to successfully update my 4.4 nexus 5 to 4.4.2 by manually flashing the 4.4.2 system.img file, and then after I did that I was able to update via the 4.4.2 OTA update. Phone shows 4.4.2 and everything seems to be working with no data loss. Pretty cool.
[Nexus 5 General] jj14:
Hi, I'm on 4.4.2, stock ROM, rooted. Because I hadn't deleted any system apks, or modified any system files, I was able to put OTA zip on the phone and flash it using TWRP successfully. (I have a couple of root apps like adaway installed)

I've not installed Xposed framework on my N5 in the past, and would like to try the gravity box module and Xprivacy module.

Assuming I continue with my earlier precautions of not deleting any system apks or modifying build.prop or other system files, would I still be able to flash future OTA files (after I uninstall the Xposed framework and reboot)?

I was reading this thread and came across posts from a couple of folks who indicated that it didn't work for them (and a couple of folks who reported success), but I would like to believe that it didn't work for some folks because they perhaps forgot about some system file they modified or deleted.

Is my assumption right?
[Nexus 5 General] efrant:
Yes, your assumption is correct.
[Nexus 5 General] danarama:
Has this thread lost its sticky status on purpose?

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

Sent via tapatalk.

I do NOT reply to support queries over PM. Please keep support queries to the Q&A section, so that others may benefit
[Nexus 5 General] El Daddy:
I was told it would only be "sticky" during OTAs and dropped down after things calm down.
[Nexus 5 General] danarama:
Ok thanks.

The OTA question is asked before every root too, which happens ad-hoc.

Personally, I think it should be a permanent sticky

I asked the moderator team if we could have a sticky roll-up thread like we had in the s3 gt-i9300 forum. Pending freedback

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

Sent via tapatalk.

I do NOT reply to support queries over PM. Please keep support queries to the Q&A section, so that others may benefit
[Nexus 5 General] xPeriaGUY666:
Hello everyone!

I just wanted to know if in the event of a further update (4.4.3, 4.5?) will i be able to flash the update zip trough TWRP without losing any data ? My phone is on stock 4.4.2 unlocked BL, twrp and rooted (i haven't modified any system files appart from xposed wich i uninstalled completely)

Thanks in advance !
[Nexus 5 General] El Daddy:
Of course.

Sent from my Nexus 5
[Nexus 5 General] lpganesh:
Just one clarification needed?

If I have xposed framework installed, do I need to uninstall before this procedure?
[Nexus 5 General] El Daddy:
Yes, it needs to be uninstalled.
[Nexus 5 General] Elad92:
Hey,

I tried to search here but couldn't find a clear answer.

I want to root my device for xposed framework, and other stuff, but I still want OTA.

If I'll just root my device using CF-Root, will OTA updated will install without a problem? (I will just need to disable xposed, and re-root after the OTA installs).

Thanks!
[Nexus 5 General] Elad92:
Hey, does someone knows the answer to what I asked at the previous post?

Thanks
[Nexus 5 General] jd1639:
You are correct. As long as you don't modify any system files. You will lose root and will have to re-root after the ota
[Nexus 5 General] Elad92:
Thanks a lot for the quick answer!
[Nexus 5 General] Android The Greek:
Possible new update on the horizon http://www.gottabemobile.com/2014/01/07/android-4-4-2-kitkat-new-update-spotted-on-nexus-5/
[Nexus 5 General] El Daddy:
Thanks for the heads up, but this is most likely an internal build run by a Google employee. I'm sure there are many internal builds out there with different build numbers.

I don't believe an ota is imminent. Just another click bait article. :)
[Nexus 5 General] El Daddy:
Hey everyone! I'm working on cleaning up my guide and adding some FAQ's. Does anyone have any suggestions for me to help make the guide better and a bit more user friendly?

Thanks!
[Nexus 5 General] jd1639:
I thought it was well done. The only suggestion I have is to par down the quotes you had from Dan Merrill. That may be too many words for most users to read who only want to get their device updated.
[Nexus 5 General] Kimasu:
I have two Nexus 5s on the way, and being able to read up on how the OTAs will work with an unlocked bootloader and root has made me feel more comfortable about modifying them.

For Scenario #2 in the guide, could you clarify if installing an OTA via custom recovery will require re-installation of custom recovery or re-rooting?
[Nexus 5 General] MrCatalyst:
I'm a bit confused due to the scenarios and replies in the thread, which seem to contradict, imo.

I've got stock ROM, with stock kernel, unlocked bootloader, flashed CWM Recovery and rooted phone (via SuperSU v1.80, flashed in recovery). Will I still get OTA updates, or since I've flashed custom recovery, does that make it impossible, thus ending up in having to download the OTA.zip and flashing it myself?

I'm aware that flashing a custom kernel will make it impossible for me to get OTA update from Google, but assuming the above, will I?
[Nexus 5 General] abaaaabbbb63:
In this state, you can download the OTA zip, and flash it manually from recovery. If you use a custom kernel, you'll have to flash the stock one first.
[Nexus 5 General] MrCatalyst:
Got it. Thanks for the answer! :)
[Nexus 5 General] jacknicholson:
If I were to rename system files (eg. adding .bak to camera_click.ogg), would I be able to receive OTAs after restoring their original filenames? Kind of a silly question, but I'm just curious if even that counts as tampering.
[Nexus 5 General] jd1639:
That would count and, yes if you return then back to their file original names it'll work. Google goes through and checks all the system files names to make sure they're what it's expecting.
[Nexus 5 General] _jordan_:
Quick question.

Do 4.4.2 KOT49H and 4.4.1 KOT49E both use the same baseband, boot loader and kernel?

Thanks in advance.
[Nexus 5 General] El Daddy:
Yes.

Sent from my Nexus 5
[Nexus 5 General] _jordan_:
Thanks bro
[Nexus 5 General] jacknicholson:
Two app-specific questions if you can bear it. Anyone get their OTAs after installing either Avast Anti-Theft (root method) or StickMount? I've searched here and Googled to what appears to be conflicting results, so I'd definitely appreciate if anyone here has actual experience with either app. Thanks!
[Nexus 5 General] rapastor:
I don't know exactly, but StickMount changes some file in the system partition. It happened to me and I had to update using the same method as the custom kernel.

Scenario #3 in the first post

Enviado desde mi Nexus 5 mediante Tapatalk
[Nexus 5 General] jacknicholson:
Thanks! I've read about that (I believe debuggerd is the file), and actually meant to clarify whether or not backing debuggerd up beforehand would be sufficient. I've read in another thread here where users experienced other file mismatches and permission issues after restoring debuggerd, but I'm not sure if that was just due their setups and unrelated tweaking. That said, I'm really asking out of curiosity more than anything, as re-flashing system would obviously do the job.
[Nexus 5 General] BuzzFuzz:
Need help, i want stay (for now) stock as possible but need only root for some apps.

What i need to do? which scenario..?

Thanks
[Nexus 5 General] jd1639:
Follow this to root. If you're only rooted you'll get the ota's. Where it shows you how to install a custom recovery I would only boot into and then flash the supersu zip file. Instead of installing the recovery use

fastboot boot recovery.img where recovery.img is twrp or cwm.

http://xdaforums.com/showthread.php?p=47025283
[Nexus 5 General] BuzzFuzz:
god, “The system cannot find the path specified" when trying to run cmd command.
[Nexus 5 General] gee2012:
Look at item 5 and 6 to create the path in the link, http://www.redmondpie.com/how-to-set-up-android-adb-and-fastboot-on-windows-tutorial/.
[Nexus 5 General] BuzzFuzz:
same problem..
[Nexus 5 General] gee2012:
Did you install the android-sdk directly on the C drive and not in a folder. Did you add \android-sdk\plattform-tools in the path? If so this cannot miss, do you have usb debugging enabled on the phone?
[Nexus 5 General] BuzzFuzz:
ok its working now, but new problem :)

after command "fastboot flash recovery recovery.img" stuck at waiting for device!

usb deb is enabled
[Nexus 5 General] gee2012:
Your usb fastboot drivers are not installed correctly bro or try another usb port. Used the original usb cable?
[Nexus 5 General] BuzzFuzz:
yes org cable.. same with other ports :)
[Nexus 5 General] jd1639:
What do you get when you type fastboot devices?
[Nexus 5 General] BuzzFuzz:
fastboot is not recognized...
[Nexus 5 General] jd1639:
Your drivers aren't set up right. Google tool adb fastboot drivers xda and try those. Are you on win 8?
[Nexus 5 General] BuzzFuzz:
yes 8.1.. ok ill check for drivers again
[Nexus 5 General] jd1639:
On win 8 you'll have to allow unsigned drivers.
[Nexus 5 General] BuzzFuzz:
Now is working :) installed new drivers..

but FAILED: not supported in locked device..

means i need to unlock bootloader first?
[Nexus 5 General] jd1639:
If you unlock you'll lose everything on your phone
[Nexus 5 General] BuzzFuzz:
ye i know this but, after unlocking my OTA updates are gone?
[Nexus 5 General] jd1639:
The ota's will not be gone. You'll be on the same firmware as you're currently on.

Edit, make sure you follow all the steps for unlocking, including the fastboot reboot
[Nexus 5 General] BuzzFuzz:
Thanks again, can't give u more than 8x Thanks. cheers :D
[Nexus 5 General] jd1639:
Np, just here to help others, not for the thanks
[Nexus 5 General] El Daddy:
Holy cow! What happened in here?!

Sent from my Nexus 5
[Nexus 5 General] jd1639:
Hopefully another satisfied customer:)
[Nexus 5 General] thatguy97:
Every time I try to install the 4.4 - 4.4.2 zip, I get this
[Nexus 5 General] @wells:
not sure if it will work without stock recovery, also do you have xposed framework or modified any system files?
[Nexus 5 General] kraven001:
That app_process is modified by XPosed if I am not mistaken. Read in this thread how to revert system and kernel to the factory image version (download the factory image from google) and try to install afterwards - as far as I know it should work from the custom recovery.
[Nexus 5 General] jj14:
Doesn't uninstalling XPosed restore the original app_process file?

http://xdaforums.com/showpost.php?p=24364236&postcount=9
[Nexus 5 General] kraven001:
In theory it restores, but maybe it's not so or there is some bug. The safest easiest way (I think) is to restore the system partition from the factory image - that should assure a compliant file.
[Nexus 5 General] lulli1:
Did you uninstall some system apps?

Even if you restore them via titanium or something similar you only will get a deodexed system file.

So it's the best to do as recommended. Load a toolkit (I'm using WUGs) and flash the stock image or just the system.IMG part.
[Nexus 5 General] jj14:
I didn't have an issue (I installed XPosed for the first time after updating to 4.4.2) - I was just curious about the response from kraven001 to TIMMAH! - I thought I had done my research before installing XPosed, and was under the impression that I could simply uninstall XPosed and flash the next OTA update file without issues (I haven't made any other changes to system files/apps). I do realize that worst case scenario, I could flash the System.IMG file to clean things up.

Just wanted to see if there were known OTA update issues after installing XPosed :)

Edit: OTA update issues in my last statement is referring to flashing the OTA zip file. Taking OTA while rooted and with custom recovery can be a bad idea. Thanks TIMMAH!
[Nexus 5 General] @wells:
I was reffering to this http://teamw.in/officialota .. so I always flash stock recovery before OTAs. Peace!
[Nexus 5 General] jj14:
True. Sorry, I should have been clearer. I don't take the OTA directly. XDA members usually are kind enough to post the OTA zip file for other users, and I download that and flash it using TWRP. I do lose root, but it takes a few seconds to reflash SuperSU right after that and regain root. It has worked with both updates that we're received on the N5.

Thanks for clarifying that.
[Nexus 5 General] kraven001:
So no confusion, if system is untouched together with boot you should be able to flash OTA via your custom recovery as described in Op ;)
[Nexus 5 General] eustilou:
Can this method be used for upgrading from 4.4 to 4.4.2 directly? hence skipping the ota.zip flashing?

Can I just download the 4.4.2 factory image and flash system.img and boot.img?

I'm stock, rooted, with franco kernel, xposed framework and motox dalvik mod.

thanks
[Nexus 5 General] walpurgisnacht30:
Hi, my Nexus 5 is rooted with stock rom, custom recovery and Faux kernel, flashing a mod to display battery percentage, I also removed some apk(s) such as Google Play Book and News & Weather app. What if the OTA update is coming and I just download the factory image, flash the stock kernel then flash the newly factory image from TWRP? Is it possible?

Sent from my Nexus 5