Remove All Ads from XDA

MyMind's Kernel Swap

n/a posts
Thanks Meter: 0
By Modding.MyMind, Guest on 27th May 2014, 12:47 PM
Post Reply Email Thread

Based on AnyKernel, but pretty much rebuilt in every way so that it will actually work. So, many thanks to Koush for the idea.

The Idea and What It Does...

Some but not all of this script has been snippets here and there from ArchiKitchen and DSIXDA Kitchen.

This has allowed me to formulate a zip as such without the need to technically build from scratch saving me LOADS OF HOURS.

It currently uses my static compiled mkbootimg, unmkbootimg, and mkbootfs binaries to allow editing, and rebuilding of the boot.img.

Some serious modifications were made to get this to work successfully with MUCH DEBUGGING. If you change something and it breaks another function then that is on you!


1. It will pull your current boot.img using dd.

2. It will search for the Android! header in the boot.img and remove the unnecessary junk before it if needed to.

3. It will split the boot.img in to the kernel and ramdisk.

4. It will unpack the contents inside the ramdisk.

5. It will modify the default.prop file giving you insecure ADB. If you already have it then this will not affect you.

6. It will modify the init.rc file to give support for init.d. If you already have it then this will not affect you.

7. It will write to sysinit and for the completion of init.d support. If already done, then this will not affect you.

8. It will make the init.d folder under /system/etc on your device with required permissions.

9. It will place an init.d script to test to see if init.d is fully working. If it works, you will find a file called, HAS_INIT, located in the /dev directory of your device.

10. It will swap out the original kernel with a new prebuilt kernel upon rebuilding the new boot.img

11. It will repack you a new ramdisk using mkbootfs to be applied to your new boot.img upon rebuilding it.

12. It will remove your old modules and push your new modules that came with your new prebuilt kernel.

13. It will write your new boot.img to your boot partition using dd.

14. Hopefully, more to come!



How to use it...

1. Place your prebuilt kernel in the prebuilt folder and insure it is named, zImage.

2. Place kernel modules in the modules folder.

3. Zip, and flash in TWRP recovery.

If you have any suggestions then let me know. My ears are open to them.

Sent from my C525c using Tapatalk
The Following User Says Thank You to Modding.MyMind For This Useful Post: [ View ] Gift Modding.MyMind Ad-Free
Post Reply Subscribe to Thread

Guest Quick Reply (no urls or BBcode)
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes