Fix default population of wifi settings
Various wifi settings that are explicitly defaulted did not get their default code properly converted to refer to the correct settings database table. A collection of moved-to-Global settings that had not yet been marked @deprecated in the Secure.* namespace are now so marked. Also updated the namespace used to refer to wifi settings from the Wifi Service. These changes are cosmetic, but they do eliminate a number of runtime log messages. Bug 7153671 Change-Id: I9e5b6464d025cfb480ef97373996e38e82f90593
This commit is contained in:
@ -1803,17 +1803,9 @@ public class DatabaseHelper extends SQLiteOpenHelper {
|
||||
stmt = db.compileStatement("INSERT OR IGNORE INTO secure(name,value)"
|
||||
+ " VALUES(?,?);");
|
||||
|
||||
loadBooleanSetting(stmt, Settings.Secure.PACKAGE_VERIFIER_ENABLE,
|
||||
R.bool.def_package_verifier_enable);
|
||||
|
||||
loadStringSetting(stmt, Settings.Secure.LOCATION_PROVIDERS_ALLOWED,
|
||||
R.string.def_location_providers_allowed);
|
||||
|
||||
loadBooleanSetting(stmt, Settings.Secure.WIFI_ON,
|
||||
R.bool.def_wifi_on);
|
||||
loadBooleanSetting(stmt, Settings.Secure.WIFI_NETWORKS_AVAILABLE_NOTIFICATION_ON,
|
||||
R.bool.def_networks_available_notification_on);
|
||||
|
||||
String wifiWatchList = SystemProperties.get("ro.com.android.wifi-watchlist");
|
||||
if (!TextUtils.isEmpty(wifiWatchList)) {
|
||||
loadSetting(stmt, Settings.Secure.WIFI_WATCHDOG_WATCH_LIST, wifiWatchList);
|
||||
@ -1943,6 +1935,15 @@ public class DatabaseHelper extends SQLiteOpenHelper {
|
||||
R.integer.def_wifi_sleep_policy);
|
||||
|
||||
// --- Previously in 'secure'
|
||||
loadBooleanSetting(stmt, Settings.Global.PACKAGE_VERIFIER_ENABLE,
|
||||
R.bool.def_package_verifier_enable);
|
||||
|
||||
loadBooleanSetting(stmt, Settings.Global.WIFI_ON,
|
||||
R.bool.def_wifi_on);
|
||||
|
||||
loadBooleanSetting(stmt, Settings.Global.WIFI_NETWORKS_AVAILABLE_NOTIFICATION_ON,
|
||||
R.bool.def_networks_available_notification_on);
|
||||
|
||||
loadBooleanSetting(stmt, Settings.Global.BLUETOOTH_ON,
|
||||
R.bool.def_bluetooth_on);
|
||||
|
||||
|
Reference in New Issue
Block a user