*Kernel flashing question * - Nexus 4 Q&A, Help & Troubleshooting

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

Related

Factory Reset

In my small small experience, All Stock Roms (as listed by dr.ketan, somewhere else in this forum) after flashing thru PCOdin are safe for Factory Reset/Wipe data and Wipe Cache Partition. Only after that Abyss Kernel should be flashed. However after flashing leaked ICS Roms thru CWM should not be Factory Res/Wipe Data and Wipe Cache Partition. Please correct me whatsoever, if am wrong and suggest. Thanks.
dsmas said:
In my small small experience, All Stock Roms (as listed by dr.ketan, somewhere else in this forum) after flashing thru PCOdin are safe for Factory Reset/Wipe data and Wipe Cache Partition. Only after that Abyss Kernel should be flashed. However after flashing leaked ICS Roms thru CWM should not be Factory Res/Wipe Data and Wipe Cache Partition. Please correct me whatsoever, if am wrong and suggest. Thanks.
Click to expand...
Click to collapse
You can "Factory Res/Wipe Data and Wipe Cache Partition." on ICS ROMS if you first flash the abyss kernel. DON'T EVER factory reset/wipe on stock kernels.
Also why would you flash leaked ics roms when Samsung released OFFICIAL roms?
wiping on Stock ICS kernel can be fatal to your phone ,be very careful ,flash the latest franco kernel ,or speed mode kernel as they are safe to wipe from and can function perfectly with ICS ROMs from samsung.
MR.change said:
wiping on Stock ICS kernel can be fatal to your phone ,be very careful ,flash the latest franco kernel ,or speed mode kernel as they are safe to wipe from and can function perfectly with ICS ROMs from samsung.
Click to expand...
Click to collapse
So on franco's kernel we can wipe, backup, restore, etc as we normally would using cwm?
I think after rooting, No Factory reset. By the way what is the thump rule? When to Factory reset and when we should not?
There's no rule as such.
Use safe kernel and do whatever you please, just make sure you are on safe kernel when you play with recovery.
Att.Fan1982 said:
So on franco's kernel we can wipe, backup, restore, etc as we normally would using cwm?
Click to expand...
Click to collapse
on latest franco and speed mode kernel ,and pretty much any kernel that has MMC_CAP_ERASE disabled ,it's safe to do what ever you want
just make sure you are on such a safe kernel first ,people have bricked because they thought they were on a safe kernel when in fact they weren't.
dsmas said:
I think after rooting, No Factory reset. By the way what is the thump rule? When to Factory reset and when we should not?
Click to expand...
Click to collapse
thumb rule is to be on a safe kernel ,and then do what ever you want.

Franco Kernel on CM10.1

What do I have to do in order to flash franco's kernel coming from STOCK other than wiping cache and dalvik cache?? I already have franco running on stock do I just flash CM wipe both caches boot into CM go back into recovery and then flash Franco and wipe both caches again?? Any help is MUCH appreciated Sorry for the noob question I am still learning
Raphael17 said:
What do I have to do in order to flash franco's kernel coming from STOCK other than wiping cache and dalvik cache?? I already have franco running on stock do I just flash CM wipe both caches boot into CM go back into recovery and then flash Franco and wipe both caches again?? Any help is MUCH appreciated Sorry for the noob question I am still learning
Click to expand...
Click to collapse
Stock being stock Google?
Wipe data/factory reset,
Flash CM10,
Flash Franco.
Skip wiping caches altogether, no need to reboot in between flashing the ROM and the kernel.
If cm is already installed, you don't need to wipe anything if it's just the kernel. Just make sure you always have a recent nandroid
Sent from my Nexus 4 using xda app-developers app
dont have to wipe anything, just flash it over.
note that when you flash a new nightly of cm, you will need to reflash the kernel.
Is there a list of supported devices somewhere so I can check to see if my LG E975 is supported?
Thanks!
Sent from my LG-E975 using Tapatalk 4 Beta

Proper way to flash a kernel?

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

Back to Stock Kernel, only Nexus start screen

Hi,
I had the Faux Kernel 16 mako and wanted to get back to Stock Kernel because I wanted to update to 4.3. So I downloaded a Stock Kernel and flashed it. I didn't work it's stuck at the nexus start screen. So then I wanted to get back to 16 mako faux kernel and it's still the same.. It keeps loading. Can someone help how to fix this? Please?
Thank you so much in advance...
Does maybe the Recovery Kernel Faux help? The link is dead
easygoingx said:
Hi,
I had the Faux Kernel 16 mako and wanted to get back to Stock Kernel. So I downloaded a Stock Kernel and flashed it. I didn't work.. it's stuck at the nexus start screen .. now I wanted to get back to 16 mako faux kernel and it's still the same.. can someone help pls?
Click to expand...
Click to collapse
What android version, what ROM, what did you wipe (if anything)?
Sent from my Nexus 4 using Tapatalk 4
szucsgf said:
What android version, what ROM, what did you wipe (if anything)?
Sent from my Nexus 4 using Tapatalk 4
Click to expand...
Click to collapse
I have 4.2.2 and I wiped dalvik cache..
easygoingx said:
I have 4.2.2 and I wiped dalvik cache..
Click to expand...
Click to collapse
Try wipe cache, dalvik, and system (assuming you're using twrp) (you won't lose any apps or data), then reflash your ROM and gapps without flashing a kernel.
Sent from my Nexus 4 using Tapatalk 4
szucsgf said:
Try wipe cache, dalvik, and system (assuming you're using twrp) (you won't lose any apps or data), then reflash your ROM and gapps without flashing a kernel.
Sent from my Nexus 4 using Tapatalk 4
Click to expand...
Click to collapse
Yes I'm using TWRP. Do you mean in the menue 'WIPE' which says FACTORY RESET Wipes Data, Cache and Dalvik (not includiung internal storage)?
I don't lose any apps and data right?
Ok I did. But now it says I have no OS when trying to reboot. I always have used Stock Rom... where can I reflash it?
easygoingx said:
Yes I'm using TWRP. Do you mean in the menue 'WIPE' which says FACTORY RESET Wipes Data, Cache and Dalvik (not includiung internal storage)?
I don't lose any apps and data right?
Click to expand...
Click to collapse
No don't do that, you will lose data.
Click on "Advanced wipe", then select only cache, dalvik cache, and system. Make sure you have a ROM zip file available in your phone's storage. Wipe those 3 things, then flash your ROM and gapps. You will not lose any apps or data. It will remove any leftover files from past kernels and you'll be back on your ROM's default kernel. I often do this when switching kernels. Not needed most of the time but I hope it helps you now.
Sent from my Nexus 4 using Tapatalk 4
szucsgf said:
No don't do that, you will lose data.
Click on "Advanced wipe", then select only cache, dalvik cache, and system. Make sure you have a ROM zip file available in your phone's storage. Wipe those 3 things, then flash your ROM and gapps. You will not lose any apps or data. It will remove any leftover files from past kernels and you'll be back on your ROM's default kernel. I often do this when switching kernels. Not needed most of the time but I hope it helps you now.
Sent from my Nexus 4 using Tapatalk 4
Click to expand...
Click to collapse
Puh, I did the Advanced Wipe without DATA. The problem is that I don't have a ROM Zip on my phones storage. Can I somehow access to the storage to put the Stock Kernel on the phone and then install it? So confusing! I am so thankful for your help.
easygoingx said:
Puh, I did the Advanced Wipe without DATA. The problem is that I don't have a ROM Zip on my phones storage. Can I somehow access to the storage to put the Stock Kernel on the phone and then install it? So confusing! I am so thankful for your help.
Click to expand...
Click to collapse
Wiping System essentially wipes the Android OS off your phone (but keeps your user apps and data), so once you wipe system you need to flash a ROM to be able to boot your phone. That's why I told you to have a ROM zip available.
You can use TWRP's built in file manager (Advanced -> File manager) to see if you have one on your phone. If you don't have any, you can use a root toolkit (like mskip's) to push a ROM zip from your PC to your phone: http://forum.xda-developers.com/showthread.php?t=1995688 or use an adb push command.
How can I make it connected with adb? I always type in adb devices but my device is not listed. I have it connected via USB to my computer but it won't find it. How can I make it visible? Should I turn it off or have it on in the bootloader or recovery? Sorry
It didn't work... it said something with insecure boot blah? Jesus.. I'm getting crazy. I just want to put the stock rom on my phone..
easygoingx said:
How can I make it connected with adb? I always type in adb devices but my device is not listed. I have it connected via USB to my computer but it won't find it. How can I make it visible? Should I turn it off or have it on in the bootloader or recovery? Sorry
Click to expand...
Click to collapse
I'm sorry, I'm not skilled at ADB. I believe USB debugging needs to be enabled, which is something you enable in Android. You may need to do some Googling to figure out how to push a ROM to your phone. The command is "adb push" so try searching that.
In general I always recommend keeping a copy of a working ROM zip on your phone just in case.
The toolkit I linked you earlier has the functionality to flash the Google stock ROM. That's something you can try as well. However that may cause you to lose your apps and data.
I am very desperate. I tried so much to just push a file on my phone with toolkit or adb.. now nothing really works. Does anyone know what I can do? When I use adb and try to push it always says read-only file.. do i have to do something before? It won't push.. I just want to add the stock rom on my phone. Is there any other way?
Ok, I somehow managed to push.. but I can't find it when I want to Select Zip Install the Stock Rom.. the file was TGZ. Is there the Stock rom as ZIP too? Or why is it not there where I pushed it?

[Q] Solved.

..
starbeard89 said:
Hello,
I have looked quite a bit, but I can't find anything to help (perhaps I'm using the wrong search terms or something). The problem I keep running into is that, even with wiping cache, dalvik cache, and data/factory reset, gapps keeps on coming back. I've flashed the latest CM11 nightly, the latest Purity, and the latest BS Harmony, all without flashing gapps, but when it boots up, sure enough, gapps are there. Why are gapps still there, and what can I do to get rid of them?
Thank you in advance!
Click to expand...
Click to collapse
Yes because it has backup system yo backup gapps, if you want to get rid of gapps, go to mounts and storage on cwm and do format system, and then flash cm11 or other rom
Sent from my Nexus 4 using Tapatalk
starbeard89 said:
Hello,
I have looked quite a bit, but I can't find anything to help (perhaps I'm using the wrong search terms or something). The problem I keep running into is that, even with wiping cache, dalvik cache, and data/factory reset, gapps keeps on coming back. I've flashed the latest CM11 nightly, the latest Purity, and the latest BS Harmony, all without flashing gapps, but when it boots up, sure enough, gapps are there. Why are gapps still there, and what can I do to get rid of them?
Thank you in advance!
Click to expand...
Click to collapse
If I'm not mistaken, some devs do add some gapps into their roms. Not all of them mind you. Also when you do a factory reset via the recovery, it doesn't wipe the system partition. Most roms will wipe it when it (rom) is flashed, so gapps from previous roms wouldn't or shouldn't be there.
Sent from my Nexus 7 (2013)
xtrymind said:
Yes because it has backup system yo backup gapps, if you want to get rid of gapps, go to mounts and storage on cwm and do format system, and then flash cm11 or other rom
Sent from my Nexus 4 using Tapatalk
Click to expand...
Click to collapse
Thank you. I'm feeling sheepish.
You're welcome.
Sent from my Nexus 7 (2013)

Categories

Resources