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

Commit 4e62ac5e authored by Wei Liu's avatar Wei Liu
Browse files

Disable WiFi p2p service if it's not supported.

b/26877020

Change-Id: I84b822fa57423711de75d2147effe73a1fc40eb4
parent d6de352f
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -823,7 +823,11 @@ public final class SystemServer {
                } else {
                    Slog.i(TAG, "No Wi-Fi NAN Service (NAN support Not Present)");
                }

                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");