Stock script i just did quickly. I just changed the directorys etc.
You'll get some file not found stuff because i didnt remove all the lines for files that are only in the Galaxo Hero rom
You'll probably need busybox. Install the custom recovery if u dont have it already and 'enable su'.
Then boot into normal mode and copy busbox and the script to your sdcard. Then adb shell
# superuser (superuser.apk will load on the phone, allow it)
su
# remount system read/write
mount -o remount,rw -t yaffs2 /dev/block/mtdblock1 /system
# copy busy box
cat /sdcard/busybox > /system/bin/busybox
# change permisions
chmod 4755 /system/bin/busybox
# install busy box
/system/bin/busybox --install -s /system/bin/
# fix cp
cd /system/bin
busybox cp -s busybox cp
# copy script to system (there's no +x on the sdcard)
cp /sdcard/clearappsstock.sh /system
chmod 744 /system/clearappsstock.sh
# run it, and ignore the file not found stuff
/system/clearappsstock.sh
Then reboot, adb shell back in, su and type ps and look for the debuggerd process. If its not there everything went ok
Hippy:
debuggerd - Its only used if you develop apps with the SDK. You won't need it. If you do develop apps you'll probably need to restore to factory and make sure you're stuff works on a stock phone anyway.
DebugTool.apk - its some debug menu u can bring up. You'll never use it!
Jbed.apk - Java. I dont need or use it. You can keep it if you want
LogCollector - Used to collect crash logs etc. You dont really care about crashlogs
bootsetttings - switches boot settings i think. Once the firmware has booted first time it wont be used again
camerafirmware - used to update the camera firmware. Pretty dangerous (see the other thread). After first boot you'll never use this again.
CSC - CSC inits for first boot. Not used again
CurrentDataState - I forget what this one is tbh!
MEGAUPLOAD - The leading online storage and file delivery service