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

Skip to content
Commit af33533f authored by Atneya Nair's avatar Atneya Nair
Browse files

Make AudioService perm provider HDS aware

Replicate the special handling for the isolated UID associated with HDS
in the audioserver permission provider logic.
 - VoiceInteractionManagerService now communicates the owner uid of
   trusted process, which is useful for package association/validation
 - VIMS no longer posts this call on an executor, it should be sync to
   ensure correct handling by audioserver
 - Keep track of the active HDS uid in the PermissionProvider, and grant
  it the appropriate special-case permissions, updating audioserver when
  HDS uid is changed
 - Change permission predicate to be more correct (old API was internal)

Bug: 338089555
Test: atest AudioServerPermissionProviderTest#testSpecialHotwordPermissions
Test: manual verification of hotword detection
Flag: com.android.media.audio.audioserver_permissions
Change-Id: Idf44e236f3992c10badbb8f96fd52bd54198430d
parent 91277279
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