[Q] What should i do to flash stock kernel? - Nexus 10 Q&A, Help & Troubleshooting

HI all, I have a Rooted N10 (Android 4.3) with KTmanta Kernel and stock ROM. Before installing KTmanta kernel i made a Nandroid Backup. Now if i want to go back to the Stock Kernel what should i do? Is it SAFE to flash the "Boot.img" in the original nandroid backup? I believe it contains the kernel. Thanks in advance.

mfaisal98 said:
HI all, I have a Rooted N10 (Android 4.3) with KTmanta Kernel and stock ROM. Before installing KTmanta kernel i made a Nandroid Backup. Now if i want to go back to the Stock Kernel what should i do? Is it SAFE to flash the "Boot.img" in the original nandroid backup? I believe it contains the kernel. Thanks in advance.
Click to expand...
Click to collapse
It's fine to restore the boot.img from your backup as boot.img does contain the kernel. What I usually like do in this situation is I download the stock 4.3 boot.img (Which can be extracted from the latest Nexus 10 factory image from here https://developers.google.com/android/nexus/images#mantarayjwr66y) and then flash it in fastboot with the command:
Code:
fastboot flash boot boot.img
This will restore your stock kernel. Let me know if you still have questions.
Sent from my SCH-I535 using XDA Premium 4 mobile app

shimp208 said:
It's fine to restore the boot.img from your backup as boot.img does contain the kernel. What I usually like do in this situation is I download the stock 4.3 boot.img (Which can be extracted from the latest Nexus 10 factory image from here https://developers.google.com/android/nexus/images#mantarayjwr66y) and then flash it in fastboot with the command:
Code:
fastboot flash boot boot.img
This will restore your stock kernel. Let me know if you still have questions.
Sent from my SCH-I535 using XDA Premium 4 mobile app
Click to expand...
Click to collapse
I am much thankful for your help Infact, I do have a question related to flashing kernel. I have read in related articles that after flashing any kernel you must perform the following in the CWM recovery: 1. Delete cache 2. Wipe dalvik cache 3. Fix permissions.
I am using CWM Recovery 6.0.4.3 (the latest for N10 downloaded from CWM website) and it doesn't offer the option of FIX PERMISSIONS. So the last time i flashed KTmanta kernel i couldn't possibly use option no. 3 above. My N10 is running smoothing without any issues. But the thing is, I am asking because I do want to follow the steps as directed by the author of the kernel or the ROM. Thanks in advance

mfaisal98 said:
I am much thankful for your help Infact, I do have a question related to flashing kernel. I have read in related articles that after flashing any kernel you must perform the following in the CWM recovery: 1. Delete cache 2. Wipe dalvik cache 3. Fix permissions.
I am using CWM Recovery 6.0.4.3 (the latest for N10 downloaded from CWM website) and it doesn't offer the option of FIX PERMISSIONS. So the last time i flashed KTmanta kernel i couldn't possibly use option no. 3 above. My N10 is running smoothing without any issues. But the thing is, I am asking because I do want to follow the steps as directed by the author of the kernel or the ROM. Thanks in advance
Click to expand...
Click to collapse
When your flashing a kernel in recovery it's important to follow the directions provided by the kernel developer. Deleting chache, and wiping dalvik cache are essential to ensuring the kernel runs properly and doesn't bootloop your phone are you flash the kernel. As far as fix permissions this utility was removed for recovery because the way it was implemented was outdated and broken, fix permissions is more of a helpful option rather then a necessity in this situation. If you really want to run fix permissions you can download and run Stericson's Fix Permissions App. If you need me to clarify any of my points or anything else let me know I'll be happy to do so.

shimp208 said:
When your flashing a kernel in recovery it's important to follow the directions provided by the kernel developer. Deleting chache, and wiping dalvik cache are essential to ensuring the kernel runs properly and doesn't bootloop your phone are you flash the kernel. As far as fix permissions this utility was removed for recovery because the way it was implemented was outdated and broken, fix permissions is more of a helpful option rather then a necessity in this situation. If you really want to run fix permissions you can download and run Stericson's Fix Permissions App. If you need me to clarify any of my points or anything else let me know I'll be happy to do so.
Click to expand...
Click to collapse
Thanks again for your prompt reply I don't think i really need to run "fix permissions", as long as my ROM is running good. I am happy that I at least know how to do that in case i am in real need of running fix permissions. God bless you

Related

[Q] Lost root permissions after flashing kernel!

Hello guys,
I was running Smooth ROM 4.3 + Bricked Kernel 0.58, everything was just fine, but I reflashed the kernel to change the GPU's OC (in case you aren't familiar with that kernel, the only way to change the oc of the gpu is by reflashing the kernel, but moving on..)
After said reflash, everything booted back to normal and only a couple of hours later, after trying to enter Trickster Mod, I noticed that I had lost my root permissions on every app. This is not the second time I am facing this problem (I don't recall the circumstances under which this happened the first time), and to fix this problem last time I had to factory reset and reflash the rom, and it's a bit boring having to reconfigure all the system settings again and whatnot.
So the question is, do you know of any way to fix this without wiping+reflashing?
Best regards,
Bernardo Pinho
Download a flashable SuperSU zip and flash it in recovery.
Zip located here: http://forum.xda-developers.com/showthread.php?t=1538053
No need to wipe and reflash ROM.
- Sent from my US Cellular SGS3
RMarkwald said:
Download a flashable SuperSU zip and flash it in recovery.
Zip located here: http://forum.xda-developers.com/showthread.php?t=1538053
No need to wipe and reflash ROM.
- Sent from my US Cellular SGS3
Click to expand...
Click to collapse
Thank you for your reply, but it didn't work. I flashed said SU zip and I still don't have root permissions...
(On a side note, I just noticed my chrome browser started speaking out what I click on, this never happened before and I never messed with any accessibility options, do you have any idea on how to fix this? 0.0)
Bump!

[Q] Updating to 4.2.2 whilst rooted and using motley kernel.

My nexus is rooted using the nexus toolkit and I'm running 4.2.1 rooted with motley kernal. How would I go about updating to the latest software whilst keeping the root and upgrading the kernel?
If you use custom recovery with a backup then easy - restore boot (kernel) and system, then install ota update zip file.
http://forum.xda-developers.com/showthread.php?t=2148337
u can use this 4.2.2 factory image, flash via CWM or TWRP. Your data will be preserved.:good:
Kernel
BelzIgoh said:
http://forum.xda-developers.com/showthread.php?t=2148337
u can use this 4.2.2 factory image, flash via CWM or TWRP. Your data will be preserved.:good:
Click to expand...
Click to collapse
Will the kernel still be compatible with the newest update.
Jordydaman said:
Will the kernel still be compatible with the newest update.
Click to expand...
Click to collapse
Flashing a ROM over the top of your existing ROM will replace both the /system partition and also the boot partition.
Meaning - your Motley Kernel will get blown away and replaced with whatever boot image the ROM dev provided (stock kernel and ramdisk, I suppose). But you can certainly just re-install the Moltey kernel anytime thereafter.
If you have market apps that try to perform random kernel tweaks as soon as the ROM boots, you might be in for some surprises up to and including bootloops. The safest thing to do - if they have an "apply at boot" toggle, is to turn that off before you commence flashing.
As always, take a full nandroid backup before you begin. You can always go back that way.

[Q] HELP! Stuck in a boot loop :(

*RESOLVED*
I tried to update to 4.2.2 manually and got stuck in a bootloop. The first time, I got an error message (attached) and rebooted, so I went into Voodoo Root protector and deleted my backup of SU thinking that could be the problem. I tried again, got the same error, and now I'm in a bootloop. I am on stock Android 4.2.1 and using Franco Kernel r72. Please help me.
Thanks.
wipe data then reflash your rom
benblb said:
I tried to update to 4.2.2 manually and got stuck in a bootloop. The first time, I got an error message (attached) and rebooted, so I went into Voodoo Root protector and deleted my backup of SU thinking that could be the problem. I tried again, got the same error, and now I'm in a bootloop. I am on stock Android 4.2.1 and using Franco Kernel r72. Please help me.
Thanks.
Click to expand...
Click to collapse
If you have unlocked bootloader, download Nexus 4 image from here, unzip it to get the various factory images and then flash using fastboot. If you have locked bootloader, you will have to unlock it using
Code:
fastboot oem unlock
.
CAUTION: This will wipe all data.
Follow this guide to re-root and install CWM.
simms22 said:
wipe data then reflash your rom
Click to expand...
Click to collapse
Is there any way for me to keep my data? How do I cleanly do it? If I do need to wipe data, what do I do? Do I just go into CWM and tell it to wipe the data and then flash the operating system? I saw some instructions that had me flashing all sorts of stuff (i.e. radios etc). Sorry for all the questions.
rhoadster91 said:
If you have unlocked bootloader, download Nexus 4 image from here, unzip it to get the various factory images and then flash using fastboot. If you have locked bootloader, you will have to unlock it using
Code:
fastboot oem unlock
.
CAUTION: This will wipe all data.
Click to expand...
Click to collapse
My bootloader is unlocked. What exactly do I flash from the 4.2.2 image? Do I need to wipe my data first or is my data just wiped in the process?
benblb said:
Is there any way for me to keep my data? How do I cleanly do it? If I do need to wipe data, what do I do? Do I just go into CWM and tell it to wipe the data and then flash the operating system? I saw some instructions that had me flashing all sorts of stuff (i.e. radios etc). Sorry for all the questions.
Click to expand...
Click to collapse
yes, in cwm. wipe data then flash the rom. you can try just reflashing your rom first, without wiping data. if it still bootloops, then wipe data and reflash. flashing the system img via fastboit will wipe everything.
benblb said:
I tried to update to 4.2.2 manually and got stuck in a bootloop. The first time, I got an error message (attached) and rebooted, so I went into Voodoo Root protector and deleted my backup of SU thinking that could be the problem. I tried again, got the same error, and now I'm in a bootloop. I am on stock Android 4.2.1 and using Franco Kernel r72. Please help me.
Thanks.
Click to expand...
Click to collapse
Since you aren't running the stock kernel, one of the kernel modules failed an md5sum check for a patch and the install stopped before attempting to patch a file that wasn't equal to what it was expecting.
a wipe data/factory reset in Recovery Mode can solve this bootloop, especially after you have just flashed a ROM.
benblb said:
My bootloader is unlocked. What exactly do I flash from the 4.2.2 image? Do I need to wipe my data first or is my data just wiped in the process?
Click to expand...
Click to collapse
Flashing from fastboot will automatically clear all data. There should be a system.img file. Flash it using
Code:
fastboot flash system system.img
But to make a clean install, I would recommend you flash all the factory images. Refer this for more detail.
JaiaV said:
Since you aren't running the stock kernel, one of the kernel modules failed an md5sum check for a patch and the install stopped before attempting to patch a file that wasn't equal to what it was expecting.
Click to expand...
Click to collapse
So I can just re-flash my kernel and be fine? I can't get the kernel to flash though.
benblb said:
So I can just re-flash my kernel and be fine? I can't get the kernel to flash though.
Click to expand...
Click to collapse
reflash the rom. franco kernel isnt flashable in recovery, you need to flash it via fastboot(.img file not a .zip).
simms22 said:
reflash the rom. franco kernel isnt flashable in recovery, you need to flash it via fastboot(.img file not a .zip).
Click to expand...
Click to collapse
I'm on stock. What file do I flash? Thanks for all your help.
benblb said:
I'm on stock. What file do I flash? Thanks for all your help.
Click to expand...
Click to collapse
look in the development section, there are a few rooted stock roms available.
simms22 said:
look in the development section, there are a few rooted stock roms available.
Click to expand...
Click to collapse
I just flashed stock. I followed these instructions: http://forum.xda-developers.com/showthread.php?t=2010312
Do I also need to flash a kernel? If so, where do I get the download for stock?
benblb said:
I just flashed stock. I followed these instructions: http://forum.xda-developers.com/showthread.php?t=2010312
Do I also need to flash a kernel? If so, where do I get the download for stock?
Click to expand...
Click to collapse
Flashing the factory images will have restored the stock kernel.
If you are going to flash a factory image or anything like that, watch this: http://forum.xda-developers.com/showthread.php?t=2039162
after you flash that ROM, if your phone stucks in a bootloop, then go to Recovery, wipe cache and reset factory will solve the problem.
benblb said:
I just flashed stock. I followed these instructions: http://forum.xda-developers.com/showthread.php?t=2010312
Do I also need to flash a kernel? If so, where do I get the download for stock?
Click to expand...
Click to collapse
na, the kernel is always included in the rom. you flash a kernel if you want to use a different kernel(trinity is great with stock).
Hi everyone,
Thanks for your help. I have flashed stock 4.2.2 to my phone and have finished setting everything up. I really appreciate the quick responses and dedication to my issue. It means a lot to me that you guys helped me in my time of need. Thanks again.
Cheers,
Ben

[Q] Is nexus 4 running paranoid android and franco kernel possible?

Hi, I have a newly rooted Nexus 4 with stock kernel and ROM but with TWRP recovery. I am kind of a noob when it comes to modifying my phone so any help is appreciated. I want to install paranoid android and franco kernel so that I will have good battery life and features, I wanted to know if this is possible and if so, how would I go about doing this. If there are video guides on youtube, please post links, I couldn't find anything when I searched for this
nameless42 said:
Hi, I have a newly rooted Nexus 4 with stock kernel and ROM but with TWRP recovery. I am kind of a noob when it comes to modifying my phone so any help is appreciated. I want to install paranoid android and franco kernel so that I will have good battery life and features, I wanted to know if this is possible and if so, how would I go about doing this. If there are video guides on youtube, please post links, I couldn't find anything when I searched for this
Click to expand...
Click to collapse
I have both installed. Just follow the instructions http://forum.xda-developers.com/showthread.php?t=2002782
nameless42 said:
Hi, I have a newly rooted Nexus 4 with stock kernel and ROM but with TWRP recovery. I am kind of a noob when it comes to modifying my phone so any help is appreciated. I want to install paranoid android and franco kernel so that I will have good battery life and features, I wanted to know if this is possible and if so, how would I go about doing this. If there are video guides on youtube, please post links, I couldn't find anything when I searched for this
Click to expand...
Click to collapse
Yes its possible. Just download the latest of both put them backup anything you don't want to loose wipe data cachedalviccache and system flash the ROM gapps and kernel let it boot sign in restore apps and boom done
Sent from my SGH-T959 using xda app-developers app
cannondaleV2000 said:
Yes its possible. Just download the latest of both put them backup anything you don't want to loose wipe data cachedalviccache and system flash the ROM gapps and kernel let it boot sign in restore apps and boom done
Sent from my SGH-T959 using xda app-developers app
Click to expand...
Click to collapse
thanks for your help
Just to add on another question, I was using franco kernel updater free and the latest version I can see in there is 164, I know that this will not work, so what should I do. also I was reading about the whole issue with jss and jwr, so just to make sure, franco r174 is compatible with pa 3.96, right?
nameless42 said:
thanks for your help
Just to add on another question, I was using franco kernel updater free and the latest version I can see in there is 164, I know that this will not work, so what should I do. also I was reading about the whole issue with jss and jwr, so just to make sure, franco r174 is compatible with pa 3.96, right?
Click to expand...
Click to collapse
Yes PA 3.96 is JWR based rom and official Farnco kernel r174 is a JWR kernel.. So you are good to go.
Flash it and relax. You can find the latest r174 in the OP's thread(original dev section)
Instructions for PA 3.69:
I'm on PA 3.69 (4.2.2 not 4.3) and using Franco nightly r165 which is the same as milestone 3.
Get goo manager from play store and click on "browse by compatible rom" then select paranoid android, then mako and flash 3.69, then download franco kernel updated free from play store and flash it.
Rohit02 said:
Yes PA 3.96 is JWR based rom and official Farnco kernel r174 is a JWR kernel.. So you are good to go.
Flash it and relax. You can find the latest r174 in the OP's thread(original dev section)
Click to expand...
Click to collapse
I'm sorry to keep asking questions, but could you please post a step by step guide with links to the particular items that I will have to download (ie. radios and additional files (if needed) in addition to the rom, kernel, and gapps). Also seeing that Franco Kernel 176 has also been released for JWR, will that work with PA 3.96?
This is my first time installing a custom rom and kernel so please go into great detail if you can through all of the steps of the process.
Thanks for your help.
nameless42 said:
I'm sorry to keep asking questions, but could you please post a step by step guide with links to the particular items that I will have to download (ie. radios and additional files (if needed) in addition to the rom, kernel, and gapps). Also seeing that Franco Kernel 176 has also been released for JWR, will that work with PA 3.96?
This is my first time installing a custom rom and kernel so please go into great detail if you can through all of the steps of the process.
Thanks for your help.
Click to expand...
Click to collapse
I will help you butfor that you have to buy me a coffee , kidding OR Just spam my thanks meter
See this is what you have to do..
As you are on 4.3 and twrp installed download PA3.96(JWR based ROM so flash a JWR kernel) from original dev section,
Franco r176 kernel_JWR. Gapps latest in the same PA's thread updated one is 20130815.
Installation steps:
Factory reset
wipe cache
wipe dalvik cache
wipe system
wipe data
install the rom then gapps
AGAIN wipe cache and dalvik cache
flash Supersu v1.51(search for it-google)
flash the franco kernel
reboot.
enjoy the rom.:good:
Additional help(optional if you using TB.)
ROOT IS WORKING BUT IT NEEDS TO SORT OF BE ENABLED
1. Enable developer option by pressing build number 7 times in settings>about
2. Enable usb debugging and set root access to adb + apps in developer settings
3. root should now work
Titanium backup may not work on 4.3:
To fix it:
1. In tb go to menu>preferences>backup folder location
2. Press detect
3. Then you will get two options ...choose the one with legacy in its path
4. Then it will ask you to move backup to that folder.... Select that
5. Restart app and restore.
Rohit02 said:
I will help you butfor that you have to buy me a coffee , kidding OR Just spam my thanks meter
See this is what you have to do..
As you are on 4.3 and twrp installed download PA3.96(JWR based ROM so flash a JWR kernel) from original dev section,
Franco r176 kernel_JWR. Gapps latest in the same PA's thread updated one is 20130815.
Installation steps:
Factory reset
wipe cache
wipe dalvik cache
wipe system
wipe data
install the rom then gapps
AGAIN wipe cache and dalvik cache
flash Supersu v1.51(search for it-google)
flash the franco kernel
reboot.
enjoy the rom.:good:
Additional help(optional if you using TB.)
ROOT IS WORKING BUT IT NEEDS TO SORT OF BE ENABLED
1. Enable developer option by pressing build number 7 times in settings>about
2. Enable usb debugging and set root access to adb + apps in developer settings
3. root should now work
Titanium backup may not work on 4.3:
To fix it:
1. In tb go to menu>preferences>backup folder location
2. Press detect
3. Then you will get two options ...choose the one with legacy in its path
4. Then it will ask you to move backup to that folder.... Select that
5. Restart app and restore.
Click to expand...
Click to collapse
thanks for all of your help. I did all of that, but for some reason my wifi isn't working, cell and data are fine, just wifi I think. Any ideas?
nameless42 said:
thanks for all of your help. I did all of that, but for some reason my wifi isn't working, cell and data are fine, just wifi I think. Any ideas?
Click to expand...
Click to collapse
It might be your router issue.. pl check with the settings.. I had also read in the PA thread about the wifi issue so it better you can ask it over there, if you are lucky enough the exact person can help you who had the same problem .
Thanks, your description helped me to set up PA together with Franco Kernel.
Unfortunately, I have lost root access now.
I set the phone to developer's mode, but can't find any option to 'set root access to apps + data'.
I also tried to flash supersu, but after doing that, both TitaniumBackup and SuperSu report that there is no root access.
What can I do?
thanks, r.
FYI, I've solved the problem by myself using Nexus Root Toolkit.

Need someone to double check my steps

Alright, so I've decided on what I want to use rom and kernel wise, and want someone to double check that they are compatible, and I have the right versions.
I would appreciate if someone would check that I have the right steps and files.
KERNEL:
From:
http://minooch.com/franciscofranco/Nexus4/4.3/zips/
Have:
franco.Kernel-nightly-r182.zip (this is JWR, right?)
ROM:
From:
http://goo.im/devs/paranoidandroid/roms/mako
Have:
pa_mako-3.99-20130823.zip
From:
http://download.paranoidandroid.co/Developers/TLKruzze/gapps/
Have:
pa_gapps-full-4.3-20130822-signed.zip
STEPS:
This is coming from a fresh out of box nexus, so stock 4.3.
1. Typical unlock bootloader, root, flash recovery, etc. I'll probably just use this toolkit for this.
2. Recovery
3. Wipe
4. Flash rom
5. Flash GApps
6. Wipe cache
7. Wipe dalvik cache
8. Boot to make sure it works
9. Recovery
10. Flash kernel zip
11. Reboot
Are those steps and files all correct, or am I missing something?
Thanks!
That's what I'm running now. No issues.
Personally I'd do it with adb for when something goes wrong you know how to fix it. When I unlocked and flashed recovery on my phone, everything wiped, even the stock rom was gone. Luckily I learned adb with my galaxy nexus and was able to restore the factory images with fastboot (minus recovery) and start over.
Also don't use the newest twrp. It was wiping my baseband and I reverted to the last version through fastboot to get it working.
Sent from my Nexus 4
quantim0 said:
That's what I'm running now. No issues.
Personally I'd do it with adb for when something goes wrong you know how to fix it. When I unlocked and flashed recovery on my phone, everything wiped, even the stock rom was gone. Luckily I learned adb with my galaxy nexus and was able to restore the factory images with fastboot (minus recovery) and start over.
Also don't use the newest twrp. It was wiping my baseband and I reverted to the last version through fastboot to get it working.
Sent from my Nexus 4
Click to expand...
Click to collapse
Eh, I still prefer toolkits, even if there is a small risk.
The toolkit will be running CWM, so that shouldn't be a problem.
Thanks!
Zortwil said:
Alright, so I've decided on what I want to use rom and kernel wise, and want someone to double check that they are compatible, and I have the right versions.
I would appreciate if someone would check that I have the right steps and files.
KERNEL:
From:
http://minooch.com/franciscofranco/Nexus4/4.3/zips/
Have:
franco.Kernel-nightly-r182.zip (this is JWR, right?)
ROM:
From:
http://goo.im/devs/paranoidandroid/roms/mako
Have:
pa_mako-3.99-20130823.zip
From:
http://download.paranoidandroid.co/Developers/TLKruzze/gapps/
Have:
pa_gapps-full-4.3-20130822-signed.zip
STEPS:
This is coming from a fresh out of box nexus, so stock 4.3.
1. Typical unlock bootloader, root, flash recovery, etc. I'll probably just use this toolkit for this.
2. Recovery
3. Wipe
4. Flash rom
5. Flash GApps
6. Wipe cache
7. Wipe dalvik cache
8. Boot to make sure it works
9. Recovery
10. Flash kernel zip
11. Reboot
Are those steps and files all correct, or am I missing something?
Thanks!
Click to expand...
Click to collapse
Before installing the ROM you should wipe data,cache,dalvick , system and if you are coming from 4.2.2 based ROM you have do a factory reset before wiping.
Also after flashing the kernel you need to flash Supersu v1.51 zip so that you dont face any root issues.
P.S : Enable the developer option and enable root with app+adb.
Rest you are right and good to go.
Welcome. :good:
As far as wiping goes u can do a few additional steps to make sure there's no issues.
1. Wipe data/factory reset
2. Wipe cache
3. Go into mounts and storage
4. Format /system
5. Format /data
6. Format /cache
7. Go into advanced wipe /dalvik
Rohit02 said:
Before installing the ROM you should wipe data,cache,dalvick , system and if you are coming from 4.2.2 based ROM you have do a factory reset before wiping.
Also after flashing the kernel you need to flash Supersu v1.51 zip so that you dont face any root issues.
P.S : Enable the developer option and enable root with app+adb.
Rest you are right and good to go.
Welcome. :good:
Click to expand...
Click to collapse
Do I have to flash Supersu, or can I just get it from the play store?
Zortwil said:
Do I have to flash Supersu, or can I just get it from the play store?
Click to expand...
Click to collapse
Yeah no problem..
Here is a Flashable zip of Supersu v1.55(latest) : SuperSu Download
You are welcome. :good:

Categories

Resources