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

Commit 0f40301b authored by Li Li's avatar Li Li Committed by Android (Google) Code Review
Browse files

Merge "Add log to explain why freezer is not supported" into udc-dev

parents 225ffe7f a40c6e17
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;
    }