yashsingh1/xdaforums huggingface dataset:
[Nexus 4 General] meangreenie:
I did have the wrong boot.img.. thx El Daddy

was using motleys, return to stock kernel zip before, used the one in this OP section C and it's working :)
[Nexus 4 General] markwid:
Thanks for that. Appreciate the confirmation.

Will try this when I get home tonight.
[Nexus 4 General] Cor-master:
SUCCESS! Thanks for your help! Now I finally can use ADB again too and get rid of these toolkits!
[Nexus 4 General] ponghk513:
:good: and then use Section A: adb sideload ?
[Nexus 4 General] spaceman860:
Re: [INFO] Nexus OTA Help-Desk

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

Sent from my Nexus 4
[Nexus 4 General] El Daddy:
You first must flash the stock kernel.

Follow C2a then A or B depending on stock or custom recovery
[Nexus 4 General] ponghk513:
many thanks, try it now!
[Nexus 4 General] Melad360:
i did all that... still didnt work :/ il attach the screenshot in a sec

---------- Post added at 07:17 PM ---------- Previous post was at 07:08 PM ----------

ok so looks like i cant attach the picture, the computer freezes and reboots when i click upload... heres a copy of what terminal says:

Last login: Fri Jan 6 10:12:31 on console

Macintosh-3:~ Mel-Mel$ cd desktop

Macintosh-3:desktop Mel-Mel$ cdimg

-bash: cdimg: command not found

Macintosh-3:desktop Mel-Mel$ cd img

Macintosh-3:img Mel-Mel$ ls

AdbWinApi.dll

AdbWinUsbApi.dll

NOTICE.txt

adb

adb-mac

adb.exe

android-info.txt

boot.img

bootloader-mako-makoz10o.img

fastboot

fastboot-mac

fastboot.exe

flash-all.bat

flash-all.sh

flash-base.sh

radio-mako-m9615a-cefwmazm-2.0.1700.48.img

recovery.img

source.properties

system.img

userdata.img

Macintosh-3:img Mel-Mel$ ./fastboot-mac devices

dyld: unknown required load command 0x80000022

Trace/BPT trap

Macintosh-3:img Mel-Mel$
[Nexus 4 General] f.us:
Just as I thought.

There was an update to support Android 4.2.2. AFAIK you had/have to update your SDK.

Unfortunately it seems like that Mac OS 10.5.8 could be not supported anymore.

But let us give it one last shot before the experts can take better care of you on a windows machine.

I've attached the newer fastboot... extract and try this.
[Nexus 4 General] Melad360:
oh i see. well i basically gave up on the mac last night and i just went to my dads windows laptop lol, everything worked fine there and now im updated to 4.2.2. thank you and everyone else for taking the time to help me out :)
[Nexus 4 General] El Daddy:
Re: [INFO] Nexus OTA Help-Desk

Congrats!
[Nexus 4 General] f.us:
I'm glad it worked out.

I came across other boards mentioning this very issue with Mac OS 10.5.x

It seems 10.5.x cannot handle Android 4.2.2 with adb / fastboot anymore.
[Nexus 4 General] Vadaxkicker:
franco kernel

"I forgot to answer this and its important:

When flashing my kernel the stock powerhal is renamed to power.msm8960.bk.so so that you can return to stock hal without needing to flash rom again. Dir is: /system/lib/hw. Just remove power.msm8960.so and remove the .bk from the backed up file, give it r/w permissions and then reboot.

This is when changing to other kernels because my hal is modified to work with interactive." - franco

i recently flashed the stock kernel from franco (in order to update to 4.2.2), however the files mentioned above are not exactly the same. Instead the files are "power.msm8960.so" and "power.msm8960.so.fkbak". What should I change these into, exactly?
[Nexus 4 General] spaceman860:
Re: [INFO] Nexus OTA Help-Desk

Just flash this and you'll be good

https://www.dropbox.com/s/czdj8cpf94yfh0z/N4_421_stock_kernel_and_components.zip

Sent from my Nexus 4
[Nexus 4 General] Vadaxkicker:
will try this tonight. Hopefully i can update after this. Thanks
[Nexus 4 General] Vadaxkicker:
that didn't work and the file names that i mentioned in my previous post stayed the same :(

time to try option C (1)
[Nexus 4 General] milesxd:
I'm currently running stock on 4.2 JOP40C with Franco's kernel. How do I go about doing this? or which scenario do I belong in? Thanks.
[Nexus 4 General] spaceman860:
Re: [INFO] Nexus OTA Help-Desk

If you have a custom recovery flash the stock kernel I posted 2 post above yours and then flash the 4.2.2 update zip. If you have the newest version of TWRP or CWM you won't lose root or your recovery

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

Follow C2. You may also have to flash the system image because Franco modifies some system files.
[Nexus 4 General] milesxd:
It said I should update to 4.2.2 only if I have 4.2.1 which I don't
[Nexus 4 General] El Daddy:
Re: [INFO] Nexus OTA Help-Desk

Oh you have JOP40C. I missed that.

I would just flash the 4.2.2 factory image then.
[Nexus 4 General] milesxd:
um , I just tried flashing the factory image, but it says installation aborted
[Nexus 4 General] El Daddy:
Re: [INFO] Nexus OTA Help-Desk

You probably tried the OTA.zip.

The factory image is flashed using fastboot. I linked in in section C3
[Nexus 4 General] milesxd:
I'm pretty sure I downloaded the right one, the .zip is called "occam-jdq39-factory-345dc199". :confused:
[Nexus 4 General] El Daddy:
Re: [INFO] Nexus OTA Help-Desk

You don't flash the file in recovery. You need to extract the .zip down to the images and flash them using fastboot.

See the link to efrants guide in the op for instructions how to do that.
[Nexus 4 General] milesxd:
nvm, figured it out. thanks so much!

edit: err I got root permission back but I didn't get recovery back, what should I do now? When I try to boot into recovery, it gives me a android with a red exclamation point
[Nexus 4 General] Eliasalex:
Which Scenario am I?

Hello I just want to confirm if I fit scenario 2:

Before flashing AOKP rom, I made a nandroid of the stock ROM. After flashing AOKP I flashed the franco kernel. I am currently on 4.2.1 and I would like to update to 4.2.2. So I restored the stock ROM (which also restores stock kernel I assume?). After restoring the stock ROM I tried to update to 4.2.2 but it didn't work. Now I know that it didn't work because I need to go back to stock recovery? Which scenario am I? I'm guessing scenario 2 but I'm not sure. Help! (btw after the OTA update fail I went back to my custom ROM by restoring it since I had made a backup.)

**Also what is considered a modification?**

Thank you for your help!
[Nexus 4 General] El Daddy:
Re: [INFO] Nexus OTA Help-Desk

Since the ota didn't apply you'd fall under scenario 3. That means something isn't stock and is not allowing the ota to complete. Did you happen to see the error? It will let you know which file it is failing on.

If you've done/flashed anything on your phone with the exception of a newer version recovery or the su binaries is considered a modification.
[Nexus 4 General] Eliasalex:
specification

Hi thanks for your quick answer! I guess I should have been more specific. After downloading the update, the phone reboots into recovery and I get the message:

"Install Untrusted Package/Zip?"

and the error message says:

E: failed to verify whole-file signature

E: signature verification failed

I don't install because I'm not sure what this means. Also I read a thread about someone who did install the untrusted zip file but remained on 4.2.1 and was no longer prompted to get the update. So I just rebooted the system. Should I just follow instructions for scenario C?

Thanks again!
[Nexus 4 General] texaslittleangel:
Hi guys,

Is the update worth the hassle? I would fall under scenario 3-C. I do not consider myself a complete noob but FAR from being an expert and somehow I feel a wee bit uneasy with all the steps I have to follow just to update. (not to mention it takes a bit of time to re download apps, configure, etc.).

My other issue is that my stock rom backup magically disappeared.
[Nexus 4 General] undercover:
Re: [INFO] Nexus OTA Help-Desk

Do a nandroid of data partition only or use titanium backup , flash stock images following efrant guide, push custom recovery, restore nandroid.
[Nexus 4 General] DowntownJeffBrown:
Re: [INFO] Nexus OTA Help-Desk

Guys just follow efrants guide. He spelled it out so simple step by step and trust me its nice to know what u are doing to your phone. Read all of efrants threads they helped me to understand so much. Even if u aren't needing them at this time read them cause later on u will need it.

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

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

[REF] "Android for the Nexus 4" 101 & FAQs

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

Sent from my Nexus 4 using Xparent BlueTapatalk 2
[Nexus 4 General] kiwiBeans:
I apologize if this is a bit inappropriate for this thread but I figure if anyone would know, it's people who are helping out here. I'm rooted, unlocked, but otherwise stock. I also have CWM installed. I do NOT want this update. I've been constantly running day to day with the nag notification which I can clear temporarily by unchecking "show notifications" under Google Framework Services but it will always come back. I can't leave that unchecked because one of the side effects I know of is that you will not receive any notifications from the Google Talk app.

Without getting into why I don't want to install the update, can someone suggest a way to get rid of the update nag? I cannot find any information on how to do this aside from some threads where people have asked or are trying to do the same thing. I know when I ran my Sprint S2 and wanted to ignore the update I simply had to try to install it, let it fail, and that was that. I'm thinking if I modify the system in some sort of way (maybe add an app to the system directory, or remove some stock ringtones?) and try to update it will fail and that might be that... but I certainly don't want to screw anything up. Any help and insight would be appreciated. Thanks.
[Nexus 4 General] efrant:
Re: [INFO] Nexus OTA Help-Desk

Rename this file to something else: /system/etc/security/otacerts.zip
[Nexus 4 General] kiwiBeans:
:good::good::laugh: Efrant, you a truly a gentleman and a genius. I've been Googling up and down for weeks with no solution and just like that you give a ridiculously easy answer. Hats off to you, my friend. Working so far with no further nags.
[Nexus 4 General] MiRaCL:
Hello

A friend of mine has a N4, he's running stock rom, rooted with CWM. Can he just flash the OTA trough CWM and alle the settings/files etc will be intact?
[Nexus 4 General] El Daddy:
Re: [INFO] Nexus OTA Help-Desk

Yep as long as there aren't any modifications it will be fine.
[Nexus 4 General] MiRaCL:
He's running stock everything & stock kernel.

Android 4.2.1.

(I've done this many times on my own android devices, but have never touched a n4).

Modifications like what? Custom kernel / custom rom and so on?
[Nexus 4 General] El Daddy:
Kernel, build.prop edit, system.ui edit, etc. Things like that.
[Nexus 4 General] jcnbama:
So, just to be clear. If I am stock, rooted, all system files in place and no mods to the stock Android and an OTA update comes. I can except it, but will then lose root. But then hypothetically I could just use the toolkit (assuming it's up to date) to regain root? Am I missing something? Is there another way to get back root in the event the toolkit is not up to date and I have accepted the OTA update? Or is it easier just to wait until a root toolkit is up to date with the latest Android version? Or is it just easier to flash a custom rom and wait till it updates and just be done with it? LOL. That may be the easiest way yet....
[Nexus 4 General] El Daddy:
Re: [INFO] Nexus OTA Help-Desk

The newer recoveries will ask you if you want to retain root.

Yes, there is another way to root your phone. Its called fastboot. Toolkits are just a GUI that uses fastboot. I am against the use of them and you can see why if you click the link in my signature.

There are many guides in this forum that will teach you how to use fastboot and/or root your phone. Check them out in the general and Q&A stickies.
[Nexus 4 General] jcnbama:
Re: [INFO] Nexus OTA Help-Desk

So, what you're saying is, root it. Use a custom recovery to flash the OTA update and it should ask you whether you wanna keep root. Does both TWRP and CWM ask if you wanna keep it? When you flash an OTA update (sorry I didn't get those on the T989 lol) does it erase data? Like flashing a new Rom? Or is it kinda like dirty flashing a new Rom?
[Nexus 4 General] texaslittleangel:
SOLVED (camera issue)

after i returned to stock via efrons guide, I rooted the phone straight after and it all seems good BUT now I have a gallery error "Unfortunately, Gallery has stopped working and the camera does not work."

What am I doing wrong?

EDIT: I am also getting a constant Android is Upgrading EVERY TIME I restart the phone

Error solution:

I pushed the attached camera patch and camera is now working.
[Nexus 4 General] andynroid:
CWG ! Where the devil have you been ? [Gotten a Nexus4] :laugh:
[Nexus 4 General] rsmantha:
re-installing jellybean 4.2.4

Hi I have on 4.2.2 build JDQ39, its pre-installed one, had purchased in Feb.

Now given the frequent re-start issues, want to re-install the OS , have downloaded the same from the google site.

Can you please guide me how to install it on the phone.

Have read thru your detailed steps, am bit confused. on ADB part. can you please guide me how to re-install the OS.

Thank you so much

Cheers

Ravishankar
[Nexus 4 General] El Daddy:
Here is the link to efrants back to stock guide: http://xdaforums.com/showthread.php?t=2010312

All the info you'll need is there. However, I would do a factory reset before you try the reflash the stock image. Your restart issues are most likely caused by a bad app. Especially if you haven't messed with it before.
[Nexus 4 General] 3Shirts:
Hi, the USB port on my device is broken. I can charge but not connect to PC. I have an RMA for it but I want to return to stock first. I have the OTA but when I flash it with TWRP I get a status-7 error. I believe this is because I need to use the stock recovery but, since I have no USB, I can't use fastboot. Is there a flashable zip of the stock recovery and, once I do that, will I be able to flash the OTA or does the stock recovery require me to use adb or something that won't work with my broken usb?

Thanks
[Nexus 4 General] efrant:
Read post #2 in this thread.
[Nexus 4 General] 9RAY:
Does patched phone have any output voltage on micro usb port?
[Nexus 4 General] efrant:
No. That is a hardware limitation on the N4.
[Nexus 4 General] mikeyb1216:
Stock kenel apk

it seems kinda dumb that you can flash franco kernel via the updater app but you cant flash back to stock kernel without going through a tedious process factory reset boot into fastboot flash factory image from google and have to redo all your settings because titanium backup doesnt work after you lose root
[Nexus 4 General] rawdealer:
You can flash stock kernel too ;)

Flashable Stock Mako 4.2.2 kernel in recovery: http://htcfanboys.com/download/rawdealer/?action=list&file=3779
[Nexus 4 General] mikeyb1216:
can i do it with nexus stock recovery or do i need twrp or cwm
[Nexus 4 General] rawdealer:
You need a custom recovery, but if you have unlocked bootloader you can flash boot.img from this zip in fastboot.

Sent from my Nexus⁴
[Nexus 4 General] ashhar:
I am stock, rooted and using Franco kernel. Is there any possibility to receive ota?
[Nexus 4 General] El Daddy:
Not without flashing the stock kernel back first.
[Nexus 4 General] mikeyb1216:
TWRP and ota

Does TWRP make ota impossible if so how do i remove it since i just used it to flash back to stock kernal for that very purpose
[Nexus 4 General] spicediablo:
OTA works even if you have custom recovery

Sent from Mako⁴
[Nexus 4 General] scottcwhite:
Provided everything else is stock, correct?
[Nexus 4 General] El Daddy:
That is correct.
[Nexus 4 General] uronfire:
Hi,

I need help getting the latest ota update. I flashed the factory image jdq39. I have stock ROM now with stock recovery and no root. I have also done a factory reset after flash.But I'm still not getting the update . Help plz
[Nexus 4 General] gee2012:
Dude as said before, JDQ39 4.2.2 is the latest android version atm.
[Nexus 4 General] El Daddy:
I'll always have the newest OTA version listed at the top of the OP. If yours matches what is listed, then its the latest.
[Nexus 4 General] El Daddy:
OP updated with the anticipation of an OTA released during I/O. I will add the link when we find it!
[Nexus 4 General] spaceman860:
This might help

N4_422_stock_kernel_and_components.zip

http://db.tt/nXpoz0c5

Sent from my Nexus 4
[Nexus 4 General] El Daddy:
Thanks [MENTION=4433359]spaceman860[/MENTION]!

To everyone: If the OTA does show up tomorrow during I/O please post it here so I can add it to the OP. I'll be at work and only on mobile so I'll need help!

Thanks!
[Nexus 4 General] lord crapface:
I have a question, ive skimmed through about 30 pages of this thread and tried google but cant find an answer

Im running aokp . Im not too bothered about getting stock 4.3 when it is released via ota. If i wait until 4.3 custom rom builds are available will i be able to flash them as normal and this will update my android version or will i have to follow the steps in the first post before i can do this? Will i have to revert to stock to update my android version?

Cheers
[Nexus 4 General] spaceman860:
You can just wait for the ROM to update to 4.3 and flash it no need to go back to stock.

If the bootloader and radio gets updated in 4.3 then you'll have to update them by fastboot or wait till someone makes a flash able zip since that's not included in the ROMs zip

Sent from my Nexus 4
[Nexus 4 General] burnski:
Im running stock 4.2.2, stock bootloader, stock kernal, stock radio, stock recovery. The only thing I have done is unlocked the bootloader & rooted with SuperSU.

Will I still be able to receive/install the OTA to 4.3 when it becomes available?
[Nexus 4 General] eskeyy:
Yes
[Nexus 4 General] spaceman860:
[MENTION=962867]El Daddy[/MENTION] start getting ready https://plus.google.com/114043356941421719155/posts/VUaTNUmT6Th

From my BLACKED OUT N4
[Nexus 4 General] El Daddy:
Oh boy! I'm on the golf course right now it will be an hour or so until I'm home. Post the link if we get it!
[Nexus 4 General] pwc realtor:
Don't get too excited things aren't going as planned yet
[Nexus 4 General] lowrider262:
I'm startin to think we got trolled...
[Nexus 4 General] TheManii:
If/when 4.3 otas start rolling out: nothing really changes from the flashing procedure.

If you modified files: it wont work

If you didnt: it should work
[Nexus 4 General] davidgs:
Great News!! I found the leaked dump here, but it seems that this leaked dump don't have the bootloader and radios (see here). So I'll wait for the official OTA and this thread's OP updated since I see it as the "official" OTA update thread.
[Nexus 4 General] spaceman860:
Bootloader and radio will be out today waiting for Jeff to have time to pull it. It got late last night he didn't have time

From my BLACKED OUT N4
[Nexus 4 General] thephantom:
I believe he's awake already as he posted in g+
[Nexus 4 General] texaslittleangel:
I'm far from being an expert. After 4 devices I have rooted and changed roms on, I still consider myself a newb (I don't really fiddle much with my devices after I root and ad custom roms lol). I can't help loving all this techy talk and wished I would be able to understand it all! None the less I've been following the G+ thread almost since it was first posted and can't wait until it is all ready and done so that I can flash it on my phone!

Great job to everybody who has put in the LONG LONG hours! :good: :victory:
[Nexus 4 General] azrash:
All of us started somewhere. Just don't be afraid to read more about something that you are not sure or understand and you'll reap the benefits very fast.

I started with a G1 that I got for a very cheap price at around $100, I am learning new things everyday.

Cheers!

Flowed from my Nexus⁴ using Tapatalk 4 Beta
[Nexus 4 General] Federico_96:
From what i can read in OP, this thread is for who don't want to wait for OTA update or is coming from a custom rom,but i thonk i will wait the officiale release, now if i restore my stock 4.2.2 nandroid backup with twrp recovery,will i be able to update in the standard way,with a notification for the update and it will update by himself once downloaded the OTA, or do i need to follow the methods listed in OP?
[Nexus 4 General] El Daddy:
The same rules apply. If you have met all the criteria to being "stock" at the top of my OP the ota will install fine. Even with a custom recovery.
[Nexus 4 General] tiru.adi13:
Someone had posted the a flashable zip of the rooted 4.2.2 ROM. If I flash that (cuurently running stock with some system apps removed and matr1x kernel) will I be able to get the OTA?

Sent from my Nexus 4
[Nexus 4 General] El Daddy:
No. Because of the kernel.
[Nexus 4 General] efrant:
If that flashable zip is not deodexed, and includes the stock kernel, then it should work. But it's just as easy to flash the 4.2.2 system and boot images in fastboot.
[Nexus 4 General] RohanM:
My setup = 4.2.2 stock + CWM + root + unloacked bootloader.

Do i need to flash stock recovery to get OTA ?

if no then will CWM get replaced after OTA to stock recovery ? & root will gone after OTA ?

If I flash this stock rom then will it be ok ?

http://xdaforums.com/showthread.php?t=2298470
[Nexus 4 General] El Daddy:
If you flash that ROM you will not get the OTA as it is an aosp ROM.

The rest of your questions are answered in the op.
[Nexus 4 General] RohanM:
I thought thats a stock rom with recovery !! How is that aosp rom ?? Plz explain :confused::rolleyes:

In op of that thread it written that it will receive ota also.
[Nexus 4 General] efrant:
Actually that ROM is not an AOSP ROM. It was put together from a dump of a stock Indian N4 that had JDQ39E installed.

If you flash that, you should be able to install an OTA to it. (But, as i said before, just as easy to flash the system and boot images contained in a factory image from Google.)
[Nexus 4 General] RohanM:
Thanks for the reply. But I live in India and in google developer site they have only JDQ39 not JDQ39E. Where can i get that image ?? Or should i proceed to flash that zip only ? What I want is 4.3 ota. That's it.
[Nexus 4 General] efrant:
If you flash JDQ39 from Google's developer site, you WILL get the OTA to 4.3. That is what I've been trying to tell you. You don't need to have JDQ39E.

But, if you want to have JDQ39E, then yes, flash that zip, and it should get you the OTA as well.

By the way, 4.3 has been leaked already, so you can flash the 4.3 zip instead of the JDQ39E zip...
[Nexus 4 General] RohanM:
Yup already on 4.3 leak since yesterday. But the device running a little hot. Will install official ota asap it starts rolling. As the leak is old and google might have changed a lot of since then.
[Nexus 4 General] El Daddy:
Sorry, I didn't know there was an official JDQ39E ROM. As efrant said you should get an OTA but you most likely won't be able to manually flash the OTA meant for JDQ39.
[Nexus 4 General] RohanM:
But google will release something for JDQ39E also !
[Nexus 4 General] efrant:
Yeah, it was pre-installed on the white N4s sold in India only, as far as I know. And the factory image was never put up on Google's developer site.

Yes.

But if I were a betting man, i would say that the update to 4.3-from-JDQ39 will be available before the update to 4.3-from-JDQ39E, because JDQ39 has a larger install base, and so the odds if someone posting the OTA file here on XDA is greater.
[Nexus 4 General] RohanM:
Well it was preinstalled on black and white both in india. Also now i doubt that google will release it here or not as N4 never released in india by google it was by LG. :eek:
[Nexus 4 General] tiru.adi13:
Deleted

Sent from my Nexus 4
[Nexus 4 General] iStayHigh:
Well my question is I'm currently running a custom ROM & custom kernel + baseband .27 but I do have a backup of my stock ROM & kernel and I have the file for baseband .48, so for me to get the ota I would need to flash back to stock & flash baseband .48 is this correct....TIA

Liquid Smoothed out Matr1x'd N4