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

Commit c92c1d1d authored by Jean-Michel Trivi's avatar Jean-Michel Trivi
Browse files

AudioService: log recording on system sources

Recording activity on system-private audio sources was not
  logged as their recording configurations are not published
  through the recording activity callback.
  If bypassing recording config logic, still log the event
  for those sources.
Test: adb shell dumpsys audio

Change-Id: I66d89a44ba8ebbd460fe86a9274d889debbb1de3
parent 29ce084e
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -69,6 +69,9 @@ public final class RecordingActivityMonitor implements AudioSystem.AudioRecordin
                                                AudioEffect.Descriptor[] effects,
                                                int activeSource, String packName) {
        if (MediaRecorder.isSystemOnlyAudioSource(source)) {
            // still want to log event, it just won't appear in recording configurations
            sEventLogger.log(new RecordingEvent(event, uid, session, source, packName)
                    .printLog(TAG));
            return;
        }
        String clientEffectName =  clientEffects.length == 0 ? "None" : clientEffects[0].name;