设置wifi默认country_code

添加对应属性

在对应的mk文件中加入下面的语句:

Makefile:

    device/(Product)/(Platform)/(Platform).mk

Add_line:

    PRODUCT_PROPERTY_OVERRIDES += \

        ro.boot.wificountrycode=CN


编译后确认

在out/target/product/Platform/system/目录下或out/target/product/Platform/vendor/目录下的build.prop文件中查看相应的属性是否添加成功:

build.prop

    ro.boot.wificountrycode=CN

猜你喜欢

转载自blog.csdn.net/h784707460/article/details/80060686