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

Commit 55df3d6a authored by T.J. Mercier's avatar T.J. Mercier Committed by Gerrit Code Review
Browse files

Merge "CachedAppOptimizer: Replace getAttributePathForTask with...

Merge "CachedAppOptimizer: Replace getAttributePathForTask with CgroupGetAttributePathForTask" into main
parents 21cd97b5 e558dcfc
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -564,8 +564,8 @@ static jstring com_android_server_am_CachedAppOptimizer_getFreezerCheckPath(JNIE
                                                                            jobject clazz) {
    std::string path;

    if (!getAttributePathForTask("FreezerState", getpid(), &path)) {
        path = "";
    if (!CgroupGetAttributePathForTask("FreezerState", getpid(), &path)) {
        path.clear();
    }

    return env->NewStringUTF(path.c_str());