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

Commit f9bff872 authored by abdelrahmani's avatar abdelrahmani
Browse files

Disable PacProxyService on devices that doesn't support WebView/JavaScript.

PAC proxies rely on the Javascript interpreter in WebView, so
devices without WebView cannot support PAC proxies.

Change-Id: I0891c1240a20cbb66587c8066e907f8e4ba081ff
parent 73dd9971
Loading
Loading
Loading
Loading
+10 −7
Original line number Diff line number Diff line
@@ -2004,6 +2004,8 @@ public final class SystemServer implements Dumpable {
                t.traceEnd();
            }

            // Devices without WebView/JavaScript cannot support PAC proxies.
            if (context.getPackageManager().hasSystemFeature(PackageManager.FEATURE_WEBVIEW)) {
                t.traceBegin("StartPacProxyService");
                try {
                    pacProxyService = new PacProxyService(context);
@@ -2012,6 +2014,7 @@ public final class SystemServer implements Dumpable {
                    reportWtf("starting PacProxyService", e);
                }
                t.traceEnd();
            }

            t.traceBegin("StartConnectivityService");
            // This has to be called after NetworkManagementService, NetworkStatsService