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

Commit 9861ecb7 authored by Haamed Gheibi's avatar Haamed Gheibi Committed by Gerrit Code Review
Browse files

Merge "sf: Allow SystemServer to set the display brightness"

parents 49a5ceeb 9e9281ef
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -7564,7 +7564,7 @@ status_t SurfaceComposerAIDL::checkControlDisplayBrightnessPermission() {
    IPCThreadState* ipc = IPCThreadState::self();
    const int pid = ipc->getCallingPid();
    const int uid = ipc->getCallingUid();
    if ((uid != AID_GRAPHICS) &&
    if ((uid != AID_GRAPHICS) && (uid != AID_SYSTEM) &&
        !PermissionCache::checkPermission(sControlDisplayBrightness, pid, uid)) {
        ALOGE("Permission Denial: can't control brightness pid=%d, uid=%d", pid, uid);
        return PERMISSION_DENIED;