summaryrefstree
path: root/system/etc/priorityd.sh
blob: caa53ac8942cc0e432e89127cb94a80b18e911ea (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/system/bin/sh
EventThread=`ps -t -p EventThread`
count="-11"
for pid in $EventThread
do
	if [ $count -eq 2 ]; then
		renice -r 1 -g $pid
		echo $pid
	fi
	count=$((count+1))
done
OurThread=`ps -t -p hwc_eventmon`
count="-11"
for pid in $OurThread
do
	if [ $count -eq 2 ]; then
		renice -r 1 -g $pid
		echo $pid
	fi
	count=$((count+1))
done