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

Commit e105df77 authored by Peiyong Lin's avatar Peiyong Lin Committed by android-build-merger
Browse files

Merge "[SurfaceFlinger] Allow root to capture screen." into qt-dev am: 273d261d am: 100f2e4d

am: 368a7dd5

Change-Id: I984c8ae97572bea13e7ff57366bbc688b12f7e28
parents e43b72b0 368a7dd5
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -5100,7 +5100,7 @@ status_t SurfaceFlinger::CheckTransactCodeCredentials(uint32_t code) {
        case CAPTURE_SCREEN_BY_ID: {
            IPCThreadState* ipc = IPCThreadState::self();
            const int uid = ipc->getCallingUid();
            if ((uid == AID_GRAPHICS) || (uid == AID_SYSTEM) || (uid == AID_SHELL)) {
            if (uid == AID_ROOT || uid == AID_GRAPHICS || uid == AID_SYSTEM || uid == AID_SHELL) {
                return OK;
            }
            return PERMISSION_DENIED;