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

Commit 49156faf authored by Dorin Drimus's avatar Dorin Drimus
Browse files

Check wiu permissions on any deviceId to start a fgs

Some of the wiu permissions required to start a foreground service can
be device aware (RECORD_AUDIO and CAMERA) and they can be different
depending on the resources (virtual audio or camera devices) used.
This relaxes the check to allow the fgs to start if it has the permission
on any of the active deviceIds (virtual devices).

CTS test added in ag/32131429, @Ignore for the immediate release (though
it passes and will be reenabled by b/402139346).

Bug: 381386115
Bug: 400753852
Test: manual VDM demo sample app with Pixel Recorder app
Test: atest android.virtualdevice.cts.audio.VirtualAudioPermissionTest
Test: atest ActivityManagerForegroundServiceTypeTest
Flag: EXEMPT, bugfix
Change-Id: I91b01ba2dddda83801a2a9b586cd03bbdc780754
parent 546ca204
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment