summaryrefslogtreecommitdiff
path: root/rs/java/android/renderscript/ProgramFragmentFixedFunction.java
diff options
context:
space:
mode:
authorandychou <andychou@google.com>2019-12-02 10:21:55 +0800
committerandychou <andychou@google.com>2019-12-02 10:38:25 +0800
commit3cf3c64037148c3327658d63d18e63837b69e253 (patch)
tree40005dc67e36bc0091015cc2736366a73e5625d6 /rs/java/android/renderscript/ProgramFragmentFixedFunction.java
parent3ef13e045cd317774cac78083b90100d29a4b41c (diff)
Fix thirt party app security exception when call to AudioManager.setMicrophoneMute()
In the current master code, AudioManager.ACTION_MICROPHONE_MUTE_CHANGED is broadcasted too all users inside setMicrophoneMuteNoCallerCheck(). This causes the third party application needs system permission android.permission.INTERACT_ACROSS_USERS_FULL or android.permission.INTERACT_ACROSS_USERS. Third party application just want to turn on/off microphone but not about broadcast intent. So we should move broadcast intent code to AudioService itself. Therefore, broadcast message to main thread handler to broadcast intent to avoid security exception. Bug: 145388173 Test: Write a simple test APP to call to AudioManager.AudioManager.setMicrophoneMute(). Change-Id: I44cebc9e6e21c1ee0c59125ee702b7093ad38a63
Diffstat (limited to 'rs/java/android/renderscript/ProgramFragmentFixedFunction.java')
0 files changed, 0 insertions, 0 deletions