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

Commit 3f51caf4 authored by Sergey Nikolaienkov's avatar Sergey Nikolaienkov
Browse files

Enable APP_STREAMING and AUTO_PROJECTION CDM profiles

Bug: 195590028
Bug: 203459457
Test: atest CtsCompanionDevicesTestCases:DeviceProfilesTest
Test: atest CtsCompanionDevicesTestCases
Change-Id: Iafeedd0a09128b93ea3dc00f2f1dbfcc0ca84ea6
parent 789acb12
Loading
Loading
Loading
Loading
+0 −12
Original line number Diff line number Diff line
@@ -84,18 +84,6 @@ final class PermissionsUtils {
            throw new IllegalArgumentException("Unsupported device profile: " + deviceProfile);
        }

        if (DEVICE_PROFILE_APP_STREAMING.equals(deviceProfile)) {
            // TODO: remove, when properly supporting this profile.
            throw new UnsupportedOperationException(
                    "DEVICE_PROFILE_APP_STREAMING is not fully supported yet.");
        }

        if (DEVICE_PROFILE_AUTOMOTIVE_PROJECTION.equals(deviceProfile)) {
            // TODO: remove, when properly supporting this profile.
            throw new UnsupportedOperationException(
                    "DEVICE_PROFILE_AUTOMOTIVE_PROJECTION is not fully supported yet.");
        }

        final String permission = DEVICE_PROFILE_TO_PERMISSION.get(deviceProfile);
        if (context.checkPermission(permission, getCallingPid(), packageUid)
                != PERMISSION_GRANTED) {