Merge "SystemServer: cherry-pick p2p service start"

am: 4c937464eb

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

View File

@@ -840,7 +840,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");