diff options
author | Eric Laurent <elaurent@google.com> | 2015-04-13 13:47:33 -0700 |
---|---|---|
committer | Eric Laurent <elaurent@google.com> | 2015-04-13 13:47:33 -0700 |
commit | ab300c8cbf5df98fddca39e8d1698b0307432152 (patch) | |
tree | 083c508fb62b4456a2c903045a165d9ef001b8fb /services/audioflinger | |
parent | 31ffe45a22b72ee5d25bb4932d0525e90dbc19fe (diff) | |
download | frameworks_av-ab300c8cbf5df98fddca39e8d1698b0307432152.zip frameworks_av-ab300c8cbf5df98fddca39e8d1698b0307432152.tar.gz frameworks_av-ab300c8cbf5df98fddca39e8d1698b0307432152.tar.bz2 |
audio polciy: remove FM audio capture permission.
Change-Id: I2607d89b0bd87cdd2f4084dfdb55135509a824d5
Diffstat (limited to 'services/audioflinger')
-rw-r--r-- | services/audioflinger/ServiceUtilities.cpp | 7 | ||||
-rw-r--r-- | services/audioflinger/ServiceUtilities.h | 1 |
2 files changed, 0 insertions, 8 deletions
diff --git a/services/audioflinger/ServiceUtilities.cpp b/services/audioflinger/ServiceUtilities.cpp index fae19a1..8246fef 100644 --- a/services/audioflinger/ServiceUtilities.cpp +++ b/services/audioflinger/ServiceUtilities.cpp @@ -50,13 +50,6 @@ bool captureHotwordAllowed() { return ok; } -bool captureFmTunerAllowed() { - static const String16 sCaptureFmTunerAllowed("android.permission.ACCESS_FM_RADIO"); - bool ok = checkCallingPermission(sCaptureFmTunerAllowed); - if (!ok) ALOGE("android.permission.ACCESS_FM_RADIO"); - return ok; -} - bool settingsAllowed() { if (getpid_cached == IPCThreadState::self()->getCallingPid()) return true; static const String16 sAudioSettings("android.permission.MODIFY_AUDIO_SETTINGS"); diff --git a/services/audioflinger/ServiceUtilities.h b/services/audioflinger/ServiceUtilities.h index ce18a90..df6f6f4 100644 --- a/services/audioflinger/ServiceUtilities.h +++ b/services/audioflinger/ServiceUtilities.h @@ -23,7 +23,6 @@ extern pid_t getpid_cached; bool recordingAllowed(); bool captureAudioOutputAllowed(); bool captureHotwordAllowed(); -bool captureFmTunerAllowed(); bool settingsAllowed(); bool modifyAudioRoutingAllowed(); bool dumpAllowed(); |