?/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
可能查看不到!