yashsingh1/xdaforums huggingface dataset:
[Nexus 4 General] paul c:
Whilst I understand the need to ask "should I" questions, this is a bit like the "if you need to ask the price, you can't afford it"...

If you don't know what you're doing, don't do it :D

I speak as one of this group :)

Our phones are very resilient, but you may all be better off waiting till tomorrow morning when packaged ROMs are available from senior devs such as sykopompos, anderson aragao etc. Anderson for example already has a very good ROM based on R5.

If you're on one of the above ROMs, the only difference will be specific N4 binaries and the latest radio - fine tuning.

(btw, the radio is already available in the mako modem thread)
[Nexus 4 General] faststart:
Yes,

I just edited the script (flash-all.bat) to remove -w at line 23

fastboot update image-occam-lrx21t.zip​

I went from a custom 4.4.4 to this without issues and kept my data.
[Nexus 4 General] hamedunix:
I flashed all image files manually except "chache.img", waited about 4 minutes for the phone to boot up and now it's running OK on 5.0 lollipop.

---------- Post added at 12:40 AM ---------- Previous post was at 12:33 AM ----------

I flashed all image files manually except "chache.img", waited about 4 minutes for the phone to boot up and now it's running OK on 5.0 lollipop.
[Nexus 4 General] TheeWolf:
Just a quick update - the cache is very much indeed the culprit. After re-flashing for the 10th time maybe, I decided to format the cache but flash it anyway because after all the instructions say so. When I see the boot animation is looping endlessly, I went to recovery (first go to bootloader, then choose recovery, then hold power and press volume up to get to the recovery options) and saw that there were some errors in the cache partition. I just wiped it and rebooted and after 5-8 minutes in booted up :)
[Nexus 4 General] Luggworm:
If you've got a 16GB check your storage, mine shrunk to 5.87GB presumably due to flashing cache.img. I was able to recover it by flashing stock recovery and doing a factory reset.
[Nexus 4 General] hamedunix:
Did you flash "cache.img" in the first place?
[Nexus 4 General] TheeWolf:
Actually for some reason I do have 16GB. I remember on previous versions this thing you described happened to me. Yeah as you say usually doing a factory reset solves it.

I'm not sure I understand your question. Like I said, I formatted and flashed cached. But, if by in the first place you mean in the previous times I tried to boot Lolipop, then yeah I always flashed cache.img.
[Nexus 4 General] Kodrag:
Ey!! guys, my N4 only show 8GB no 16GB...

anyone have the same problem?
[Nexus 4 General] ShinnAsuka:
I think I may have been spoiled by custom ROMS, but does stock Android offer a way to reboot the phone? I understand not being able to reboot into recovery from the power menu, but rebooting the phone from the power menu should be a standard feature...
[Nexus 4 General] underskyzx:
Dat launcher

Thought I had flashed JB image by mistake
[Nexus 4 General] Roastmeat:
The white app drawer just seems like its been pasted on

somehow doesnt feel like it fits
[Nexus 4 General] mbsmith76:
Agreed. Why does our base launcher and home screen look so different from Lollipop on other devices?
[Nexus 4 General] underskyzx:
Also the sms app from ICS times haha dam lazy Google...
[Nexus 4 General] Tomcat23:
Download mode

I used the .bat file in the tar archive and I thought it had all gone well, but then it was stuck for 50 minutes on the spinning screen. So I rebooted and now I'm in 'download mode' instead of the boot loader.

Not sure what to do form here, anyone have any advice?

Edit: I unplugged the usb cable and got back to the bootloader! It does look like my TWRP recovery is gone, recovery gives me a red triangle.
[Nexus 4 General] hamedunix:
Just flash Google now launcher and it'll be fine.
[Nexus 4 General] fedevd:
[MENTION=5356915]Isus <3[/MENTION] first, I think that I messed up, on Xperia Z I was able to flash stock firm without unlocking the bootloader bit lools like on Nexus devices we gotta unlock it, now I jabe my doubt 'cus I unlocked the bootloader from the very first minute so I can't remember if I flashed once a stock firmware with the bootloader locked, i'm so sorry for this, and second, add a line in the OP that if the device took more than 5 minutes to boot after installing Lollipop then they gotta reboot into fastboot and run:

$ fastboot format cache
$fastboot format userdata

and it will boot in less than 2 minutes.. Thanks mate
[Nexus 4 General] LexSeifer:
Am i wrong or the google play launcher still isn't the standard launcher? That's so lame...
[Nexus 4 General] CalicoJeb:
Well said -a lot of people are obviously causing themselves unnecessary headaches instead of just being patient. Plus they gonna be disappointed thinking their N4 will sprout wings like a F22 flashing the stock Lollipop image - It won't
[Nexus 4 General] siddhu_:
Help guyz

im on stock, however my usb port is broken, not showing up internl storage and nt detecting drivers, bt it is charging, so how can i flash stock image without usb cable > is there any app or something ??
[Nexus 4 General] studengineer:
first boot

I just now flashed and first boot is taking time is it okay?
[Nexus 4 General] sox1918:
I had the same problem. Had to flash boot.img to fix
[Nexus 4 General] driz:
up and running, pretty responsive so far, def a little uglier than i was expecting based on the cm12 i have on my opo.

when you flash the zip, it will flash stock recovery, when it finishes it will auto reboot. just interrupt initial boot, go back to bootloader, flash your preferred recovery, while you're in there, format cache and userdata just in case, and boot up. Eventually you'll see it load up and begin optimizing packages.
[Nexus 4 General] fuser1337:
Download Google Now Launcher from the play store
[Nexus 4 General] nxstrikerxn:
its not mine but i manage to find it with the search button in sykopompos L 5.0 thread search for flashable zip and remember to get LRX21T permissive boot and super SU 2.19 and flash those after u flash the rom
[Nexus 4 General] ksilver89:
no you can't flash stock image without usb or root, wait for OTA.
[Nexus 4 General] ryfly65:
Is the factory OTA 4.4 --> 5 zip available yet?
[Nexus 4 General] driz:
isn't asking ETAs against a rule somewhere :p i'm sure you will see them posted when they're available.
[Nexus 4 General] PhilUSAF21:
Help!!! Using Wugs toolkit and got the missing system.img

How do I fix?
[Nexus 4 General] gabriel1946:
how big is the file you downloaded? sounds like u need to re download
[Nexus 4 General] driz:
Dude the answer to that question is literally in the op.
[Nexus 4 General] PhilUSAF21:
It was 471 mb. Im redownloading it now.

When it finishes do I use Device on/Normal or Softbrick and bootloop because Iam still in fastboot mode right now.
[Nexus 4 General] driz:
Just read the op in it's entirety

Sent from my OPO running CM12.
[Nexus 4 General] bulletmark:
The first boot takes many minutes. The phone just sits there rotating those colored balls around with no message or prompt. It is easy to panic and think there is a problem but just wait and it will eventually get to the "Android is updating, optimising N of M apps" message. That is what happened to me on my N5 when I sideloaded the OTA file.
[Nexus 4 General] SaHiLzZ:
Stuck in a bootloop after flashing the full 5.0 image using fastboot.. Help?

I have gone to recovery and done a factory reset.
[Nexus 4 General] driz:
Did you follow the full directions? Did you format cache too? If you're boot looping you skipped something

Sent from my OPO running CM12.
[Nexus 4 General] SaHiLzZ:
Thanks, I may have jumped the gun. All OK.. just needed to wait! :laugh:
[Nexus 4 General] Joshua Mr PC Repair:
need help for root , any flashable roots ?
[Nexus 4 General] SaHiLzZ:
http://xdaforums.com/nexus-4/general/root-android-lollipop-t2940547

This doesn't work?
[Nexus 4 General] Joshua Mr PC Repair:
im getting failed with 2.8.1.0 twrp
[Nexus 4 General] navino87:
does double tap wake feature work with 5.0 update on our N4??
[Nexus 4 General] keyra74:
flashed radio and bootloader on 4.4 without problems

i'll wait for lollipop i can't deal without xposed framework
[Nexus 4 General] cc10:
No, it doesn't.
[Nexus 4 General] navino87:
Damm !! I thought it would come handy with 5.0 update :(:(
[Nexus 4 General] sriraviprasad:
I installed factory images and it booted asusual. Everything is normal

I was on full stock (4.4.4). Flashing android 5.0 somehow broke my stock recovery. whenever I go to recovery it shows droid with red exclamatory mark.

is it a bug or specific problem only for me??
[Nexus 4 General] skidaway:
That is the stock recovery, isn't it? From that screen, press volume up and power at the same time. Might take a few tries to get the timing correct.
[Nexus 4 General] PhilUSAF21:
How long does it take for it to boot its been about 20 mins maybe and still with 4 swirling dots.
[Nexus 4 General] srinivask82:
It took me around 15 minutes
[Nexus 4 General] PhilUSAF21:
Someone on here said to wipe data and cache. So its booting now we'll see how long it takes.
[Nexus 4 General] kelvin99:
what do we do if it takes more than 20min still not booting?
[Nexus 4 General] sriraviprasad:
Tthere are two ways to enter to recovery mode:

1. you can press volume down + power which is fastboot mode. From there you can press volume button to change the menu to Recovery mode and confirm with power button to enter recovery mode.

2. Volume up+power

As I said earlier both of these methods not working in my case. My bootloader is unlocked and i was on full stock when i flashed 5.0.

The only problem I may face in future would be

1. Factor reset through recovery mode.

2. Clearing cache through recovey mode.

Will try to flash stock recovery once again without flashing factory images.
[Nexus 4 General] The Scientist95:
If you guys do not want to full wipe your phone's data to install factory image follow this:

>Backup your apps with titanium backup.

>Go to your custom recovery, wipe all user data + cache + delvik cache.

>Remove '-w' (means wipe) from 'flash-all.bat' (IMPORTANT)

>reboot to bootloader and flash the factory image.

>reboot. It will take around 15 mins to boot.

>Now, use chainfire auto root tool which is made for 4.4.4 but works fine on 5.0 http://autoroot.chainfire.eu/

>All your data will be in a folder called '0' on your SD card. So don't panic. SImply cut all folders and files from '0' to its parent directory and all done.

>Install titanium backup, restore your apps and stuff.

>Install cwm if you want to to prepare yourself for CM12 :D http://xdaforums.com/nexus-4/development/root-root-nexus-4-install-official-t1993331

>Enjoy!!
[Nexus 4 General] horno46:
A lot of problems flashing the image on the N5 were solved by having the latest platform tools.
[Nexus 4 General] ThehTCguy2:
Guys I accidentally did the flash all.bat and it removed everything including my photos and being the dumb me I didn't back up my sdcard. Is there anyway I could get back my photos? Thanks in advancr
[Nexus 4 General] ThehTCguy2:
Ahhh mann I really loved my pics as well all those memories just gone in 34.0195 secs ??
[Nexus 4 General] cix18:
titanium backup dsnt recognize root :(

n btw any1 else got d old boring launcher ??? i dun like it with d 5 homescreens n no google now
[Nexus 4 General] arvindgr:
Boot loop on Lollipop

I was with Mahdi ROM Kitkat previously. I downloaded occam-lrx21t-factory-51cee750 factory image and flashed with flash-all.bat script (Thought every partition was wiped and Lollipop was installed) Success! Lollipop started to boot.

5min..

10min..

.

30min. where I realized something is wrong (appeared like bootloop!)

.

50min Force Power-off (I saw ppl at this same forum suggested to wipe cache)

Then, I read flash-all.bat script and noticed

flash-all.bat doesn't wipe cache partition

. Users to flash factory image, do

wiping cache partition manually

else, Lollipop won't boot even after an hour!

5 min.

10 min..

Language selection to English (India) and experiencing Lollipop....
[Nexus 4 General] 16ue:
Smart Lock setting screen is blank

Updated both my Nexus 7 (2013) and Nexus 4 to Lollipop using FASTBOOT. Update processes went smoothly. Proceeded to set up Smart Lock and then I found that on the Nexus 4, I just got a blank screen under Smart Lock. I could set up neither Trusted devices nor Trusted face. I was able to set up my face on the Nexus 7. Anyone having the same issue with Nexus 4?

Update

Apparently it might have also been the cache issue as I used the flash-all.bat to load Lollipop. I went into recovery and perform a factory wipe that included a cache format and now I can set up Smart Lock with Trusted face.
[Nexus 4 General] The Scientist95:
https://twitter.com/TitaniumBackup/status/524487475738443776 Use this apk.
[Nexus 4 General] dgw2jr:
I got the lame AOSP-looking launcher too. Pretty underwhelming IMHO. Back on CM11 now.
[Nexus 4 General] hp420:
The new one is in the play store. I totally agree they should have replaced the old one altogether, but it's not exactly like the new one is hidden from anyone.

CF autoroot works ;)
[Nexus 4 General] RootNightmareX:
Guys i have succesfully rooted the phone. Now i have an answer, i installed nofrillsCPU and i want to know the best governor and freq on this stock kernel ? Currently is 1ghz-min 1,5-max, ondemand,cfq

Thanks
[Nexus 4 General] Isus <3:
Leave stock governor as it is. If you want to save battery and have better performance get custom kernel. Elemental x, code blue, Franco should do the trick
[Nexus 4 General] RootNightmareX:
Im 100% sure that no kernels sources are avaible so no franco/hellscore/semaphore etc
[Nexus 4 General] MoMoGAX:
I have 4.2.2 on my gn4 it's safe to flash android 5 ?
[Nexus 4 General] Isus <3:
You won't have to wait long time.
[Nexus 4 General] RootNightmareX:
To be honest i want custom roms more than custom kernels .... I miss volume rocker for song changing. :laugh:
[Nexus 4 General] Isus <3:
Cyanogenmod confirmed first nightlies of cm 12 should come near end of this month.
[Nexus 4 General] faststart:
Your chances are slim, but you may try to recover something with a PC tool like Recuva (from piriform, the standard version is free).
[Nexus 4 General] Wassupdog:
Where can I get Android's L Google's official launcher?
[Nexus 4 General] Isus <3:
On the play store ▶
[Nexus 4 General] Marcb:
Omg, most of you can't follow simples rules or directions...

Just open the "flash-all" file and check the files you're supposed to flash... Just copy the lines one by one... Real simple...

Enviado do meu Nexus 5
[Nexus 4 General] claudiuslu2011:
I have a 16gb N4, after flashing the image it shows 12.9gb, is that right?
[Nexus 4 General] The Scientist95:
Yes, the rest is for System.
[Nexus 4 General] :
Woa, i was on a port from the N5 developer preview before and I got used to AmbientDisplay. The Lollipop version for N4 does not include it.. Has anybody noticed? And most importantly does anybody know why? :confused:
[Nexus 4 General] Luan28:
<br />

<br />

<b>Google has uploaded factory images for Nexus 4, you can download it here!</b><br />

<br />

LRX21T - https://dl.google.com/dl/android/aosp/occam-lrx21t-factory-51cee750.tgz<br />

<br />

Good luck flashing!<br />

<br />

<b><i>*Insctuctions on how to install factory image can be found below!</i></b><br />

<br />

Instructions XDA - http://xdaforums.com/nexus-4/general/how-to-how-to-flash-factory-image-t2010312<br />

Instructions Google Devs - https://developers.google.com/android/nexus/images<br />

<br />

<i><b>FAQ</b></i><br />

<br />

<i>1. Where are the GAPPS? </i><br />

<u>- Gapps are already in the factory image, you don't have to worry about that.</u><br />

<i>2. Will this wipe my device entirely? </i><br />

<u>- Yes it will! Be careful, if you don't want your stuff to be wiped you can wait for OTA (I'll pull out OTA link and ZIP files when I get it via logcast)</u><br />

<i>3. Is this official release? - </i><br />

<u>Yes!</u><br />

<i>4. Do I need to have unlocked bootloader to install this?</i><br />

<u>- No you dont have to. Thank you fedevd for correcting me.</u><br />

<i>5. How do I fix system.img missing error? (If this occurs to you)</i><br />

<u>- Read this, </u>http://www.androidpolice.com/2014/1...-0-factory-images-heres-how-to-get-around-it/<br />

<i>6. Can I root this?</i><br />

<u>- Yes, read this thread:</u> http://xdaforums.com/nexus-4/general/root-android-lollipop-t2940547<br/>
[Nexus 4 General] The Scientist95:
That feature is currently for Nexus 6 only.
[Nexus 4 General] :
Ouch, I didn't know that sorry. So basically all ROMs for N4 and N5 that include it are cherry picking the feature from N6.. Daaaaamn
[Nexus 4 General] SizeUpeR:
Does anyone know when the OTA will be up? I really want to update without wiping...
[Nexus 4 General] LexSeifer:
Of course i'll do that! But that don't change the fact that it should be the standard launcher, wich woud make the download not necessary, among with other benefits.
[Nexus 4 General] MrToastedAndroid:
Anyone have a working DSP Manager for Android 5.0? The one I used is still on 4.4, it appears that OP didn't update for 5.0.
[Nexus 4 General] ThehTCguy2:
Thanks for the reply but I cannot access my phones internal storage through the app since my phone doesn't show up as a removable disk but as portable media device. What should I do?
[Nexus 4 General] jbaysingar:
It's an N6-only feature because the N6 has an AMOLED display.

Ambient Display relies on the fact that completely black pixels on an AMOLED display use no power, so it can display a black and white notification screen with minimal power usage.

Because the N4 and N5 have LCD displays, Ambient Display would be too much of a battery drain, as the black and white notification screen would use just as much power as completely waking the phone.
[Nexus 4 General] lukaomg:
Could I theoretically flash the image by using something like Flash Image GUI? Not asking if anyone's done it. Can't connect my phone to the PC so thinking of going that way.
[Nexus 4 General] sathkartha:
Nice feature that but there is adaptive display here.
[Nexus 4 General] faststart:
Makes sense :\

You could try an app, there's one called undeleter for root users, it's free for 60 pictures I think. You'll need root for this one.

Good luck
[Nexus 4 General] Wneaties:
Flashed and re-rooted my N4 and a friends. No problem and no data loss on either.

Bootloader already unlocked and TWRP recovery on both, my phone was Purity Rom 4.4.4 my friends was stock 4.4.4. All required drivers already installed to computers.

On computer.

-Copied platform tools folder to USB stick (could make copy anywhere - just chose to do it this way as I am flashing multiple phones from multiple computers)

-Copy "cmd.exe" from windows/system 32 into this folder (again personal preference. I hate "cd"ing to the right directory)

-Unzip the .img files from factory into this folder. (Rename bootloader image to "bootloader.img" and radio to "radio.img" for ease of typing)

-Copy TWRP recovery into folder. Rename to "custom recovery.img" (Just in case. Did not need to use it but like to be prepared)

-Copy image file from CF Auto Root into the folder. Rename to "CFAutoRoot.img"

On Phone.

-MAKE TWRP BACKUP. COPY THIS ONTO COMPUTER ALONG WITH EVERY OTHER IMPORTANT FILE ON SD CARD. Use whatever method you prefer.

-Do "factory reset" from wipe menu in TWRP. SD card is not wiped this way.

-Reboot to bootloader

Open command prompt from cmd.exe in the folder I have created. From here I more or less follow efrant's how-to-flash.

"fastboot devices" make sure computer is recognizing phone

"fastboot flash bootloader bootloader.img"

"fastboot reboot-bootloader"

"fastboot flash radio radio.img"

"fastboot reboot-bootloader"

"fastboot flash system system.img"

"fastboot flash boot boot.img"

"fastboot format cache"

"fastboot reboot-bootloader"

"fastboot boot CFAutoRoot.img"

No need to flash userdata as the twrp wipe takes care of this function.

No need to flash recovery as TWRP already there and don't need/want to replace.

Phone will reboot and do it's thing. If it takes too long. Simply power off and power back on and it will quickly get to "android is updating". Did this on both phones without any problems.
[Nexus 4 General] The Scientist95:
Here is how you can do that with factory image: http://xdaforums.com/showpost.php?p=56769325&postcount=113

[MENTION=5356915]Isus <3[/MENTION] please add this link in OP too, so people don't have to go all over the thread.
[Nexus 4 General] Isus <3:
Added in FAQ. Thanks
[Nexus 4 General] maslelviz:
for those who are having bootloop

Hey guys, I had the problem of bootlooping after flashing the factory image with WugFresh toolkit. I tried to flash the latest 5.0, then revert and flash back to 4.4.4, but no luck. What did the trick is to go to the toolkit's options/flash stock and uncheck the "enable "Force Flash Mode". Flashed it again, and succsessfully booted up in 8 min. or so. Feel free to correct me if I'm wrong
[Nexus 4 General] JamesRC:
Thanks OP

I flashed the boot/bootloader/system/radio files only, in that order, using Wugs.

Worked fine, but adaptive brightness isn't working - stays at max. Manual works fine.
[Nexus 4 General] RootNightmareX:
So they should make the feature for Galaxy Nexus :p ? :laugh:
[Nexus 4 General] ThehTCguy2:
Tried it but it only showed pictures that were backed up to my google+ and they are really old so I am guessing all my pictures are gone ??
[Nexus 4 General] RASTAVIPER:
Actually the proposed order is bootloader, radio, boot, system.

Flashed with Wug and root was a piece of cake.
[Nexus 4 General] Wuhlifant:
Hey guys,

i think i bricked/softbricked my N4.

basically, i did everything according to the guides, but i am stuck with updating the bootloader.

its version is currently makoz20i

I unlocked my fastboot and then i tried to update the bootloader. But here it is stuck "sending bootloader". Nothing happens. On the screen it says "downloading" and does not respond to the buttons.

I also tried the nexus root kit, but its the same problem there. Also my recovery seems to be gone .(

Is there anything i can do?

Thanks !
[Nexus 4 General] JamesRC:
Does adaptive brightness work for you?
[Nexus 4 General] Jeric0:
have you tried to lock and unlock again?

Warning, you lose all your data

Inviato dal mio Nexus 4 utilizzando Tapatalk
[Nexus 4 General] Wuhlifant:
yes, sadly it did not work.

also tried to flash one older rom+bootloader, didnt work either :(

edit. oh boy, what a strange error. I changed the USB port and now it works o0

Thanks anyway!
[Nexus 4 General] dimeim:
Really really sorry if it has been discussed but I need to run and I'd like to have an answer so I can flash when I get back!

I'm with Paranoid Android. Can I flash this without wiping SD (photos etc)? I don't mind about app data (normal wipe we do between flashes). If so, how? I already have an unlocked bootloader.

Thanks in advance!! Again, I apologize if it's been discussed!
[Nexus 4 General] davepmer:
I have a lollipop kernel source for the N4 so I am 100% sure it exists.
[Nexus 4 General] idisco19:
Who can tell me how to unlock phone?

Need help pls!
[Nexus 4 General] arceangel:
need adb and fastboot on PC

step 1 type- adb reboot bootloader

step 2 type- fastboot oem unlock

step 3- select yes to unlock bootoader

hope that helps.
[Nexus 4 General] driz:
Man when people don't read 300 pushed on a thread, I kind of get it, when they don't read 4 pages... Good luck to everyone, the directions in the op are dead on, they also cover all the possible issues unless they result from a failure to follow directions.

Sent from my OPO running CM12.
[Nexus 4 General] The Scientist95:
Here is how you can do that with factory image: http://xdaforums.com/show...&postcount=113

PS: Check OP before posting a question. It has been listed in OP's FAQ section.