Skip to content
Commit bec69ef4 authored by Oasis Feng's avatar Oasis Feng Committed by Oasis Feng
Browse files

Fix CDM.requestNotificationAccess() in profile.



If invoked by app running in managed profile, CompanionDeviceManager
.requestNotificationAccess() is actually trying to grant access to that
app in parent profile, which may not even exist.

Notification listener may not need to be running in managed profile,
but in order to access and control media sessions in managed profile,
notification listener must be granted access in that managed profile.

Test: Run test cases of CompanionDeviceManager in managed profile.

Signed-off-by: default avatarOasis Feng <oasisfeng@gmail.com>
Change-Id: Id33c4956097300c5ec1c6c50ebee91dee9a49c33
parent 72eda1bb
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment