diff options
author | Mike Lockwood <lockwood@android.com> | 2010-08-31 14:35:23 -0400 |
---|---|---|
committer | Mike Lockwood <lockwood@android.com> | 2010-08-31 14:35:23 -0400 |
commit | eabe8bfaf8c45289a4cfd880f4107d1a9b17e38b (patch) | |
tree | d320e1622a47e5b531ba88dfb6c690c295a47bfc /packages | |
parent | 08bff3b9d4c0a66c3aaac45db68207d08276fd38 (diff) | |
download | frameworks_base-eabe8bfaf8c45289a4cfd880f4107d1a9b17e38b.zip frameworks_base-eabe8bfaf8c45289a4cfd880f4107d1a9b17e38b.tar.gz frameworks_base-eabe8bfaf8c45289a4cfd880f4107d1a9b17e38b.tar.bz2 |
Add settings option for running MTP server in PTP mode.
This can be used as a compatibility workaround for host operating systems
without MTP support.
Change-Id: If4f1856206056ca8e40c3ffbfa382f185c413598
Signed-off-by: Mike Lockwood <lockwood@android.com>
Diffstat (limited to 'packages')
-rw-r--r-- | packages/SettingsProvider/res/values/defaults.xml | 2 | ||||
-rw-r--r-- | packages/SettingsProvider/src/com/android/providers/settings/DatabaseHelper.java | 3 |
2 files changed, 5 insertions, 0 deletions
diff --git a/packages/SettingsProvider/res/values/defaults.xml b/packages/SettingsProvider/res/values/defaults.xml index 8349fe6..fbeaf4f 100644 --- a/packages/SettingsProvider/res/values/defaults.xml +++ b/packages/SettingsProvider/res/values/defaults.xml @@ -72,4 +72,6 @@ <!-- Default for Settings.System.VIBRATE_IN_SILENT --> <bool name="def_vibrate_in_silent">true</bool> + + <bool name="def_use_ptp_interface">false</bool> </resources> diff --git a/packages/SettingsProvider/src/com/android/providers/settings/DatabaseHelper.java b/packages/SettingsProvider/src/com/android/providers/settings/DatabaseHelper.java index 7395233..a793106 100644 --- a/packages/SettingsProvider/src/com/android/providers/settings/DatabaseHelper.java +++ b/packages/SettingsProvider/src/com/android/providers/settings/DatabaseHelper.java @@ -1047,6 +1047,9 @@ public class DatabaseHelper extends SQLiteOpenHelper { loadBooleanSetting(stmt, Settings.System.VIBRATE_IN_SILENT, R.bool.def_vibrate_in_silent); + + loadBooleanSetting(stmt, Settings.System.USE_PTP_INTERFACE, + R.bool.def_use_ptp_interface); } finally { if (stmt != null) stmt.close(); } |