diff options
author | Evan Severson <evanseverson@google.com> | 2020-11-09 13:29:40 -0800 |
---|---|---|
committer | Evan Severson <evanseverson@google.com> | 2020-11-09 14:10:15 -0800 |
commit | 1e85ca8002b61a243d1161611d9126facdc7cff1 (patch) | |
tree | e9a0a45c4ff2cb011e25e4bc85285f63943049b8 /rs/java/android/renderscript/ProgramFragmentFixedFunction.java | |
parent | fded2b6d13331c11f9ec6b149834c519382d7dc1 (diff) |
Let AppOpsService evaluate access for soundtrigger
Since the introduction of a background mode for record audio permission
the app ops check the soundtrigger service does was broken. This is
because the existence of the background permission now allows for the
audio app op to be in the MODE_FOREGROUND state.
Before the background mode, the soundtrigger service checked the AppOp's
raw state because it knew that the client apps needed access to the app
even if it was in the background. Now that the background mode exists
the AppOpsService can use the app's permissions + proc state +
capabilities to correctly evaluate whether the app should have access.
Apps with the foreground-only permission are still going to work because
the service binds to them with the include_capabilities flag. Later on
we can remove this binding flag and mandate that soundtrigger clients
add the background permission to their manifest.
Bug: 172632101
Test: 1P app is able to work
Change-Id: Ic5134ea0bcabdb289315d87bbc5405a0f0128c61
Diffstat (limited to 'rs/java/android/renderscript/ProgramFragmentFixedFunction.java')
0 files changed, 0 insertions, 0 deletions