このスクリプトファイルは,ここからコピーさせて頂きました。


#!/system/bin/sh
#
# this script was written by qtotter, but the credit goes to zeppelinrox from
# http://forum.xda-developers.com/showthread.php?t=991276
#
bpapp="com.csipsimple";
bpwait=30;
if [ "`pgrep $bpapp`" ]; then
for bp in `pgrep $bpapp`; do
echo -17 > /proc/$bp/oom_adj;
echo -1000 > /proc/$bp/oom_score_adj;
renice -10 $bp;
echo " BulletProofed $bpapp!";
echo -n " $bpapp's oom score is ";
cat /proc/$bp/oom_score;
echo -n " $bpapp's oom priority is ";
if [ -f "/proc/$bp/oom_adj" ]; then cat /proc/$bp/oom_adj;
else cat /proc/$bp/oom_score_adj;
fi;
echo "";
done;
else
echo " Can't find $bpapp running...";
echo "";
fi;
sleep $bpwait;
if [ "`busybox --help | grep nohup`" ] && [ ! "`busybox ps$w | grep "{.*/${0##*/}"`" ]; then
busybox nohup $0 > /dev/null &
elif [ "`busybox --help | grep start-stop-daemon`" ] && [ ! "`busybox ps$w | grep "{.*/${0##*/}"`" ]; then
busybox start-stop-daemon -S -b -x $0;
else
$0 > /dev/null &
fi;
exit 0;