diff options
author | Paul Kocialkowski <contact@paulk.fr> | 2013-10-28 18:55:42 +0100 |
---|---|---|
committer | Paul Kocialkowski <contact@paulk.fr> | 2013-10-28 18:55:42 +0100 |
commit | be09772e71a516759b5ce7fb9d2bab0d7227f291 (patch) | |
tree | 1529e8acf293085122502ef2b994c0b4c0f961c5 /packages | |
parent | 149870bfe6397e0f14dd43e7e7d24009cebd142d (diff) | |
download | frameworks_base-be09772e71a516759b5ce7fb9d2bab0d7227f291.zip frameworks_base-be09772e71a516759b5ce7fb9d2bab0d7227f291.tar.gz frameworks_base-be09772e71a516759b5ce7fb9d2bab0d7227f291.tar.bz2 |
SettingsProvider: Allow for adb, screen off animation, mobile data and advanced reboot configuration
Change-Id: Iccad1e2323b155f1d23fb495ede9e2c59c912fb6
Signed-off-by: Paul Kocialkowski <contact@paulk.fr>
Diffstat (limited to 'packages')
-rw-r--r-- | packages/SettingsProvider/res/values/defaults.xml | 5 | ||||
-rw-r--r-- | packages/SettingsProvider/src/com/android/providers/settings/DatabaseHelper.java | 14 |
2 files changed, 15 insertions, 4 deletions
diff --git a/packages/SettingsProvider/res/values/defaults.xml b/packages/SettingsProvider/res/values/defaults.xml index de9aeec..90cd78c 100644 --- a/packages/SettingsProvider/res/values/defaults.xml +++ b/packages/SettingsProvider/res/values/defaults.xml @@ -29,10 +29,12 @@ <!-- Default screen brightness, from 0 to 255. 102 is 40%. --> <integer name="def_screen_brightness">102</integer> <bool name="def_screen_brightness_automatic_mode">false</bool> + <bool name="def_screen_off_animation">false</bool> <fraction name="def_window_animation_scale">100%</fraction> <fraction name="def_window_transition_scale">100%</fraction> <bool name="def_haptic_feedback">true</bool> + <bool name="def_adb_enabled">false</bool> <bool name="def_bluetooth_on">false</bool> <bool name="def_wifi_display_on">false</bool> <bool name="def_install_non_market_apps">false</bool> @@ -45,6 +47,7 @@ <bool name="assisted_gps_enabled">true</bool> <!-- 0 == mobile, 1 == wifi. --> <integer name="def_network_preference">1</integer> + <bool name="def_mobile_data">false</bool> <bool name="def_netstats_enabled">true</bool> <bool name="def_usb_mass_storage_enabled">true</bool> <bool name="def_wifi_on">false</bool> @@ -174,6 +177,8 @@ <!-- Default for Settings.Secure.USER_SETUP_COMPLETE --> <bool name="def_user_setup_complete">false</bool> + <bool name="def_advanced_reboot">false</bool> + <!-- Default for Settings.System.STATUS_BAR_BATTERY. 0. Icon 1. Percentage diff --git a/packages/SettingsProvider/src/com/android/providers/settings/DatabaseHelper.java b/packages/SettingsProvider/src/com/android/providers/settings/DatabaseHelper.java index 4d88959..09e19a2 100644 --- a/packages/SettingsProvider/src/com/android/providers/settings/DatabaseHelper.java +++ b/packages/SettingsProvider/src/com/android/providers/settings/DatabaseHelper.java @@ -1939,6 +1939,9 @@ public class DatabaseHelper extends SQLiteOpenHelper { loadIntegerSetting(stmt, Settings.System.SCREEN_OFF_TIMEOUT, R.integer.def_screen_off_timeout); + loadBooleanSetting(stmt, Settings.System.SCREEN_OFF_ANIMATION, + R.bool.def_screen_off_animation); + // Set default cdma DTMF type loadSetting(stmt, Settings.System.DTMF_TONE_TYPE_WHEN_DIALING, 0); @@ -2097,6 +2100,9 @@ public class DatabaseHelper extends SQLiteOpenHelper { loadBooleanSetting(stmt, Settings.Secure.USER_SETUP_COMPLETE, R.bool.def_user_setup_complete); + + loadBooleanSetting(stmt, Settings.Secure.ADVANCED_REBOOT, + R.bool.def_advanced_reboot); } finally { if (stmt != null) stmt.close(); } @@ -2159,6 +2165,9 @@ public class DatabaseHelper extends SQLiteOpenHelper { loadBooleanSetting(stmt, Settings.Global.BLUETOOTH_ON, R.bool.def_bluetooth_on); + loadBooleanSetting(stmt, Settings.Global.ADB_ENABLED, + R.bool.def_adb_enabled); + // Enable or disable Cell Broadcast SMS loadSetting(stmt, Settings.Global.CDMA_CELL_BROADCAST_SMS, RILConstants.CDMA_CELL_BROADCAST_SMS_DISABLED); @@ -2186,11 +2195,8 @@ public class DatabaseHelper extends SQLiteOpenHelper { Integer.toString(recommendedMaxBytes)); } - // Mobile Data default, based on build loadSetting(stmt, Settings.Global.MOBILE_DATA, - "true".equalsIgnoreCase( - SystemProperties.get("ro.com.android.mobiledata", - "true")) ? 1 : 0); + R.bool.def_mobile_data); loadBooleanSetting(stmt, Settings.Global.NETSTATS_ENABLED, R.bool.def_netstats_enabled); |