[Off-topic] hisname:
else echo " \\\\\\\\\\ -=MAXIMUM OVERDRIVE=- /////"

fi

echo " ================================="

echo ""

$sleep 1

echo " 1. Android kills apps after 30 minutes..."

echo ""

$sleep 1

echo " ...even if you have TONS of Free RAM. Ugh."

echo ""

$sleep 1

echo " The Time Killer Killer raises it to 24hrs!"

echo ""

$sleep 1

#echo " 2. Android remembers 20 recent tasks..."

#echo ""

#$sleep 1

#echo " ...\"Total Recall\" will make it remember 50!"

#echo ""

#$sleep 1

echo " 2. Android only allows 15 hidden apps to run..."

echo ""

$sleep 1

echo " Even if you have TONS of RAM..."

echo ""

$sleep 1

echo " ...YOU CAN'T MULTITASK AS YOU SHOULD!"

echo ""

$sleep 1

echo $line

echo " Maximum Overdrive will increase it to 70 APPS!"

echo $line

echo ""

$sleep 1

echo " Plus, Android will keep only 2 hidden apps..."

echo ""

$sleep 1

echo " ...then empty apps can push them out of memory!"

echo ""

$sleep 1

echo " But with \"Minimum Hidden Protection\"..."

echo ""

$sleep 1

echo " ...it's bumped up to 15 ie. the old maximum!"

echo ""

$sleep 1

echo $line

if [ "$preics" ]; then

echo " Bonus Mod for this ROM: \"ProActive Booster\"!"

echo $line

echo ""

$sleep 1

echo " Maximum Processes will go from 2 to 50..."

echo ""

$sleep 1

echo " ...and Maximum Activities jump from 20 to 70!"

else

echo " Bonus Mod for this ROM: \"Service Preserver\"!"

echo $line

echo ""

$sleep 1

echo " Apps that you recently ran (service apps)..."

echo ""

$sleep 1

echo " ...can sometimes become the \"worstType\"..."

echo ""

$sleep 1

echo " ...and therefore can be easily killed. Duh!"

echo ""

$sleep 1

echo " So this will stop that silly behaviour ;^]"

fi

echo ""

$sleep 1

echo $line

echo " READ THIS IMPORTANT INFO!"

echo $line

echo ""

$sleep 1

echo " If your device gets laggy after this mod..."

echo ""

$sleep 1

echo " Use the V6 SuperCharger script..."

echo ""

$sleep 1

echo " ...to RAISE the minfree levels!"

echo ""

$sleep 1

echo " The lowmemorykiller probably isn't even used..."

echo ""

$sleep 1

echo " ...on high end devices..."

echo ""

$sleep 1

echo " ...due to pre-emptive app killing!"

echo ""

$sleep 1

echo " But for better MultiTasking..."

echo ""

$sleep 1

echo " ...LOWER the minfree levels!"

echo ""

echo $line

echo ""

$sleep 1

echo " Wanna test out The Maximum MultiTasking Mods?"

echo ""

$sleep 1

echo -n " Enter Y for Yes, any key for No: "

read MMM

echo ""

case $MMM in

y|Y)thirtyminutes=0x1b7740

twentyfourhrs=0x5265c00

maxappsnew=0x46

maxappsnewinteger=70

minappsnew=0xf

maxrecentnew=0x32

maxrecentold=`$awk '/MAX_RECENT_TASKS:.*=/{print $NF}' ActivityManagerService.smali`

maxrecentref=`$awk '/MAX_RECENT_TASKS_REF:.*=/{print $NF}' ActivityManagerService.smali`

if [ "$maxrecentold" = "0x0" ] && [ ! "$maxrecentref" ]; then maxrecentref=0x14

$sed -i'' -e '/ MAX_RECENT_TASKS:/ a\

.field static final MAX_RECENT_TASKS_REF:I = '$maxrecentref ActivityManagerService.smali

fi

maxprocessnew=0x32

maxacitivitiesnew=0x46

echo $line

echo ""

$sleep 1

echo " Applying The Time Killer Killer..."

echo ""

$sleep 2

if [ "$preics" ]; then

$sed -i'' -e '/ MAX_RECENT_TASKS:/,/\"started-services\"/s/'$thirtyminutes'$/'$twentyfourhrs'/' ActivityManagerService.smali

else

$sed -i'' -e '/ MAX_RECENT_TASKS:/,/\"bound-bg-services\"/s/'$thirtyminutes'$/'$twentyfourhrs'/

'$(($keyline8-4))',/\"bound-bg-services\"/s/if-le/if-ge/

/method final updateOomAdjLocked/,/end method/s/'$thirtyminutes'$/'$twentyfourhrs'/' ActivityManagerService.smali

fi

echo $line

echo " ...Enabling Maximum Overdrive!"

echo $line

echo ""

$sleep 2

if [ "$preics" ]; then

maxappsold=`$awk '/MAX_HIDDEN_APPS:.*=/{print $NF}' ActivityManagerService.smali`

minappsold=`$awk '/MIN_HIDDEN_APPS:.*=/{print $NF}' ActivityManagerService.smali`

maxacitivitiesold=`$awk '/MAX_ACTIVITIES:.*=/{print $NF}' ActivityManagerService.smali`

maxprocessold=`$awk '/MAX_PROCESSES:.*=/{print $NF}' ActivityManagerService.smali`

keyline9=`$sed -n '/No longer want/=' ActivityManagerService.smali`

$sed -i'' -e '/MAX_ACTIVITIES:/s/'$maxacitivitiesold'$/'$maxacitivitiesnew'/

/MAX_HIDDEN_APPS:/s/'$maxappsold'$/'$maxappsnew'/

/MAX_PROCESSES:/s/'$maxprocessold'$/'$maxprocessnew'/

/MAX_RECENT_TASKS:/s/'$maxrecentold'$/'$maxrecentnew'/

/MIN_HIDDEN_APPS:/s/'$minappsold'$/'$minappsnew'/

/final updateLruProcessInternalLocked/,/end method/{

/HashMap/,/object/{

/'$minappsold'$/s/\/4/\/16/

s/'$minappsold'$/'$minappsnew'/}}

/final addRecentTaskLocked/,/end method/{/>intent/,/>mRecentTasks/s/'$maxrecentold'$/'$maxrecentnew'/}

/method public setProcessLimit/,/end method/{

/iput p1.*>mProcessLimit/ i\

const/16 v0, '$maxappsnew'

/>mProcessLimit/s/p1/v0/}

'$(($keyline9-15))','$keyline9's/'$maxappsold'$/'$maxappsnew'/' ActivityManagerService.smali

echo " And now the Bonus Mod: \"ProActive Booster\"! ;^]"

echo ""

$sleep 2

for keyline10 in `$sed -n '/>mAlwaysFinishActivities/=' ActivityManagerService.smali`; do

$sed -i'' -e $(($keyline10-5))','$keyline10'{

/'$maxprocessold'$/s/\/4/\/16/

s/'$maxprocessold'$/'$maxprocessnew'/

s/'$maxacitivitiesold'$/'$maxacitivitiesnew'/}' ActivityManagerService.smali

done

else

maxappsold=`$awk '/MAX_HIDDEN_APPS:.*=/{print $NF}' ProcessList.smali`

maxappsref=`$awk '/MAX_HIDDEN_APPS_REF:.*=/{print $NF}' ProcessList.smali`

if [ "$maxappsold" = "0x0" ] && [ ! "$maxappsref" ]; then maxappsref=0xf

$sed -i'' -e '/ MAX_HIDDEN_APPS:/ a\

.field static final MAX_HIDDEN_APPS_REF:I = '$maxappsref ProcessList.smali

fi

maxappslowmemold=`$awk '/MAX_HIDDEN_APPS_FOR.*=/{print $NF}' ProcessList.smali`

maxappsinitold=`$awk '/INIT_HIDDEN_APPS:.*=/{print $NF}' ProcessList.smali`

minappsold=`$awk '/MIN_HIDDEN_APPS:.*=/{print $NF}' ProcessList.smali`

minappsdhaold=`$awk '/MIN_HIDDEN_APPS_FOR.*=/{print $NF}' ProcessList.smali`

keyline11=`$sed -n '/ro.MAX_HIDDEN_APPS/=' ProcessList.smali`

keyline12=`$sed -n '/SystemProperties;->getInt/=' ProcessList.smali`

if [ "$keyline11" ]; then $sed -i'' -e '/ro.MAX_HIDDEN_APPS/,'$(($keyline11+3))'s/"\([0-9]*\)"/"'$maxappsnewinteger'"/' ProcessList.smali; fi

if [ "$keyline12" ]; then $sed -i'' -e $(($keyline12-3))','$keyline12's/0x.*/'$maxappsnew'/' ProcessList.smali; fi

for keyline13 in `$sed -n '/>MAX_HIDDEN_APPS/=' ProcessList.smali`; do

$sed -i'' -e $(($keyline13-3))','$(($keyline13+7))'{/16/s/0x.*/'$maxappsnew'/}' ProcessList.smali

done

keyline14=`$sed -n '/sput.*>HIDDEN_APP_MIN_ADJ/=' ProcessList.smali`

$sed -i'' -e '/MIN_HIDDEN_APPS:/s/'$minappsold'$/'$minappsnew'/

/MIN_HIDDEN_APPS_FOR/s/'$minappsdhaold'/'$minappsnew'/

/method static constructor/,/end method/{

/if-eq/s/^./#/

/method static constructor/,'$(($keyline14-3))'{

s/ 0x.*/'$maxappsnew'/}}' ProcessList.smali

if [ "$maxappsold" != "0x0" ]; then

$sed -i'' -e '/MAX_HIDDEN_APPS:/s/'$maxappsold'$/'$maxappsnew'/

/MAX_HIDDEN_APPS_FOR/s/'$maxappslowmemold'/'$maxappsnew'/

/INIT_HIDDEN_APPS:/s/'$maxappsinitold'/'$maxappsnew'/

/method static constructor/,/end method/{

s/'$maxappsold'$/'$maxappsnew'/

s/'$maxappslowmemold'/'$maxappsnew'/

s/'$maxappsinitold'/'$maxappsnew'/}' ProcessList.smali

for keyline15 in `$sed -n '/>mProcessLimitOverride/=' ActivityManagerService.smali`; do

$sed -i'' -e $(($keyline15-8))','$keyline15'{

s/'$maxappsold'$/'$maxappsnew'/

s/'$maxappslowmemold'/'$maxappsnew'/

s/'$maxappsinitold'/'$maxappsnew'/}' ActivityManagerService.smali

done

else

$sed -i'' -e '/MAX_HIDDEN_APPS_REF/s/'$maxappsref'$/'$maxappsnew'/' ProcessList.smali

fi

echo " And now the Bonus Mod: \"Service Preserver\"! ;^]"

echo ""

$sleep 2

$sed -i'' -e '/final updateLruProcessInternalLocked/,/end method/{

/HashMap/,/object/{

/'$minappsold'$/s/\/4/\/16/

s/'$minappsold'$/'$minappsnew'/}}

/public killPids/,/end method/{/>HIDDEN_APP_MIN_ADJ/,/\"Killing.processes.\"/{/0x/s/^./#/}}

/isolated not needed/,/mNumServiceProcs/{/updateHiddenAppNum/,/>mProcessLimit/{/iput/s/^./#/}}

/MAX_HIDDEN_APPS/,/move/{/div-int/s/0x.*/0x9/}' ActivityManagerService.smali

for keyline16 in `$sed -n '/iget.*>mProcessLimit.I/=' ActivityManagerService.smali`; do

$sed -i'' -e $keyline16','$(($keyline16+4))'{

/mul-int/s/0x.*/0x3/

/div-int/s/0x.*/0x9/}' ActivityManagerService.smali

done

if [ "$maxrecentold" != "0x0" ]; then

$sed -i'' -e '/MAX_RECENT_TASKS:/s/'$maxrecentold'$/'$maxrecentnew'/

/final addRecentTaskLocked/,/end method/{/>intent/,/>mRecentTasks/s/'$maxrecentold'$/'$maxrecentnew'/}' ActivityManagerService.smali

else

$sed -i'' -e '/MAX_RECENT_TASKS_REF/s/'$maxrecentref'$/'$maxrecentnew'/' ActivityManagerService.smali

fi

fi

echo $line

echo " Maximum MultiTasking Mods Installed!";;

*);;

taken from zeppelinrox ultimate patcher script. http://xdaforums.com/showthread.php?t=1914159

I doubt you do not understand some of these Linux commands..