yashsingh1/xdaforums huggingface dataset:
[Nexus 4 General] skezza:
OK, well I'll have to delete the AOSP browser, rename the two files back and also delete the modded MMS im using but then i shouldn't have a problem.
[Nexus 4 General] eskeyy:
Yes, if something will be wrong with update (error 7) just flash stock system.img
[Nexus 4 General] trees247:
that worked for me too FINALLY!!!
[Nexus 4 General] skezza:
I ended up sideloading. I didn't have too much fuss, had to remove the AOSP browser and replace the MMS as expected but it worked fine. Now have I lost root :P
[Nexus 4 General] Konstigt:
Hi guys

Trying to sideload the update into my stock (but unlocked & rooted) N4.

After rebooting the device with adb then doing power+volume up to enter recovery menu + choosing apply update from adb I did this command:

$ ./adb devices

List of devices attached

????????????	no permissions

So I can't do the adb sideload, no permissions? Never seen this before.

Edit: Aha, so because I fixed my /etc/udev/rules.d/51-android.rules AFTER running adb the first time the server was already running. 'adb kill-server' and then re-plugging my Nexus & re-starting adb fixed it.
[Nexus 4 General] MountainX:
OK, can you share the exact command you used to flash SuperSU via fastboot???
[Nexus 4 General] eskeyy:
Odp: [INFO] Nexus OTA Help-Desk

You must boot and use custom recovery
[Nexus 4 General] petrolin:
thanks for the answer "flash system.img" but is there a way to restore googleears.apk? seems that is the only system app it was modificated, i didnt backup at all.
[Nexus 4 General] eskeyy:
Odp: [INFO] Nexus OTA Help-Desk

Of course you can restore this apk but faster is flashing system, you have all needed links in first post of this tread and you will be sure your system is 100% stock, its really fast and you do not lose any data
[Nexus 4 General] Salty Wagyu:
Appears to have been solved. Went into Fastboot and erased System, then flashed system.img from the 4.2.2 Factory Image from Google, this fixed the Security crash, but I had to re-root. All my apps/data stayed intact however so it wasn't too much hassle.
[Nexus 4 General] eskeyy:
yep, it's working well. You dont need erasing system, when you type: "fastboot flash system system.img" system will be erased automatically before flashing anyway
[Nexus 4 General] Khaiyan:
Hey, sorry if this has already been asked but does scenario 2 work with CWM? I'm seeing a few posts reporting otherwise.
[Nexus 4 General] eskeyy:
It will work just many people have more modifications not only another recovery and you must have newest CWM.
[Nexus 4 General] Khaiyan:
Haha weird how we have similar usernames :p

Okay on topic, I have just rooted my Nexus 4 on 4.2.1 so its pretty much as new. The only thing I've done is log into my Gmail account to restore my apps. This doesn't count as modifications does it?
[Nexus 4 General] thesoupthief:
Re: [INFO] Nexus OTA Help-Desk

Sorry if this is mentioned above but Paul O'Brien over at modaco has put together a really nice (lightly modded) 4.2.2.

It's a gem. I flashed it over a cyanogenmod kang, with a custom recovery.

I heartily recommend it
[Nexus 4 General] Utini:
So as I have:

root

franco's kernel

TWRP/CWM

Unlocked bootloader

I would have to do the following:

Flash Stock Kernel (or do I need to do the whole process described here): http://xdaforums.com/showpost.php?p=37482646&postcount=10338 ?

Flash 4.2.2 via recovery

Re-root

Flash franco's kernel

Is that right? I will not loose my settings/homescreens/.. ?
[Nexus 4 General] eskeyy:
About our nick I realized that when I submited my post :laugh:

If you have just root everything will be ok as i said before

---------- Post added at 06:45 PM ---------- Previous post was at 06:40 PM ----------

you need whole process or easier flash boot.img (kernel) and system,img after that you can flash update via recovery, reroot and franco's kernel
[Nexus 4 General] Khaiyan:
Gotcha, thanks...

Just for future reference, what would count as modifications on a rooted device? I mean, I know installing a kernel/rom would count as such, but how about installing an app such AdAway or tweaking the color settings via the Nexus 4 Display Control app? Would these be modifications?
[Nexus 4 General] eskeyy:
Yes as well as deleting apps from system or changing something in build.prop or any other file in system. All System files must be identical as new, you can add files but not changed existent or removing them. Becouse root it is adding some files it not disturbing in update but you must reroot after updating.
[Nexus 4 General] Utini:
and where do I get the the boot.img system.img ?

and i push that to my phone via adb/fastboot ?
[Nexus 4 General] eskeyy:
Download factory image from first post, inside package will be zip file and inside that file you find system and boot, to flash use fastboot: "fastboot flash boot boot.img" and "fastboot flash system system.img" of course you must have these two files in your adb/fastboot directory
[Nexus 4 General] Utini:
thanks, and what about radio flashing ? Do I need to update my radio ?
[Nexus 4 General] eskeyy:
if you have stock radio then no, if you are not sure you can flash radio from factory imgage as well
[Nexus 4 General] P8TRIOT:
I am fully stock except for unlocked bootloader. When I do 'ADB devices' my device shows up, but when I

adb reboot bootloader

and I am in the bootloader i then do 'adb devices' again nothing shows up?
[Nexus 4 General] eskeyy:
adb reboot-bootloader should work and in bootloader you should use fastboot not adb
[Nexus 4 General] Utini:
alright thanks for the help.. hoped this whole updating would be easier :/
[Nexus 4 General] eskeyy:
when you have stock rom it is really easy, but if you know fastboot and adb commands its not hard to do that :) anyway simplest way is have stock rom and wait for notification :laugh:
[Nexus 4 General] Utini:
actually all I want is stock room + root + custom kernel.. but exactly that seems to make the update process so complicated :/
[Nexus 4 General] @home:
3) Toggle to “recovery mode” and press power. You’ll see android laying down, press power then immediately press volume up and release. The menu will appear. Select “apply update from adb”

I get no command & android laying down & nothing happens when I press volume up.

Am I doing something wrong?
[Nexus 4 General] eskeyy:
biggest problem is custom kernel becouse sometimes is changed not only kernel but some system files too. Btw rooting G1 was a lot harder ;)
[Nexus 4 General] P8TRIOT:
Thank you, your correct. However, when executing the recovery command

adb sideload update.zip

I get "error: device not found"...?
[Nexus 4 General] eskeyy:
When phone is turned off, push vol+, vol - and power all together to time when start booting in bootloader. after that you should have green START on screen, toggle using vol buttons to RECOVERY and push power, after few second phone should reboot to recovery and then you should see laying android

---------- Post added at 07:45 PM ---------- Previous post was at 07:42 PM ----------

When you push update via adb on phone you must go to device menager in windows and find nexus 4, probably will be there yellow exclamation mark, update manualy driver (choose from list) and after that type command in adb
[Nexus 4 General] P8TRIOT:
not sure that it is a driver issue, if adb can see them in regular state (booted into the OS) then shouldn't they be the same drivers for recovery mode?
[Nexus 4 General] eskeyy:
When phone is in regular state adb see that as "serialnumber device" when in sideload "serialnumber sideload" so probably adb see that as other device and need driver for that device again. Belive me i had this same problem yesterday.
[Nexus 4 General] @home:
Download the OTA.zip on your PC, rename the file update.zip, and place file in the same directory as adb.

2) Connect your phone and boot into the bootloader

3) Toggle to “recovery mode” and press power. You’ll see android laying down, press power then immediately press volume up and release. <<< Nothing happens when I this . So I do NOT get>>>>>>>>The menu will appear. Select “apply update from adb”<<<<<
[Nexus 4 General] P8TRIOT:
I will give this a shot, thank you.
[Nexus 4 General] efrant:
Use Package Enabler
[Nexus 4 General] eskeyy:
becouse it is realy tricky, its easiest way push powet button and fast push vol+ and then release them both, try few times, i know its not easy to do, i know exactly how to do and not always work first time, keep trying
[Nexus 4 General] dasilvetz:
So I'm able to see my phone in adb devices, but when i type adb sideload update.zip i am just getting a terminal screen full of help info, like when you type adb /?

My N4 is successfully displaying the yellow "now send the package you want to apply to the device with "adb side load <filename>" text..

its as if adb command doesn't recognize the "sideload" option.
[Nexus 4 General] eskeyy:
you had problem with command adb reboot bootloader, that command work in newest adb so you can have old one, try adb from first post in this thread
[Nexus 4 General] dasilvetz:
The adb in the first post is a windows executable, "adb.exe", is there a mac compatible version?
[Nexus 4 General] eskeyy:
Probably somewhere on this forum should be but i have no idea where, if you have instaled whole sdk then its enough to update to newest version or try to find on xda only adb and fastboot
[Nexus 4 General] dasilvetz:
ok- updating SDK now- thanks!
[Nexus 4 General] Utini:
btw since I also have to reset the kernel (using franco kernel) this should be my routine with:

root, TWRP recovery, franco kernel 4.2.1 to 4.2.2 root, TWRP recovery, franco kernel

flash faux kernel reset

fastboot flash system.img from 4.2.2

fastboot flash boot.img from 4.2.2

flash the 4.2.2 update through recovery

root again

flash franco's kernel

is thar right ?
[Nexus 4 General] eskeyy:
I dont understand why you want install faux kernel first? Just flash system and boot but for 4.2.1 not for 4.2.2 then flash update to 4.2.2, root and franco kernel
[Nexus 4 General] P8TRIOT:
So here is what I did and perhaps this is the cause of my pains. I am not using the zip provided in OP I was trying to use the official:

This actuall is downloaded a .tgz file. I know that this is not the method not used in OP but wouldn't using this image still theoretically work? My other question is why is the link to the image file not being pulled from:

https://developers.google.com/android/nexus/images#occamjdq39

Just trying to learn and to install like a real dev. would I am trying to use the most correct and direct method possible, I don't want someone else's packaged toolkit or cooked up .zip I want to do the legit way. For the record, I prefer using command line and am not shy doing so...
[Nexus 4 General] Utini:
because franco kernel modifies system files ?

i can only find the factory 4.2.2 download link on the first page of the this thread.. so where would I get the 4.2.1 system.img and boot.img ?
[Nexus 4 General] eskeyy:
Becouse you need stock 4.2.1 to update to 4.2.2, if you use image form 4.2.2 i dont know about update will work or not (its update for 4.2.1)

---------- Post added at 08:55 PM ---------- Previous post was at 08:52 PM ----------

http://d-h.st/iy0 link from first page, when you flash image and boot you will have stock kernel and system, you dont need reset kernel
[Nexus 4 General] Deeco7:
It's been a long time since I done OTA, just wanted to know what will happened if I update via OTA on device with ROOT and Unlock Bootloader?
[Nexus 4 General] eskeyy:
Everything will be fine, just you lost root, use OTA root keeper for easy reroot
[Nexus 4 General] El Daddy:
Let's see if I can explain this:

The link in Section C, option #1 is the 4.2.1 JOP40D factory image. That image was pulled from google's server, so I uploaded it. The reason why you would want to flash the system and boot images from this image, then flash the OTA is to keep your data and settings.

The other image I have linked in Section C, option #3 is the Factory image for 4.2.2 JDQ39, which you are referring to. You can flash everything in that file and go right to 4.2.2 if you would like, skipping the OTA part. I would recommend wiping your data going this route however.

The choice is yours.
[Nexus 4 General] marekca:
4.2.2

Hello.

I unroot my Nexus 4, to get OTA, but should I lock back it? I use "Nexus Root Toolkit.

Thank You.
[Nexus 4 General] El Daddy:
Re: [INFO] Nexus OTA Help-Desk

You can leave it unlocked.
[Nexus 4 General] efrant:
Re: [INFO] Nexus OTA Help-Desk

As stated many times before, root makes no difference. There's no need to remove root.
[Nexus 4 General] Khaiyan:
So I have successfully rooted 4.2.2 however I would like to know, what is the difference between using methods 2 and 3, and using an app like OTA root keeper?
[Nexus 4 General] El Daddy:
Re: [INFO] Nexus OTA Help-Desk

Which methods are you referring to?
[Nexus 4 General] Khaiyan:
Pretty much, if I am on stock, rooted and without modifications, would it be possible to just use OTA root keeper instead of flashing the OTA and SU?
[Nexus 4 General] eskeyy:
Yes, It was method used by me
[Nexus 4 General] Khaiyan:
Okay cool, and this method will only work if there are no modifications?
[Nexus 4 General] eskeyy:
Im not sure, maybe its working after flashing system too but i never tried.
[Nexus 4 General] aaronrw:
OK I'm about to make the jump...LMAO so the SU.zip in the link has CWM in front of it...I'm using TWRP any issues with this? Also as long as i flash the SU.zip after the OTA.zip from the OP link all is good, I'l be running 4.2.2 with new radio, bootloader etc? I've been very busy with work and got lost in the buzz of the update. Thanks in advanced and sorry for the redundant questions I KNOW this has been answered several timesover:o
[Nexus 4 General] El Daddy:
Re: [INFO] Nexus OTA Help-Desk

The su.zip will work just fine. Twrp may also ask you if you want to save root and custom recovery as well if you are using a newer version. If it doesn't you'll have to reflash twrp.

The ota includes the new radio and bootloader.

Make sure you meet all of the stock criteria before flashing the ota or else it will fail.
[Nexus 4 General] aaronrw:
so I need to be all stock? OK got a backup for that. Also I'm using the OTA file provided in the OP of this thread
[Nexus 4 General] P8TRIOT:
Aaaaaand that folks is why you should read EVERYTHING! my bad. Thank you for responding, for all intents and purposes my phone is brand spanking new, so I have no concern about retaining what ever amount of data is on there. I would like to go straight to 4.2.2 by flashing from that link https://developers.google.com/androi...ges#occamjdq39

If I am to understand what you are saying I would actually flash the .tgz in fastboot? Can you give me a bit of direction on this? Additionally as mentioned before, downloading the 4.2.2 directly it comes as a .tgz, do i just flash like

or do you have extract and do it in stages. I realize this is slightly getting away from the OP but I may like this alternative best. If you feel it would be too much to answer in this thread could you possibly just PM me?
[Nexus 4 General] El Daddy:
You can be rooted with a custom rom. You can't have any modifications though. I have listed the criteria at the top of the OP.
[Nexus 4 General] El Daddy:
You'll have to extract the .tgz. Then extract the .tar. You'll see the images, radio, bootloader, and some scripts. With your phone connected and booted into the bootloader open flash-all.bat. It will complete the process automatically and reboot when it's finished. It will wipe your data. You'll have 4.2.2 then.

I would suggest reading efrant's guide to get a better understanding about flashing images, for education's sake. :D http://xdaforums.com/showthread.php?t=2010312
[Nexus 4 General] mammenj:
Re: [INFO] Nexus OTA Help-Desk

Guys, if you are on stock, here's a simple way to get update.

Go to Google services framework setting and clear data and force stop, do this for 3-4 times and then check for update.

~ sent from Π€XU$⁴
[Nexus 4 General] cipsaz:
Worked like a charm.
[Nexus 4 General] gravitysandwich:
Re: [INFO] Nexus OTA Help-Desk

How do u flash stock system.IMG and boot.IMG Cause I removed some things and where can I download them the IMG files

Sorry for being a noob but I'm only 13.

Nvm I find out how need to read better
[Nexus 4 General] El Daddy:
Re: [INFO] Nexus OTA Help-Desk

Read the guide linked in section C option #1
[Nexus 4 General] Jsparta26:
Only had to do that once. But of course I had made a couple changes to system. Of course the ota failed. So I went back and reverted all the changes. Flashed stock recovery, unrooted and cleaned out busy box and retried ota and still failed. Finally I just flashed the stock factory image and took the ota. Of course 4.2.2 kills lte support. Does anybody know if flashing the radio from 4.2.1 would restore lte?

Edit: I just found out about flashing a earlier radio to restore lte
[Nexus 4 General] maigre:
Then notification bar tells me that the 4.2.2 update has been downloaded and that I should tap to install it. I'm rooted with custom recovery, so when I update, I'll likely do it from recovery. I can download that updater, but since the system is telling me it's already on my device, I'm wondering where it is? I've looked around some, but haven't found it, not even in a hidden directory.

Anyone know where the system puts it?
[Nexus 4 General] El Daddy:
Re: [INFO] Nexus OTA Help-Desk

Just accept the update. If you are running a newer recovery it will allow you to flash.
[Nexus 4 General] efrant:
Re: [INFO] Nexus OTA Help-Desk

It's in /cache

Really? I didn't know that newer recoveries will flash it like that. I thought you had to move it to /sdcard and reboot into recovery yourself to flash it.
[Nexus 4 General] El Daddy:
Re: [INFO] Nexus OTA Help-Desk

I've never experienced it myself, but I've seen a few people claim it does elsewhere. I got attacked once for saying it wouldn't. So apparently it works. :)
[Nexus 4 General] spaceman860:
Re: [INFO] Nexus OTA Help-Desk

http://xdaforums.com/showthread.php?p=38022448

Sent from my Nexus 4
[Nexus 4 General] daglesj:
Okay was totally stock (AFAIK) and unrooted and as of this morning when I tried to update OTA it just says 'Verification Failed' after every download of the 51Mb package.

So I rooted my phone (nothing added other than for rooting) and tried that. Still no joy. Just says Verfication Failed. Nothing else, no codes or anything.

Baffled. Any suggestions?
[Nexus 4 General] Jsparta26:
Yeap. Flash stock factory image. Backup your storage and flash stock image through nexus toolkit. Worked for me.
[Nexus 4 General] gravitysandwich:
Re: [INFO] Nexus OTA Help-Desk

Nvm
[Nexus 4 General] cristian274:
ota 4.2.2 update fail

Hi everybody, i just received 4.2.2 OTA update this morning, but when i press restart and install, it took me to recovery mode, then, it asked me whether i want to install zip, and i choose "yes, install untrusted zip", then i reboot from recovery mode. However, After that, i checked my Android version,it was still 4.2.1. Can anybody help answer me which step i did wrong? And how can i get the OTA update notification for my phone again?i have checked for status update but it said my phone is up to date :(,My phone is unlocked bootloader
[Nexus 4 General] maigre:
Found it. Thanks.

IIRC, I installed the 4.2.1 update OTA with custom recovery in place.
[Nexus 4 General] AdamLC:
Re: [INFO] Nexus OTA Help-Desk

Could someone please do me a favour and upload chrome.apk from system? Can't seem to find one that works with the ota after I removed it from system :'(
[Nexus 4 General] Utini:
Can anyone confirm that this will work with franco kernel,cwm,root & unlocked bootloader:

fastboot flash system.img & boot.img from 4.2.1

flash 4.2.2 update.zip (the 53mb file)

root again

flash franco kernel

without loosing any data or having bugs ? I am having rly bad updating experiences with my HTC DHD :/

Thanks
[Nexus 4 General] eskeyy:
Odp: [INFO] Nexus OTA Help-Desk

You dont loose any data, worst scenario is bootloop after flashing system and boot, if you will have something like that you must clear cache in recovery and thats all, still you dont loose your data.
[Nexus 4 General] ruzkay:
is there any toolkit for 4.2.2? cause in Wugfresh's toolkit I can't select 4.2.2 and I wanna Unlock Bootloader/Root/Custom Recovery

someone made this right after i posted:

http://xdaforums.com/showthread.php?t=2150656

nice :)
[Nexus 4 General] NishantM:
Re: [INFO] Nexus OTA Help-Desk

I guess all the toolkits need rework due to addition of security feature in adb.
[Nexus 4 General] daglesj:
Ah well just got up this morning and decided to try one more time and bingo! It downloaded and installed first go!

Now I appear to be in no man's land with a rooted/unrooted phone. Half the phone thinks its rooted and the other half doesn't. :silly:

Think I'll just leave it as it is. Unless anyone has a suggestion as to easily making it one way or the other?
[Nexus 4 General] Rizy7:
If I receive the OTA on my phone will it install fine although I am rooted with TWRP recovery.

Also, has anyone installed the OTA successfully using rootkeeper and TWRP?
[Nexus 4 General] El Daddy:
Did you receive the OTA or are you trying to install it manually? Also, did you just get your Nexus 4? I read the newer ones were shipping with JOP40G. If this is your build number, the update.zip in the OP won't work. That's why you'd be getting "verification failed."
[Nexus 4 General] Jsparta26:
Best thing you can do is not modify anything in system or kernel to ensure you can receive the ota. Otherwise be prepared to flash stock image.
[Nexus 4 General] cristian274:
Are there anyone please help answer my question :( ?
[Nexus 4 General] eskeyy:
what is your build number now? JOP40D still or another?
[Nexus 4 General] Noctus Nosfuratsu:
Can any one post the stock JDQ39 kernel please?
[Nexus 4 General] eskeyy:
As you wish :laugh:
[Nexus 4 General] El Daddy:
Follow section B and install manually.
[Nexus 4 General] daglesj:
I just did the "Check for System Updates" and downloaded it from wi-fi. I got the phone about a month ago.

I never tried the .zip. Was just trying the OTA.

So we are all cool on 4.2.2, just have the half rooted issue going forward. I think I'll unroot. It doesn't seem to make any difference to me and more apps work unrooted.
[Nexus 4 General] eskeyy:
You can just root like unrooted device, i had something similar, just flash su.zip via recovery or if you dont need root you can leave that as is.
[Nexus 4 General] daglesj:
Yeah it's all got very confusing. This is my first android!

Been a Winmob (old style) and Pre2 user before now so fiddling with Android is all new to me. Had flashed roms and kernels with my other smartphones but here we seem to have a billion options and opinions.

The problem is cutting through all the noise.

I think I'm just going to use the tool I used to unlock and unroot (Nexus Root Toolkit) once it gets updated to to recognise 4.2.2. Then I'll unroot and lock the bootloader and leave it be.:fingers-crossed:

I need to do something as some apps say I'm rooted and others say I'm not. I dont like things out of sync.
[Nexus 4 General] eskeyy:
Better leave bootloader unlocked, you may need that in future (maybe not now but in future you will be want to try something) and everytime you locking/unlocking your device is wiped. Toolkit is good for start but if you have experience with flashing then it should be not hard to learn how use fastboot/adb
[Nexus 4 General] efrant:
If you want it in CWM/TWRP flashable format, you can get it here.
[Nexus 4 General] f.us:
Since you applied the OTA you should be able to gain root very easily following section E of efrant's thread in the Nexus 4 General Section:

[HOW-TO] How to flash a factory image / return to stock / unlock / root #