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

Commit 2ccff612 authored by T.J. Mercier's avatar T.J. Mercier
Browse files

CachedAppOptimizer: Use correct types for get[up]id()

Use uid_t and pid_t for native calls into libprocessgroup.

Test: m
Change-Id: I23ddc1f233b4a895403cc0f518e5ba102fdcaa44
parent ed2395aa
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -565,8 +565,8 @@ static jstring com_android_server_am_CachedAppOptimizer_getFreezerCheckPath(JNIE
}

static jboolean com_android_server_am_CachedAppOptimizer_isFreezerProfileValid(JNIEnv* env) {
    int uid = getuid();
    int pid = getpid();
    uid_t uid = getuid();
    pid_t pid = getpid();

    return isProfileValidForProcess("Frozen", uid, pid) &&
            isProfileValidForProcess("Unfrozen", uid, pid);