summaryrefslogtreecommitdiffstats
path: root/services/audioflinger/AudioFlinger.cpp
diff options
context:
space:
mode:
authorJean-Michel Trivi <jmtrivi@google.com>2015-05-01 18:34:17 -0700
committerJean-Michel Trivi <jmtrivi@google.com>2015-05-05 02:04:33 +0000
commit4cb668392ee0433462251afbee109405c6efacc8 (patch)
tree50e324bd1af8951136ec9b7c4a7538e514490e80 /services/audioflinger/AudioFlinger.cpp
parent1de1e25cba872bd4c077c2e394f8ca9c70b65856 (diff)
downloadframeworks_av-4cb668392ee0433462251afbee109405c6efacc8.zip
frameworks_av-4cb668392ee0433462251afbee109405c6efacc8.tar.gz
frameworks_av-4cb668392ee0433462251afbee109405c6efacc8.tar.bz2
AudioRecord keeps track of UID
Bug 20832981 Change-Id: If5f3c61fae02d86b9d6fdf411711f854fd56c77d
Diffstat (limited to 'services/audioflinger/AudioFlinger.cpp')
-rw-r--r--services/audioflinger/AudioFlinger.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/services/audioflinger/AudioFlinger.cpp b/services/audioflinger/AudioFlinger.cpp
index 64e9fea..3c14e1f 100644
--- a/services/audioflinger/AudioFlinger.cpp
+++ b/services/audioflinger/AudioFlinger.cpp
@@ -1426,6 +1426,7 @@ sp<IAudioRecord> AudioFlinger::openRecord(
size_t *frameCount,
IAudioFlinger::track_flags_t *flags,
pid_t tid,
+ int clientUid,
int *sessionId,
size_t *notificationFrames,
sp<IMemory>& cblk,
@@ -1495,8 +1496,7 @@ sp<IAudioRecord> AudioFlinger::openRecord(
// TODO: the uid should be passed in as a parameter to openRecord
recordTrack = thread->createRecordTrack_l(client, sampleRate, format, channelMask,
frameCount, lSessionId, notificationFrames,
- IPCThreadState::self()->getCallingUid(),
- flags, tid, &lStatus);
+ clientUid, flags, tid, &lStatus);
LOG_ALWAYS_FATAL_IF((lStatus == NO_ERROR) && (recordTrack == 0));
if (lStatus == NO_ERROR) {