Merge "SystemServer: cherry-pick p2p service start" am: 4c937464eb am: 392f7d789c

am: d3ff73eba4

Change-Id: I9427fd6c760c58c6caf65800fbbfbaf2c35e3335
This commit is contained in:
Rebecca Silberstein
2017-01-19 21:36:03 +00:00
committed by android-build-merger

View File

@@ -842,7 +842,11 @@ public final class SystemServer {
} else {
Slog.i(TAG, "No Wi-Fi Aware Service (Aware support Not Present)");
}
mSystemServiceManager.startService(WIFI_P2P_SERVICE_CLASS);
if (context.getPackageManager().hasSystemFeature(
PackageManager.FEATURE_WIFI_DIRECT)) {
mSystemServiceManager.startService(WIFI_P2P_SERVICE_CLASS);
}
mSystemServiceManager.startService(WIFI_SERVICE_CLASS);
mSystemServiceManager.startService(
"com.android.server.wifi.scanner.WifiScanningService");