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

Commit 8599e073 authored by Trishool Narayanasetty's avatar Trishool Narayanasetty Committed by Steve Kondik
Browse files

SystemServer: Do not start Atlas Service on lowram devices.

Provide an on/off switch to control atlas service at start-up. This
service is disabled by default on lowram devices to save memory.
Atlas service is responsible for pre-loading drawables which
can be shareable among the applications. Found that the probability
of using same drawables in different apps concurrently is very less.
However it allocates fixed size of ion buffer based on config.
So by disabling it this memory overhead can be avoided. We are safe
to disable this service as it does not block any functionality.

Change-Id: I14599125c717b61f3ea5cded376fcc1802281756
parent eb6939dd
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -424,6 +424,7 @@ public final class SystemServer {
        boolean disableNonCoreServices = SystemProperties.getBoolean("config.disable_noncore", false);
        boolean disableNetwork = SystemProperties.getBoolean("config.disable_network", false);
        boolean isEmulator = SystemProperties.get("ro.kernel.qemu").equals("1");
        boolean disableAtlas = SystemProperties.getBoolean("config.disable_atlas", false);

        try {
            Slog.i(TAG, "Reading configuration...");
@@ -909,7 +910,7 @@ public final class SystemServer {
                mSystemServiceManager.startService(DreamManagerService.class);
            }

            if (!disableNonCoreServices) {
            if (!disableNonCoreServices && !disableAtlas) {
                try {
                    Slog.i(TAG, "Assets Atlas Service");
                    atlas = new AssetAtlasService(context);