Android修改FOTA的各个系统属性值
?/vendor/mediatek/proprietary/packages/apps/AdupsFotaApp/FotaInfo.sh
#!/bin/bash
#********Do not modify this file. If you want modify this file, pls contact our FAE*******
echo ""
echo "# begin fota properties"
echo "ro.fota.platform=$FOTA_INFO_PLATFORM"
#type info: phone, pad ,box, tv
echo "ro.fota.type=phone"
echo "ro.fota.app=5"
echo "ro.fota.gms=2"
echo "ro.fota.battery=30"
echo "ro.boot.vendor.overlay.theme=com.adups.fota.overlay"
#oem info
echo "ro.fota.oem=$FOTA_INFO_OEM"
#model info, Settings->About phone->Model number
if [ -n "`grep "ro.product.model=" $1`" ] ; then
FotaDevice=$(grep "ro.product.model=" "$1"|awk -F "=" '{print $NF}' )
elif [ -n "`grep "ro.product.system.model=" $1`" ] ; then
FotaDevice=$(grep "ro.product.system.model=" "$1"|awk -F "=" '{print $NF}' )
elif [ -n "`grep "ro.product.system.device=" $1`" ] ; then
FotaDevice=$(grep "ro.product.system.device=" "$1"|awk -F "=" '{print $NF}' )
else
echo "ERROR: model do not exist in system/build.prop,Please define it"
exit 0
fi
echo "ro.fota.device=$FotaDevice" | sed ?'s/[^0-9a-zA-Z= ._-]//g'
#version number, Settings->About phone->Build number
#FotaVersion=$(grep "ro.build.display.id=" "$1"|awk -F "=" '{print $NF}' )
FotaVersion=$(grep "ro.build.display.id=" "$1"|awk -F "=" '{print $NF}' )`date +_%Y%m%d-%H%M`
echo "ro.fota.version=$FotaVersion" | sed ?'s/[^0-9a-zA-Z= ._-]//g'
echo "# end fota properties"
#********Do not modify this file. If you want modify this file, pls contact our FAE*******
?尽量不要在system.porp里面添加!
因为这样
adb shell
getprop |grep fota
可能查看不到!
本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。 如若内容造成侵权/违法违规/事实不符,请联系我的编程经验分享网邮箱:veading@qq.com进行投诉反馈,一经查实,立即删除!