Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 844e5436 authored by Rebecca Silberstein's avatar Rebecca Silberstein Committed by android-build-merger
Browse files

Merge "SystemServer: reorder wifi services start" am: 10c514d9 am: eae39fd1

am: 5c00ee28

Change-Id: Id6eb74c4aab2cd25f1d7adff4ddff160f6132fc6
parents 7bb9ccc1 5c00ee28
Loading
Loading
Loading
Loading
+9 −7
Original line number Diff line number Diff line
@@ -841,6 +841,15 @@ public final class SystemServer {
                }
                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(
                        PackageManager.FEATURE_WIFI_AWARE)) {
                    mSystemServiceManager.startService(WIFI_AWARE_SERVICE_CLASS);
@@ -852,13 +861,6 @@ public final class SystemServer {
                        PackageManager.FEATURE_WIFI_DIRECT)) {
                    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) ||
                    mPackageManager.hasSystemFeature(PackageManager.FEATURE_USB_HOST)) {