Fix build due to change in SystemServiceManager
Change-Id: I0fabb98b7b84e5c721757d20df4eac501ca21cc0
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 @@
"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 @@
}
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);
}