Proper way to flash a kernel? - Nexus 4 Q&A, Help & Troubleshooting

Just wondering whats the proper way of changing kernels while running a rom already cause what i do is wipe cache and dalvik and sometimes i lose data and wifi like it stays grey when its suppose to stay blue
NeXus⁴ using XDA Premium

Read Here.
http://forum.xda-developers.com/showthread.php?t=2008222

What I do... After I downloaded kernel of course lol.. Is go into recovery then wipe cache partition and wipe davlik. Flash the kernel then repeat the two wipes and reboot.
Never had a problem.
Sent from my Nexus 4 using xda app-developers app

Related

I'm I ready to flash rom?

Ok guys I'm new to the evo and just want to make sure I didn't skip any important steps. I have latest ota and rooted with unrevoked3 and got s-off with unrevoked forever. Flashed amonRa recovery and created nandroid.
I'm looking to try out the EViO Rom or Latest fresh rom. Can I just put the rom on sdcard and flash the rom from recovery? Or am I missing something?
Put the rom on the root of your card, wipe data, cache and dalvik cache twice, then flash the rom.
Sent from my PC36100 using XDA App
Don't forget to backup any apps with TB or MyBackupPro as well as the nand backup.
Good luck
Sent from my PC36100 using XDA App
Systemfraud said:
Put the rom on the root of your card, wipe data, cache and dalvik cache twice, then flash the rom.
Sent from my PC36100 using XDA App
Click to expand...
Click to collapse
wiping twice is a good idea after a duece, but it's a bit redundant when dealing with dalvik cache
Sent from my Nokia 5100 using XDA App
OneStepAhead said:
wiping twice is a good idea after a duece, but it's a bit redundant when dealing with dalvik cache
Sent from my Nokia 5100 using XDA App
Click to expand...
Click to collapse
Its always a bit redundant i think thats the point though. Honestly if the recoveries are wiping them correctly there should be no reason to do them twice, But it makes people feel good to do so more power to them.

Nexus 4 wipe data problem

I would like to ask that when I wipe data in recovery , what will actually be wipe, will my photo or music be wipe?
Sent from my MB526 using xda app-developers app
If you wipe data in recovery mode, it'll wipe everything. Everything.
I mean in custom recovery, if it will wipe everything even the zip in sd card then how can we actually flash rom? Sorry for my silly question, cause my previous phone can use sdcard which don't got this problem....
Sent from my MB526 using xda app-developers app
If you wipe data in recovery, it doesn't wipe your photos or music.
It only wipes your apps, system apps and their data. Also resets the phone.
Then only way you wipe your photos or music is if you go to;
mount and storage > format sdcard.
WHICH YOU DON'T WANT TO DO!
So if you want to flash a custom ROM;
In your recovery you;
Wipe data & Factory Reset
Go go Advance > wipe dalvik cache
Flash your ROM.
Sent from my Nexus 4 using xda premium
Thanks, that's mean it's just the same way as defy, how about how about flash a kernel? Because as defy's boot loader are locked, we can't actually flash a really kernel, just the 2nd boot kernel
Sent from my MB526 using xda app-developers app
ansontyl96 said:
Thanks, that's mean it's just the same way as defy, how about how about flash a kernel? Because as defy's boot loader are locked, we can't actually flash a really kernel, just the 2nd boot kernel
Sent from my MB526 using xda app-developers app
Click to expand...
Click to collapse
Well if your bootloader is locked, look around the development thread for the nexus 4 utility 1.3.0
That unlocks, roots, install recovery and all sort of stuffs.
To flash a kernel to a stock or custom ROM;
Boot to recovery
Format Cache
Format dalvik cache
Flash
Reboot.
Sent from my Nexus 4 using xda premium
Unlocking bootloader will wipe EVERYTHING on your phone.
what would i have to do if i wanted to wipe my sd card? stock clean??
i've taken up 2gb of data because i tried to make a system back up but i've done it like 3 time and i can't find the backup zips so i just want to clean the SD card back to the begining without messing up the system data since i'm not flashing anything new
I have the same doubt. What is the best way to format SD card?. I did it once and had to inject the ROM with computer using ADb. Any alternative?
Sparta507 said:
what would i have to do if i wanted to wipe my sd card? stock clean??
i've taken up 2gb of data because i tried to make a system back up but i've done it like 3 time and i can't find the backup zips so i just want to clean the SD card back to the begining without messing up the system data since i'm not flashing anything new
Click to expand...
Click to collapse

Wipe cache

If I wipe the dalvic cache and regular cache will it erase the powerhal I flashed? I tried a new kernel and don't like it so don't want the powerhal also.
Sent from my Nexus 7 using Tapatalk 2
Nope,doesnt uninstall anything just deletes system cache aka what the system keeps in short term memory to be more efficient.
Sent from my SGH-I927 using xda app-developers app

*Kernel flashing question *

When flashing to a new kernel, do I need to write my device or can I just flash from where I am? Currently I'm on matr1x kernel and I want to go to Franko's kernel. I was planning on wiping the dalvik cache but not factory reset. I'd rather not lose all my apps and settings if I can help it. Any ideas?
Sent from my Nexus 4 using xda premium
Just wipe cache and dalvik and your set to go!
Sent from Nexus 4
itpromike said:
When flashing to a new kernel, do I need to write my device or can I just flash from where I am? Currently I'm on matr1x kernel and I want to go to Franko's kernel. I was planning on wiping the dalvik cache but not factory reset. I'd rather not lose all my apps and settings if I can help it. Any ideas?
Sent from my Nexus 4 using xda premium
Click to expand...
Click to collapse
You don't need to factory reset when flashing kernels just wipe cache and dalvik and you'll be fine. Note it might take a little longer to boot because it will be building up cache since you just wiped it.
No need to wipe anything. No cache or dalvik needed either. You just flash and boot!
BUT! When you are using a custom kernel that uses custom ramdisk (ex. Franco), you need to flash the kernel from your ROM first. (I usually just backup only my boot image in TWRP so I can go back and forth between kernels) If you don't, the phone might not boot (will boot to bootloader, which in that case, you can fix the problem)
Also, make sure that you don't overclock too much and expect bugs from nightly releases (a lot of kernels are in nightly version right now, but Franco seems to reach milestone soon). You might not experience any bugs, but you never know.
you should be able to do that
if it is just a zip, you should be able to flash it right across in the recovery.
I just did that an hour ago, it kept everything except the kernel.
itpromike said:
When flashing to a new kernel, do I need to write my device or can I just flash from where I am? Currently I'm on matr1x kernel and I want to go to Franko's kernel. I was planning on wiping the dalvik cache but not factory reset. I'd rather not lose all my apps and settings if I can help it. Any ideas?
Sent from my Nexus 4 using xda premium
Click to expand...
Click to collapse

[Q] what i need in order to install a kernel

i have never been rooting myn nexus 4 but now i want to install a franco kernel. what i need to do in order to install a kernel? (i have guides for everything i need to do i just dont know the order of the things. first... second..
Install custom recovery, boot into it, flash the kernel zip, reboot
Sent from my Nexus 4 using XDA Free mobile app
wipe dalvik cache before flash the kernel
No need for a wipe
Sent from my Nexus 5 using XDA Free mobile app
Did you unlocked the bootloader? If no, you should start unlocking it but you will loose all data.
Enviado desde mi Nexus 7 mediante Tapatalk
So what i need to do is unlock the bootloader than install custom recovery and boot into it and than flash the kernel zip did i get it right?
jd1639 said:
No need for a wipe
Sent from my Nexus 5 using XDA Free mobile app
Click to expand...
Click to collapse
yeah, but i do it everytime to avoid any possible issues
That is absolutely correct. But, as suggested before you may want to wipe the cache and dalvik cache partitions before flashing, and before you do anything in the recovery, please make a nandroid backup to restore in case you face any issues, it is very important.
Sent from my Nexus 4 using XDA Free mobile app
Calinho said:
wipe dalvik cache before flash the kernel
Click to expand...
Click to collapse
lolcakes203 said:
That is absolutely correct. But, as suggested before you may want to wipe the cache and dalvik cache partitions before flashing, and before you do anything in the recovery, please make a nandroid backup to restore in case you face any issues, it is very important.
Sent from my Nexus 4 using XDA Free mobile app
Click to expand...
Click to collapse
you never ever need to wipe dalvik nor cache when flashing kernels. they have nothing to do with kernels. its the same as going to wipe your behind so you can fill your car up with gas.
Alright, Thanks for the clarification. I am used to the old fashioned method that always told individuals to wipe the cache and dalvik.
Sent from my Nexus 4 using XDA Free mobile app
lolcakes203 said:
Alright, Thanks for the clarification. I am used to the old fashioned method that always told individuals to wipe the cache and dalvik.
Sent from my Nexus 4 using XDA Free mobile app
Click to expand...
Click to collapse
its from the past, when android was still young and we didnt know better. everyone was just told to do it always, regardless. and no one questioned it. but as we learned more and more, some upgraded their thinking, while others kept up with what was told to them in the past. when flashing roms as well, there is no need to wipe dalvik nor caches, as the act of flashing the rom automatically wipes both dalvik and cache
Thank you very much for updating me! I greatly appreciate it. We learn something new everyday
Sent from my Nexus 4 using XDA Free mobile app
thank you so much!! i just didnt understand something : how to make a nandroid back up and what is it for?
NEXUSKILLER123 said:
thank you so much!! i just didnt understand something : how to make a nandroid back up and what is it for?
Click to expand...
Click to collapse
you do it in recovery. it makes a complete backup of everything. so if you mess something up, you can restore it(also in recovery) and be back to the same place when you made the backup.

Categories

Resources