o.product.target=shcmcc
本帖隐藏的内容
ro.product.target=default
sys.deflauncher.pkg=桌面名字
sys.deflauncher.cls=桌面启动器
对应文件
system/etc/defaultLauncher.xml
加入即可使用桌面主页键(未测试)
对应白名单WhiteBgPackageList.xml
黑名单BlackBgPackageList.xml
keyfunction.xml锁定按键,注意一下一个列子
<div><font face="Microsoft yahei, 微软雅黑, Arial, Helvetica, sans-serif, 宋体">key</font>
<font face="Microsoft yahei, 微软雅黑, Arial, Helvetica, sans-serif, 宋体">
<div><keys>
<keyName>AP</keyName>
<keyValue>12345</keyValue>
<keyValue>54321</keyValue>
<keyValue>11111</keyValue>
<keyValue>55555</keyValue>
<timeOut>5000</timeOut>
<packageName>com.unionman.umwifiap</packageName>
<activityName>com.unionman.umwifiap.MainActivity</activityName>
<action>android.intent.action.MAIN</action></div></font></div>
复制代码
杀死应用的SH参考,可以杀死所有第一屏
#!/system/bin/sh
MEMSIZE=`getprop ro.product.mem.size`
if [ $MEMSIZE != "768m" ]
then
echo "DO NOT NEED TO KILL IFLYTEK ..." > /dev/console
exit 0
fi
while true
do
r1=`ps|grep "com.iflytek.xiri\$"`
r1=$?
r2=`ps|grep "com.iflytek.xiri2.hal"`
r2=$?
r3=`ps|grep "com.iflytek.xiri2.system"`
r3=$?
let ret=$r1+$r2+$r3
if [ $ret -eq 0 ]
then
#echo "find 3 xiri process" > /dev/console
#ps | grep "xiri" > /dev/console
cat `busybox find /sys/devices/platform/ -name "idProduct"` | grep 0602
r1=$?
cat `busybox find /sys/devices/platform/ -name "idVendor"` | grep 0416
r2=$?
cat `busybox find /sys/devices/platform/ -name "manufacturer"` | grep "璁"
r3=$?
let ret=$r1+$r2
if [ $ret -eq 0 -o $r3 -eq 0 ]
then
echo "iflytek usb is plugged,dont kill xiri processes"
else
ps | grep "xiri" > /dev/console
busybox killall "com.iflytek.xiri2.system"
busybox killall "com.iflytek.xiri2.hal"
busybox killall "com.iflytek.xiri"
echo "find 3 xiri process while iflytek remoter not use,then kill them" > /dev/console
pid=$(ps | grep logcat | busybox awk '{print $2"|"$3}')
for i in $pid
do
r1=$(echo $i | busybox awk -F\| '{print $1}')
r2=$(echo $i | busybox awk -F\| '{print $2}')
if [ $r2 -eq 1 ]
then
busybox kill $r1
fi
done
fi
fi
sleep 1
done
复制代码
|