#!/bin/sh

#Changes to this script is from a user tan. :OptimizeN900 0.0.2
#Any one who whats to make changes/idea's contact me at humblemaemo@gmail.com

echo Device is being optimized...

#Refresh the Audio Process to avoid audio glitch
killall -q pulseaudio
sleep 1;

#Refresh the Tracker process
killall -q trackerd
sleep 1;
killall -q tracker-indexer
sleep 1;

#Refresh the browser MicroB
killall -q browser browserd
sleep 1;

#Refresh of the most common applications and UIs
killall -q calendar
sleep 1;
killall -q osso_calculator
sleep 1;
killall -q camera-ui
sleep 1;
killall -q rtcom-call-ui
sleep 1;
killall -q modest
sleep 1;
killall -q rtcom-messaging-ui
sleep 1;
killall -q image-viewer
sleep 1;
killall -q osso_notes
sleep 1;
killall -q osso-addressbook
sleep 1;

#Refresh the all UI Hildon, menus and bars.
killall -q hildon-desktop
sleep 1;
killall -q hildon-status-menu
sleep 1;
killall -q systemui
sleep 1;

#NOTE: Killing the hildon-home process can erase all widgets and that is why it is disabled
#killall -q hildon-home
#sleep 1;

#Refresh other processes
killall -q tonegend
sleep 1;
killall -q mafw-gst-renderer
sleep 1;
