Merge "SystemServer: reorder wifi services start" am: 10c514d9de
am: eae39fd1ec
Change-Id: I723d8b96f5d5406e8f948885a845993e755ab0d8
This commit is contained in:
@@ -836,6 +836,15 @@ public final class SystemServer {
|
|||||||
}
|
}
|
||||||
Trace.traceEnd(Trace.TRACE_TAG_SYSTEM_SERVER);
|
Trace.traceEnd(Trace.TRACE_TAG_SYSTEM_SERVER);
|
||||||
|
|
||||||
|
// Wifi Service must be started first for wifi-related services.
|
||||||
|
mSystemServiceManager.startService(WIFI_SERVICE_CLASS);
|
||||||
|
mSystemServiceManager.startService(
|
||||||
|
"com.android.server.wifi.scanner.WifiScanningService");
|
||||||
|
|
||||||
|
if (!disableRtt) {
|
||||||
|
mSystemServiceManager.startService("com.android.server.wifi.RttService");
|
||||||
|
}
|
||||||
|
|
||||||
if (context.getPackageManager().hasSystemFeature(
|
if (context.getPackageManager().hasSystemFeature(
|
||||||
PackageManager.FEATURE_WIFI_AWARE)) {
|
PackageManager.FEATURE_WIFI_AWARE)) {
|
||||||
mSystemServiceManager.startService(WIFI_AWARE_SERVICE_CLASS);
|
mSystemServiceManager.startService(WIFI_AWARE_SERVICE_CLASS);
|
||||||
@@ -847,13 +856,6 @@ public final class SystemServer {
|
|||||||
PackageManager.FEATURE_WIFI_DIRECT)) {
|
PackageManager.FEATURE_WIFI_DIRECT)) {
|
||||||
mSystemServiceManager.startService(WIFI_P2P_SERVICE_CLASS);
|
mSystemServiceManager.startService(WIFI_P2P_SERVICE_CLASS);
|
||||||
}
|
}
|
||||||
mSystemServiceManager.startService(WIFI_SERVICE_CLASS);
|
|
||||||
mSystemServiceManager.startService(
|
|
||||||
"com.android.server.wifi.scanner.WifiScanningService");
|
|
||||||
|
|
||||||
if (!disableRtt) {
|
|
||||||
mSystemServiceManager.startService("com.android.server.wifi.RttService");
|
|
||||||
}
|
|
||||||
|
|
||||||
if (mPackageManager.hasSystemFeature(PackageManager.FEATURE_ETHERNET) ||
|
if (mPackageManager.hasSystemFeature(PackageManager.FEATURE_ETHERNET) ||
|
||||||
mPackageManager.hasSystemFeature(PackageManager.FEATURE_USB_HOST)) {
|
mPackageManager.hasSystemFeature(PackageManager.FEATURE_USB_HOST)) {
|
||||||
|
|||||||
Reference in New Issue
Block a user