yashsingh1/xdaforums huggingface dataset:
[Nexus 4 General] mailistman:
can't get to root

Ivan / efrant, can you please tell us how did you boot from the image in the laptop ?

followed your guide to return to stock 4.2.1 JOP40D, but i can't get to root so far. tried CWMs but everytime after flash boot to customrecovery > reboot > go back to fastboot recovery.. it bring me back to at the screen with the android and the red exclamation mark (stocK recovery). so i can't get to step "install zip from sdcard" :(

your suggestion will be appreciated.
[Nexus 4 General] BlueBagodah:
efrant, Thanks for all your help on this thread. Can you confirm that LTE Tethering also works with this? I've been reading conflicting reports about 4.3 not working with the .33 radio, having Camera and Voice issues.

I also remember having to install Script Manager and have an autorun script to be able to tether over LTE on 4.2.2...

My Account is LTE Enabled, I have an LTE sim, and I'm in an LTE Area (GTA, Canada, Rogers Provider).

Thanks again!
[Nexus 4 General] efrant:
You are better off flashing v1.51 in recovery instead of trying to update the binary using the app. There were issues with 1.43, which can, in some cases, make it impossible to update.
[Nexus 4 General] efrant:
Tethering doesn't work unless you add the proper IP tables for port forwarding. See here.

I haven't had any camera issues, but occasionally (read: very very rarely) I've experience voice issues on Rogers. You can try flashing one of the hybrid radios instead of 0.33 -- they may work better. See the radio thread.
[Nexus 4 General] BlueBagodah:
Awesome! I'll probably get to flashing tonight then. I almost never use the phone feature of my phone anyway, so it should be fine.

Thanks Again! :highfive:
[Nexus 4 General] efrant:
Just as a quick note, I haven't tried tethering, so I can't vouch for it working. But other apparently have gotten it to work.
[Nexus 4 General] atticler:
SuperSU Zip

So, chainfire's website seems to be down... does anyone have a mirror from which to download the newest SuperSU flashable zip?

I just got my Nexus 4 in today, and I can't wait to get it rooted.
[Nexus 4 General] efrant:
Added to OP.
[Nexus 4 General] kac.:
THanks - this is what I was hoping to hear.

Got it sorted eventually.
[Nexus 4 General] quendil:
Hi everyone.

Does anyone know if i flash CWM recovery 6.0.3.5 will i have the "reverse buttons" problem (volume up is down and volume down is up) ?

And when in recovery do all ADB commands work like i was a superuser?

Thanks!
[Nexus 4 General] ssbnasa:
hello guys,

everything was working fine till " sending 'userdata' "

Now i'm stuck on " Writing 'userdata' " since more than hour now :(

what to do now? any help would be appreciated
[Nexus 4 General] efrant:
Stop it by pressing Ctrl+c and try it again. Or try "fastboot erase userdata"
[Nexus 4 General] Thibaultvw:
Have I everything set up right? And for the dates, is this wrong? (31-12-2008)
[Nexus 4 General] Thibaultvw:
Anyone? :P
[Nexus 4 General] CamoGeko:
Looks alright to me mate.
[Nexus 4 General] efrant:
Yes for the first question. No for the second.
[Nexus 4 General] usaywhat:
thank you

efrant,

thank you for the tutorial...was able to get my nexus 4 back to 4.2.2 following your guide, however, i can't root it since my laptop doesn't see the /sdcard folder.

successful:

1) 4.2.2 stock w/ usb debugging enabled

2) unlocked the bootloader ... makoZ20i

3) installed CWM v6.0.3.5 & accessible

4) still unrooted since i can't get into the folder to transfer the superuserSU 1.51. my winxp sp3 32bit recognizes the nexus as "android device" under device manager, but i can't find the /sdcard to transfer over the superuserSU

i would like to install and older LTE radio (currently baseband version .84 radio) so i need to be rooted first i assume.

so i figured, i can't fastboot the .33 radio until i achieve root...correct? tia efrant et. al
[Nexus 4 General] efrant:
You don't need root to flash radios. Either flash it in fastboot (fastboot flash radio nameof033radio.img, or flash a 0.33 radio zip in recovery.

As for not seeing /sdcard, boot once into Android - that should set up the appropriate folder structure. Then you can download the SuperSU file, or transfer it via your PC.
[Nexus 4 General] M1k@:
So, do I understand this correctly?

It's the unlocking of the bootloader that will wipe your data, and not the rooting?

I've rooted (no custom roms), and updated to 4.3 OTA. Now it appears I'm no longer rooted. I can just do the root part without fear of losing data?

Thanks

N00b ;)
[Nexus 4 General] Thibaultvw:
Correct.
[Nexus 4 General] efrant:
There are three things that cause a loss of data: unlocking the bootloader, flashing a stock userdata image, and erasing/formating /data.

All that "rooting" is, is just copying a few files onto your device.
[Nexus 4 General] Ace42:
[MENTION=1566190]efrant[/MENTION] Awhile ago when 4.2.2 images were released someone made a thread showing battery improvements from flashing stock images, something related to updating hidden partitions. Now I can't attest the existence of such partitions, but if true would that mean your method ignores those?
[Nexus 4 General] segv11:
Hidden partitions? Doubt it...

Sent from my stock 4.3 mako.
[Nexus 4 General] fdcardano:
Stuck on Google logo

Hi,

I'm having a problem - when I try to boot the customrecovery.img from the bootloader, the phone goes boots into the Google splashscreen and just gets stuck.

Total noobie, so any help would be great! Thanks!
[Nexus 4 General] efrant:
Are you using the latest bootloader? If so, have you read step E5 in its entirety?
[Nexus 4 General] fdcardano:
Sorry, I just saw your reply to the other poster saying to reflash all images. Should have checked the last few pages, at least, first.

I used the latest bootloader (z20i), and command you posted (fastboot -c "lge.kcal=0|0|0|x" boot customrecovery.img).

Should I just go back and reflash everything?

Thanks!
[Nexus 4 General] efrant:
You shouldn't need to. Are you trying to boot CWM or TWRP? If CWM, did you download the version for mako?
[Nexus 4 General] fdcardano:
I downloaded CWM 6.0.3.5 from the site you linked - is that what you mean?
[Nexus 4 General] efrant:
Yeah, I meant did you download the version for the N4? In other words, did you download one of the following?

http://download2.clockworkmod.com/recoveries/recovery-clockwork-6.0.3.5-mako.img

http://download2.clockworkmod.com/recoveries/recovery-clockwork-touch-6.0.3.5-mako.img

If so, then I'm not sure why it won't boot for you. The above two recoveries should boot fine. (And it won't make any difference if you re-flash all the images again.) You can try re-flashing the bootloader image if you'd like.
[Nexus 4 General] fdcardano:
Yup, downloaded the one for the N4. Ill try one of the ones you linked though, and report back. Thanks so much for your help!

---------- Post added at 06:12 PM ---------- Previous post was at 06:07 PM ----------

Working now! Not sure how I screwed that up! Thanks so much!
[Nexus 4 General] Ace42:
Looks like I remembered the post incorrectly.

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

^They were saying the images were incorrectly, so a redo helps.
[Nexus 4 General] segv11:
The thing is, a few of us went through the entire eMMC on the G-Nex and N4 when working on BootUnlocker. We have a pretty good idea what the partitions are for... Also, you can unpack the stock images yourself: it doesn't touch any of the funny partitions, just the stuff you would expect, ROM, kernel, user data, cache, bootloader.

Sent from my stock 4.3 mako.
[Nexus 4 General] BLADESMAN1889:
I've been wondering now for months (always thought I'd figure it out) what is the difference between 7zip & others (WinRar & WinZip) ?

What am I missing ?

T.I.A

Sent from NEXUS⁴ via XDA app [AOKP\/\/hitehawkx]​
[Nexus 4 General] ZioGTS:
Well, they all serve the same purpose. 7zip is free and works like a charm.

Inviato dal mio Nexus 4 usando Tapatalk 4
[Nexus 4 General] efrant:
A while back, older versions of WinRAR and WinZip would not always work with tar/tgz archives, and people were having issues. (I had originally written this for the Nexus One...) But with the newer versions, I believe they work fine. 7zip is also open source, and as ZioGTS said, free.
[Nexus 4 General] luke.douthwaite:
Price and the formats they open, 7 zip unpacks a bigger variety of formats, if I remember rightly lol
[Nexus 4 General] :
I need help..

I flashed Google factory images. When flashing system.img, it's taking long. It's about 10 minutes now and it still says..

\Desktop\N4 Factory Images>fastboot flash system system.img

sending 'system' (570666 KB)...

Any idea how long do I need to wait? I'm looking forward to your reply.

Thanks a lot.
[Nexus 4 General] efrant:
10 minutes is too long. Stop it and re-flash the system image.
[Nexus 4 General] :
Thanks to your guide man. I reflashed the image.zip after erasing system, user data, wiping dalvik, cache.. Finally, I'm back to stock. Thanks a lot.

Cheers!
[Nexus 4 General] efrant:
Just a quick FYI: the dalvik cache is located in /data, so if you wipe data, it automatically wipes the dalvik cache.
[Nexus 4 General] binaryfalcon:
I did everything as listed, except flash stock recovery since I had TWRP.

Upon reboot I only had 8g. Tried to wipe cache in TWRP. Still 8gigs. Then I did format data + factory reset (think its the same thing, anyways.)

Says I have 12.95 max now.

My question is, everything is okay? Do things go wrong if I didn't flash the stock recovery?
[Nexus 4 General] efrant:
Everything is fine. 12.95GB is what is available on a 16GB N4. You are good to go.
[Nexus 4 General] bmwsensation:
hey i just saved my fone with this forum.. i was updating it to 4.3 and it didnt flash it good but erased everything on it. was a bit in panic mode.

Now everthing is well. only one thing.

I was using touchcontrol to swipe my screen on and off. with the old 4.2 android.

Now i updated to 4.3 it wont work.

I am told i should flash a other kernel...

My question is can i just flash a other kernel with out ****ing up my sys. Dont wanna flash it again :P:)
[Nexus 4 General] efrant:
Yes you can just flash another kernel, but make sure that it is a 4.3-compatible kernel.
[Nexus 4 General] bmwsensation:
i know i can use faux kernel, only dont have any clue where to find it or how to install the kernel only
[Nexus 4 General] efrant:
A good place to start would be in the his kernel thread, or in the Q&A section; not in this thread, as this is how to return your device to stock, not how to flash non-stock kernels. ;)
[Nexus 4 General] Nadrepus:
Thank You !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

efrant, I have to sincerely say thank you!!! I am a noob for sure and have used tool kits to root my last phone and my nexus4. I had some issues with the OTA update to 4.3 (lost root and back up). With the info in this post I was able to restore my phone back to stock, root and flash custom recovery with out using a tool kit. AGAIN I CANNOT EXPRESS ENOUGH THANKS!!!!!!!!. All is up and running well.

I also now understand why you are an advocate of doing things the "long" way until you know what you're doing. I learned a ton!!!!
[Nexus 4 General] spicediablo:
JWR66Y is out. Would like to know how to unroot before OTA.

Sent from Mako⁴
[Nexus 4 General] sordna:
Don't think you need to unroot, just make sure you haven't removed or changed any of the stock system files. Extra stuff installed like root or busybox shouldn't be a problem. OTA's will patch files, and fail if the patch doesn't apply (target file is missing or modified).

I plan to do the following when the OTA comes:

Make sure my boot loader is unlocked, and then put back stock kernel (boot.img) and recovery (recovery.img), and restore from backup some system apps I removed. Also, I should probably rename /system/lib/hw/power.msm8960.so.bak back to /system/lib/hw/power.msm8960.so (running a custom kernel that changed this)

if you are missing your stock kernel and/or recovery, you can always extract them from the JWR66V factory images (google: factory images for nexus devices)

This thread is very helpful regarding general OTA procedures: http://xdaforums.com/showthread.php?t=2145848
[Nexus 4 General] chrone:
Or you can get the ota zip file and flash it using custom recovery as posted on this following:

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

Sent from my Nexus 4
[Nexus 4 General] quendil:
Can someone please tell me the difference between fastboot format and fastboot erase?

And which of the two would be better if someone wants to do a REALLY clean firmware update via fastboot?

Thanks in advance!
[Nexus 4 General] Rusty!:
You don't need to use either.

If you want a clean, fresh install, just run the factory image installer and that's what you'll get.

Anyone telling you to repeated wipe, format, super wipe or god knows what else is an idiot that should be ignored.
[Nexus 4 General] quendil:
Hehe cool thanks for the answer. I'll just follow the guide to the letter then!

But just for the "sake of knowledge" whats the difference between format and erase?
[Nexus 4 General] Rusty!:
To put it in PC terms, erase is like deleting a HDD's partition (so it's not useable until it's formatted), and format is like, well, format.
[Nexus 4 General] efrant:
I'm not entirely sure what the difference is, but I do know that when you use the flash command, it executes an erase command first.

My knowledge of C is not what it was in my younger years :), but here is the fastboot source in case someone wants to have a gander to figure out the difference.
[Nexus 4 General] sordna:
Thanks for that pointer. I took a look and a lot of the actions queued in fastboot.c are then handled in engine.c

So nice to be able to see the code!
[Nexus 4 General] Dragonkiss:
Hi all,

Thank you for the guide, with this I was able to flash back to radio .48 (The problems still occur however...)

Now I would like to root my Nexus 4, but how do you put SuperSU in /sdcard?

Do I need to extract it too the sdcard and can I put it in a map there? Or do I just need to put the zip in?
[Nexus 4 General] efrant:
What problem?

Do not extract. Just download the zip to /sdcard however you want.
[Nexus 4 General] Dragonkiss:
My nexus 4 keeps putting up sim locks. It appears to be a combination of bad radio firmware from Android 4.3 and bad radio software from radioproducer. Flashing back the radio firmware should solve it, however in my case it does not :(

Thank you!
[Nexus 4 General] efrant:
SIM lock, as in carrier lock, or SIM lock as in you need to enter a password every time to make a call? If you follow all the steps in the first post, your device should be as it was when you took it out of the box. So, if things are still not working, it is likely something wrong with your SIM.
[Nexus 4 General] Dragonkiss:
Simlock as in carrier lock. There is nothing wrong with the sim. Its the combination of bad firmware and bad radioware as said above. Google has acknowledged it and it only appears when you have a virtual telecom sim. Sadly it also drains battery life because my phone is continually searching network because of the dropouts of simlock :)
[Nexus 4 General] efrant:
Hmmm. Very interesting. Do you have a link where Google says it's an issue?

So your device is carrier locked, and when you input the unlock code, it unlocks for a while, and then re-locks again?

The carrier lock is actually stored on a different partition, and I haven't actually played around with it. A lot of work was done on the Galaxy Nexus, and it was figured out how to remove the lock.
[Nexus 4 General] howard bamber:
:thumbup::thumbup::)

Kudos! You are one patient guy!
[Nexus 4 General] D_RiDeRs:
How to flash a factory image from custom ROM & Kernel??

Though your steps are very informative but I want to know one thing. ;)

I am on JDQ39(4.2.2) with Paranoid Android, Franco Kernel & TWRP Recovery.

If I flash JWR66V(4.3) on PA with Franco, will I struck in a boot loop??

If yes, then what is the way out?? :confused:
[Nexus 4 General] chrone:
Your way out is at your own quote. :)

Sent from my Nexus 4
[Nexus 4 General] faddyie:
Never quote the long OPs.. Learn it how to use xda.

Furthermore, u need to upgrade your bootloader, radio and so on. Then u will be able to flash 4.3 roms

Sent from my Nexus 4
[Nexus 4 General] efrant:
Do not quote first posts of threads.

Ask in the Paranoid Android thread.

Follow the steps in the first post to return to stock, as stated in the first post.
[Nexus 4 General] rassnik:
flashing TWRP or CWM that way didnt work for me.

but instead of

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

this worked:

fastboot -i 0x0b05 flash recovery customrecovery.img

best,

r
[Nexus 4 General] chrone:
Hello efrant,

I didn't know if this makes any difference for nexus 4, but here's the platform tools v18.0.1 from the latest sdk r22.0.5 as follows.

http://db.tt/iiyuwIoK

Sent from my Nexus 4
[Nexus 4 General] efrant:
Thanks. I'll update the first post when I'm in front of a computer.
[Nexus 4 General] chrone:
whoa, i'm honored. it's the least i could do. :)
[Nexus 4 General] ver101:
Where should i get stock kernel? I am on custom kernel faux kernel.
[Nexus 4 General] chrone:
From factory image, extract boot.img and system.img and fasyboot flash them on top of your modified stock rom since most custom kernel tends to modify your syatem too beside the kernel itself.

Sent from my Nexus 4
[Nexus 4 General] saumil25:
I skipped the D10 part of wiping.

But then as the note said, it got stuck on the X logo. Then did a cache wipe, didn't help.

Then as said, did a factory reset. But this deleted my entire sd card :/

How do I get it back?
[Nexus 4 General] chrone:
http://xdaforums.com/showthread.php?t=1994705

[GUIDE] Internal Memory Data Recovery - Yes We Can!

Sent from my Nexus 4
[Nexus 4 General] z0zchan:
Hello~a few questions

Open a command prompt in location of the(6) .img folder?

if yes, cmd.exe say"fastboot is not Internal/external command"

what i do wrong?

i cannot open usb debugging cus i wipe all data include the os

is it a problem?
[Nexus 4 General] chrone:
you might want to open the command prompt within the same folder where fastboot.exe is.
[Nexus 4 General] 3rdstring:
You need to put fastboot in the same folder as the img files.

I'm not sure what you are saying here
[Nexus 4 General] OhDae-su:
Quite some time ago installed android SDK on my PC with the help of a guide comparable to this one:

http://www.droidrzr.com/index.php/t...et-up-adb-and-fastboot-for-your-windows-7-pc/

And I can use fastboot commands from wherever the files are located that I want flash. So, there's no need to put the files to where the fastboot.exe is or the other way around. Very convenient IMHO.

So, the question is what's the difference between my and your way that makes it necessary to you to use fastboot where the .exe is? Would be nice to know. Thanks in advance.
[Nexus 4 General] chrone:
it's easier to copy paste the fastboot and adb files (only 4 files with no more than 1MB size) for average joe and not messing with windows environment variables.

setting up the path on environment variables is good for the long run, and i've been using this method for a year now. slow setup but easy to use in the long run.

both methods produce same output though. :)
[Nexus 4 General] Natakranta:
You have a path to fastboot.exe file location on your drive set up in Windows. That's what makes the difference. Without it Windows doesn't know where is the file fastboot cmd triggers located. In this case file must be in the same directory where you open cmd prompt window to type fastboot commands.

I don't remember where you set it in windows, I'd need to Google it.

Edit:

I've just been ninjad :)
[Nexus 4 General] OhDae-su:
[MENTION=5180758]Natakranta[/MENTION], [MENTION=4628255]chrone[/MENTION]

'Environment variables' was is the hint. Thanks for clarification! Didn't know that it works without, obviously.At the time I set it up I wanted to 'play' with the commands and android so I followed the guide blindly. That I have to admit. Learned something thanks to you guys even you got ninjad [MENTION=5180758]Natakranta[/MENTION] :D
[Nexus 4 General] Smiert:
CWMR isn't sticking for me. Goes back to stock Google recovery every time, even after selecting to disable stock recovery upon leaving clockwork.
[Nexus 4 General] vlatkonexus4:
It works if following right the steps

You must have drivers right for nexus 4 and folow the steps

For me it works :D

Thanks
[Nexus 4 General] eman3316@optonline.net:
Is it recommened to flash to 4.2.2 to do these steps? I thought I read that people were having issues on 4.3 rooting and unlocking?
[Nexus 4 General] Rusty!:
No issues with root on 4.3, you just need to use the latest SU stuff.
[Nexus 4 General] vlatkonexus4:
Here is how i did it

first install all drivers for nexus 4(i have asus windows ultimate x64)

then put UPDATE-SuperSU-v1.51.zip on your sd card nexus 4(internal storage)

then reboot your device in bootloader mode(power off first,then press volume down and power together about 10 seconds to get into bootloader)

if your bootloader is not unlocked(open the folder were your adb.exe and fastboot.exe are,then press shift and right click of your mouse,this will

automatically open comand promp for you)

then type:

fastboot devices

fastboot oem unlock

fastboot reboot-bootloader

fastboot flash recovery openrecovery-twrp-2.6.1.0-mako.img

then disconnect your nexus 4 from pc/laptop

but stay in bootloader mode

with volume down/up select recovery mode

you will have latest TWRP stable recovery mode for N4

than in recovery mode go to install,choose UPDATE-SuperSU-v1.51.zip

after it finishes,go to advanced menu in TWRP and select fix permissions and reboot system

this helped me to root latest JWR66Y build

i hope i helped

Thanks to TWRP and Chainfire for download files
[Nexus 4 General] vlatkonexus4:
Here is TWRP 2.6.1.0 image file

Here is the recovery image file in zip folder
[Nexus 4 General] B1663R:
Great with your help and Efrants I got custom recovery re-installed (had to keep the stock name was not liking customrecovery.img). Thanks to both you as updating this way and honestly learning more has really helped me. Really appreciative of the XDA forum Gurus and community!
[Nexus 4 General] vlatkonexus4:
I am happy to help

Yeah i am glad you managed to reinstall the cutom recovery and get rooted again

If you need any help this forum is the real place

And i like a junior member feel very happy to help anyone
[Nexus 4 General] sordna:
SuperSU 1.55 and TWRP 2.6.1.0 are out, things working better

I was having an annoying problem, every time I went from franco kernel to stock kernel I would loose root and had to flash the supersu zip again. Any idea why a simple kernel flash (just boot.img) would do this?

Anyway, now I put SuperSU 1.55 and TWRP 2.6.1.0, both just came out, and flashed 2 kernels back and forth without running this problem. BTW I'm not using OTA survival mode, just default SuperSU settings.

Keeping fingers crossed !
[Nexus 4 General] halomaster:
I read this guide and the guide on this thread http://xdaforums.com/showthread.php?t=2266654.

My question about "adb reboot bootloader" and "fastboot reboot-bootloader":

are they the same thing? Are they interchangable? If they are not the same, then what are the differences?

EDIT1: another question. I read this part of the guide:

Is it possible to flash the bootloader, radio, etc at once without rebooting? Or Is it necessary to reboot every time?
[Nexus 4 General] spaceman860:
Adb and fastboot are different. Adb is when the phone is In the OS or recovery. Fastboot is for when in the bootloader

You don't reboot the phone you reboot the bootloader. You should do it that's what Google says.

BLACKED OUT LTE N4
[Nexus 4 General] halomaster:
I see. I read in the guide to "reboot the phone into fastboot mode". Is fastboot mode the same as bootloader mode? If not, how are they different?
[Nexus 4 General] spaceman860:
Fastboot is not a mode fastboot is what you use when in the bootloader

BLACKED OUT LTE N4
[Nexus 4 General] felipe_lion:
This helped me a lot, thanks! :highfive: