Use PermissionManager to directly control permissions

The permission checks that go through PackageManager could have some
device redirects depending on the policies setup, so for fine control,
use directly the PermissionManager to set and revoke the device
permissions based on the persistentDeviceId.

Bug: 402715118
Test: atest VirtualAudioPermissionTest
Flag: TEST_ONLY
Change-Id: Ia9e2f2647c94c9d5c9cab64fff954b70b096948f
1 file changed