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

Skip to content
Commit 643423e4 authored by Evan Severson's avatar Evan Severson
Browse files

Allow creating and starting of AudioRecord if appop is ignored

According to the documentation MODE_IGNORED is supposed to cause a
silent failure so in this case we want to successfully create and start
the recording but the difference between this an MODE_ALLOWED is that
the audio content should be silenced.

Test: Install sdk 22 app, revoke permission, observe no more crash
      Observe GCA doesn't crash anymore when trying to record a video
          using the microphone toggle
      atest NoAudioPermissionTest AudioRecordAppOpTest AudioRecordAppOpTest
      atest audiopolicy_tests
Fixes: 185939466
Change-Id: I6e6c6ab36c597bdf0f71f28fe6350f83d4ccb601
parent 1f700cd0
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment