[Sprint Samsung Galaxy S 4 Android Development] crevis24:
Try this. It is from the KT thread in the general section in the sprint s4 section:

Kernel Information

General Installation Instructions (for both TW and AOSP):

1. Download correct version of kernel for your device and rom. This is important as you may brick your phone is you use the wrong version.

2. Flash kernel using your preferred recovery

3. Do the following AFTER installing the kernel and BEFORE you reboot your phone:

a. Clear cache

b. Clear dalvik

c. Fix Permissions

4. Reboot your device.

TW Specific Kernel Instructions:

(can be used with AOSP too)

There are some files on your TouchWiz phone that need to be renamed in order to maximize the battery life of your phone. There has been some debate on whether or not this is necessary, but for now we would recommend renaming these files to ensure that there is no chance of excessive battery drain.

Part 1:

These steps are only necessary on TouchWiz ROMs, however you can also do this on AOSP as well:

1. You must have ROOT. You will need to have a root enabled file explorer on your phone (ES File Explorer works very well and you can get it from the play store (https://play.google.com/store/apps/d...roid.pop&hl=en). When you get it, open it up and go the the settings and scroll all the way down until you see the Root Settings. Go in there and enable ALL of the root settings.

2. After that is done, navigate to your root folders using the Folder Up icon at the top. Once you are in your root folders, navigate to /system/bin and locate the following files. You will need to rename them with a ".bak" at the end of the filename

gsiff_daemon --> gsiff_daemon.bak

mpdecision --> mpdecison.bak

qosmgr --> qosmgr.bak

smd --> smd.bak

smdexe --> smdexe.bak

Renaming these files will not harm your phone. Many users rename these files every time they flash a rom, and no damge is done.

Also, some ROMs come with these files renamed or deleted entirely, so if you don’t find a file, don’t be alarmed.

You have to do this every time you flash the ROM and/or Kernel.

If you feel uncomfortable doing this yourself, you can use the TK-MOD (see Downloads section) and it will handle this for you.

Part 2:

Stopping mpdecision from being called:

1. Open terminal emulator and type the following code:

su

2. When terminal emulator asks for root permission hit 'Grant' or 'Allow'.

3. At the # prompt type:

stop mpdecision

Using Rom Toolbox (https://play.google.com/store/apps/d...iberty.toolbox) we will make a script that will stop mpdecision from being called at each boot so you don't need to use terminal emulator each time

1. Open Rom Toolbox and scroll down to the Scripter option

2. In the scripter, click the “+” button in the top right corner, then select 'Create'

3. Type a name for our new script, lets call it “stop mpdecision”

4. In the commands enter the following text:

#!/system/bin/sh

stop mpdecision

5. Hit the disk icon to save it

6. Select the script that you just created and a dialog box should pop up, select set at boot

Were done here

---------- Post added at 12:20 PM ---------- Previous post was at 12:17 PM ----------

Also mess around with some of these settings. You will need to let the kernel set in for a day or two before you can really judge performance

http://xdaforums.com/showpost.php?p=35102460&postcount=2