昆明建设招聘信息网站,企业邮箱网易登录入口,交换链接营销的典型案例,wordpress html5 模板下载安卓10以后rk的一套源码兼容很多板型#xff0c;多种cpu型号都兼容了#xff0c;这一点相比之前省心了很多#xff0c;所以就诞生了需要一套代码兼容多种板子的需求#xff0c;定制修改中需要经常修改系统属性#xff0c;通过以下脚本一次实现#xff1a;
#!/bin/bashfu…安卓10以后rk的一套源码兼容很多板型多种cpu型号都兼容了这一点相比之前省心了很多所以就诞生了需要一套代码兼容多种板子的需求定制修改中需要经常修改系统属性通过以下脚本一次实现
#!/bin/bashfunction gettop
{local TOPFILEbuild/make/core/envsetup.mkif [ -n $TOP -a -f $TOP/$TOPFILE ] ; then# The following circumlocution ensures we remove symlinks from TOP.(cd $TOP; PWD /bin/pwd)elseif [ -f $TOPFILE ] ; then# The following circumlocution (repeated below as well) ensures# that we record the true directory name and not one that is# faked up with symlink names.PWD /bin/pwdelselocal HERE$PWDlocal Twhile [ \( ! \( -f $TOPFILE \) \) -a \( $PWD ! / \) ]; do\cd ..TPWD /bin/pwd -Pdone\cd $HEREif [ -f $T/$TOPFILE ]; thenecho $Tfififi
}function get_build_var()
{if [ $BUILD_VAR_CACHE_READY true ]theneval echo \\${var_cache_$1}\returnfilocal T$(gettop)if [ ! $T ]; thenecho Couldnt locate the top of the tree. Try setting TOP. 2returnfi(\cd $T; build/soong/soong_ui.bash --dumpvar-mode $1)
}product$(get_build_var PRODUCT_MODEL)echo product $product find device/ -name $product.mk |xargs sed -i $a PRODUCT_PROPERTY_OVERRIDES persist.sys.navibar 0find device/ -name $product.mk |xargs sed -i $a PRODUCT_PROPERTY_OVERRIDES persist.sys.statusbar 0find device/ -name $product.mk |xargs sed -i $a PRODUCT_PROPERTY_OVERRIDES persist.sys.statebarslide 0find device/ -name $product.mk |xargs sed -i $a PRODUCT_PROPERTY_OVERRIDES persist.sys.usb.configmtp