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

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

Disable multiprocess WebView for 32-bit lowram devices.

Multiprocess WebView uses additional RAM; don't enable it for lowram
32-bit devices. 64-bit devices always use multiprocess regardless of the
amount of RAM, since multiprocess is often a net memory saving on those
devices due to the ability to run a 32-bit renderer process.

Bug: 62217217
Test: Run dumpsys webviewupdate on Android Go and check status.
Change-Id: I67e462beca2c7f62ef7cde821df80ce13ebd4398
parent 32d437c1
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -296,7 +296,10 @@ public class SystemImpl implements SystemInterface {

    @Override
    public boolean isMultiProcessDefaultEnabled() {
        return true;
        // 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();
    }

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