yashsingh1/xdaforums huggingface dataset:
[Nexus 4 General] efix_LT:
i have issues too, current condition: 5.0, rooted, twrp, franco kernel

reinstalled drivers, same here.

Method 2:

WugFresh toolkit> Sideload mode > no command in bootloader
[Nexus 4 General] avinashjirapure:
I am trying to update OTA from sideload method with stock recovery. I am getting error "/system/bin/install-recovery.sh" has unexpected contents, Error (Status 7)

Reading around found, Chain-fire root makes changes to system & same is causing error. So I have unrooted my Nexus-4. But still error continues. Any suggestion how to proceed.
[Nexus 4 General] carlosmg2:
will flashing 5.0.1 ota work with a TWRP update?

i'm stock rom + rooted + twrp, and have the same error when flashing on twrp recovery.
[Nexus 4 General] RASTAVIPER:
Is it really difficult for you people to read a few posts before you ask something?

Your question has been answered like 5 posts before.
[Nexus 4 General] signs23:
no it will not work.....

Gesendet von meinem Nexus 7 mit Tapatalk
[Nexus 4 General] RASTAVIPER:
You can always use Wugfresh toolkit and change it with a few clicks.
[Nexus 4 General] nickchung:
:) How to update from 5.0 to 5.0.1?

Can i flash via TWRP? or Do I have to update via adb sideload like 4.4.4 to 5.0? :confused:

Thanks everyone!
[Nexus 4 General] gialakias:
There is a dedicated thread here http://xdaforums.com/showthread.php?t=2145848
[Nexus 4 General] carlosmg2:
where is that answer? i've read the 344 pages. i've read that we have to flash via stock recovery, but I wondered if waiting for a twrp update will fix this issue, or if it's impossible because of lollipop changes.

thanks
[Nexus 4 General] efix_LT:
sideload OTA error:

should i replace this file in system from 5.0 factory image?

--

upd: found answer in Q&A Section (#1 post)
[Nexus 4 General] RASTAVIPER:
Your first question as also your new question are both answered by this post http://xdaforums.com/showthread.php?p=57413116.

Better to read carefully a few previous posts then reading all 344 pages as you claim

Unleashed by my Nexus 4
[Nexus 4 General] nowster:
Fix is to restore the 5.0 version of /system/bin/install-recovery.sh which has the md5sum of

b6fa98010f291558894347a5d21af142 install-recovery.sh

AND you must also flash the 5.0 boot.img.

NB. Your system will then be un-rooted.

UPDATE: Not good news, I'm afraid. I'm stuck at the boot animation...

I/ServiceManager( 169): service 'media.audio_flinger' died

I/Netd (10250): Netd 1.0 starting

I/mediaserver(10251): ServiceManager: 0xb7c7c7d0

I/AudioFlinger(10251): Using default 3000 mSec as standby time.

I/ServiceManager(10251): Waiting for service batterystats...

D/AndroidRuntime(10252):

D/AndroidRuntime(10252): >>>>>> AndroidRuntime START com.android.internal.os.ZygoteInit <<<<<<

D/AndroidRuntime(10252): CheckJNI is OFF

EDIT2: Sorry folks! Tried flashing all but the userdata partition... got stuck in boot animation with no active process running. I had to do a complete factory install to have a working phone. YMMV.
[Nexus 4 General] abel.jacob:
Yeah ..i have the same issue :(
[Nexus 4 General] gialakias:
Try to fastboot flash the system image of 5.0 and then apply the ota if you were only rooted.
[Nexus 4 General] deepayanneogi:
Ok, I tried to adb sideload through stock recovery, problem is in the last step( after selecting adb sideload from stock recovery) and entering the command from terminal it says device not found , any idea what to do?

PS: adb properly works in other areas,

I am using a MAC , so any mac user?
[Nexus 4 General] nickchung:
let's try extract img files from occam-lrx21t-factory-51cee750.tgz then restore original system and boot.

fastboot flash system system.img

fastboot flash boot boot.img

fastboot format cache

fastboot reboot

after that we can adb sideload ota update without error. :good:
[Nexus 4 General] acpesreplays:
Does App Ops prevents OTA or it doesnt change any system file at all? Do I have to restore before flash this zip?

Im Using 5.0 stock, unlocked and rooted, no modifications as long as I remember, except by the use of App Ops with root permission to save battery.

Thanks!
[Nexus 4 General] bulletmark:
Make sure USB debugging is enabled under developer settings, then plug your phone in to your Mac, then type "adb devices". Do you see it?

"adb version" returns 1.0.32 for me. Make sure you have a recent version, probably best to get latest.
[Nexus 4 General] bobyn:
Did anyone have tried this, is it work?

Works like charm, confirmed.
[Nexus 4 General] Mave^:
Yes, i just successfully flashed the 5.0.1 OTA update after following the steps. Although i added 'fastboot flash recovery recovery.img' to it because the OTA won't flash with a custom recovery installed. Ofcourse root has gone but that's no big deal to fix again.

[IMG="Lollipop 5.0.1 OTA"]http://i.imgur.com/mVunbMM.png[/IMG]
[Nexus 4 General] ..::Viny::..:
When you are in sideload mode, see if your system is using adb composite as driver in that mode.

Else install that driver and it would like charm

---------- Post added at 06:54 PM ---------- Previous post was at 06:50 PM ----------

patches work only if the files to be patched are not modified.

We generally modify some or other files when we root or do custom changes.

restoring to stock works great :)

And note those who have changed radio files will need to bring it back to stock for the update.
[Nexus 4 General] lldaedalusll:
Hi,

I have my nexus 4 rooted and unlocked with CWM 6.0.4.7 and still running android 4.4.4. I want to update to lollipop without wiping if possible. But when I run the OTA which popped up on my nexus it failed with a fingerprint error (expecting 4.4.4, found 4.4.2, original text not at hand). The same happens when I push the OTA manually via adb or using NexusRootToolkit.

What can I do to fix that?

Thx.

Robert
[Nexus 4 General] jd1639:
There are changes to your system, you have to be 100% stock 4.4.4 for the ota to work. Flash the system, boot and recovery images in fastboot from 4.4.4. If you've changed your radio flash that too. Then do the ota
[Nexus 4 General] lldaedalusll:
And flashing those images will not wipe my apps and config?

Robert
[Nexus 4 General] jd1639:
It won't wipe your apps. If you have a custom kernel it will remove that. You'll also have to re-root if you're rooted after the ota.
[Nexus 4 General] Mave^:
See this post: http://xdaforums.com/showpost.php?p=57425131&postcount=3446

I had the same problem yesterday with 5.0 to 5.0.1 OTA. The only difference with that post is that you have to flash the stock recovery (recovery.img) too, else Lollipop won't flash. and ofcourse use the 4.4.4 image to get back to stock.

https://dl.google.com/dl/android/aosp/occam-ktu84p-factory-b6ac3ad6.tgz
[Nexus 4 General] lldaedalusll:
Hi,

thanks mave and jd1639, it worked. Running 5.0.1 now without wiping anything.

Robert
[Nexus 4 General] ksfno1:
I got two questions :confused:

#1: Where must we extract img files from occam-lrx21t-factory-51cee750.tgz (factory image of Android 5.0.0)? (I've extracted them to installation folder of Android SDK tools)

#2: I tried what you did but the process fails in my case :(
[Nexus 4 General] pincher65:
phone has to be connected in the mode fastboot
[Nexus 4 General] ksfno1:
How can I check it is connected properly?
[Nexus 4 General] pincher65:
http://xdaforums.com/showpost.php?p=34552123&postcount=1
[Nexus 4 General] ksfno1:
I know these processes. My device is fully rooted and unlocked. I had asked for a command to enable fastboot mode ;)
[Nexus 4 General] jd1639:
There is no command to enable fastboot mode. You have to be booted into the bootloader and you device connected to the pc to run fastboot commands
[Nexus 4 General] pincher65:
"adb reboot bootloader" or hold the button power when phone starts rebooting (the screen will be switched off) press and hold the button volum minus
[Nexus 4 General] sddale2001:
I had the prompt on my Nexus 4 that there was an update to download but is disappeared without downloading. I must have waited too long. Is there a way to get that prompt back? I'm still on 4.4.4 completely stock.
[Nexus 4 General] sordna:
Try going to Settings, About, System update and check for updates. If it does not offer an update don't worry, the prompt will come back in a few days.

In my case I must say I disabled the prompt on purpose because I want to stay on kitkat.
[Nexus 4 General] chennaiahgopal:
Anybody can provide lollipop 5.01 flashable zip
[Nexus 4 General] sddale2001:
I checked for updates and it said system was up to date. Hope the prompt comes back soon. Thanks
[Nexus 4 General] RASTAVIPER:
Why not to sideload it?

It's the fastest method.
[Nexus 4 General] g0lg0th:
device not found

Hi all,

I'm trying to sideload 5.0.1 and got the "device not found" error:

I checked my adb version (1.0.32) and uninstalled/reinstalled my usb driver (windows 8.1 on my computer) from \sdk\extras\google\usb_driver directory...

Any ideas?
[Nexus 4 General] chennaiahgopal:
With factory image's its showing error
[Nexus 4 General] jd1639:
Need a little more info. What are you flashing and what error are you getting?
[Nexus 4 General] chennaiahgopal:
I download lollipop 5.01 factory images which is in tar format. How to flash it
[Nexus 4 General] jd1639:
Extract it using 7-zip or winrar. Easiest way is to use the flash-all.bat you'll find in there. It will wipe your device so backup off your device first. You can just double click on the flash-all
[Nexus 4 General] chennaiahgopal:
With winrar it was not happenings. OK I will try 7-zip
[Nexus 4 General] EddyOS:
If you're still having issues, read this thread and adapt it to the new image files:

http://xdaforums.com/nexus-4/general/how-to-how-to-flash-factory-image-t2010312
[Nexus 4 General] jekkel:
5.0 rooted

I just received the OTA of 5.0.1. Currently on stock 5.0 but rooted. Nothing else. Will root cause the OTA fail?

And if it fails, will my phone be bricked or I can boot to 5.0?
[Nexus 4 General] jd1639:
The ota will fail to install. You'll be able to boot back into 5.0
[Nexus 4 General] Atish91:
Any solution?
[Nexus 4 General] jekkel:
Thanks for the fast response and the info. Just one more question: will I receive the OTA again if it fails once?
[Nexus 4 General] jd1639:
You should receive it again. If you're just rooted, no custom recovery or modifications to system files unroot using the full unroot option in supersu, settings. Then flash the system.img from 5.0 with fastboot. Then try the ota
[Nexus 4 General] jekkel:
Nope :( I've flashed system.img, received OTA again, but failed again. Maybe flashing boot.img and recovery.img too helps?

Or is there a way to flash the complete 5.0.1 factory image without losing data?
[Nexus 4 General] jd1639:
I flashed the radio, system and boot from 5.0.1 and it worked. Those were the only things that seemed to change from 5.0. I had twrp recovery on and it did Bork the recovery. I had to re-flash twrp and root again. But no data loss
[Nexus 4 General] RASTAVIPER:
Don't bother yourself worrying for official update from 5.0

If you are truly stock, just sideload the 5.0.1 Ota zip file.

No data loss.

Easiest way through Wugfresh toolkit , if you don't prefer the fastboot commands.
[Nexus 4 General] _jay_uk_:
I had to flashed all three with a fast boot reload in between each one. The OTA then worked. No data loss. First time I have to flash like this to get OTA to work. Lollipop must be much stricter checks before installing.
[Nexus 4 General] jekkel:
Will try like that. Thanks!

---------- Post added at 01:30 PM ---------- Previous post was at 01:29 PM ----------

Also tried that method, but that also failed. Will try to flash image, boot and recovery first and then try again.
[Nexus 4 General] RASTAVIPER:
Then my friend you are not totally stock.

To be sure, you need to flash 5.0 recovery+ boot+ system images.

Unleashed by my Nexus 4
[Nexus 4 General] jekkel:
Originally flashed 5.0 factory images with WUG without custom recovery and rooted it. Now I have disabled permanently SuperSU and re-flased system.img. Isn't it stock? Or when rooting, not only system partition modified?
[Nexus 4 General] jekkel:
Anyway. Flashed all three from 5.0 and then OTA was successful. Just waiting for booting in for 20 mins now. I guess it is because of ART.
[Nexus 4 General] GoPadge:
Ota issues on rooted 4.4.4

I have a Nexus 4 currently running 4.4.4 that was updated via OTA. Now when I try to update to 5.0.0 I get an error in CMW that my phone is on 4.4.2. I'm limited to OTA, as I don't have a PC to install ADB. My phone is rooted so I can run xposed, but otherwise I prefer to keep everything else stock.
[Nexus 4 General] gialakias:
You need the stock recovery and to remove xposed for the ota to succeed.

Sent from my Nexus 5
[Nexus 4 General] nexuses:
Actually I had flashed the stock recovery over the TWRP , I don't have exposed, only rooted stock 5.0 , but anyway I can't upgrade to 5.0.1 :( even I tried to sideload the update.zip (16.7 MB) but it was failed ..
[Nexus 4 General] jd1639:
Flash the system and boot images from 5.0, after you've unrooted the phone, with fastboot. Then sideload the ota in the stock recovery.
[Nexus 4 General] nexuses:
What will happen to my apps and settings (my setup's for the phone I mean) ? Is the new 5.0.1 OS will remember them?

Thanks
[Nexus 4 General] gialakias:
Yes, everything will be untouched.

Sent from my Nexus 5
[Nexus 4 General] nexuses:
Guys, why I can't just flash stock 5.0.1 system+boot+recovery immediately?:o
[Nexus 4 General] jd1639:
Just flash the factory images in fastboot
[Nexus 4 General] shamin17:
Thanks for the useful info. I successfully managed to go back to stock recovery 4.4.4 in fastboot.

OTA notification for Android 5.0 disappeared on my phone. So i wanted to sideload the OTA manually via ADB. But cant do that, Adb does not recognise nexus 4 devices (while fastboot does recognise it).

Output for command adb devices is empty for list of devices.

Am on a windows 7 and went through all posts for no device found error, but none of the solution works.

In device manager i can see Android ADB Interface when device is connected in fastboot/bootloader

See command output below, when in fastboot/bootloader mode (big Android laying down with no icon)

C:\android>adb devices

* daemon not running. starting it now on port 5037 *

* daemon started successfully *

List of devices attached

C:\android>adb reboot recovery

error: device not found

C:\android>adb devices

List of devices attached

Is there is step missing here?

Should I be in stock recovery mode for ADB to recognise the device?
[Nexus 4 General] jd1639:
The drivers for recovery, adb, aren't set correctly. With your device booted into recovery and connected to the pc go into device manager on the pc. You'll probably see a usb port with a yellow exclamation mark. Right click on it and go the were out let's you choose a driver from a list on your computer. Choose android composite adb driver.
[Nexus 4 General] lumi1776:
help please

ive done a few searches and i could do with a pointer or help

im on nexus 4 im on lollipop 5.0 rooted supersu stock everything else

i cant get ota 5.01 to install... it fails

i tired to side load and it failed

could some one help me or point me in right direction to update from 5.0 to 5.0.1 when im currently rooted SU chain fire but stock recovery etc

i have tired unroot in SU and then install the ota it failed. i rerooted after this failed.

im at this point...

1. installed the latest platform tools

2. booted into recovery mode tried to side load from a zip ota i downloaded and it failed.

whats the best way to get this on... id like to do this without a pre built tool so i can learn more and remain or redo root

many thanks
[Nexus 4 General] jd1639:
You need to be 100% stock for the ota to work I'd flash the boot and system images from 5.0 with fastboot. Then sideload the ota in the stock recovery
[Nexus 4 General] lumi1776:
hi thanks for reply

ah ok so i ve never had to do this before when i was on jelly bean so i take it that lollipop and SU has changed the 'relationship' on root

ok im a bit of a noob on flashing...is that the same as side load? im guessing no.. i have the full install of 5.0.1 downloaded im not sure of the procedure to flash.. ill search n read or wait for a reply to point me to it

many thanks
[Nexus 4 General] jd1639:
Ok, simplest way to get 5.0.1 on your device:

Download the 5.0.1 factory image from here https://developers.google.com/android/nexus/images. Extract it using 7-zip or winrar. Inside is a zip file, extract that too.

If you don't have fastboot set up on your pc Google 15 second adb install xda. That'll setup fastboot

Then open a Windows commands prompt in the folder that boot and system images are in, the zip file you extracted and then in the commands prompt type

fastboot flash boot boot.img

fastboot flash system system.img

You'll then have 5.0.1 on your phone, optional is to flash the radio image too
[Nexus 4 General] lumi1776:
many thanks for reply yes i have fast boot files etc

i followed this guide to root http://xdaforums.com/nexus-4/general/how-to-how-to-flash-factory-image-t2010312 for when i rooted

so ill try flashing the *.img u mention....many thanks for your response
[Nexus 4 General] sairahulmenon:
Hi guys,

Need some help here. Am using my stock Nexus 4 Indian version. Running still on stock KK 4.4.4

When I checked for OTA updates I dont see the 5.0 update.

Why is it that still am not getting the lollipop update?

Is there something I should do?
[Nexus 4 General] silvagroup:
You can download it and flash it.
[Nexus 4 General] sairahulmenon:
You mean flashing the image from google site right?

I shall try that then.

If possible could you please share the instructions for flashing the factory image. A step by step guide.
[Nexus 4 General] Madfysh:
You can flash only update or you can flash clean image(better).

If possible could you please take some time and search a bit. Step by step guides are already written more than few times.
[Nexus 4 General] GoPadge:
So I decided to punt and go back to the beginning (first post) and try again. I'm in Scenario #2.

Section B: Flashing in a custom recovery

1) Download the OTA.zip and copy to your phone.

2) Boot into recovery.

3) Flash the OTA just like you would a ROM.

4) Reboot.​

But then I get the following error when I try to flash the OTA from CWM...

ClockworkMod Recovery v6.0.4.7

-- Installing: /sdcard/0/Temp/update.zip

Finding update package…

Opening update package…

Installing update…

Package expects build finderprint of google/occam/mako:4.4.4/KTU84P/1227136:user/release-keys or google/occam/mako:5.0/LRX21T/15768899:user/release-keys; this device has google/occam/mako:4.4.2/KOT49H/937116:user/release-keys.

E:Error in /data/media/0/tem/update.zip

(Status 7)

Installation aborted.​

But according to my phone I'm on 4.4.4 in Settings > About phone:

Android version

4.4.4

Baseband version

M9615A-CEFWMAZM-2.0.1700.33

Kernel version

3.4.0-perf-ga6edd5e

androing-build@kpdm5.cbf.corp.google.com #1

Wed Apr 16 09:33:17 PDT 2014

Build number

KTU84P
[Nexus 4 General] jd1639:
Your can't flash the 5.0 ota in a custom recovery. You have to sideload it in the stock recovery. You also have to be 100% stock system and kernel so if you modified any system files you'll have to fix that.
[Nexus 4 General] gialakias:
You quoted my answer that I say that you need the stock recovery to succeed and then you try to flash with a custom recovery. It is not working as I said. Look in the answer above mine.

Sent from my Nexus 5
[Nexus 4 General] GoPadge:
My Modem may be the only thing out of sorts, I use Nexus 4 Modem Flasher to get LTE service. I've reset it back to stock, but it's the .33 version.

But either way I'm screwed, I don't have access to a PC where I can install the USB drivers.
[Nexus 4 General] jd1639:
Yes, you'll need a pc to sort out the radio issue, which has to be stock too, and sideload the ota.
[Nexus 4 General] jazzy4u:
help

Guys my mobile is in 4.4 version....whether can i use 4.4.4 KTU84P by adb ? plz help me .....no root etc..as auto update says system error ...
[Nexus 4 General] sadsac:
You're not going to get help posting so little information!
[Nexus 4 General] hp420:
You can flash a modem without a PC. The app he is using works perfectly fine.

(edit....I just saw the date...derp lol ;) )
[Nexus 4 General] sifaaaa:
what the error?
[Nexus 4 General] nitin.chobhe:
Are you sideloading the OTA? Why don't you try and flash the 5.1 factory images?

---------- Post added at 10:31 AM ---------- Previous post was at 10:27 AM ----------

Have you tried this: http://www.droidviews.com/fix-status-7-error-while-installing-ota-update-or-roms/
[Nexus 4 General] gialakias:
Download the 5.0.1 factory image. Extract ALL the files with 7zip or similar. fastboot flash system system.img and fastboot flash boot boot.img. Then you should be OK. Check the pages back here. The solution is the same as previous versions.

Sent from my Nexus 5
[Nexus 4 General] sifaaaa:
yes

I like more OTA :(

I did not found my error

gialakias, there is no other way? I do not want to flash system.img and etc
[Nexus 4 General] gialakias:
Well there is probably a problem in a file of your system. Maybe with others because, if you fix this with the exact file from factory image, another one may pop up. The safest way if to flash the system and boot image and then sideload the ota. You will not lose anything.

Sent from my Nexus 5
[Nexus 4 General] sifaaaa:
error in the file libsslwrapper_jni.so :( it was not there before
[Nexus 4 General] gialakias:
The fact is now it is there so, flash and enjoy.

Sent from my Nexus 5
[Nexus 4 General] Warbuff:
Tip for those upgrading without flashing via factory image. After you flash cache.img boot into your custom recovery of choice and wipe the cache partition. Otherwise you're going to be stuck on the lollipop circles for a very long time. This is specific to nexus 4.
[Nexus 4 General] Nobodybody:
OEM unlock

hello guys !

newbie question:

I'm trying to do sideloading for the 5.1 OTA, in some tuturials it said to make sure the "OEM unlock" is checked but the problem is i can't find this option in the "devoloper options"

I'm on stock 5.0.1

thanks in advance!
[Nexus 4 General] jd1639:
Oem unlock does not exist on the n4. Only the n6 and n9.
[Nexus 4 General] Nobodybody:
Big thanks!
[Nexus 4 General] Roipnol:
i have a strange problem. i'm trying to update lmy470 from lrx22c (in info build he clearly say that i'm on lrx11c) but in recovery it says, quoting:

"Package expect google fingerprints of google mako lrx22c, this device has google 4.4.2 kot49h"

The update manager from my phone, also, when, that one time that asked me to install 5.1 opened the recovery that gave me the same problem.
[Nexus 4 General] jd1639:
The ota will only work if you're 100% stock system, recovery, and kernel and not rooted. Are you not any of those?
[Nexus 4 General] Roipnol:
nope, i've rooted it, installed a recovery ect...

anyway, there are manual updates to perform the task by recovery, and still that error in quite strange, considering it should see my device with the proper version (of which i run)
[Nexus 4 General] jd1639:
That error is normal if you're rooted or made any system changes.
[Nexus 4 General] avi619:
Guys, a little advice please :

My nexus 4 is on a stock android 5.0 , rooted and TWRP custom recovery.

What is the safest route to get 5.1 without losing data and root?

Thanks.
[Nexus 4 General] jd1639:
Flash the system and boot image from 5.1 with fastboot, you can also flash the bootloader and radio images if you want to. But you will lose root. It should be a easy as flashing supersu in twrp to reroot. Backup first though off your device in case something goes wrong.
[Nexus 4 General] avi619:
Flashing the system and boot image will not wipe data?
[Nexus 4 General] jd1639:
No, flashing userdata will.
[Nexus 4 General] avi619:
Thanks a ton. That was easy.

But it took a lot of time to optimize apps (168 :p)
[Nexus 4 General] Roipnol:
how so, there is the dedicated zip file to update via recovery

http://android.clients.google.com/p....signed-occam-LMY47O-from-LRX22C.e6789b4e.zip