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

Commit 37805376 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Let the system process set the saturation boost"

parents 537b16c4 8c6bbd63
Loading
Loading
Loading
Loading
+4 −3
Original line number Diff line number Diff line
@@ -3846,10 +3846,11 @@ status_t SurfaceFlinger::onTransact(
    status_t err = BnSurfaceComposer::onTransact(code, data, reply, flags);
    if (err == UNKNOWN_TRANSACTION || err == PERMISSION_DENIED) {
        CHECK_INTERFACE(ISurfaceComposer, data, reply);
        if (CC_UNLIKELY(!PermissionCache::checkCallingPermission(sHardwareTest))) {
        IPCThreadState* ipc = IPCThreadState::self();
            const int pid = ipc->getCallingPid();
        const int uid = ipc->getCallingUid();
        if (CC_UNLIKELY(uid != AID_SYSTEM
                && !PermissionCache::checkCallingPermission(sHardwareTest))) {
            const int pid = ipc->getCallingPid();
            ALOGE("Permission Denial: "
                    "can't access SurfaceFlinger pid=%d, uid=%d", pid, uid);
            return PERMISSION_DENIED;