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

Commit 12b147fe authored by Eric Laurent's avatar Eric Laurent Committed by Android (Google) Code Review
Browse files

Merge "Check if calling uid is system uid for setAllowedPolicyCapture." into stage-aosp-master

parents 0ab3d3e4 3009a12c
Loading
Loading
Loading
Loading
+0 −5
Original line number Diff line number Diff line
@@ -989,11 +989,6 @@ status_t AudioPolicyService::setAllowedCapturePolicy(uid_t uid, audio_flags_mask
        ALOGV("%s() mAudioPolicyManager == NULL", __func__);
        return NO_INIT;
    }
    uint_t callingUid = IPCThreadState::self()->getCallingUid();
    if (uid != callingUid) {
        ALOGD("%s() uid invalid %d != %d", __func__, uid, callingUid);
        return PERMISSION_DENIED;
    }
    return mAudioPolicyManager->setAllowedCapturePolicy(uid, capturePolicy);
}