lzy1178530367 发表于 2023-3-17 12:04:59

学习一下

lzy1178530367 发表于 2023-3-17 12:05:29

学习一下!

gfy82 发表于 2023-3-18 08:53:41

进来学习一下

811431394 发表于 2023-3-19 01:03:39

学习一下

清风 发表于 2023-4-23 21:56:32

能不能详细说说?

小黄 发表于 2023-7-22 15:12:54

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

复制代码






zhanguang 发表于 2023-10-3 09:06:19

学习一下

kokuty 发表于 2024-1-5 12:53:36

原机固件修改指示灯颜色不需要改动

palway8 发表于 2024-1-6 11:37:15

高手,学习一下

hwf999 发表于 2024-1-15 15:38:24

进来转转
页: 1 2 3 4 5 [6] 7
查看完整版本: 安卓9固件如何修改指示灯颜色