summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAdam Lesinski <adamlesinski@google.com>2014-02-19 12:29:58 -0800
committerAdam Lesinski <adamlesinski@google.com>2014-02-19 12:29:58 -0800
commitf542a33c8de852fe3706a01e960fa0546b536e25 (patch)
tree051d1d8668f909986ee267e33ad5dc8d39244b56
parenta78068e7a3af53cc2b590902f74074d1781513da (diff)
downloadframeworks_base-f542a33c8de852fe3706a01e960fa0546b536e25.zip
frameworks_base-f542a33c8de852fe3706a01e960fa0546b536e25.tar.gz
frameworks_base-f542a33c8de852fe3706a01e960fa0546b536e25.tar.bz2
Fix build due to change in SystemServiceManager
Change-Id: I0fabb98b7b84e5c721757d20df4eac501ca21cc0
-rw-r--r--services/java/com/android/server/SystemServer.java12
1 files changed, 6 insertions, 6 deletions
diff --git a/services/java/com/android/server/SystemServer.java b/services/java/com/android/server/SystemServer.java
index fc0e7c4..048f5aa 100644
--- a/services/java/com/android/server/SystemServer.java
+++ b/services/java/com/android/server/SystemServer.java
@@ -112,6 +112,10 @@ public final class SystemServer {
"com.android.server.print.PrintManagerService";
private static final String USB_SERVICE_CLASS =
"com.android.server.usb.UsbService$Lifecycle";
+ private static final String WIFI_SERVICE_CLASS =
+ "com.android.server.wifi.WifiService";
+ private static final String WIFI_P2P_SERVICE_CLASS =
+ "com.android.server.wifi.p2p.WifiP2pService";
private final int mFactoryTestMode;
private Timer mProfilerSnapshotTimer;
@@ -600,17 +604,13 @@ public final class SystemServer {
}
try {
- Slog.i(TAG, "Wi-Fi P2pService");
- mSystemServiceManager.startServiceIfExists(
- "com.android.server.wifi.p2p.WifiP2pService");
+ mSystemServiceManager.startService(WIFI_P2P_SERVICE_CLASS);
} catch (Throwable e) {
reportWtf("starting Wi-Fi P2pService", e);
}
try {
- Slog.i(TAG, "Wi-Fi Service");
- mSystemServiceManager.startServiceIfExists(
- "com.android.server.wifi.WifiService");
+ mSystemServiceManager.startService(WIFI_SERVICE_CLASS);
} catch (Throwable e) {
reportWtf("starting Wi-Fi Service", e);
}