startsoftdetector.sh 475 Bytes
Newer Older
fuyanbin's avatar
fuyanbin committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/system/bin/sh
# Script to start "softdetector probe service" on the device
#

echo "start softdetector probe service"
dataFile="/data/data/com.cmcc.mid.softdetector/lib/libpcapcmcc.so"
systemFile="/system/bin/libpcapcmcc.so"

while [ ! -f $dataFile ] && [ ! -f $systemFile ]
do
	sleep 3;
done

sleep 1

if [ -f $dataFile ];then
	echo "dataFile excute"
	/data/data/com.cmcc.mid.softdetector/lib/libpcapcmcc.so
else
	echo "systemFile excute"
	/system/bin/libpcapcmcc.so
fi