[Motorola Droid X2] Moon Shadow - NM:
WARNING! THIS SCRIPT

REQUIRES

YOU TO CREATE AND EDIT IT!!!!

Okay, for everyone who is having issues with root enabled apps not starting correctly, I have created a script that allows me to run it via Script Manager or the command line to kill MY root enabled apps. Please do not ask for a flashable zip or a downloadable file. You will need to CREATE the script for yourself. I am just going to outline the basic parameters that I use.

Now, you will need a GOOD text editor. I recommend one of the following: Jota Text Editor, 920 Text Editor, (or, if you are a Linux-centric kind of person) Vim Touch.

Now, open the text editor and create a file on your phone with the following lines (copy and paste is fine):

#!/system/xbin/sh
clear
echo "Kill Menu"

# Function to list selections
showMenu () {
clear
echo "1) Ad Free"
echo "2) Button Savior"
echo "3) Droid Wall"
echo "4) File Expert"
echo "5) Lightflow"
echo "6) Plume"
echo "7) Quick Boot"
echo "8) Tasker"
echo "9) Titanium Backup"
echo "Q) Quit (Either q or Q will work)"
echo ""
echo "Select which app to kill and press [ENTER]"
echo ""
}

while [ 1 ]
do
showMenu
read CHOICE
case "$CHOICE" in
"1")
clear
pkill com.bigtincan.android.adfree
pkill com.bigtincan.android.adfree
pkill com.bigtincan.android.adfree
echo "Ad Free has been killed. Please restart the process."
read -p "Press [Enter] to continue." nothing
;;
"2")
clear
pkill com.smart.swkey
pkill com.smart.swkey
pkill com.smart.swkey
echo "Button Savior has been killed. Please restart the process."
read -p "Press [Enter] to continue." nothing
;;
"3")
clear
pkill com.googlecode.droidwall.free
pkill com.googlecode.droidwall.free
pkill com.googlecode.droidwall.free
echo "Droid Wall has been killed. Please restart the process."
read -p "Press [Enter] to continue." nothing
;;
"4")
clear
pkill xcxin.filexpert
pkill xcxin.filexpert
pkill xcxin.filexpert
echo "File Expert has been killed. Please restart the process."
read -p "Press [Enter] to continue." nothing
;;
"5")
clear
pkill com.rageconsulting.android.lightflow
pkill com.rageconsulting.android.lightflow
pkill com.rageconsulting.android.lightflow
echo "Lightflow has been killed. Please restart the process."
read -p "Press [ENTER] to continue." nothing
;;
"6")
clear
pkill com.levelup.touiteur
pkill com.levelup.touiteur
pkill com.levelup.touiteur
echo "Plume has been killed. Please restart the process."
read -p "Press [ENTER] to contiue." nothing
;;
"7")
clear
pkill com.siriusapplications.quickboot
pkill com.siriusapplications.quickboot
pkill com.siriusapplications.quickboot
echo "Quick Boot has been killed. Please restart the process."
read -p "Press [ENTER] to contiue." nothing
;;
"8")
clear
pkill net.dinglisch.android.taskerm
pkill net.dinglisch.android.taskerm
pkill net.dinglisch.android.taskerm
echo "Tasker has been killed. Please restart the process."
read -p "Press [Enter] to continue." nothing
;;
"9")
clear
pkill com.keramidas.TitaniumBackup
pkill com.keramidas.TitaniumBackup
pkill com.keramidas.TitaniumBackup
echo "Titanium Backup has been killed. Please restart the process."
read -p "Press [Enter] to continue." nothing
;;
"q")
exit
;;
"Q")
exit
;;
esac
done

Save it in a directory on your sdcard (I use /sdcard/Scripts) and call it something memorable. I use "Kill_Menu.sh" (without the quotation marks).

The lines you MUST change are in the showmenu function to reflect YOUR root enabled apps. Remember, this is MY list.

You MUST also change the lines in the while/do loop. Each selection corresponds to a menu item. In order to get the full name of the task you want to kill, from a command line type the following:

pgrep -l PartOfProcessName

The PartOfProcessName is something like "tasker" or "Titan" (again, without the quotation marks).

tasker will bring up something like:

2443 net.dinglisch.android.taskerm

The numbers is the process ID and WILL BE DIFFERENT. The part that you are concerned with is "net.dinglisch.android.taskerm". Put this in the script in the correct section after the "pkill" command. This way you are killing ONLY that task, and not others. The process (app) is CASE SENSITIVE!!!!

I have the script kill the process three times to make sure it doesn't respawn itself before I have a chance to restart the app.

Please keep in mind that this is a bash shell script and must be run from Script Manager with root access (su) or from the command line with "/system/xbin/sh /sdcard/Scripts/Kill_Menu.sh" (or whatever folder you put it in).

The topic is now open for discussion.

Ciao!