diff options
author | Paul Kocialkowski <contact@paulk.fr> | 2012-09-30 15:15:05 +0200 |
---|---|---|
committer | Paul Kocialkowski <contact@paulk.fr> | 2012-09-30 15:15:05 +0200 |
commit | acd636c36672e6251f947fd965219379396fcb89 (patch) | |
tree | c1a9be34c21b86dad2f0d825ce4a8ad5fa3a27fa /packages | |
parent | 7bbf34ee21386d0c34ebb6422b7be90cec75995b (diff) | |
download | frameworks_base-acd636c36672e6251f947fd965219379396fcb89.zip frameworks_base-acd636c36672e6251f947fd965219379396fcb89.tar.gz frameworks_base-acd636c36672e6251f947fd965219379396fcb89.tar.bz2 |
Disable data usage by default
Signed-off-by: Paul Kocialkowski <contact@paulk.fr>
Diffstat (limited to 'packages')
-rw-r--r-- | packages/SettingsProvider/res/values/defaults.xml | 1 | ||||
-rw-r--r-- | packages/SettingsProvider/src/com/android/providers/settings/DatabaseHelper.java | 4 |
2 files changed, 5 insertions, 0 deletions
diff --git a/packages/SettingsProvider/res/values/defaults.xml b/packages/SettingsProvider/res/values/defaults.xml index 020fc4d..66c749f 100644 --- a/packages/SettingsProvider/res/values/defaults.xml +++ b/packages/SettingsProvider/res/values/defaults.xml @@ -44,6 +44,7 @@ <!-- 0 == mobile, 1 == wifi. --> <integer name="def_network_preference">1</integer> <bool name="def_usb_mass_storage_enabled">true</bool> + <bool name="def_mobile_data">false</bool> <bool name="def_wifi_on">false</bool> <bool name="def_networks_available_notification_on">true</bool> diff --git a/packages/SettingsProvider/src/com/android/providers/settings/DatabaseHelper.java b/packages/SettingsProvider/src/com/android/providers/settings/DatabaseHelper.java index e0753d0..676715b 100644 --- a/packages/SettingsProvider/src/com/android/providers/settings/DatabaseHelper.java +++ b/packages/SettingsProvider/src/com/android/providers/settings/DatabaseHelper.java @@ -256,6 +256,7 @@ public class DatabaseHelper extends SQLiteOpenHelper { Settings.Secure.WIFI_NETWORKS_AVAILABLE_NOTIFICATION_ON, Settings.Secure.WIFI_NETWORKS_AVAILABLE_REPEAT_DELAY, Settings.Secure.WIFI_NUM_OPEN_NETWORKS_KEPT, + Settings.Secure.MOBILE_DATA, Settings.Secure.WIFI_ON, Settings.Secure.WIFI_WATCHDOG_ACCEPTABLE_PACKET_LOSS_PERCENTAGE, Settings.Secure.WIFI_WATCHDOG_AP_COUNT, @@ -1484,6 +1485,9 @@ public class DatabaseHelper extends SQLiteOpenHelper { loadBooleanSetting(stmt, Settings.Secure.USB_MASS_STORAGE_ENABLED, R.bool.def_usb_mass_storage_enabled); + loadBooleanSetting(stmt, Settings.Secure.MOBILE_DATA, + R.bool.def_mobile_data); + loadBooleanSetting(stmt, Settings.Secure.WIFI_ON, R.bool.def_wifi_on); loadBooleanSetting(stmt, Settings.Secure.WIFI_NETWORKS_AVAILABLE_NOTIFICATION_ON, |