yashsingh1/xdaforums huggingface dataset:
[Nexus 4 General] killa_byte:
just tried following it and dont understand... copy to sdcard? cand find sdcard folder so copied to root folder, then it says open command prompt enter directory mentioned above...there is nothing mentioned above! i cant be bothered rooting... think i need to research more cause its not easy to do... it was very easy on my galaxy s2

---------- Post added 22nd February 2013 at 12:12 AM ---------- Previous post was 21st February 2013 at 11:28 PM ----------

how do i check if i have bootloader unlocked? ..plus i've having a weird problem, when booting into recovery it shows the android guy laying down with a ! sign above him... what does that mean?
[Nexus 4 General] eskeyy:
If you have unlocked bootloader then when you booting phone you should see open locker under google logo (if you see just google then bootloader is locked). Read last few pages of this thread and you will be know how to boot properly into recovery.
[Nexus 4 General] elitemeat:
Thanks for the help. I need some further clarification. According to the OP if I followed section C, Option 1, I downloaded JOP40D factory image from OP then I went to efrant's guide, which says to flash bootloader, flash radio, flash system partition, etc. Do I need to do all of this again? I've done this guide only once in my past when first unlocking my bootloader and rooting, my real question is which exact steps in this guide do I need to follow in order to get back stock in order to flash the OTA?

I've tried reading on Android material but can't find any even on the index in the General boards. It's hard to get educated on Android modifications and terminology when I'm just following guides that tell me exactly what to do but not why I do that or what flashing these things mean. A lot of times when I ask questions people tell me what to do but not how to do it...Even simple guides that have taught me how to backup all my data have gone wrong and I've lost data twice (thinking I backed up) while owning my first Android. Part of my learning experience, finally know how to make a nandroid backup now.

Anyways, after I figure this out, will this wipe all my data? I have done a backup but still curious because it's a hassle to restore sometimes.
[Nexus 4 General] El Daddy:
Re: [INFO] Nexus OTA Help-Desk

You only need to flash system and boot images. Those are D9 and D11 in efrants guide. You can skip everything else.

You won't lose your data either.
[Nexus 4 General] elitemeat:
what does recovery.img do? It is listed as optional to flash in OP.
[Nexus 4 General] El Daddy:
Re: [INFO] Nexus OTA Help-Desk

Its the stock recovery. As opposed to a custom recovery. i.e. clockwork or TWRP.
[Nexus 4 General] killa_byte:
yep i do have the bootloader unlocked then cause i got the 'open padlock' icon when booting up. i will try reading the last few pages... i'm getting mixed advice from ppl. some are telling me i just need to apply SuperSU.zip cause my binaries just need updating. And someone ppl are telling me to root again and then apply SuperSU.zip

not entirely sure how to do it cause all i did when rooting was use the ToolKit and chose option 8 which was the all in 1 options, and that was it. Not sure how to boot into recovery or even if i have recover on my phone...
[Nexus 4 General] eskeyy:
Odp: [INFO] Nexus OTA Help-Desk

Update or apply supersu.zip mean this same, you can use for that custom recovery or toolkit but toolkits are not updated to work with android 4.2.2
[Nexus 4 General] killa_byte:
when i try booting into custom recovery this is what i am doing.

power off phone

hold volume down and power

it loads a screen

i then toggle using volume up/down and select recovery and press power button

it then displays android person laying down with '!' sign. (it does not go any further or let me do anything)

i'm not sure what to do from there...
[Nexus 4 General] eskeyy:
Odp: [INFO] Nexus OTA Help-Desk

It was mentioned many times how to do that but you have stock recovery not custom, for boot in custom recovery you need use fastboot
[Nexus 4 General] killa_byte:
Re: [INFO] Nexus OTA Help-Desk

I know I'm a noob for asking this but how do I do that?

---------- Post added at 11:26 AM ---------- Previous post was at 11:22 AM ----------

Scratch that. I will use this to install custom recovery

http://techdeville.com/2012/12/04/how-to-install-cwm-recovery-on-google-nexus-4/
[Nexus 4 General] eskeyy:
Odp: [INFO] Nexus OTA Help-Desk

Its exactly what you have to do. Before flash recovery put superSu.zip in phone memory. When you flash recovery boot into it and flash superSu and thats all.
[Nexus 4 General] killa_byte:
just read i will lose all data on phone! :( that is not really an option as i dont have time to backup/restore etc. i think i will leave doing this now and stick with what i got... even though i'm not happy as messages etc dont come through until i hit power button now
[Nexus 4 General] eskeyy:
You dont need unlock bootloader so you dont lost data, i dont see there nothing about that, you just need flash recovery and boot into it, you dont need even flash recovery, I can help you in PM but a bit later. I gota go now. If you want this help send me message on PM.
[Nexus 4 General] efrant:
Good, this is the first step.

It seems that you haven't done much reading, because "getting root" and "flashing the SuperSU.zip" are exactly the same thing. This is a good place to start reading.

This is the main issue here: you used a toolkit instead of doing it manually, so you have no idea what is going on. http://xdaforums.com/showthread.php?t=1469909

As was mentioned, you have the stock recovery. That screen you are seeing (with the android person laying down with '!' sign) is the main screen for the STOCK recovery.

The instructions in that link are messed up. To root, all you have to do is follow the instructions under part E of this link.

The journey is important. Read, learn, and don't give up.
[Nexus 4 General] eskeyy:
I helped him on PM. He is rooted now. Your thread with manual is great but for noobs is a bit complicated i think, especially when somebody need just root.
[Nexus 4 General] efrant:
Re: [INFO] Nexus OTA Help-Desk

I agree that it many look complicated, but that is because i split everything out so that people see what is going on. Saying "just flash SuperSU.zip to get root" is not explaining anything to anyone. And after all, this is technically a developers' site: if someone "just wants root" without wanting to know "HOW to get root" and what that means, this is the wrong site for them.
[Nexus 4 General] eskeyy:
I agree with you, anyway im not developer too but everyone must start from something, I started with g1 so i had a lot time to learn how fastboot/adb works as well root and similar things.
[Nexus 4 General] redisdead:
Re: [INFO] Nexus OTA Help-Desk

Thanks to the OP, I've been able to update my N4 which was on Matrix 6.0 kernel. Kudos!
[Nexus 4 General] tippingvan:
I do not want the update, I just want to get rid of the notification in my notif bar. It wont let me swipe it away. Anyone know how to get rid of it??
[Nexus 4 General] cristian274:
Could anyone please give stock recovery of 4.2.2?
[Nexus 4 General] El Daddy:
Download the image and pull it from there, https://developers.google.com/android/nexus/images#occamjdq39
[Nexus 4 General] drbrainsol:
Guys, i need some help. I am rooted, unlocked bootloader, CWM recovery, custom kernel (well, stock with moles color calibration) and i also removed one or two google apps with titanium backup. Can i just take option c3? That is, flashing the JPQ39 Factory Image in fastboot. Will i lose data/apps? I shouldn't if i don't wipe anything, right?
[Nexus 4 General] eskeyy:
If you flash whole image then you will lost data. Better option for you is download JOP40D factory image and flash via fastboot just system and boot, after that you can flash update,zip via CWM without lost data/apps
[Nexus 4 General] drbrainsol:
Thanks a lot. Just upgraded to 4.2.2 :D I didn't want to do it to be honest...but that stupid notification kept appearing every few days :P
[Nexus 4 General] golgo1313:
my phone had downloaded 4.2.2 and it is telling me "system update downloaded" but i don't quite want to update yet. can anyone tell me how to turn that notification off? i don't want to accidentally hit the button. not yet.
[Nexus 4 General] cristian274:
Thanks El Daddy, after pull the recovery.img from there i just need to use fastboot to flash the file, right?
[Nexus 4 General] El Daddy:
Re: [INFO] Nexus OTA Help-Desk

That's correct.
[Nexus 4 General] aichemist:
A few of us are having trouble updating 4.2.2 because we use to have some modified apk installed in the system/app. Even though we removed it, its still coming up when we use recovery to flash zip file.

Its the error 7 coming up as well.

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

I have a wallet.apk that I applied forcefully when it wasn't supported in Canada. Even though I removed it, I still have have the update error with flashing the zip file.

How do I replace the stock image system/app files without doing a full wipe to phone? I want to keep my apps if I can. Thanks.
[Nexus 4 General] El Daddy:
Flash the system image only in fastboot.
[Nexus 4 General] eskeyy:
I add from me, you will not lose anything after that.
[Nexus 4 General] aichemist:
so i downloaded the occam-jop40d-factory-ca7602f0.tgz file and unzipped it.

Under the occam-jop40d folder there is a image-occam-jop40d.zip file.

In the image-occam-jop40d zip there is a boot.img,recovery.img, system.img, and userdata.img.

1. When I'm in fastboot, do i just flash this image-occam-jop40d.zip file, and it will let me choose the system.img?

2. Or should I go into the image-occam-jop40d.zip and remove everything else on the zip file except the system.img.

Sorry about the noob question, I haven't really flashed img file directly before.

Any help is appreciated.
[Nexus 4 General] efrant:
"fastboot flash" does not flash zip files. Extract the system.img file from within and type: fastboot flash system system.img
[Nexus 4 General] El Daddy:
Re: [INFO] Nexus OTA Help-Desk

You'll only be using the system.img file.

While booted into the bootloader use the command:

fastboot flash system system.img

Edit: efrant is a ninja.
[Nexus 4 General] aichemist:
noob question again.

In order for windows command prompt to understand "fastboot" commands, do i need to install android sdk first?
[Nexus 4 General] El Daddy:
You don't need the whole sdk. I've attached fastboot and adb to the OP.

You'l also need the correct drivers. Use these http://xdaforums.com/showthread.php?t=1996051
[Nexus 4 General] aichemist:
Thanks for all the help. I have managed to install Android SDK, Changed some variables in Windows so the basic commands of "adb" and "fastboot devices" work with command prompt from a youtube clip.

fastboot the system.img and for 71 seconds that it was running, I have to say I was holding my breathe for a while and scared I will brick the phone haha.

After that was done, i flashed the 4.2.2 update and it all worked out. Thanks for the help everyone.
[Nexus 4 General] ap1618:
referring to the instructions in the OP, I assume "OTA.zip" means the same file as the update located at http://android.clients.google.com/p....signed-occam-JDQ39-from-JOP40D.de8b8d10.zip?

thanks
[Nexus 4 General] cristian274:
El Daddy! why after i flash the recovery.img and enter recovery mode i just see the android robot lying down with the red triangle above?
[Nexus 4 General] El Daddy:
Re: [INFO] Nexus OTA Help-Desk

Because that's what stock recovery looks like. :)

Hold power then volume up to open the menu as stated in the OP.
[Nexus 4 General] cristian274:
Thanks El Daddy, you are so kind, i did it :)
[Nexus 4 General] eskeyy:
Odp: [INFO] Nexus OTA Help-Desk

Yes, it is exactly that file
[Nexus 4 General] davidgs:
I have a question, I was able to install OTA using Section B my wife's and mine (THANKS!). But, I only rooted my wife's phone because after upgrading them we wanted to use Titanium Bkp. But now that she has all her apps/data, it would be best if she goes all stock (currently she is all stock but with custom recovery) so that she gets OTA painless when it comes.

Since I noticed that 4.2.2 OTA makes you unrooted and back to stock recovery, would it be possible for me to reflash this OTA on top of the current 4.2.2 to her phone so that it unroots and back to stock recovery (I missed my opportunity for this when I updated)?

I know I could test it, but I don't want to mess up with my wife's phone, so I'm asking in case someone know about this.

Thanks!
[Nexus 4 General] efrant:
What is it that you want? Just the stock recovery? All you have to do is download the JDQ39 factory image, extract the recovery.img file from within, and either flash it using fastboot (fastboot flash recovery recovery.img), or grab one of the many pre-made flashable zips floating around (like this one), replace the "recovery.img" in it with the one you just extracted, and flash using your custom recovery.

EDIT: Fixed link.
[Nexus 4 General] spaceman860:
Re: [INFO] Nexus OTA Help-Desk

@efrant that pre made zip is for maguro don't we have a different mount point

Sent from my Nexus 4
[Nexus 4 General] efrant:
Woops! I thought I was in the Nexus 4 forum. I will change the link. Thanks.

EDIT: link fixed.
[Nexus 4 General] davidgs:
You made it easy! I'll do that. Thanks for your help!
[Nexus 4 General] csunny95:
I am on a custom rom and recovery. If I want to back to completely stock and go for an OTA, Can I download the complete JPQ39 image from google and then flash it back with the tool by mskip? http://xdaforums.com/showthread.php?t=1995688

After I flash this image, will it restore to the stock recovery or keep my custom recovery untouched?
[Nexus 4 General] azrash:
Re: [INFO] Nexus OTA Help-Desk

use efrant’s command line method, you'll be able to see what you do. I am not sure about the toolkit, but if you don't execute the flash recovery command, then your custom recovery would remain intact.

Flowed from my Nexus 4
[Nexus 4 General] lopri:
Root without Custom Recovery

So Efrant, please bear with me. I now you've been a tremendous help for us newbies. I would like to confirm the followings.

The assumption/bottom-line for me is that I want the root access for tweaking and apps that require root, but do not want custom recoveries. I also would like to be able to receive OTA updates with minimal hassles.

According to your explanation,

1) As long as bootloader is unlocked,

2) All you have to do is to flash stock recovery extracted (fastboot flash recovery recovery.img)?

Will that give me a stock ROM with root access? -> Question No. 1

Does that wipe off the device -> Question No. 2
[Nexus 4 General] eskeyy:
You will have stock rom but after tweaking you lose that, if you want OTA without problem you can't modify system apps or kernel. If you want modify, you can leave custom recovery as well because you will need flash stock system or/and kernel before update anyway. You can update with custom recovery (flash update.zip via custom recovery) if your system and kernel will be stock (without any modifications but you can have root and use apps with root access). Flashing system, kernel or recovery not cause wipe
[Nexus 4 General] efrant:
Re: [INFO] Nexus OTA Help-Desk

To answer your two questions : no and no.

Just follow the instructions in part E of the root li k on my signature. That will give you root while remaining otherwise stock, including stock recovery.
[Nexus 4 General] Melad360:
hi everyone, so i made this thread here: http://xdaforums.com/showthread.php?t=2167957 on why my n4 wouldnt update, and i was directed to this thread. i have some questions as i cant seem to understand what to do. the questions i have are basically how to open a command prompt in a directory on a mac, and if i unpacked and extracted all the files in the image properly

thanks!
[Nexus 4 General] efrant:
Although I have never used MacOS, do you not have a program called "terminal" or something similar?

As for the images, as long as you have them extracted, i.e., they are in a directory which is not in a zip/tar/tgz/whatever archive, you are good.
[Nexus 4 General] Melad360:
Thanks for the reply, so yes there is a program called terminal, I opened it but I don't know how to make it run off the directory I made.

And for images, then I guess I did everything right. Thanks again :)
[Nexus 4 General] efrant:
I'm assuming that you would use the same commands:

ls to list the files/directories in the directory you are in

cd to change directory, e.g., if you see a directory call junk in your current directory, cd junk will move you into the junk directory. cd .. will move you back up one directory

You will need to find where you saved the files and navigate to that directory.
[Nexus 4 General] Melad360:
it works! thanks, il see if i can get this right lol if anything goes wrong il just post here again :p

---------- Post added at 04:48 PM ---------- Previous post was at 04:01 PM ----------

i cant get past D1, it isnt fastbooting my phone :/
[Nexus 4 General] efrant:
You'll need to be a bit more verbose. What do you mean "it isn't fastbooting" your phone?

Your phone is plugged in to your Mac and booted in fastboot mode, correct?

Your terminal is open in the same directory as you have the images and the fastboot-mac file, correct? So when you type ls in that directory, you should see all the images and fastboot-mac (along with some other files, correct?
[Nexus 4 General] Melad360:
like the computer isnt recognizing my phone.

everything was right, but i dont have a fatboot-mac file, i just see the 6 img files :/
[Nexus 4 General] efrant:
Did you do step C2?
[Nexus 4 General] Melad360:
oh... no lol. sorry about that, il see if it works now :p

---------- Post added at 05:09 PM ---------- Previous post was at 05:06 PM ----------

so i typed in: ./fastboot-mac devices

and got back: dyld: unknown required load command 0x80000022

Trace/BPT trap

what does that mean?
[Nexus 4 General] efrant:
I think someone else who has used a Mac before needs to take over from me. I have no idea what that means.
[Nexus 4 General] f.us:
I am by no means an expert in rooting/flashing... but i could try help.

Your guide is pretty well written and I can handle the terminal.

---------- Post added at 11:29 PM ---------- Previous post was at 11:19 PM ----------

hmm... that's odd. Never had that error before. But it just says your terminal couldn't understand your command.

Did you manage to navigate to the directory where the fastboot-mac file is located?

The fastboot-mac file and all the images should be in the same directory.

The pwd command gives your the exact path back.

Ideally you should already be in the directory which contains the fastboot-mac and all the images.

Use the ls command to list all files in the current directory.
[Nexus 4 General] Melad360:
oh thats weird :/ yeah everything was under the same directory so i dont know whats wrong
[Nexus 4 General] f.us:
Alright. Please confirm.

1) In Finder, you have the img files and fastboot-mac in one directory.

EDIT: reading your original thread: everything should be in a folder on the desktop

2) In Terminal, if you type pwd you get an output like /Users/YourUserName/Desktop/Folder

The important part here is, you get the above output. Since everything is in that folder.

3) Just to test the output for command not recognized by the Terminal. Type ./test

The output shuold be: -bash: ./test: No such file or directory

4) If you now type ./fastboot-mac you should get a couple of lines explaining commands and syntax for fastboot

If we get this straight, we can proceed.
[Nexus 4 General] Melad360:
everything up till 3 is right. when i typed in ./fastboot-mac i got:

dyld: unknown required load command 0x80000022

Trace/BPT trap

is that rught?
[Nexus 4 General] Melad360:
So I tried everything, download the file again even, still no luck.. any ideas of what could be wrong?
[Nexus 4 General] f.us:
Well, it seems that this version of fastboot is not compatible with your os/hardware.

May I ask what version of Mac OS X you're using? On what hardware?

Reading your original thread, you managed to use a custom rom (pa) and overclock your device.

May I ask how you accomplished that? Used method, guide etc.
[Nexus 4 General] efrant:
Maybe it's time to fire up a Windows box and do it using that?
[Nexus 4 General] f.us:
Quite possible, although a Mac can handle that ^^
[Nexus 4 General] Melad360:
:/ the os is 10.5 lol it's a 5 year old computer, and it's on a core 2 duo.

what I did was too flash pa and gapps in cwm, all done. And for overclock, I flashed a kernel in cwm also. Iused faux 123, motley, bricked, and trinity.But right now I'm using motley.

I might just try to use my mom's Windows laptop if the stuff doesn't work on Mac
[Nexus 4 General] f.us:
If I get this correct, you flashed a rom and google apps using clockworkmod recovery...

saying you used fastboot to either boot into recovery or "permanently" flash it.

Meaning... at some point fastboot was working.
[Nexus 4 General] Melad360:
Yes. I got into recovery through fastboot some of the Times, other times I went into rom manager and pressed boot into recovery. Now I go in through the power menu from pa, there's an option to boot into recovery straight from there. My fastboot is working on my phone
[Nexus 4 General] f.us:
Curious!

Let us give it another shot before moving over to use a windows machine.

1) Connect your device via usb to your mac

2) Boot into bootloader

Either by

a) using the power menu of your rom

or

b) manually by powering down and then pushing volume-down & power until it boots

3) Navigate with the terminal into the folder on your desktop

4) type ./fastboot-mac devices and enter

Could you take a screenshot of your terminal session? (You can use the built in screenshot command of mac os x: shift+cmd+3)
[Nexus 4 General] nairb1:
I'm getting the same error. I'm stock except for root, cwm and molesarecoming's color fix kernel.
[Nexus 4 General] CheesyNutz:
Re: [INFO] Nexus OTA Help-Desk

After the ota will custom kernels be okay to use?

And what about root?
[Nexus 4 General] Cor-master:
OK can somebody just upload adb tools for me? The stupid folder is too confusing. I'm seeing a 100 files that say "ADB.C" "ADB.H", but not seeing the actual files I need.

I'm getting so freaking frustrated right now. Gotta be to work in an hour, and been stumped on this stupid step for an hour
[Nexus 4 General] El Daddy:
You must not have. To make this easier in the future I've attached the .zip to the OP. You see it on the bottom.
[Nexus 4 General] Cor-master:
Thank god!

I have these tools because of HTC's bootloader unlocking process. I made a folder a year ago for my HTC Flyer, and have been using that since, but have no idea how to get the stuff back. Thanks!
[Nexus 4 General] meangreenie:
afaik you will need the original boot.img.. but that still hasn't helped me, unless i have the wrong one
[Nexus 4 General] El Daddy:
You need the stock kernel. See section C

Custom kernels may be OK to use, but I would check with the kernel builder first.

Yes you can root. I linked the SU.zip in section B4
[Nexus 4 General] Cor-master:
ARGH, so I walk away today, a failure....

"cannot read "sideload"

I hate ADB. It works great on HTC stuff, had no luck with it on nexus stuff.

I'm outta time, gotta get ready for work
[Nexus 4 General] ponghk513:
i got the same message "status 7"

i just flash the faux kernel and no sys apps were modified :(

please help
[Nexus 4 General] El Daddy:
Make sure you are typing correctly. Windows auto names extensions. So just name the file "update"

adb sideload update.zip
[Nexus 4 General] El Daddy:
You need to have the stock kernel, as I wrote in the OP.
[Nexus 4 General] BrandoHD:
I have everything stock, except for root and I have the same error

Only mod I did was use Franco Kernel, and I have been back on stock kernel since yesterday
[Nexus 4 General] akhan47:
It should tell you what files are causing errors... power something.so?