yashsingh1/xdaforums huggingface dataset:
[Nexus 4 General] punitthereddevil:
I checked out the SDK tools only from the site...its about 100mb...and there's also a set of instructions for "setting up an existing IDE"...what you are saying is I must just get the SDK tools only zip and set it up by following the provided instructions...then onwards I can use the SDK manager to fetch the latest platform tools...have I got that right...?

And will I need the eclipse plugin...? Coz all I basically need is just for flashing stuff...no development stuff...

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

| NEXUS 4

| SLIMBEAN 4.3 BUILD 1 OFFICIAL

| ZIDDEY'S OTG KERNEL r184

| TWRP 2.6.3.0
[Nexus 4 General] :
Well to Flash a Factory Image you only Need 4 files......

adb.exe

fastboot.exe

AdbWinApi.dll

AdbWinUsbApi.dll

( of course only when you've got an Windows Computer )
[Nexus 4 General] punitthereddevil:
Seriously...? U mean if I just put these 4 files into one folder on a windows computer and open a cmd in that folder, I can carry on with the flashing...? Then what's all the other components for...?

Edit : I tried copying just those 4 files in a different folder in a different drive...everything worked perfectly...

But does Google keep updating these 4 files...? If yes, where can I get only the updated 4 files...? And what will I not be able to do since the rest of the bundle is absent...?

Thanks a lot...I really didn't know it was this simple...:p

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

| NEXUS 4

| SLIMBEAN 4.3 BUILD 1 OFFICIAL

| ZIDDEY'S OTG KERNEL r184

| TWRP 2.6.3.0
[Nexus 4 General] chrone:
From the SDK manager. :)

Sent from my Nexus 4
[Nexus 4 General] :
First of all Im happy to know I helped somebody to reach his/her Goal :)

Yeah ist really that simple, ist the Minimum you Need to Flash on a Nexus Device.

Well is doesnt matter if you update your Tools or not, flashing will be available anyway, but you can always get the latest Tools from the SDK, which is free :)
[Nexus 4 General] efrant:
Actually even less! To flash factory images, all you need is fastboot.exe. (To follow the instructions in the first post, only fastboot.exe is needed.)

The other three files are only if you want to use adb (i.e., to transfer/modify/delete files to/from your device/PC, etc.)
[Nexus 4 General] jokermithun:
according to guide, when ur in recovery mode android with red exclamation mark we hv to press power + Volume up to enter in recovery menu but when i use that button combination i didnt get any recovery menu instead devices reboots:confused:

aokp JB
[Nexus 4 General] chrone:
It's kind of confusing at first. Me too failed couple times entering stock recovery mode. But once you know the trick, you'll pass by. Just don't press the power button too long to avoid the power cycle trick. Haha

Sent from my Nexus 4
[Nexus 4 General] jokermithun:
ohhhhh now it shows android with red exclamation mark and "no command" words written below it:confused:

---------- Post added at 04:28 PM ---------- Previous post was at 04:13 PM ----------

---------- Post added at 04:29 PM ---------- Previous post was at 04:28 PM ----------

finally went into stock recovery menu:o
[Nexus 4 General] :
Tested and confirmed.

But usually when you Flash your phone the clean way you clear every Partition ( internal space also ) and then push your Rom to your sdcard using adb push xyz /sdcard.

But youre right for factory Images fastboot is enough
[Nexus 4 General] jokermithun:
Great job OP.....I never thought going back to stock rom takes only 2min:p
[Nexus 4 General] vineet381:
Formatted phone, no ADB

Hi, I accidentally formatted my phone yesterday night. Trying to flash the factory image from command prompt using this guide on OP but I am stuck on Google logo and cant enable the USB debugging mode under settings. I think i did install the driver using Root Toolkit as it shows under device manager but toolkit says adb device not found (see attached).

Please advise how can I bring back my phone to normal.
[Nexus 4 General] :
Well just download the factory Image from Google and bring your Nexus 4 into fastboot mode (bootloader). then connect phone to pc

then simply execute the Flash_all.bat inside the Image Folder and it will Flash itself
[Nexus 4 General] vineet381:
Thanks, so I do not need to follow the step A and B on OP and can start from C. Correct? Also the 2 attachments on the OP needs to go in ONE folder along with all other files? Sorry, kinda nervous in a fear of getting my phone not able to work again,
[Nexus 4 General] :
Sorry but havent read the OP Post :D

I just gonna tell you how I Flash my Nexus 4 with Stock 4.3 every time.

1. Make sure you have the fastboot and adb Drivers installed for your Nexus 4, and you have adb and fastboot linked to your PATH in Windows. Check that by connecting your phone in bootloader mode to your pc, then type "fastboot devices", now your phone id should appear.

2. Download factory Image from Google and unzip the file. Now another file appears with no Extension, simply Name it to thefilesname.TAR.GZ and unzip it again, now you get another Folder which contains several .img files, a Batch file and some other files you dont have to look closer into. MAKE SURE YOU UNZIP EVERY FILE YOU CAN IN THAT FOLDER.

3. now you Need an unlocked bootloader, do this by simply typing "fastboot oem unlock" and approve on your device.

4. then restart bootloader (dont have to, but recommended)

5. simply run flash-all.bat out of the Folder and enjoy 8-)

6. Have fun :)
[Nexus 4 General] vineet381:
Thanks, I placed everything on ONE folder (see attached- ignore the sub folders as they pertain to super user 1.5, but not able to complete the step 1 as I dont see the phone id..how do I ensure I get through these
[Nexus 4 General] :
Do you have your phone in Bootloader Mode ( turn phone off, press vol down and power till the phone responds ) ?

Open CMD, navigate to that Folder and then try to do "fastboot devices" again
[Nexus 4 General] vineet381:
got the phone id, but now getting this error message :(
[Nexus 4 General] efrant:
You do NOT need USB Debugging enabled to follow the guide in the OP. Please read the entire first post again -- all your questions are answered in there, even getting stuck in the Google logo...
[Nexus 4 General] :
Well it seems you deleted the .zip file which is given in your error message :D

It has to stay in your Folder by the Batch file.

Try it should work then
[Nexus 4 General] vineet381:
Hi efrant, thank you for an awesome guide. I followed each step until step D.15 (see attached) and still not able to pass through logo...followed the note in red to wipe cache and user data,..but still the same result.
[Nexus 4 General] :
Thats how it should look like :)

Hope you get it to work.
[Nexus 4 General] efrant:
So you booted into the stock recovery (i.e., the screen with the Android and the red exclamaition mark) and then went in to the menu and selected factory reset and wipe cache, and it still wont get past the screen with the Google logo?

Try booting back into the bootloader and type: fastboot format cache

Then reboot.
[Nexus 4 General] hamedunix:
Got my hands on N4 yesterday. reading this post and playing around with the device, I see some people having issues with logo stuck or 8GB issue. Is this the best way to unlock,root,stock available ?
[Nexus 4 General] sonikk4ever:
This thread is not a sticky, why?
[Nexus 4 General] hamedunix:
Emergency

Emergency Situation :

I was on stock 4.2.2 and I used the method explained in this thread to unlock and root. Everything went well and device booted up. Then i check for and update from settings and there was an update to 4.3 so I downloaded and installed. While installing the update (green driod and loading bar under) it went to almost the end and the ERROR. So I restarted (power and volume up select restart) and know I'm stuck on X logo.

What did I do wrong and what do you recommend to fix it.

your swift answer is most appreciated.
[Nexus 4 General] efrant:
Not sure what went wrong, but just boot into the stock recovery and wipe cache.
[Nexus 4 General] hamedunix:
Please note that I just used your method to unlock bootloader and root the stock 4.2.2 and then I installed 4.3 in the normal way ( from settings>software update)

Thanks for such a fast reply. I was rooted and i tried updating from settings. Was it the problem?

Right now, clearing catch or factory reset doesn't help.

I also downloaded 4.3 from google developers website but when i want to flash bootloader it gives me an error : unknown partiotion 'bootloader-mako-makoz20i.img' error: cannot determine image filename for 'bootloader-mako-makoz20i.img'

What else do you recommend?
[Nexus 4 General] efrant:
Flash all the 4.3 images as per the first post. Make sure the images are named correctly in your commands, and make sure the images are located in the same directory as fastboot.exe.

For example, if you have hide file extensions enabled in windows it will only show system, not system.img, but the file is actually system.img.

EDIT: we're you using the stock recovery or a custom recovery to wipe cache? You need to be using stock.
[Nexus 4 General] :
Sometimes the Mistake is sooooo simple you just havent seen it, like typed wrong Name xD

Look at my post some pages before and try again
[Nexus 4 General] hamedunix:
Thanks, I managed to fix the situation and i also flashed 4.3. there's another problem now. My gallery and camera are very slow. it seems they're syncing ...

EDIT: I resolved this issue by clearing data of camera app.
[Nexus 4 General] hamedunix:
Hey, Thanks for the great detailed guide.

I am on 4.3(stock) with unlocked bootloader, can I use your rooting method as explained in this thread? I used it on 4.2.2 earlier and it worked fine but wasn't sure if it works on 4.3 either. Another question: There is an updated version of SuperSU (1.65) is it always best to use the latest or you still recommend the one attached to the thread.

Thanks.
[Nexus 4 General] efrant:
Use the latest version of SuperSU. And yes, the steps in part E will work on 4.3
[Nexus 4 General] PRoyal22:
Hello,

I have a problem in the following point:

When I try to use the cmd "fastboot oem unlock" there appears the following error:

C:\Users\Patrick\Desktop\occam-jwr66y>fastboot oem unlock

...

FAILED (command write failed (Unknown error))

finished. total time: 0.585s

When I try to use "fastboot erase cache" then fastboot.exe crashes.

System: Win 8.1

Thx for the help!
[Nexus 4 General] efrant:
Try running the command prompt as administrator.
[Nexus 4 General] ChenBJ:
Infinite X logo

Hi there,

I followed step by step the first post to solve my issue but the X logo is definitely stronger than me.

First I would like to mention the background of my issue, if this can be of any help. For the record, I was on 4.3 and the device has never been rooted or customized before. It was full stock.

I was watching a youtube video when suddenly I lost all mobile signals. The phone was HOT.

I rebooted the phone for any reason and the X logo started to show.

My first reaction was to flash my device following this thread. X logo was still there.

Then I tried to downgrade to 4.2.2 following the same steps and then the interesting part begins.

The device can boot up allowing me to setup my google accounts and so on. Then I realized I needed a SIM card.

Inserted in the slot, nothing happens. Not a single GSM signal is captured. Reboot, still shows nothing.

I finally realized that my IMEI and Baseband serials are gone ("Unknown"). I tried the SIM card on my 3G iPad and it works just fine.

Therefor I looked into XDA and discovered some threads about flashing modem.img with fastboot flash radio modem.img

Tried that too, but my device still cannot get a single signal.

However as I was connected on Wi-Fi, I have been noticed about the OTA 4.3 and decided to give it a shot.

Installation is smooth (quite a bit long thu), and finally I got blocked in the other infamous "Android upgrading / starting apps .....".

Tried to wipe data/cache. And no way to get Android to boot up.

Finally I tried an "X" attempt to flash again with 4.3 using the same method described by Efrant (very clear btw), and the X logo is definitely there. Indeed, tried to wipe data and cache in the recovery menu, but nothing else happens.

Now I am really out of idea and definitely need some expertize to re-think about what may be wrong.

As my phone was obviously overheating during the video, can it be a Hardware issue (like 3G module dead) ?

Can this explain why the phone cannot boot up on 4.3 ? (Even if it did boot up on 4.2.2) ...

Thank you all for your help.
[Nexus 4 General] :
Let me offer you my thoughts.

I once hardbricked my Nexus 4, LG replaced the mainboard so it's now good as new. During my attempt of unbricking it, there was no power, couldn't get into bootloader or even get into its last lifeline called "download mode". The phone was basically dead, literally. Your problem is different and in my conclusion it's only a case software problem or faulty flashing or a combination of both. The fact that you were able to boot up into 4.2 and in the later case, got stuck in the start up logo means the hardware loads fine.

If I were you, I would flash 4.3 again. And make sure to follow all the steps, most especially see if the radio image is flashed successfully.. Consider using the latest Fastboot version, and most of all... "do not forget to ERASE CACHE and FORMAT CACHE after flashing all images". Also, factory reset your device using stock recovery after flashing all images. Failure to do this is the common cause of being stuck in the start up logo.

By the way, getting past the start up logo (which you call X) takes time after flashing. Be patient, give it time.

Hope that helps. Good luck.
[Nexus 4 General] _Kyros_:
Hi everyone. Can someone tell me how to just flash back to stock recovery and where I can get the file from, I'm on TWRP 2.6.3 and I just want to simply flash the recovery.img using fastboot like you would with TWRP or CWM. Thanks in advance.
[Nexus 4 General] chrone:
I often stuck at the X logo if the usb cable still plugged in. Unplugged and voila, it booted perfectly! :)

it's on the first page of this thread with the command of "fastboot flash recovery recovery.img". but first, please read all the first post before doing anything to avoid the things we don't want. :D
[Nexus 4 General] olkjas:
Unable to boot into stock recovery

I just can't seem to boot into stock recovery, or any recovery for that matter. I've tried flashing stock, CWM, and TWRP through fastboot, and while the flash succeeds on my computer, I just get stuck at the Google logo when I try to boot to recovery. Help?
[Nexus 4 General] m3munir:
lost imei and unknown baseband??

anyone can help me about this problem??? i lost my imei and baseband ?? i tried to flash other radio baseband is not work

thx
[Nexus 4 General] chrone:
I managed to come around this issue by flashing the system and boot images months ago. But feel free to run flash the bootloader and radio images too. Good luck. :)

Sent from my Nexus 4
[Nexus 4 General] ev!denz:
I have this problem but the "hold power & press volume up" thing doen't work for me. Also if I want to do it with this method http://xdaforums.com/showthread.php?t=2033692 my fastboot will stop working as soon as I want to start

fastboot -w update
[Nexus 4 General] efrant:
Then you are doing something wrong. You need to hold the power button down FIRST, and then press volume up.
[Nexus 4 General] ev!denz:
Sry my bad! I thought I have to hold BOTH. :(
[Nexus 4 General] jokermithun:
hello guys

currently im on stock 4.3 with root access...To gain root access i flashed custom recovery according to op but my device didnt show custom recovery,it shows only stock recovery....How can i get custom recovery on my stock 4.3 ????:confused:
[Nexus 4 General] chrone:
As posted on the first post, fastboot flash recovery customrecovery.img

Sent from my Nexus 4
[Nexus 4 General] gaz41:
[MENTION=1566190]efrant[/MENTION]

Hi, i wanna ask you if you can help me in booting my new nexus 5 in temporary custom recovery to root it without flashing a custom recovery. With my nexus 4 I follow your guide http://xdaforums.com/showthread.php?t=2010312

But with nexus 5 I don't know which of 2 method to use:

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

or

2) fastboot -c "lge.kcal=0|0|0|x" boot customrecovery.img

I don't know if it's correct for nexus 5

Thank you
[Nexus 4 General] efrant:
You should be asking questions like this in the N5 forum, not here in the N4 forum.

In any case, it should be fastboot boot customrecovery.img
[Nexus 4 General] Natakranta:
Hi, just to let you know, I've just booted twrp on my Nexus 5 using:

fastboot boot twrp.img

I downloaded this file openrecovery-twrp-2.6.3.2-hammerhead.img

It seems to work, though it's first time I see twrp in action as I was always using CWM.

See this thread: [RECOVERY] [03-11-2013] [Official] [TWRP]2.6.3.0 For Nexus 5

I'm still struggling not to flash twrp waiting for official CWM for Nexus 5 but the new SlimKat is so tempting :)

There is as well [RECOVERY] [CWMR] [Unofficial] Clockworkmod Recovery for the Nexus 5

But this discussion should be continued here:

[GUIDE] Nexus 5 - How to Unlock Bootloader, Install Custom Recovery and Root
[Nexus 4 General] undercover:
Thread hijack alert.

Flash twrp and keep it. Better than cwm anyway.
[Nexus 4 General] Natakranta:
Hi. Advice appreciated, but what makes TWRP better for you then CWM?

The only thing that puts me on hold are some reports about lost IMEI and/or Mobile connection.

I'm not in rush as my favourite Slim ROM is still in alpha stage.
[Nexus 4 General] undercover:
Cwm has historically caused some issues which I've never heard of with twrp and 4ext (not available for N4 unfortunately). This is my personal preference going from troubleshooting experience.
[Nexus 4 General] Rohit02:
+1.

AND

Even CWM touch looks ugly as compared to TWRP. :p
[Nexus 4 General] puncha1580:
Anyone

http://xdaforums.com/showthread.php?p=47328546
[Nexus 4 General] rawdealer:
Guys, factory image 4.4 for mako is available ;)

https://developers.google.com/android/nexus/images#occam
[Nexus 4 General] PRGUY85:
I've used these steps countless times to flash several stock images to my Nexus 4. However, now I can't get adb or fastboot to recognize my phone when connected to 2 different Mac computers. My USB cable has always been the same one, it's the one I use daily to charge the phone. I get into the bootloader manually but can't do anything else. Any ideas?
[Nexus 4 General] bendibanget:
4.4

you guys tried the 4.4 recently? just came out 7 hours ago. :confused:
[Nexus 4 General] sordna:
Yep, I did

Not crazy about the update, my camera did clicky sounds now and crashed my phone, there is no transparency on the notification bar and soft keys yet (although Nova Launcher Beta takes care of those), and I hate the new keyboard.

I kept the old keyboard .apk but the system doesn't let me install it. Does anyone know of any way to install an older version of a system app (without deleting the system app) similarly to how you can install newer versions as updates ?
[Nexus 4 General] kmdshoyaib:
need help

hey efrant please help me..am new to this forum...i used ur guide to flash kitkat on my nexus but it is giving an error that cannot flash system.img cannot allocate space 765432133456 bytes...please help...pls pls pls... my nexus 4 is just switches on to bootloader screen and switches off ...please help:crying::crying::crying::crying::crying::crying::crying:
[Nexus 4 General] azrash:
Try wiping cache and Dalvik cache first. It worked for someone with the Nexus 7 who had a similar issue
[Nexus 4 General] kmdshoyaib:
how should i do it?? please guid me...pls pls pls
[Nexus 4 General] Cream$ickleHJ:
How would I flash images using Ubuntu?
[Nexus 4 General] sordna:
Assuming you have fastboot already, this is what I did after downloading the factory image on my ubuntu 13.10 box:

tar xzvf occam-krt16o-factory-75ccae7a.tgz

cd occam-krt16o

zip -d image-occam-krt16o.zip userdata.img

Above step is to avoid wiping my data. Now I put my phone in the boot loader and did this:

fastboot reboot-bootloader

fastboot flash bootloader bootloader-mako-makoz20i.img

(at this point I verified that the bootloader version is actually newer)

fastboot reboot-bootloader

fastboot flash radio radio-mako-m9615a-cefwmazm-2.0.1700.84.img

fastboot reboot-bootloader

(at this point I verified that the radio is a newer too)

And finally:

fastboot update image-occam-krt16o.zip

The first boot took about 10 minutes (don't panic, let it run) and all my files and programs and settings where intact.
[Nexus 4 General] Cream$ickleHJ:
Do I need the android SDK? What's the command to flash all images?
[Nexus 4 General] crachel:
You can open the flash-all.sh script and remove the -w flag to avoid data wipe
[Nexus 4 General] roddem:
mac?

hey

i am on a mac, and it says command not found for fastboot, and sometimes says no such file or directory. i have all the files as mentioned, i am in the same directory on the terminal. when i try and execute the first command using ./fastboot-mac <command> it gives me those errors. please help

thanks
[Nexus 4 General] sordna:
Shouldn't you also delete userdata.img from the .zip to avoid loosing your data ?

---------- Post added at 08:31 AM ---------- Previous post was at 08:30 AM ----------

Symlinks, your PATH, etc is basic os stuff that you should be able to figure out, this is nothing specific to android, just basic computer stuff.
[Nexus 4 General] crachel:
nope, you can untar the archive remove the -w flag from flash-all.sh and then execute it and all your User Data will remain intact
[Nexus 4 General] roddem:
ya but i am not able to get any where .. help would be appreciated
[Nexus 4 General] CristianChavez:
Thank you so much for the how to. It has helped greatly. :good:
[Nexus 4 General] sordna:
This thread should guide you to get your fastboot command working on your mac:

http://xdaforums.com/showthread.php?t=1917237
[Nexus 4 General] RohanM:
[MENTION=1566190]efrant[/MENTION] Thanks a ton for this awesome tutorial man.. Just flashed 4.4 factory image & all good now. :)
[Nexus 4 General] istiaquechoudhury:
+1

I just flashed my nexus 4 16gb with the new 4.4. image and it went perfectly smooth as described in this tutorial, all steps, drivers, packs etc.

Dont fear n00bs, it just works!
[Nexus 4 General] Hmmy 4444:
i am also facing some problems,, plz help me, i flashed factory image of 4.4 through fastboot and wen the phone rebooted it got stuck on the 4.4 boot animation i jst dont knw wt to do . then i again flash the factory image on 4.3 n it still got stuck on the boot animation... plz help me
[Nexus 4 General] mrbadboy:
works like a charm ! :good:
[Nexus 4 General] Thibaultvw:
I flashed the 4.4 image and everything is working but my home button doesnt respond. Is that because I didnt flash the userdata.img or something like that?

---------- Post added at 10:30 AM ---------- Previous post was at 10:27 AM ----------

Ow I also got no quick settings, facebook force closes and cant get a chat head. I had all this working on the N5 port? What could I do?
[Nexus 4 General] MrKaupo:
I did 4.4 fastboot isntall, after D point did restart. Now my device is loading and 4 "color dots" are spinning. How long i have to wait? I understand it's building Dalvik cahche, but its already 5 min.

EDIT

Wiped cache and formated and it worked.