FORUMS

CloudPlayer: DIY HiFi Music Streaming Solution

In our Helpful Guide to Music Streaming Services, we mentioned several different services … more

Optimize Battery Life with This Useful App

Battery life is an important aspect of your smartphone, especially if you use it for more … more

The OnePlus 2 & The Year of Smartphone Compromises

We are very close to entering the last third of 2015, and we have now seen many of … more

OnePlus 2 Teardown, Major Android Vulnerability – XDA TV

The OnePlus 2 has been officially released. That and much more news is … more

MyMind's Kernel Swap

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


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!

# IT IS CURRENTLY STABLE!


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 install-recovery.sh 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!

MAKE SURE YOU CHANGE...
=======================

"$BOOT_PARTITION" ACCORDING TO YOUR DEVICE BEFORE USING THIS SCRIPT!!!!!!

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 to add then let me know. My ears are open to them.

https://github.com/ModdingMyMind/MyMinds_Kernel_Swap

Sent from my C525c using Tapatalk
Last edited by Modding.MyMind; 27th May 2014 at 01:02 PM.
The Following 3 Users Say Thank You to Modding.MyMind For This Useful Post: [ View ]
 
 
28th May 2014, 10:36 AM |#2  
J.ali.li's Avatar
Senior Member
Qom
Thanks Meter: 31
 
More
What is this script supposed to do? I read the op but I did not found any thing clear ,since I'm not in this kernel stuff
Modding.MyMind
28th May 2014, 11:51 AM |#3  
Guest
Thanks Meter: 0
 
More
It's a flashable zip that will unpack your boot.img, swap out the old with the new kernel, add init.d support if needed, and install the new modules that came with the kernel.

Sent from my C525c using Tapatalk
The Following User Says Thank You to For This Useful Post: [ View ]
3rd August 2014, 02:31 AM |#4  
PiggyFlooper's Avatar
Senior Member
Thanks Meter: 186
 
More
Can you give direct download, I don't understand how to use github

Sent from above using Xparent BlueTapatalk 2
Modding.MyMind
3rd August 2014, 02:36 AM |#5  
Guest
Thanks Meter: 0
 
More
Quote:
Originally Posted by PiggyFlooper

Can you give direct download, I don't understand how to use github

Sent from above using Xparent BlueTapatalk 2

On github there is a download link off to the right of the screen. It Wil basically say, download ZIP. But here you go:

https://github.com/ModdingMyMind/TWR...ive/master.zip

Sent from my C525c using Tapatalk
The Following User Says Thank You to For This Useful Post: [ View ]
3rd August 2014, 03:03 AM |#6  
PiggyFlooper's Avatar
Senior Member
Thanks Meter: 186
 
More
Quote:
Originally Posted by Modding.MyMind

On github there is a download link off to the right of the screen. It Wil basically say, download ZIP. But here you go:

https://github.com/ModdingMyMind/TWR...ive/master.zip

Sent from my C525c using Tapatalk

That's not kernel swap!?

Sent from above using Xparent BlueTapatalk 2
The Following User Says Thank You to PiggyFlooper For This Useful Post: [ View ]
Modding.MyMind
3rd August 2014, 03:09 AM |#7  
Guest
Thanks Meter: 0
 
More
Hahaha, my bad, hold on...... Oops :P

Sent from my C525c using Tapatalk
Modding.MyMind
3rd August 2014, 03:10 AM |#8  
Guest
Thanks Meter: 0
 
More
Lets try this again, shall we.

https://github.com/ModdingMyMind/MyM...ive/master.zip

Sent from my C525c using Tapatalk
The Following User Says Thank You to For This Useful Post: [ View ]
3rd August 2014, 06:25 AM |#9  
PiggyFlooper's Avatar
Senior Member
Thanks Meter: 186
 
More
So I'm supposed to put modules in modules and then what to put in prebuilt? Kernel, zImage?

And another question, when dd ing the boot.img it comes out 16MB. I do all other with your binaries, edit ramdisk and rebuild, and its 4.3MB boot.img I can't flash this boot.img with recovery. How can I apply this thing
Sent from above using Xparent BlueTapatalk 2

---------- Post added at 01:25 AM ---------- Previous post was at 01:01 AM ----------

I successfully used Anykernel before to edit ramdisk and just replaced the boot.img that came with Rom and rigged up a zip. This time I'm using different kernel, using same method, but replaced zImage with one from the buttered toast kernel I'm on- here's what I did- https://db.tt/RTFidksG
No success. Any suggestions on what I can do?

Sent from my HTCEVOV4G using Xparent BlueTapatalk 2
Last edited by PiggyFlooper; 3rd August 2014 at 06:13 AM.
Modding.MyMind
3rd August 2014, 01:18 PM |#10  
Guest
Thanks Meter: 0
 
More
Modules go in the modules folder.

The zImage goes in the prebuilt folder.

Zip, then flash.

Sent from my C525c using Tapatalk
Post Reply Subscribe to Thread
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes