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

Commit 2c6f9dcf authored by Vijay Dandiga's avatar Vijay Dandiga Committed by Chitti Babu Theegala
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: I3c73111be71ff6a39f87d711e6dc9382637fd537
parent 2f180521
Loading
Loading
Loading
Loading
+2 −1
Original line number Original line Diff line number Diff line
@@ -219,6 +219,7 @@ class ServerThread {
        boolean disableSystemUI = SystemProperties.getBoolean("config.disable_systemui", false);
        boolean disableSystemUI = SystemProperties.getBoolean("config.disable_systemui", false);
        boolean disableNonCoreServices = SystemProperties.getBoolean("config.disable_noncore", false);
        boolean disableNonCoreServices = SystemProperties.getBoolean("config.disable_noncore", false);
        boolean disableNetwork = SystemProperties.getBoolean("config.disable_network", false);
        boolean disableNetwork = SystemProperties.getBoolean("config.disable_network", false);
        boolean disableAtlas = SystemProperties.getBoolean("config.disable_atlas", false);


        try {
        try {
            Slog.i(TAG, "Display Manager");
            Slog.i(TAG, "Display Manager");
@@ -823,7 +824,7 @@ class ServerThread {
                }
                }
            }
            }


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