summaryrefslogtreecommitdiffstats
path: root/services/usb/java/com/android/server
diff options
context:
space:
mode:
authorNick Kralevich <nnk@google.com>2015-03-25 16:08:21 -0700
committerNick Kralevich <nnk@google.com>2015-03-25 16:08:21 -0700
commitad8fc70c6a85e163c16f6531e4872d95a95ddb2f (patch)
tree5374e18fd05101f447675ea52df609a62cea528b /services/usb/java/com/android/server
parenta91e9e5403bdafe3df9d40a94035618e4f98eb9f (diff)
downloadframeworks_base-ad8fc70c6a85e163c16f6531e4872d95a95ddb2f.zip
frameworks_base-ad8fc70c6a85e163c16f6531e4872d95a95ddb2f.tar.gz
frameworks_base-ad8fc70c6a85e163c16f6531e4872d95a95ddb2f.tar.bz2
UsbDeviceManager: delete obsolete code
We stopped using persist.service.adb.enable almost 4 years ago (commit 02e4569b5f126ca916a7473117ddd17d4f2ccbbb). Delete backwards compatibility code. Change-Id: Ic656e834e79361b27ca2afcd3705d0523c23717d
Diffstat (limited to 'services/usb/java/com/android/server')
-rw-r--r--services/usb/java/com/android/server/usb/UsbDeviceManager.java12
1 files changed, 0 insertions, 12 deletions
diff --git a/services/usb/java/com/android/server/usb/UsbDeviceManager.java b/services/usb/java/com/android/server/usb/UsbDeviceManager.java
index 41cf2ef..6304d75 100644
--- a/services/usb/java/com/android/server/usb/UsbDeviceManager.java
+++ b/services/usb/java/com/android/server/usb/UsbDeviceManager.java
@@ -363,18 +363,6 @@ public class UsbDeviceManager {
updateState(state);
mAdbEnabled = containsFunction(mCurrentFunctions, UsbManager.USB_FUNCTION_ADB);
- // Upgrade step for previous versions that used persist.service.adb.enable
- String value = SystemProperties.get("persist.service.adb.enable", "");
- if (value.length() > 0) {
- char enable = value.charAt(0);
- if (enable == '1') {
- setAdbEnabled(true);
- } else if (enable == '0') {
- setAdbEnabled(false);
- }
- SystemProperties.set("persist.service.adb.enable", "");
- }
-
// register observer to listen for settings changes
mContentResolver.registerContentObserver(
Settings.Global.getUriFor(Settings.Global.ADB_ENABLED),