Allow affiliated profile owner to grant sensor permissions.

Test: atest CtsDevicePolicyManagerTestCases:com.android.cts.devicepolicy.MixedDeviceOwnerTest#testLocationPermissionGrantNotifies # on automotived and phone
Test: manual verification using TestDpc

Bug: 185855799
Fixes: 196460975

Change-Id: I82e9539244b310a59d53f32b8618587042d20b50
2 files changed