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

Commit 1a156e0f authored by Li Li's avatar Li Li Committed by Automerger Merge Worker
Browse files

Merge "Add log to explain why freezer is not supported" into udc-dev am: 0f40301b

parents b5338d50 0f40301b
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -941,11 +941,14 @@ public final class CachedAppOptimizer {
        FileReader fr = null;

        try {
            fr = new FileReader(getFreezerCheckPath());
            String path = getFreezerCheckPath();
            Slog.d(TAG_AM, "Checking cgroup freezer: " + path);
            fr = new FileReader(path);
            char state = (char) fr.read();

            if (state == '1' || state == '0') {
                // Also check freezer binder ioctl
                Slog.d(TAG_AM, "Checking binder freezer ioctl");
                getBinderFreezeInfo(Process.myPid());
                supported = true;
            } else {
@@ -967,6 +970,7 @@ public final class CachedAppOptimizer {
            }
        }

        Slog.d(TAG_AM, "Freezer supported: " + supported);
        return supported;
    }