Commit 0dae34f0 authored by fuyanbin's avatar fuyanbin
Browse files

fix: android4.4 用 startsoftdetector.sh 启动 starthugep.sh, services 目录里的同名文件会覆盖system分区里的

parent e3449861
#!/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
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment