summaryrefslogtreecommitdiffstats
path: root/core/java/android/provider
diff options
context:
space:
mode:
authorMike Lockwood <lockwood@android.com>2010-08-31 14:35:23 -0400
committerMike Lockwood <lockwood@android.com>2010-08-31 14:35:23 -0400
commiteabe8bfaf8c45289a4cfd880f4107d1a9b17e38b (patch)
treed320e1622a47e5b531ba88dfb6c690c295a47bfc /core/java/android/provider
parent08bff3b9d4c0a66c3aaac45db68207d08276fd38 (diff)
downloadframeworks_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 'core/java/android/provider')
-rw-r--r--core/java/android/provider/Settings.java9
1 files changed, 8 insertions, 1 deletions
diff --git a/core/java/android/provider/Settings.java b/core/java/android/provider/Settings.java
index 6d3ca27..57fa463 100644
--- a/core/java/android/provider/Settings.java
+++ b/core/java/android/provider/Settings.java
@@ -1686,6 +1686,12 @@ public final class Settings {
public static final String UNLOCK_SOUND = "unlock_sound";
/**
+ * True if we should appear as a PTP device instead of MTP.
+ * @hide
+ */
+ public static final String USE_PTP_INTERFACE = "use_ptp_interface";
+
+ /**
* Settings to backup. This is here so that it's in the same place as the settings
* keys and easy to update.
* @hide
@@ -1745,7 +1751,8 @@ public final class Settings {
DOCK_SOUNDS_ENABLED,
LOCKSCREEN_SOUNDS_ENABLED,
SHOW_WEB_SUGGESTIONS,
- NOTIFICATION_LIGHT_PULSE
+ NOTIFICATION_LIGHT_PULSE,
+ USE_PTP_INTERFACE,
};
// Settings moved to Settings.Secure