Pulling a kernel from a ROM zip

dante32278

Senior Member
Nov 13, 2010
1,044
326
0
Howdy, I just tried an AOSP ROM on my gs3 and wanted to try the Bleeding Edge kernel. In case it doesn't work or I want to go back to stock, how do I go about putting the ROMs included kernel back on the phone without doing a dirty flash of the ROM?

Sent from my SPH-L710 using Tapatalk 2
 

dante32278

Senior Member
Nov 13, 2010
1,044
326
0
Thanks, never used adb but I can download and the commands seem pretty simple. I bet you also know how to make it into a flashable zip?

Sent from my SPH-L710 using Tapatalk 2
 

CNexus

Senior Member
May 17, 2012
9,009
13,993
263
~/android
Thanks, never used adb but I can download and the commands seem pretty simple. I bet you also know how to make it into a flashable zip?

Sent from my SPH-L710 using Tapatalk 2
YUP

Take your rom.zip and extract ONLY the META-INF folder and boot.img

Open the "updater-script" file with a text editor and delete everything

Now type the following line, and then make sure to leave 1 line blank after it
Code:
package_extract_file("boot.img", "/dev/block/mmcblk0p7");
<blank line here>
Then save it (make sure no extension gets added) and zip up the META-INF folder and boot.img.

The zip should look like this

Inside restoreKernel.zip
---META-INF
---boot.img

Congrats! You just made a universal kernel flasher. If you want to flash any other kernel for your device now (same android version and all that, of course), just swap out the boot.img in the zip and flash away
 

dante32278

Senior Member
Nov 13, 2010
1,044
326
0
YUP

Take your rom.zip and extract ONLY the META-INF folder and boot.img

Open the "updater-script" file with a text editor and delete everything

Now type the following line, and then make sure to leave 1 line blank after it
Code:
package_extract_file("boot.img", "/dev/block/mmcblk0p7");
<blank line here>
Then save it (make sure no extension gets added) and zip up the META-INF folder and boot.img.

The zip should look like this

Inside restoreKernel.zip
---META-INF
---boot.img

Congrats! You just made a universal kernel flasher. If you want to flash any other kernel for your device now (same android version and all that, of course), just swap out the boot.img in the zip and flash away


Sent from my SPH-L710 using Tapatalk 2
 

Attachments

  • Like
Reactions: topherk and CNexus