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

Commit 2bdf647b authored by Torne (Richard Coles)'s avatar Torne (Richard Coles)
Browse files

Enable multiprocess WebView for all devices.

Enable the multiprocess WebView for all devices, even the 32-bit devices
with low RAM that were previously excluded. The RAM usage has been
reduced in Android P and reduced a little further in Android Q and is
hopefully now acceptable; enable it to allow easier testing.

Bug: 110802525
Test: inspect `adb shell dumpsys webviewupdate`
Change-Id: Ia161afca5fde2c78a0e2d875b10a5418e35c3ed1
parent fdd04237
Loading
Loading
Loading
Loading
+2 −4
Original line number Diff line number Diff line
@@ -272,10 +272,8 @@ public class SystemImpl implements SystemInterface {

    @Override
    public boolean isMultiProcessDefaultEnabled() {
        // Multiprocess is enabled for all 64-bit devices, since the ability to run the renderer
        // process in 32-bit when it's a separate process typically results in a net memory saving.
        // Multiprocess is also enabled for 32-bit devices unless they report they are "low ram".
        return Build.SUPPORTED_64_BIT_ABIS.length > 0 || !ActivityManager.isLowRamDeviceStatic();
        // Multiprocess is enabled by default for all devices.
        return true;
    }

    // flags declaring we want extra info from the package manager for webview providers