frameworks/base/packages/SettingsProvider/res/values/defaults.xml
设置之后实现开机飞行模式,以及关闭GPS
<bool name="def_airplane_mode_on">true</bool>
<bool name="assisted_gps_enabled">false</bool>
<bool name="def_netstats_enabled">false</bool>
此外还有wifi bt的默认开关
<bool name="def_wifi_on">false</bool>
<bool name="def_bluetooth_on">false</bool>
留意一下这2个配置:
<string name="def_airplane_mode_radios" translatable="false">cell,bluetooth,wifi,nfc,wimax</string>
<string name="airplane_mode_toggleable_radios" translatable="false">bluetooth,wifi,nfc</string>