yashsingh1/xdaforums huggingface dataset:
[Nexus 4 General] efrant:
Hmmm. That doesn't sound good.

Can you get into download mode? If so, you can follow this.
[Nexus 4 General] Shftup:
Sh$t.

Thanks Efrant - I will try this tonight when I get home from work.

---------- Post added at 03:05 PM ---------- Previous post was at 02:59 PM ----------

Actually, i just noticed that the LCD is on but nothing but a black screen - hence the heat.
[Nexus 4 General] Shftup:
Ok, I just got to fastboot, but now lost it

so I must be doing something wrong to get to fastboot

Power plus Vol Down correct?

---------- Post added at 05:43 PM ---------- Previous post was at 05:24 PM ----------

Okay - I got this bad boy to work. I did a recovery and restored by backup.

thanks all
[Nexus 4 General] cvidal80:
Can this method Fix my no imei and no baseband problem?????....plz help!
[Nexus 4 General] Eanan:
Thanks, very helpful for when I want to return to stock android, should I ever want to in the future.
[Nexus 4 General] nitin.chobhe:
How and when did you lost your IMEI? If you lost it after installing a custom ROM, then that might be because CWM recovery version. Check that. If you have the latest recovery, downgrade it to 6.0.3.5 and then install the ROM. You'll get your IMEI back :fingers-crossed:
[Nexus 4 General] cvidal80:
i lost my imei after update 4.3 vi OTA ..after that it get stuck on the X logo then i must reboot and reinstall the 4.2.2 version ...and the i figured out that i have lost my imei settings and no card recognition...

anyway im gonna try this...maybe fix it...
[Nexus 4 General] nitin.chobhe:
Do you have CWM recovery installed? If yes, then this will definitely solve your problem :fingers-crossed:
[Nexus 4 General] Atm22:
Attachment

Wich of the attachments do I need to downlode, and do I need to creat the directory (file right?)?
[Nexus 4 General] willy1980:
OK so I have stock with root and twrp can I just download factory image strip out the update and update it with twrp or do I have to go back to original recovery???
[Nexus 4 General] Natakranta:
Which stock version do you have now? To which stock do you want to update? I know there options:

1) you fastboot flash recovery stock_recovery.img for your current build, remove root, wait for OTA and let it update

2) you go to the OTA thread and search for link to download OTA manually and flash it in TWRP, I/m not sure here, but as far as I remember it requires removing the root as well

3) download factory image from here, unzip it to your PC and fastboot flash images you need/want. Don't flash recovery.img if you want to stay with TWRP on your phone. Don't flash userdata.img cose it will erese your SD card partition with all your pictures, music, movies, files, apps and their data.

And have your SuperSU_1.65.zip ready on SD partition to flash it at the end to regain root.

Out of this three I personally prefere the 3rd on. Fastboot flash is the king :)
[Nexus 4 General] imatts:
For those having trouble actually completing the 8GB issue (which will show around 5GB of storage) & dont quite understand how to follow those directions:

1. Boot into recovery (power off the device, then hold the volume down button + the power button)

2. Press volume down until you reach the recovery option, press the power button to choose the option.

3. While at the alerted android screen, hold the power button and press the volume up button ONCE.

I was confused myself on how to do this, which is why I thought I would post this.
[Nexus 4 General] willy1980:
Thanks for the info in on jwr66y just getting ready for 4.4
[Nexus 4 General] eddy4823:
Do we get OTAs on Custom Recovery ? Read somewhere that we need to be on Stock Recovery. Hope that's false. I wanna be on stock rom but rooted with custom recovery.
[Nexus 4 General] Natakranta:
You will get OTA downloaded to your phone even when rooted and with custom recovery but it will not auto update because first OTA checks if your os is full stock and by this it means not rooted and stock recovery. Post just above yours is quoting my answer to this matter.

After my experience with flashing 4.3 image just after it was available to download and then all the problems with apps not working due to not being updated yet to 4.3 not even mentioning waiting for new root working fine with 4.3 I will now not jump to 4.4 like a crazy maniac. I'm going to wait a week or two until things settle.

Then I'll try it out of curiosity and disapointed with lack of customisation options jump to Slim ROM as soon as Team Slim has first weekly of 4.4 ready.
[Nexus 4 General] eddy4823:
3rd Step looks the way to go. Google does uploads the. img files on the launch of next Android version, doesn't it ?
[Nexus 4 General] willy1980:
With option 2 do I need to do a full wipe or just clear cache??
[Nexus 4 General] Natakranta:
Maybe not instantly, but pretty fast. Fast enough for me. As I wrote, I will not be rushing now with the update.

The beauty of OTA auto update is that you are not losing your user data, apps and media files. Otherwise imagine all the users tapping “accept the update, reboot and install” and then not seeing pictures of their kids any more. That would be an angry mob charging towards Google headquarters. As I live next to them and did not see it happening in July after 4.3 update took place, I am guessing user data is safe with OTA update.

Hence, no, you don’t need to do a full wipe flashing OTA. I’d just clear cache.
[Nexus 4 General] Atm22:
Attachments

Which of the attachments I'm suppose to download? And do I need to creat the directory? (Directory is a folder, right?)
[Nexus 4 General] punitthereddevil:
When kitkat releases,it gonna take a while for the OTA to be available...but the factory image will be put up on Google's website sooner...so can I just download the image and flash the .imgs via ADB...? Will it install without any problems...? If yes, then can I not flash user data.IMG to keep my data intact or do I have to do a complete wipe too...?

------------------------------------------------------

| NEXUS 4

| SLIMBEAN 4.3 BUILD 1 OFFICIAL

| ZIDDEY'S OTG KERNEL r184

| TWRP 2.6.3.0
[Nexus 4 General] Natakranta:
That's what I did in August with my Galaxy Nexus. I downloaded Maguro 4.3 factory image from Google and fastboot flashed all the images apart of userdata.img Rebooted and all went fine, my data and apps were as I left them in 4.2.2. After some testing of stock I flashed CWM and rooted with SuperSU.zip. Unless Google does some major changes it should work the same coming from 4.3 to 4.4
[Nexus 4 General] punitthereddevil:
That's what I had in mind too...but 4.2.2->4.3 was not a major change and it still stayed in jellybean...but I'm not sure about kitkat coz lots of things might have changed...

And I guess I'll have to wait for chain fire to release a supersu update compatible with 4.4 too, right...?

------------------------------------------------------

| NEXUS 4

| SLIMBEAN 4.3 BUILD 1 OFFICIAL

| ZIDDEY'S OTG KERNEL r184

| TWRP 2.6.3.0
[Nexus 4 General] RainGater:
I know stock recovery is definitely needed but is stock kernel required too? Are you sure or just guessing?
[Nexus 4 General] spaceman860:
Stock recovery is NOT needed for ota. Stock kernel is almost always needed for ota.

BLACKED OUT LTE N4
[Nexus 4 General] punitthereddevil:
http://xdaforums.com/showthread.php?t=2145848

Answers to all your questions...:)

------------------------------------------------------

| NEXUS 4

| SLIMBEAN 4.3 BUILD 1 OFFICIAL

| ZIDDEY'S OTG KERNEL r184

| TWRP 2.6.3.0
[Nexus 4 General] MarceFX:
Hi,

I followed all these steps and sucessfully got to stock JDQ39 (4.2.2). However, how can I upgrade to 4.3? I tried OTA, but I got this "error" screen and need to reboot my phone every time. Thanks
[Nexus 4 General] El Daddy:
From efrant's 101 guide:
[Nexus 4 General] mailistman:
thank you for pointing me a direction. yes i did the OTA update when i setup my N4 for the 1st time. further questions : since i am unroot, my only option to mount the system partition based on efrant's 101 is :

"In recovery: go to the mount menu and mount /system"

i bootfast my N4 > go to recovery > go to recovery's menus i only have :

- reboot system now

- apply update from ADB

- wipe data/factory reset

- wipe cache partition

i don't see any option to mount. can anybody please teach me how ? i googled but i didn't find any clues.

thank you,
[Nexus 4 General] efrant:
You need a custom recovery to do that. The stock recovery does not provide those options.

Follow part E in the guide, then remove those two files using Root Explorer or something like it, then flash your custom recovery.
[Nexus 4 General] mailistman:
efrant,

i am back for more question sir. i managed to instal Root Explorer (RE) & Super SU. browsed in RE to /system, i couldn't find /system/etc/install-recovery.sh or

/system/recovery-from-boot.p.

my phone screenshots are here :

h**p://imageshack.us/a/img5/8371/screenshot2012120907583.png

h**p://imageshack.us/a/img208/8914/screenshot2012120907445.png

please adjust h**p as i can't post them here yet.

i am sure i missed something but i don't what it is.
[Nexus 4 General] mailistman:
with adb still can't root

just now i tried adb command (in adroid mode with root access granted) to replace the 2 files but still not success. it says "No such file or directory"

screenshot here h**p://imageshack.us/photo/my-images/248/screenshotadb.jpg/

anything else i can try ?

thank you.
[Nexus 4 General] efrant:
Ok, that means they are not there, and that is fine.

Download this to the same folder on your computer as your fastboot.exe file, reboot into fastboot mode, and type: fastboot flash recovery recovery-clockwork-6.0.2.0-mako.img
[Nexus 4 General] mailistman:
@efrant :

sir, i just did reflash recovery. now i can go to CWM recovery mode from flashboot. not going to recovery stock like before. does it mean i am in root now ? :cowboy:

also i tried to rename the 2 files using Root Explorer & adb shell command (from android & from recovery), both were not success as it can't find the directory :confused:

should we never worry about it anymore ?

thank you,
[Nexus 4 General] efrant:
You already had root from before (by following part E). Having a custom recovery like CMW is separate than having root.

The files you refer to only exist on stock ROMs that have been updated via an OTA update. The only purpose they serve is to re-flash the stock recovery on every boot. They are not needed for anything else. If they are not on your device, perfect.
[Nexus 4 General] mailistman:
sir, thank you so much.... :highfive: you are savoir !!
[Nexus 4 General] miku3191:
Nice Tutorial !

Very nicely said about backing it up ! Will see to it if I got problems later ! ;)
[Nexus 4 General] SpawN-:
Yea, nice tutorial ! :o
[Nexus 4 General] faultywarrior:
Great guide! It's been a while since I've done this from stock on my Nexus S, so it was a refresher on the basics!

On a side note, I noticed that as of today, Google pulled the stock Nexus 4 images from their site...wtf?

hxxps://dl.google.com/dl/android/aosp/occam-jop40d-factory-ca7602f0.tgz - direct targunzip link from Google Cache

hxxp://webcache.googleusercontent.com/search?q=cache:4UOT7pVnTxoJ:hxxps://developers.google.com/android/nexus/images+&cd=18&hl=en&ct=clnk&gl=us - Google Cache version

hxxps://developers.google.com/android/nexus/images - live as of me posting this

Replace xx with tt...damn anti-spam rules :rolleyes:
[Nexus 4 General] El Daddy:
Yikes. That's not cool.
[Nexus 4 General] thephantom:
Noticed that as well. The occam family is not there. Good thing oldblue has them on his site. Wonder what's up with Google?
[Nexus 4 General] evaradar:
It might be because of the LTE thing.

http://www.androidcentral.com/nexus-4-factory-images-disappear-google-site
[Nexus 4 General] efrant:
Although, I would imaging that it would be pretty easy to isolate the change...
[Nexus 4 General] iconoclastnet:
Sure, but the regression testing that follows could be quite time consuming. Even if the latest full release of android has a few bugs here and there, if there's any part that you want to be really really sure doesn't break, the radio drivers would certainly be one of them.
[Nexus 4 General] jpmib:
thank you for the guide!
[Nexus 4 General] Lownita:
When flashing factory image, will the bootloader be flashed too? Also, is there something like the flash counter on samsung devices? Or just flash factory image really is complete "restock"? Sorry, still noob to nexus devices :D
[Nexus 4 General] efrant:
If you follow the instructions in the first post, you can choose to flash the bootloader or not. Recommended to do so though.

And no, no flash counter on Nexus devices.
[Nexus 4 General] OhDae-su:
What exactly is the problem?! Where do you get stucked

See above ;)

What happens if you hit enter after typing "fastboot reboot"? If you stuck at Google screen read the instructions below of step 15). If nothing happens (which would be weird) yo can reboot your device manually using volume keys (select reboot) and power button (to apply).
[Nexus 4 General] D_RiDeRs:
[HOW-TO] How to flash a factory image / return to stock / unlock / root

I followed the guide as given in the first post, then I got the message in fastboot mode:-

writing 'bootloader'....

FAILED <remote not supported in locked device> :eek:

Secondly, in the first post it is given "extracting all 6 files in the same folder as the fastboot file"...

After extracting .tgz file, I got 6 files viz.,

1. bootloader-mako-makoz10o.img

2. flash-all.bat

3. flash-all.sh

4. flash-base.sh

5. image-occam-jdq39.zip

6. radio-mako-m9615a-cefwmazm-2.0.1700.48.img

Should I also unzip "image-occam-jdq39.zip" to get system.img file???? :confused:

For reference I am attaching snapshot of the error message.

I am on Android 4.2.2 JDQ39 on PA 3+ with Franco Kernel.
[Nexus 4 General] OhDae-su:
You're getting that error message because you forgot to unlock your bootloader or you locked it again... To unlock see OP, part D number 2).

Follow the instructions starting from there. Make sure you backed up everything you need (also SD card content) before unlocking bootloader!

But first you have to get all the images you need.So extract jdq39.zip. You already have:

-bootloader.img

-radio.img

In addition you need:

-system.img

-userdata.img

-recovery.img

-boot.img

Happy flashing...

BTW why you want to flash Android 4.2.2 rather than the latest 4.3?!

---------- Post added at 09:23 AM ---------- Previous post was at 09:19 AM ----------

Right click on the file you downloaded and chose 'extract here' or similar using 7zip doesn't work? Or what?
[Nexus 4 General] genevois26:
Thanks for the short course! Very interesting!
[Nexus 4 General] D_RiDeRs:
[HOW-TO] How to flash a factory image / return to stock / unlock / root

Is it possible that my bootloader is locked because I am on custom ROM with custom kernel.

And before flashing custom ROM we need to unlock the bootloader, isn't it?
[Nexus 4 General] OhDae-su:
No, that's not possible. No custom ROM locks the bootloader itself in the process of flashing. Unlocking and locking can only achieved by user action. So, at some point you locked it again after you flashed your currently used custom ROM.

Save all your data needed, unlock the bootloader again and proceed flashing stock as described in OP.

BTW there are really good threads explaining the terms of Android and needful things to know when it comes to flashing stuff:

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

Regards
[Nexus 4 General] D_RiDeRs:
[HOW-TO] How to flash a factory image / return to stock / unlock / root

:good:

Ok...I flashed stock ROM 4.3 on my N4 & locked the bootloader.

Is it necessary to lock the bootloader to get OTA updates directly from Google?? :confused:

And after flashing stock ROM 4.3 JWR66V I got only 5.66GB in my storage of SD card instead of 16GB storage..

Can you explain why this happened & how to get full storage back?? :silly:
[Nexus 4 General] sordna:
No, it's not at all necessary to have your bootloader locked to get OTAs! Anyway, if you want to unlock it again for other reasons, if you are rooted you can do so without losing data with the free bootunlocker app, if you are not rooted you can try this method:

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

Of course, if you don't care about the data, you can use fastboot to unlock and wipe the phone.

http://xdaforums.com/showthread.php?p=35119185
[Nexus 4 General] NoobNexus:
Downgrading from 4.3 to 4.2.2 - no boot !

Hi experts,

I’m trying to downgrade my Nexus 4 from 4.3 to 4.2.2. I downloaded the 4.2.2 files from the google site, given in the OP.

There are two processes I’ve followed to try and do this, both have been futile :

1.	Unlocked bootloader

2.	Flashed 10o bootloader and rebooted

3.	Flashed the 4.2.2 radio and rebooted

4.	Flashed userdata, system, boot.img, cleared the cache and rebooted the phone

Phone does not even show the Google screen, it stays blank throughout and nothing happens for upto 15 minutes. So I force reset the phone into bootloader and install 4.3 again, it starts working fine !

Here is the series of steps I’ve followed :

1.	Unlocked Bootloader

2.	Flashed CWM recovery using the command fastboot -c "lge.kcal=0|0|0|x" boot customrecovery.img with Super user

3.	Flashed 4.2.2 bootloader makoz10o and reboot

4.	Flashed radio and reboot

5.	Flashed system, userdata, boot and cleared the cache and rebooted

Still no luck, when I reboot after this, the screen is blank and stays that way until I force reset the phone by pressing power + vol down button to get into bootloader.

Funny thing is, I’m able to flash the two version of 4.3 as many times as I want, but the 4.2.2 install is simply not working !

What am I doing wroing ?

EDIT : I just downloaded the 4.2.2 image again, and tried the whole process from scratch. It worked ! Looks like it was a problem with the download. I'm on 4.2.2 now !
[Nexus 4 General] Galaxo60:
Hope someone can help me, because I have been asking with no successful response:

I´m currently on custom ROM, I want to go back to Stock 4.3 to have a good install when Android 4.4 arrives.

I have tried the Toolkit I always use, but the problem is that apps are not syncing, neither WiFi Hotspots. Even when the wizard finishes, it says that there is no Google Account.

I thought it was a Toolkit problem, so I made it manually with all the steps from OP, but the result is the same. I get only my contacts synced, but I can´t make it to restore the other data and apps.

I have tried for a week with different methods, and every time I fail, I come back to custom ROM making a clean install and everything is perfectly restoring.

I don´t know if someone else have this problem or if there any way to fix it, I just want to be back on Stock 4.3 but also I want all my data.

Any clue or guess would be appreciate it.

Thanks

:confused:
[Nexus 4 General] smirkis:
google doesn't "restore previous apps and data". you need an app for that. i suggest helium which works on rooted or non rooted devices.

google only really stores contacts and keeps a list of your previously downloaded apps. usually the apps start downloading again on the first boot, but you might need to manually redownload all your apps.
[Nexus 4 General] kelvs:
Any help please ?
[Nexus 4 General] efrant:
What did you do to cause that?
[Nexus 4 General] kelvs:
Nothing really. Was playing clash of clans til like 11% battery so I left it charged for a while. Came back with a blank illuminated screen. Restarted device and then got stuck on X screen. Never flashed any other roms, just rooted stock rom.
[Nexus 4 General] efrant:
Well, I just guessing here, but there's likely a problem with one of the following:

1) Your fastboot.exe file. Maybe try downloading the latest version. I don't have it in the first post yet, but I believe chrone posted it in this thread.

2) Your images. Did you verify the hashes when you downloaded the factory image from Google's site?

3) Your bootloader. If your bootloader got corrupt somehow, then it may cause that issue. Maybe try flashing the stock .tot file as per these instructions.
[Nexus 4 General] :
It should be because of outdated fastboot.exe. In anticipation of Kit Kat, now I'm back to stock using the latest fastboot. Cheers!
[Nexus 4 General] tnvmv:
Update to Android 4.3 with custom ROM installed

Hi all,

I've been raking my brain (meaning the internet and XDA forums) for this answer, any help or link would be much appreciated.

I have a Nexus 4, rooted, with Android 4.2 with PA installed.

My simple question is this, how do I go about getting the update to Android 4.3/4.4 (for now), and then updating to the newest PA after updating?

Please let me know if this simpler than I am making it.

Thanks in advance!
[Nexus 4 General] Natakranta:
Download factory image of 4.3 and fastboot flash it as per the OP. Then wait patiently for 4.4 OTA. If you are impatient do exactly the same for 4.4 factory image as soon as it is available here

Then you need to wait for custom recovery to be reworked for 4.4 and new custom rooms (like PA) built on 4.4

EDIT:

Lovely, spending my lunch time to reply to deleted post...
[Nexus 4 General] Thibaultvw:
For flashing the 4.4 image: I wont lose any of my apps and data if I dont flash the userdata partition, right? Currently on JWR66Y stock rom.

Thanks in advance!

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

Oh no, nvm. I will be able to flash the OTA zip in TWRP I guess. :)
[Nexus 4 General] spaceman860:
[MENTION=794355]efren[/MENTION]t the nexus 5 images have a cache image I haven't seen that before. Do you know what that's all about?

BLACKED OUT LTE N4
[Nexus 4 General] punitthereddevil:
Yeah...don't flash the userdata.img...that's all...

Ul have to wait for someone to create a flashable zip...if u are patient enough, u can wait for it...or else fastboot flash is the fastest way...

------------------------------------------------------

| NEXUS 4

| SLIMBEAN 4.3 BUILD 1 OFFICIAL

| ZIDDEY'S OTG KERNEL r184

| TWRP 2.6.3.0
[Nexus 4 General] Thibaultvw:
It will probably appear here when the ota is out. Then we'll be able to flash the 4.4 rom in a custom recovery just like a normal ota. :) Did it with the jwrv to jwry ota as well.

http://xdaforums.com/showthread.php?t=2145848
[Nexus 4 General] punitthereddevil:
Yeah...that will do...devs here are very fast...once they find the factory image on the nexus site, it then takes them barely a couple of hrs to have a flashable zip thread here...cheer to everyone on xda...!!!:beer::D

------------------------------------------------------

| NEXUS 4

| SLIMBEAN 4.3 BUILD 1 OFFICIAL

| ZIDDEY'S OTG KERNEL r184

| TWRP 2.6.3.0
[Nexus 4 General] efrant:
Not sure, but I'm guessing that it can be ignored, just like userdata.img.
[Nexus 4 General] chrone:
The attached is the latest fastboot.exe in platform-tools v19 from Android SDK r22.3-windows. :cowboy:
[Nexus 4 General] punitthereddevil:
I have a ADT bundle which I had downloaded nearly 4 mths ago...will it have any problems while flashing the 4.4 factory images...? Does the ADT have to be the latest one always...? Coz that's pretty big in size and I can't download it that often...

------------------------------------------------------

| NEXUS 4

| SLIMBEAN 4.3 BUILD 1 OFFICIAL

| ZIDDEY'S OTG KERNEL r184

| TWRP 2.6.3.0
[Nexus 4 General] chrone:
You only need the 4 files in platform tools only to do fastboot and adb. :)

Or you could download the SDK tools only from download for other platforms at developer.android.com. Once it is installed, use the SDK manager to fetch latest platform tools. This will reduce your data usage in a big way. As I recall, the platform tools is only around 1MB in size. HeHe

Sent from my Nexus 4