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

Commit a6244a04 authored by Eric Laurent's avatar Eric Laurent
Browse files

media : ServiceUtilities: suppress useless error log

Do not log an error when permission CALL_AUDIO_INTERCEPTION is
rejeted when audio recording starts because this is the
expected outcome in most cases.

Test: make
Change-Id: I7a5d46b9dfaaf593430495efc761f9508a5200d1
parent cb9b71ea
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -316,7 +316,7 @@ bool callAudioInterceptionAllowed(const AttributionSourceState& attributionSourc

    // IMPORTANT: Use PermissionCache - not a runtime permission and may not change.
    bool ok = PermissionCache::checkPermission(sCallAudioInterception, pid, uid);
    if (!ok) ALOGE("%s(): android.permission.CALL_AUDIO_INTERCEPTION denied for uid %d",
    if (!ok) ALOGV("%s(): android.permission.CALL_AUDIO_INTERCEPTION denied for uid %d",
        __func__, uid);
    return ok;
}