summaryrefslogtreecommitdiffstats
path: root/services/java
diff options
context:
space:
mode:
Diffstat (limited to 'services/java')
-rw-r--r--services/java/com/android/server/SystemServer.java9
1 files changed, 5 insertions, 4 deletions
diff --git a/services/java/com/android/server/SystemServer.java b/services/java/com/android/server/SystemServer.java
index 8cfbac6..90a4dc1 100644
--- a/services/java/com/android/server/SystemServer.java
+++ b/services/java/com/android/server/SystemServer.java
@@ -102,6 +102,7 @@ import com.android.server.wallpaper.WallpaperManagerService;
import com.android.server.webkit.WebViewUpdateService;
import com.android.server.wm.WindowManagerService;
+import cyanogenmod.providers.CMSettings;
import dalvik.system.VMRuntime;
import java.io.File;
@@ -189,8 +190,8 @@ public final class SystemServer {
}
@Override
public void onChange(boolean selfChange) {
- int adbPort = Settings.Secure.getInt(mContentResolver,
- Settings.Secure.ADB_PORT, 0);
+ int adbPort = CMSettings.Secure.getInt(mContentResolver,
+ CMSettings.Secure.ADB_PORT, 0);
// setting this will control whether ADB runs on TCP/IP or USB
SystemProperties.set("service.adb.tcp.port", Integer.toString(adbPort));
}
@@ -1048,12 +1049,12 @@ public final class SystemServer {
}
// make sure the ADB_ENABLED setting value matches the secure property value
- Settings.Secure.putInt(mContentResolver, Settings.Secure.ADB_PORT,
+ CMSettings.Secure.putInt(mContentResolver, CMSettings.Secure.ADB_PORT,
Integer.parseInt(SystemProperties.get("service.adb.tcp.port", "-1")));
// register observer to listen for settings changes
mContentResolver.registerContentObserver(
- Settings.Secure.getUriFor(Settings.Secure.ADB_PORT),
+ CMSettings.Secure.getUriFor(CMSettings.Secure.ADB_PORT),
false, new AdbPortObserver());
// Before things start rolling, be sure we have decided whether