yashsingh1/xdaforums huggingface dataset:
[Nexus 5 General] hoang51:
I find Scenario #1/Section A of manually sideloading the Android 4.4.1 severly lacking for those who are first timers like I am. It needs the following additional instructions, so OP, please update instructions (note that numbers below is a listing, not to match up with the instruction steps):

1. Download the USB drivers from Google here: http://developer.android.com/sdk/win-usb.html

2. Install the USB drivers first prior to placing the Nexus 5 into recovery mode, e.g., plug in a USB cable to Nexus 5, Windows detect an unknown USB device, have the USB drivers installed. You'll probably have to install the USB driver more than once when the Nexus 5 is connect to the USB when you're going through the many stages of getting to the adb sideloading prompt on the Nexus 5. If for any reason adb from the command prompt reports device is not found and Windows still think USB drivers are not installed, install this universal adb drivers here: https://plus.google.com/103583939320326217147/posts/BQ5iYJEaaEH Be sure to reboot the computer after installing the USB drivers. This step should resolve the "device not found" when running adb in command prompt. Also, be sure to enable USB debugging mode under Developer options.

3. To put a stock Nexus 5 into recovery mode manually (if you can't do it by "adb reboot recovery"), power down the phone. Once the phone is powered down, first hold down the volume down button and then hold down the power button. Those two buttons should be held down until the Android character is seen laying face down. A menu will pop up and defaults to "Start". Using the volume key to navigate to recovery mode (press volume down key twice). Press the power button to select recovery mode (note: recovery mode should be shown in the red box that points to power button).

4. A miniature version of the Android character is now laying down with a red exclamation point with a text "No command" underneath it. Press the volume up and the power buttons together (well, probably hold the power button down for a second and then press the volume up button, but don't hold down the power button for too long, it'll reboot the device, and press the volume up button quick while holding the power button down) to get to a secondary menu.
[Nexus 5 General] iJimaniac:
I hate to bump, but does anyone know the answer to this? I'm uncertain because I'm halfway between scenario 1 and 2 in the OP. Thanks
[Nexus 5 General] abaaaabbbb63:
OTA's fron google come in small batches, so you just have to wait a bit more. If you don't want to wait, yeah, you can sideload.
[Nexus 5 General] wideasleep1:
You have both choices. Since you're an OTA virgin..I'd just wait for it. With a clean /system and stock recovery you're golden. Edit: you'll lose root but its good for newbs to get practice! :)
[Nexus 5 General] iJimaniac:
Thanks a lot! It's weird for me to be a noob again: I'm what you might call a prominent figure in the galaxy player 4.0 forums and made my own ROM, but time to start fresh! XD
[Nexus 5 General] ohad123454:
Someone can please tell me if i was right about the cmd commands ?

---------- Post added at 02:21 PM ---------- Previous post was at 02:05 PM ----------

PLZ READ THE CONVER BETWEEN ME AND JD1639 and answer me if i was correct about that one :

"Ok so change the boot and the system and then continue as he say and write the following commands in the next order?

I mean it should look like that :

fasboot flash system system.img

fastboot flash boot boot.img

It supposed to like like that in the cmd?"

thank you [:
[Nexus 5 General] jd1639:
Yes, in a cmd window. Device in bootloader mode and connected to your pc
[Nexus 5 General] SLBoy:
Hi, I have custom Kernel, rooted and custom recovery, can't I just use the survival mode from supersu to update to 4.4.1?
[Nexus 5 General] El Daddy:
No. You are running a custom kernel.
[Nexus 5 General] jd1639:
You'll have to take care of the custom kernel to get the ota. You can flash the stock system and boot images for that. You'll lose root when you update, but it's so easy just to flash supersu that I wouldn't worry about survival mode.
[Nexus 5 General] SLBoy:
Ok so I can just flash the stock kernel and then I'm good to go? Section B right?
[Nexus 5 General] El Daddy:
You may have to flash the system.img as well because some custom kernels alter /system files.
[Nexus 5 General] SLBoy:
Oh ok so section C right?
[Nexus 5 General] El Daddy:
Yes. Check out the second post too. That might be relevant to your setup.
[Nexus 5 General] shogun656:
If I flash a custom mms, would that make me fall in section 3 or will I still stay in section 2 for getting the ota updates
[Nexus 5 General] abaaaabbbb63:
The stock ROM has to be completely unmodified. The system partition has to be untouched. So just install the mms app as a user app.
[Nexus 5 General] El Daddy:
You can actually add stuff to /system. You just cannot modify or remove files that the OTA patches.
[Nexus 5 General] abaaaabbbb63:
Well, yeah. I meant not replacing the stock one :D
[Nexus 5 General] ohad123454:
And the commands one below the otger on write one then enter and then the other one
[Nexus 5 General] SurferLTU:
Hi,

what was your previuos system (5.1?) configuration.... custom rom and/or custom kernel? Were all apps and apps data saved?
[Nexus 5 General] mongoosepanda:
Awesome did the same thing as you and everything worked perfectly! Didn't lose any data at all
[Nexus 5 General] SurferLTU:
Strange I get bootloop on Google's logo... may be because I have custom kernel?
[Nexus 5 General] jd1639:
Why are you guys using tool kits? If you learned to use fastboot you could flash just the images you need to get what you want to work to work.
[Nexus 5 General] funnel71:
Just flashed the 5.1.1 ota update. Twrp 2.8.6.1 and SuperSU 2.46 are working just fine. This seemed to be a rather small update.
[Nexus 5 General] thesebastian:
It is recommended to wipe all your phone (original flash all .bat).

I messed a few things dirty updating from KitKat to L preview a year ago.

Sent from my Nexus 5
[Nexus 5 General] dokie80:
and where is the 5.1.1 ota update file? did you flash it using twrp?
[Nexus 5 General] SurferLTU:
I agree with you... We all are a bit lazy...

May be you could give a link to any good tutorial video how to use fastboot? :o
[Nexus 5 General] ironia.:
http://xdaforums.com/google-nexus-5/general/resource-guides-info-threads-linked-read-t2784527

:good:
[Nexus 5 General] dbldown768:
Can I update over OTA if I have an unlocked bootloader and CWM installed on a stock ROM with not root?
[Nexus 5 General] funnel71:
I side loaded the update. Zip file that it downloaded. Instead of letting it be installed on its own, I copied it out of cache and sideloaded it with stock recovery.
[Nexus 5 General] ironia.:
everything must be stock, only stock recovery , NO TWRP; NO CWM
[Nexus 5 General] funnel71:
OTA File For 5.1.1

https://dl.dropboxusercontent.com/u/33560221/OTA_update_from_lmy47d_to_lmy48b.zip

Some people have asked for this. I just grabbed it from cache without installing it, because I wasn't stock. I've posted a more lengthy how-to on how I installed it, so search for other posts, but I'll give the small version here:

> Downloaded factory image for lmy47d (5.1 - what I was currently running) and extracted system.img and recovery.img

> Used fastboot to: fastboot flash system system.img and fastboot flash recovery recovery.img (this returns things to stock)

> Accessed stock recovery (through the bootloader, then when android is laying down, hold power then vol up to get the menu)

> Selected sideload adb option, and on the PC entered command: adb sideload update.zip (I renamed the file in the link to update.zip first)

> Update complete, booted the phone, let it reload cache (update apps), once started, booted back into the bootloader

> fastboot flash recovery <my_twrp_recovery.2.8.6.1.img>

> Went into twrp recovery, and installed supersu 2.46.zip

This was identical to all other v5 OTA updates I've done, nothing special about this one. Hope this helps someone. Note the OTA filename I put up there, it's specifically for lmy47d to lmy48b. If you're not running 47d, don't use it. Not sure if it makes much difference, but this was for an unlocked, google play nexus 5 - U.S. phone
[Nexus 5 General] dbldown768:
So can I just flash stock boot loader? I'm removed root because of an app I needed for work. I'd like to to keep the data on my phone and cache.
[Nexus 5 General] Fata7:
Hello,

Today I'm on KK 4.4.4 with ParanoidAndroid and my goal is to go 5.1 with CyanogenMod or ParanaoidAndroid with xposed module.

Do you know what should I Do ?

How can I flash a new recovery ? I did this 1 year ago for KK and I don't remember at all and I don't think that the 1st thread answer these questions.

Thank you.
[Nexus 5 General] funnel71:
Sorry this area is for OTA discussion not custom ROMs. There are other places for that
[Nexus 5 General] Wh1t3Rose:
**OP Updated!**

Let me know if I missed anything. Thanks everyone!
[Nexus 5 General] ironia.:
http://xdaforums.com/showpost.php?p=59337175&postcount=1
[Nexus 5 General] funnel71:
The file is small so I will leave it there indefinitely. Thanks for updating the post
[Nexus 5 General] SKYLINESSUCK:
I'm trying to update from LMY47It o 5.1.1. I see the .zip in the OP is from LMY47D. Not compatible, right? I'm stock, rooted, with a custom recovery fwiw. Thinking about flashing stock recovery then letting the OTA do it's thang if I have to.
[Nexus 5 General] blackjim:
Got the notification for updating to 5.1.1 yesterday.

Updated.

Since then, my phone is stuck forever in the boot animation ( http://xdaforums.com/google-nexus-5/help/updating-to-5-1-1-phone-stuck-boot-t3125139 ).

I guess it was a random error or something...
[Nexus 5 General] Wh1t3Rose:
I responded in your thread. And please do not cross post. Thank you friend ;)
[Nexus 5 General] blackjim:
Sorry about that.

I just wrote it in case someone got the same issue from the 5.1.1 OTA update.
[Nexus 5 General] funnel71:
I would assume that it is not compatible.
[Nexus 5 General] zebzyhull:
Guys i need help, i am a noob and this is confusing me.

Am on stock 4.4.4 rooted,xposed framework, no stock apps removed, philz CWM recovery

I want to upgrade to 5.1.1 and keep root,all my apps,data

How do i go about doing this? Thanks for ang help in advance
[Nexus 5 General] zebzyhull:
Could someone help me?
[Nexus 5 General] klappa:
Is it necessary to flash the bootloader and radios after you have flashed or sideloaded the factory image?
[Nexus 5 General] jd1639:
If you sideloaded the ota, then no. Btw, sideloading an ota is not the same as flashing a factory image. The factory image has complete files. The ota only updates the parts of the files that have changed.
[Nexus 5 General] klappa:
Oh i see! I downloaded the Image file from the (https://developers.google.com/android/nexus/images) and sideloaded it. Dunno if they are OTA or complete files.
[Nexus 5 General] jd1639:
Ok, you didn't sideload it. You flashed it with fastboot. Sideloading you do in the stock recovery and it's a zip file signed be nexus. You used the complete files.
[Nexus 5 General] Wh1t3Rose:
You want to follow scenario 3 in my OP. Let me know if you have any questions but the steps are there for you to follow ;)
[Nexus 5 General] topaza:
Hey Guys,

I am still on 4.4.4 but planing to update to 5.1 soon.

My Nexus:

- Stock 4.4.4

- Unlooked

- Rooted (used chainfire auto-root)

- Stock Boot Loader

- OTA Update to 5.0.1. is being offered

Can I just upgrade OTA to 5.0.1, then to 5.1 and re-root with CF auto-root? Does this OTA update work on rooted stock devices?

If I update directly to 5.1 via side load, will I lose any data?
[Nexus 5 General] jd1639:
You'll have to unroot first. Also, if you made any system changes while rooted the ota will not work. Try the full unroot in superSU app. This should help too,

http://xdaforums.com/google-nexus-5/general/info-nexus-5-ota-help-desk-t2523217
[Nexus 5 General] topaza:
If the update fails for any reason, does this just mean the update would not start at all? Or will it fail during the update process?
[Nexus 5 General] jd1639:
It usually fails during the process.
[Nexus 5 General] funnel71:
Usually if it fails, it is not offered again. That's when you come to this thread and download the appropriate OTA to sideload. I would recommend extracting the system image from Google's image and flashing that the system first. That would revert any changes you may have done including root. Then you can sideload the OTA
[Nexus 5 General] topaza:
Wow I am so ****ing annoyed right now....

Update from 4.4.4 to 5.0.1 worked fine but when updating to 5.1 I forgot to remove the iptables first. So it failed and was not offered again. (why the hell is it just not offered again when it fails once???)

Ok, so I tried to sideload via adb but it requires adb 1.0.32 or newer for sideloading and there is only adb 1.0.31 available on ubuntu... :eek:

So I tried the windows tools provided in the first post on a windows 8.1 notebook. It recognizes the nexus when it is running but not when it is in sideload (recovery) mode.

I wasted so much time on this **** now.... thanks google for just offering your fcking ota updates for just one time and then never again...

Any idea how to get the update file to my nexus?

---------- Post added at 06:37 PM ---------- Previous post was at 05:38 PM ----------

omg now I managed to get adb 1.0.32 running on ubuntu and aufter 52% file transfer it stops and nexus tells me:

[...] Verifying current system...
"/system/bin/install-recovery.sh" has unexpected contens.
E:Error in /sideload/package.zip
(Status 7)

Installation abortetd.

Downloaded the file twice with same results...
[Nexus 5 General] Srandista:
You wasted so much time not because of a Google, but because you can't read...

From OP:

In order for the OTA to apply successfully without intervention; you must be completely stock

No modifications to existing /system files of ANY kind.

Note: Literally any modification will break the OTA. Xposed, DPI, build.prop, volume mod, etc. ANYTHING!

Seriously, I'm not joking guys.

You have obviously rooted your phone, and since root process change some files in system partition, you have to now install new version of Android not through OTA, but with factory image...
[Nexus 5 General] Wh1t3Rose:
Please unroot, and flash Boot, System, and Cache images of your current OS version. Then try updating again. If you don't understand the steps are listed in the OP.
[Nexus 5 General] R4V3N-2010:
(Q) is it possible to make a nandoid Backup without root? Or flash twrp without unlock and root my phone. Btw phone is Nexus 5.

Thanks in advance.
[Nexus 5 General] dadenet:
It's impossible.

Dadenet Nexus 5
[Nexus 5 General] Sly_67:
You must unlock bootloader to change recovery. Stock to twrp, than you can make nandroid backup. Root is optional [emoji4]

Sent from my Nexus 5 CAF
[Nexus 5 General] R4V3N-2010:
OK but how can I make a full backup.

Or what will be backup with adb?

---------- Post added at 11:58 ---------- Previous post was at 11:55 ----------

But if I unlock my bootloader so i will lose my data. I'm looking for a way to keep my data.
[Nexus 5 General] efrant:
It's possible to back up your apps and app data using ADB. See this thread: http://xdaforums.com/showthread.php?t=1420351

It's a little old, but it should explain everything.

As well, you can also use Helium: https://play.google.com/store/apps/details?id=com.koushikdutta.backup
[Nexus 5 General] R4V3N-2010:
Thanks but I have managed it.
[Nexus 5 General] FilipeMoritz:
Im with 5.0.1 LRX22C rooted with TWRP, if I reflash the stock recovery and unroot my cellphone by the SuperSu app, can I apply the OTA update?

Sorry for my bad english
[Nexus 5 General] Srandista:
Maybe, but there is still a chance, that some file will be tempered, so you will maybe need to use Factory image anyway (I also think, that it is a faster way, then playing with OTAs).
[Nexus 5 General] funnel71:
I would recommend you download the 5.0.1 factory image and then extract system.img and recovery.img from it. Flash them both using fastboot and that's pretty much a guarantee that you should be returned to stock ready for an OTA update.
[Nexus 5 General] darkeingel:
I did receive the OTA for Android M preview 2 from preview 1.

How can I catch the OTA file and post it for everyone?
[Nexus 5 General] Gimbergsson:
Android M Preview 2 OTA .zip sideload

Here is a link to the Android M Preview 2 OTA for Nexus 5

android.googleapis.com/packages/ota/google_hammerhead/68f7e8ac9439071ba8a987cb956b977d27653a54.signed-hammerhead-MPZ79M-from-MPZ44Q.68f7e8ac.zip

Just use

adb sideload <filename>

:cowboy:

I flashed it and can't get WiFi to work :confused:
[Nexus 5 General] funnel71:
If you are rooted, before installing the OTA, you should be able to find the download in your cache folder. Use root explorer or a similar File Explorer program to copy it elsewhere
[Nexus 5 General] chetandhawan:
I need to upgrade my rooted (with TWRP) Nexus 5 to Android 5.1 from Android 5.0.1. Pardon me for being a noob, but I want to be really sure of the process. The easiest way i understand is to unroot the phone, install the OTA and then reroot it.

1. Is there an easier alternative approach?

2. I am correct in understanding that i will NOT lose my data while rooting/unrooting?

3. Will i need to reinstall TWRP in the process?

4. Can i use a toolkit - Wugfresh for unrooting/rooting?

Thank you!

Regards
[Nexus 5 General] AlfaGTV:
Sorry wrong thread
[Nexus 5 General] Evo_Shift:
Where is the stage fright ota being stored? I got the notification but My cache folder is empty (other than 3 folders). I'm rooted and don't want to mess with installing it right now but want the notification to go away.

Edit- I just tried installing it and it failed and now the notification is gone.
[Nexus 5 General] VectorCroc:
unROOT :

1) Install adb + drivers (if you"re on Windows 10, adb may not working atm)

2) Download the image factory of your current version (example : 5.1.1. LMY48B https://dl.google.com/dl/android/aosp/hammerhead-lmy48b-factory-596bb9c1.tgz )

3) Extract boot.img, system.img & recovery.img

4) In a command prompt from the adb directory use these commands :

fastboot flash boot boot.img
fastboot flash system system.img
fastboot flash recovery recovery.img

If the OTA is knocking at your door :

1) Just apply it and jump to the last part

If you want to apply the update ASAP :

(Get the latest OTA there : http://xdaforums.com/google-nexus-5/general/ref-nexus-5-stock-ota-urls-t2475327)

1) Download the OTA.zip on your PC, rename the file update.zip, then place file in the same directory as adb.

2) Make sure you have USB Debugging checking in the Developer Options, then connect your phone.

3) Open the command prompt from the directory above on your PC and type the command: 'adb reboot recovery'

4) When in recovery, you’ll see an android laying down. Press and hold POWER, and then press volume up and release. The menu will appear. Select “apply update from adb

5) Using the command prompt type: 'adb sideload update.zip' The file will load and the update will begin. (if you"re on Windows 10, adb may not working atm)

6) When completed, select reboot.

Last part : back to the ROOT

Go to

http://xdaforums.com/google-nexus-5/orig-development/nexus-5-cf-auto-root-t2507211

and follow instruction to root again.

Voilà ! Your phone is up to date, rooted & you didn't loose any personal data. :)
[Nexus 5 General] le_prof:
I am presently running Android 5.1.1. I just received a 10.1 MB Android System Update notification. However, I don't remember where to find the file so I can get its name. I checked for /cache, but there's nothing there. Any clues?
[Nexus 5 General] ramqashou:
Hi i got 5.1.1 lmy48i by ota i tried to install it but it says error chache status 7 .map

The i tried it manually and it failed too but says Error in the package.zip tried hard reset and wiping catche but it didnt change iam completely stock and never rooted what i can do ? And is this a problem in the phone or the ota file ?? Thanks
[Nexus 5 General] funnel71:
Mine ended up saving it to /data/data/... something. I had to search for it. It wasn't located in cache like I expected
[Nexus 5 General] efrant:
Yeah, it seems to now get downloaded to /data/data/com.google.android.gms/app_download rather than /cache
[Nexus 5 General] funnel71:
For anyone that wants it, here's the latest OTA. This is from 48B to 48i only. I successfully sideloaded this on a U.S. Nexus 5

https://dl.dropboxusercontent.com/u/33560221/OTA_update_from_lmy48b_to_lmy48i.zip
[Nexus 5 General] dokie80:
so i just flash update.zip found there with twrp?
[Nexus 5 General] ramqashou:
What can i do please help me i dont want this small update but iam afraid to say error again in the M update
[Nexus 5 General] dokie80:
got error

is this from build.prop? I check with "device control" app, in build.prop is already 5.1.1 LMY48B

screenshot attached..

what should i do?

thanks
[Nexus 5 General] Betacart:
Hi guys,

when try to sideload LMY48I for 5.1.1, I get error system/bin/debuggerd has unexpected contents. I have stock ROM, no root. Can somebody provide untouched file and guide, what to do with it?

Thank you
[Nexus 5 General] gialakias:
It seems that you have a custom recovery. You have to be completely stock in every part of the os. So you have to follow the instructions in the OP.

Sent from my Nexus 5
[Nexus 5 General] dokie80:
yes. i m using twrp.

okay, I thought "OTA_update_from_lmy48b_to_lmy48i.zip" can be flashed using twrp :D

thanks
[Nexus 5 General] funnel71:
No OTAs can be flashed with TWRP on the Nexus. Never.

---------- Post added at 06:02 AM ---------- Previous post was at 05:44 AM ----------

I said this was for 48 B to 48 I. You are running a lower version at least according to the error
[Nexus 5 General] dokie80:
I am on 48B. See the screenshot. Last update to 48B i use wugfresh's NRT to do it
[Nexus 5 General] efrant:
If you haven't modified any system files, yes, you can flash it with TWRP, however, you need to make one change to the file first, in order to make it flashable with TWRP. Otherwise, you need to flash using the stock recovery.

To flash in TWRP, you need to extract ome file, delete a line in that file, and replace the file. Then it will flash in TWRP.

1) Extract this file: /META-INF/com/google/android/updater-script

2) Delete this line:

getprop("ro.build.fingerprint") == "google/hammerhead/hammerhead:5.1.1/LMY48B/1863243:user/release-keys" ||
getprop("ro.build.fingerprint") == "google/hammerhead/hammerhead:5.1.1/LMY48I/2074855:user/release-keys" ||
abort("Package expects build fingerprint of google/hammerhead/hammerhead:5.1.1/LMY48B/1863243:user/release-keys or google/hammerhead/hammerhead:5.1.1/LMY48I/2074855:user/release-keys; this device has " + getprop("ro.build.fingerprint") + ".");

3) Replace the file and flash with TWRP.

.

.

.

.

Note, that if you have root, you would also have to delete this line in order for the update to flash:

apply_patch_check("/system/bin/install-recovery.sh", "4783e48c2b317d4c851d68bec2a6fa1979dfa217", "2c81f33a9f7a4de44a3c0a57d26fd476468f62b3") || abort("\"/system/bin/install-recovery.sh\" has unexpected contents.");
[Nexus 5 General] walt disney:
Hi,

I have Nexus 5 which I recently rooted using Kingoapp. Now when I receive this notification about this latest update (which patches stagefright) and continue to install it, in the process of installation message error appears with little droid underneath it. Then I went to the superSu app and did full unroot though the same issue continues, any advice on this ?

thx :D
[Nexus 5 General] gialakias:
You can check efrant's answer, or read the OP and flash system.img that is inside the factory image of your current version and then it will apply.

Sent from my Nexus 5
[Nexus 5 General] moriel5:
The new Stagefright fix OTA seems to have reintroduced the memory leak on my friend's Nexus 5.

He installed it the ordinary way (from notification).
[Nexus 5 General] gialakias:
Now that you mentioned and I checked, yes! All my apps are restarting! An hour before it started some lagging and now I see this! Come oooooooon!

Sent from my Nexus 5