yashsingh1/xdaforums huggingface dataset:
[Nexus 4 General] eskeyy:
You dont need whole factory image to back stock, flash just system.img and boot.img (from JOP40D not from JDQ39) and you can flash update.zip via recovery or you can flash stock recovery as well and then you can use adb sideload, you dont need wiping anything. You will have your data intact
[Nexus 4 General] Z4nd4r:
Let's see if I understand this correctly. I'm on Franco's kernel but with a stock ROM (CWM Recovery). If I flash the stock kernel (which Franco has linked in his thread), I can then flash the 4.2.2 update through CWM without wiping data, correct?

My goal here is to update to 4.2.2 without having to wipe data or use a computer; all from the phone. Is that possible? Should I simply flash a 4.2.2 ROM instead?

Thanks for the thread; great work!
[Nexus 4 General] eskeyy:
I heard about problems with updating after franco's stock kernel, you can flash system and boot from JOP40D and you dont lost data and update will work without problems (updare via recovery)
[Nexus 4 General] Z4nd4r:
Thanks for the input on the stock kernel in his thread. Can I flash system and boot in recovery?

Also, since now might be a good time to ROM, can I simply flash something like Paranoid Android 4.2.2 in recovery?
[Nexus 4 General] eskeyy:
System and boot you must flash via fastboot ( you find both files in JOP40D factory image from first post in this thread). If you want just flash PA or any other rom you can do that without problem in recovery but you should know that flashing another rom need full wipe? If you just want 4.2.2 without lost data better idea is flashing stock system and boot then update to 4.2.2 via recovery, after that you need onlu reroot if you wish.
[Nexus 4 General] El Daddy:
Re: [INFO] Nexus OTA Help-Desk

Just to add if you do go straight to PA 3+ you'll have to flash the 4.2.2 bootloader and radio separately. They aren't included in custom Roms.
[Nexus 4 General] mbadge:
Thanks for the great guide. I've been using Faux's kernels for a while, and am having trouble getting all my "status 7" errors cleared. I used the reset kernel he provides in his dev thread, but some /system files must no be reset back to stock with that. From everything I've read, it looks like I can use adb to flash system.img and then try to use CWM again to flash the update. I'll try later tonight after work
[Nexus 4 General] El Daddy:
Actually you'd use fastboot to flash the system.img. After that flash with cwm are you'll be set!

If you run into a problem, I'll be glad to help.
[Nexus 4 General] mbadge:
Re: [INFO] Nexus OTA Help-Desk

Alright, thanks! Guess I don't know anything about either fast boot or adb, or what they are or do even. I'll do some more reading and learning before giving it a shot and let you know if I'm still in need of help.

Sent from my Nexus 4
[Nexus 4 General] elitemeat:
I am a novice with Android so bear with me. I am rooted with Faux's stable kernel 5 and have stock ROM untouched. Should I follow Section C and go back to stock or just update using the notification that was pushed directly to my phone?

If I do follow Section C,do I need to flash the reset kernel faux has linked before flashing the newest kernel version? Or can I just go ahead and flash the new kernel?
[Nexus 4 General] mbadge:
Re: [INFO] Nexus OTA Help-Desk

Same here. The update will fail if the kernel and system image aren't stock. I've found that Faux's reset kernel still left some other files in the /system folder, so I had to also flash stock system.img (see last few posts above). Once that was done, then I flashed the update zip file using CWM just like flashing a kernel, to get to 4.2.2. Then I could go back to flashing Faux's latest beta kernels! Hope that is helpful

Sent from my Nexus 4
[Nexus 4 General] Ballastatuz:
I must be blind but I can't find the link for the system image zip. I was on Franco's kernel but flashed the factory image and I keep getting error 7 when trying to install the 4.2.2 zip.
[Nexus 4 General] lopri:
I still haven't gotten a notice for either my N4 or N7. Anyone in northern Jersey got theirs?
[Nexus 4 General] nghj:
hi, can someone share their stock maps.apk?

i didnt make a copy when i replaced it with the ownhere mod version.

i tried a few system dumps but still got an error with the 4.2.2 update (clear google framework).

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

In first post you have link to factory image JOP40D, download and open with winrar, inside you will have zip file and inside this file will be system.img, flash system.img via fastboot.
[Nexus 4 General] Ballastatuz:
Is there any way to do it without a computer? Mine just broke.
[Nexus 4 General] efrant:
Find an odexed JOP40D stock ROM in the dev section and flash it.
[Nexus 4 General] justeam:
Same problem here. Did a full wipe(boot, cache, recovery, system, userdata), ran a flash-all.bat and now phone is stuck on Nexus logo.

Wiping cache through stock recovery did not help.

Any ideas?

Did a factory reset in recovery - now booting.
[Nexus 4 General] lopri:
I could never get into stock recovery on my Nexus 4. I can do it any time on Nexus 7, but doesn't work on Nexus 4. Nexus 7 is rooted without custom recovery if that makes the diference?

The trick I use on Nexus 7 is to hold down power + volume-down buttons together, then reboot recovery, then pressing power + volume-up a couple times. That takes me to Nexus 7's stock recovery screen that gives me 4 options (reboot, apply update, factory reset, wipe cache.)
[Nexus 4 General] El Daddy:
Re: [INFO] Nexus OTA Help-Desk

Its the same method as the nexus 7.
[Nexus 4 General] mbadge:
As of this morning I have everything up and running with 4.2.2 now! It required using fastboot to flash boot.img and system.img, then cwm to flash the ota update zip. Now I'm running Faux's latest beta again and I'm thankful I didn't have to worry about wiping and having to restore all my apps/data. Next ota update that comes along will be a breeze to install thanks to all I learned this time around. Thanks again for the help!
[Nexus 4 General] Speeds03:
I'm having a head-ache trying to re-root my device after recieving the 4.2.2 update. I am doing it with Wug's Nexus Root Toolkit v1.6.2. Every time it checks for adb status, it says i'm offline. What am I missing here, how can I fix this? I haven't found an obvious answer in this thread from previous posts.
[Nexus 4 General] El Daddy:
I don't give support for toolkits. You can do it with fastboot. This is from efrants guide: http://xdaforums.com/showpost.php?p=34552123&postcount=1 Check it for hotlinks to recovery images.

E. Optional -- Root

If you want to get root access follow the steps below. (And no, this will not flash a custom recovery, and not, it will not make you "not stock".) Unlocked bootloader required. See steps above.

1) Download (to your computer) the latest version of CWM (from here) or TWRP (from here) for your device;

2) Rename the file to customrecovery.img, and make sure it is in the same directory as your fastboot.exe file;

3) Download (to /sdcard on your device) the latest version of either ChainsDD's Superuser (not currently working), or Chainfire's SuperSU;

4) Restart your device in fastboot mode and plug into computer;

5) Open a command prompt in the directory mentioned above and type: fastboot boot customrecovery.img

6) Wait for it to boot;

7) Navigate the menus the recovery menu on your device and select an option like "update zip from sdcard". Find the zip that you downloaded, and apply it.

8) Reboot. Done.
[Nexus 4 General] iammtxd:
Re: [INFO] Nexus OTA Help-Desk

I'm exactly at the condition of section c and I still got a 4.2.2 system update downloaded notification this morning. That's kind of weired :rolleyes:

I didn't update anyway coz I have custom recovery....

BTW, can I just flash gapps again in order to get back the deleted system apps?

Sorry for my bad English.

Sent from my Nexus 4.
[Nexus 4 General] El Daddy:
Re: [INFO] Nexus OTA Help-Desk

No you cannot flash the gapps package to replace the apps.

You need to either replace the original shipping .apks or flash system.img of jop40d
[Nexus 4 General] iammtxd:
Re: [INFO] Nexus OTA Help-Desk

Okay, I'll follow the steps in the op then.

Sorry for my bad English.

Sent from my Nexus 4.
[Nexus 4 General] cristian274:
It has been 1 week the OTA update notification did not come back my phone since it has failed to update in the first time. Is is weird? Thanks
[Nexus 4 General] azrash:
Re: [INFO] Nexus OTA Help-Desk

just sideload it, it is fairly simple. You'll get improved battery life with the update.

Instructions are in the OP.

Flowed from my Nexus 4
[Nexus 4 General] ritchea:
Did you update your ADB files? Reconnect the usb if you have updated or use another connection. (Did you get the new USB debugging "security" message when you connected to ADB?) When you do that, you should see your device listed (at least that's what happened for my Galaxy Nexus and Nexus 7--haven't done N4 yet). I don't think Wug's is ready for 4.2.2. I'm pretty sure you can get a recovery and fastboot flash it then install SuperSu zip from custom recovery to root just as I did on the GNex and N7. Will do N4 today so I'm screwed if it doesn't work.

Not screwed! Everything working including restore with Titanium. Now to focus on the OTG thread.
[Nexus 4 General] Mantakun:
Trouble updating my new nexus 4

Hi,

Im new to all this rooting stuff...I just got my nexus 4 in india from sum tech bloke...he said its stock and not rooted

i came home and ran sum app and it showed im rooted.....don know wtf

Now i got 4.2.2 update which went to bootloader and asked me to prompt den finally rebooted saying file corrupt or invalid n stuff.

i saw throuh nyour thread and for god's sake i dunno wher i fit in ....this is wat is der on my device

1:Android version 4.2.1

: Baseband version: M96A-CEFWMAZM-2.0.1700.33

3: Kernel version: 3.4.0 perf.ge039dcb

android build @vpbs.1.mtv,corp.google.com#1

Thu Nov 8 15:42:02 PST 2012

4: Build no : JOP40D

Would u please help me how to go about the update and whether dat sob has rooted my cell.
[Nexus 4 General] :
flash factory image, we dont know what happened to your phone...
[Nexus 4 General] daveric:
If you are on 4.2.2 just have a look on Wugfresh website it quoted there.

"IMPORTANT NOTICE: Yes, I am aware that this isn’t working on 4.2.2 right now. This will be fixed in v1.6.3 which will be released ASAP (within a few days or sooner if possible). As a temporary fix you can replace the old adb/fastboot/dll files in the toolkits /data directory with the new ones: new_adb_and_fastboot.zip just download that zip and extract/unzip its contents into the toolkits /data directory and agree to overwrite those files, then proceed to use “Any Build” mode to perform subsequent operations like rooting. Again, this is just a temporary fix for those who are impatient. "

I came from Maemo community so I'm completely new on the android scene just got my nexus 4 2 weeks ago and for me worked very well re-root 4.2.2

I hope this help

Regards to all

P.S

Thank you very much for this thread:good:
[Nexus 4 General] Mantakun:
Trouble updating my new nexus 4

Hi,

Like i said i don hav a clue how to flash.....could u guide me thru or is der sum post for dat ??
[Nexus 4 General] cristian274:
yes, but the problem i want to ask here is that is it weird if the OTA update notification did not come back my phone after 1 week it failed for the first time? will it come back or never? Thanks
[Nexus 4 General] eskeyy:
There you have everything you need http://xdaforums.com/showthread.php?t=2010312
[Nexus 4 General] cm94178212:
Great

Followed Scenario #1:

Worked like a charm

Thanks
[Nexus 4 General] cristian274:
The OTA update comeback my phone,but it is still fail to update. Everytime i press restart and install, it always get me to recovery and said that "signature verification failed". Why was that? Can anyone help me? Thanks in advance
[Nexus 4 General] EG6:
Just used section b to update my rooted N4 to 4.2.2.

Thank you!
[Nexus 4 General] El Daddy:
Are you running the official stock rom? Did you make any build.prop edits?
[Nexus 4 General] cristian274:
Yes,my phone is stock rom, no root, just unlocked bootloader to install recovery.
[Nexus 4 General] El Daddy:
So you are running a custom recovery? If so, follow section B. Let me know if you get the same error.
[Nexus 4 General] cristian274:
I am not sure if it is custom recovery because this is the first time i use android device. My recovery is ClockworkMod Recovery V6.0.2.3 and it is touchable recovery. And if it is custom recovery, please tell me how can i comeback stock recovery?
[Nexus 4 General] El Daddy:
Yes that is a custom recovery. If you follow section B you will have the stock recovery after the flash. The OTA replaces it.

Otherwise you'll have to download the recovery, linked at Section C, option 3 and flash it with fastboot.

If I were you I'd just follow section B.
[Nexus 4 General] eskeyy:
Every not stock recovery is custom, El Daddy gave you answer what to do.
[Nexus 4 General] cristian274:
Many thanks El Daddy:good:
[Nexus 4 General] s7yler:
Help

Hi, I did Section B in #0 and everything seems to work fine. My phone now says 4.2.2

But my clock and setting button in the notification bar have strange colors now? any idea why? and what can I do to make it black/normal again?

I didnt have any MODs.

Please see picture http://peecee.dk/upload/view/402359
[Nexus 4 General] eskeyy:
Bottom buttons are not stock, are you sure it is stock rom? Try to flash system.img from JDQ39 via recovery, that should help.
[Nexus 4 General] s7yler:
Yes stock rom. Bottom buttons (softmod) I have put into the phone after the upgrade myself, before the actually upgrade I copied the stock SystemUI back into the phone. I have tried to copy the stock back again, but no change.

It seems that I suddenly now cant enter recovery mode anymore, I only get the rolled android with the triangle/exclamation mark now?

But the phone still boots fine. I tried via Rom Manager to install ClockWorkMod 6.0.2.3, but no luck.
[Nexus 4 General] eskeyy:
Everything fine with your recovery, when you see android with exclamation mark push power button and then push vol + and release both, try few times if first time will be not work. Before you put these buttons everything was ok?
[Nexus 4 General] s7yler:
OK that works - then I come to the stock recovery right?, regarding the system.img.

Should I download from https://developers.google.com/android/nexus/images#occamjdq39 the 4.2.2 (JDQ39) file? (https://dl.google.com/dl/android/aosp/occam-jdq39-factory-345dc199.tgz)

then inside this file I can find system.img

how can I flash this now? (sorry the stupid question)
[Nexus 4 General] El Daddy:
Re: [INFO] Nexus OTA Help-Desk

System.IMG is flashed with fastboot in the bootloader. Not recovery.
[Nexus 4 General] harveerr:
NOt working

This update is not working on my phone. I have a rooted phone. No custom ROM or recovery. OTA failed. I tried to sideload which also didnt work. Then i tried to flash from recovery and it says Error in red? Any help would b appreciated.
[Nexus 4 General] El Daddy:
More info please? Did you apply any mods? Any build.prop edits, etc.?
[Nexus 4 General] eskeyy:
thats true, I did not notice that but anyway it can be usefull if you need recovery in future.

s7yler thats right, download factory image from link you mentioned, and flash system.img from zip inside via fastboot.

Boot into bootloader and use command in fastboot: fastboot flash system system.img

(you must have system.img in folder with fastboot)
[Nexus 4 General] harveerr:
Yes i added LMT and fullscreen toggle. This allows me to hide the bottom buttons and use side buttons instead.
[Nexus 4 General] El Daddy:
As I stated at the top of the OP you must be completely stock for the ota to apply. Look to Section C and flash the system image with fastboot.
[Nexus 4 General] eskeyy:
Its system modification. You must undone modification or flash system.img from factory image JOP40D
[Nexus 4 General] efrant:
El Daddy, maybe you should bold and highlight the part of the OP where you say "No modifications"... :)
[Nexus 4 General] El Daddy:
Re: [INFO] Nexus OTA Help-Desk

I might go 24pt font highlighted in chartreuse. :)

EDIT: Oops. I did. :)
[Nexus 4 General] undercover:
[INFO] Nexus OTA Help-Desk

I'd say 72, bright red, bold, italic and underlined. Also a hundred of exclamation marks after that. And it would still be missed :D
[Nexus 4 General] eskeyy:
It will be useful, people dont understand what mean word "modification". Probably half of them will be not read that anyway...
[Nexus 4 General] cristian274:
Hey El Daddy, i did it your way but when i flash it from recovery it was error related status 7. So what can i do for now ? Thanks
[Nexus 4 General] El Daddy:
Re: [INFO] Nexus OTA Help-Desk

What was the error exactly? You must have a missing or modified file.
[Nexus 4 General] cristian274:
I downloaded this link http://android.clients.google.com/pa...D.de8b8d10.zip and copied it to sdcard/obb, then i install it from recovery mode but it said that :

"assert failed: apply_patch_check("/system/build.prop","5a778d005448ec19a56c

E:Error in/sdcard/obb/OTA.zip (status 7) Installation aborted"
[Nexus 4 General] El Daddy:
Re: [INFO] Nexus OTA Help-Desk

You have an edit in your build.prop. you can either push the stock build.prop back to the phone and try again; or flash the jop40d system image with fastboot.
[Nexus 4 General] cristian274:
Could you please tell me how to flash the jop40d system image with fastboot? any instruction thread for that? Thanks in advance.
[Nexus 4 General] El Daddy:
Re: [INFO] Nexus OTA Help-Desk

Read efrants thread http://xdaforums.com/showthread.php?t=2010312

If you have your drivers set up and fastboot installed you can skip sections A-C. If not you'll have to do that. (You can skip section B as you won't be wiping data. But if you want to back up just in case go ahead)

After completing that just do D9.

Then reboot into recovery and flash the ota.zip that's already on your phone.
[Nexus 4 General] cristian274:
El Daddy! So is this all the file i need to download to complete those steps? occam-jop40d-factory-ca7602f0.tgz - 327.21 MB Many thanks
[Nexus 4 General] El Daddy:
Re: [INFO] Nexus OTA Help-Desk

Yep. You'll have to extract the file twice. When you see then list of images the only one you'll need is system.img
[Nexus 4 General] harveerr:
hey sorry worked out great. thanks
[Nexus 4 General] lopri:
Yah I guess I should keep trying. I don't know why it's so difficult on N4 because on N7 it's so easy. What's worse, after multiple tries N4 simply boots into stock home screen.
[Nexus 4 General] PersonZ:
Ok, well option B does not work for me since Im getting the error 7 thing or whatever it is called.

So I need to flash the boot.img and system.img

I just have one quick question. Do I have to do this using the method listed here or can I use CWM or TWRP to flash the img files?
[Nexus 4 General] El Daddy:
Re: [INFO] Nexus OTA Help-Desk

It must be done with fastboot.
[Nexus 4 General] PersonZ:
alright

.... well I don't have much data on the phone anyways. Maybe ill just do an app backup and use the toolkit to revert to stock.

Shame really... I don't remember doing anything to my nexus 4 other than rooting it but this blasted error is stopping me from doing the OTA so back to the drawing board I go.
[Nexus 4 General] El Daddy:
Re: [INFO] Nexus OTA Help-Desk

If your bootloader is unlocked you won't lose any data. If its not kernel related you'll only have to flash the system.img.

If you have fastboot and drivers set up already its literally a 2 minute process.
[Nexus 4 General] s7yler:
So I have to use the command: fastboot flash system system.img

is that correct? I don't need to flash other img files?

The system.img seems to be over 500mb, any idea how long this then should take? I guess it will overwrite a lot of system stuff? I mean will I lose any of my personal settings or apps already installed? I used stock ROM 4.2.1, unlocked and rooted (before I updated to 4.2.2). No mods other than the softbuttons (I will copy the original back over). The problem with the strange colors in the bar was also there before I used the changed softbuttons.

Can I get the clockwork recovery back again? not only the stock recovery that I only have now.

---------- Post added at 09:12 AM ---------- Previous post was at 09:07 AM ----------

Thanks eskeyy, I didnt see your answer before now.
[Nexus 4 General] eskeyy:
You will not lost any data, for me flashing system taked near 1 minute. After update u can flash custom recovery if you wish
[Nexus 4 General] cristian274:
El Daddy, it appears that i got stuck with the fastboot. When i type fastboot flash system system.img in command prompt, it said that :"error

: cannot load 'system.img': No error. I did all the steps but i dont know which step i did wrong. Thanks

Update: wrong directory, now i have 4.2.2 :D. But why my recovery is still ClockworkMod Recovery v6.0.2.3 ? Is this stock recovery?
[Nexus 4 General] eskeyy:
You have system.img in this same directory as fastboot?
[Nexus 4 General] cristian274:
My fault :)
[Nexus 4 General] gandharv.aiims:
Hi... I am on stock rom rooted and Franco kernel.... My bootloader is locked what do i have need to do to retain my root access... The catch is i have stock recovery on locked bootloader
[Nexus 4 General] baiju2012:
Re: [INFO] Nexus OTA Help-Desk

I have stock/unrooted Nexus 4. Yesterday, I got the 4.2.2 OTA update from Google. Battery and Screen brightness improvement I saw immediately. :D

Sent from my Nexus 4
[Nexus 4 General] azrash:
Re: [INFO] Nexus OTA Help-Desk

since you are rooted, you probably can install bootunlocker from the play store and unlock your bootloader with that app. After that, you can proceed with the steps in the OP.

Flowed from my Nexus 4
[Nexus 4 General] s7yler:
OK I got it fixed now. What I did was to copy back my original backup of SystemUI.apk, that made the softbuttons stock again. Then I used adb to put Clockworkmod Recovery on the phone again, from here I just again flashed the OTA.zip, and after that it was OK (no more strange colors). It must have been the softbuttons that messed up (but actually I copied the stock back before I flashed OTA.zip, but putting the modded SystemUI.apk back again after the upgrade messed it up). Even if I copied the original buttons back again afterwards it didnt fix it - only a complete reflash with Clockworkmod Recovery of the OTA.zip did it. So I will leave the softbuttons for now then. But thanks for the help.

I was using "Touch Control" with 4.1.2, and that also stopped working from 4.2.2, because google disabled module support in their latest official kernel. A modified stock kernel (flash it in recovery or flash in fastboot) for 4.2.2 with module﻿ support enabled can be found at http://forum.ponury.net/viewtopic.php?f=14&t=1033 - after that TC again works good.
[Nexus 4 General] killa_byte:
i need help please. i rooted my phone around 1 month ago with no MODS and i accidently installed the update Over The Air and it has been successful, but now my SuperSU app doesn't work. it says

"There is no SU binary installed, and SuperSU cannot install it. This is a problem!"

what can i do to fix this? i'm guessing i need to reroot?
[Nexus 4 General] eskeyy:
Yes, you must do that, like you did first time.
[Nexus 4 General] killa_byte:
so i need to root again? well thats kinda crap...

back to the drawing board of thinking is it wroth rooting again
[Nexus 4 General] eskeyy:
Next time you should use OTA root keeper before update
[Nexus 4 General] efrant:
Not sure what the issue is? This is a Nexus device: getting root is just download two files and plugging your phone into your PC. Should take more than a couple of minutes...
[Nexus 4 General] killa_byte:
Re: [INFO] Nexus OTA Help-Desk

I accidently updated, I if I root I will lose all my data?
[Nexus 4 General] eskeyy:
no
[Nexus 4 General] killa_byte:
Re: [INFO] Nexus OTA Help-Desk

How do I do it if you don't mind...
[Nexus 4 General] eskeyy:
http://xdaforums.com/showthread.php?t=2010312 section E