【发布时间】:2019-07-19 12:09:16
【问题描述】:
我想在系统启动时从 AOSP 的框架层打开 BT 和 Wifi。 我正在更改配置:
frameworks/base/core/res/res/values/config.xml:
我为wifi和bt添加了网络属性为:
<string-array translatable="false" name="networkAttributes">
<item>"wifi,1,1,1,-1,true"</item>
<item>"bluetooth,7,7,2,-1,true"</item>
</string-array>
甚至尝试过:
frameworks/base/packages/SettingsProvider/res/values/defaults.xml
<resources>
<bool name="def_bluetooth_on">true</bool>
<bool name="def_wifi_on">true</bool>
</resources>
甚至从设备的覆盖目录中进行更改。
但两者在启动时均未启用。
我还有其他需要做的改变吗?还是其他方式?
【问题讨论】:
标签: android