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

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

Merge "startAudioSource should be created using the calling uid"

parents 702d0029 5cd1f1d9
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -1127,9 +1127,10 @@ status_t AudioPolicyService::startAudioSource(const struct audio_port_config *so
    if (mAudioPolicyManager == NULL) {
        return NO_INIT;
    }
    // startAudioSource should be created as the calling uid
    const uid_t callingUid = IPCThreadState::self()->getCallingUid();
    AutoCallerClear acc;
    return mAudioPolicyManager->startAudioSource(source, attributes, portId,
                                                 IPCThreadState::self()->getCallingUid());
    return mAudioPolicyManager->startAudioSource(source, attributes, portId, callingUid);
}

status_t AudioPolicyService::stopAudioSource(audio_port_handle_t portId)