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

Commit e560d0c0 authored by Alec Mouri's avatar Alec Mouri Committed by Android (Google) Code Review
Browse files

Merge "Change fps listener permission to allow systemui to use it." into sc-dev

parents 8603b1ef c8957ee4
Loading
Loading
Loading
Loading
+2 −2
Original line number Original line Diff line number Diff line
@@ -4952,8 +4952,6 @@ status_t SurfaceFlinger::CheckTransactCodeCredentials(uint32_t code) {
        case GET_DISPLAYED_CONTENT_SAMPLE:
        case GET_DISPLAYED_CONTENT_SAMPLE:
        case NOTIFY_POWER_BOOST:
        case NOTIFY_POWER_BOOST:
        case SET_GLOBAL_SHADOW_SETTINGS:
        case SET_GLOBAL_SHADOW_SETTINGS:
        case ADD_FPS_LISTENER:
        case REMOVE_FPS_LISTENER:
        case ACQUIRE_FRAME_RATE_FLEXIBILITY_TOKEN: {
        case ACQUIRE_FRAME_RATE_FLEXIBILITY_TOKEN: {
            // ACQUIRE_FRAME_RATE_FLEXIBILITY_TOKEN is used by CTS tests, which acquire the
            // ACQUIRE_FRAME_RATE_FLEXIBILITY_TOKEN is used by CTS tests, which acquire the
            // necessary permission dynamically. Don't use the permission cache for this check.
            // necessary permission dynamically. Don't use the permission cache for this check.
@@ -5016,6 +5014,8 @@ status_t SurfaceFlinger::CheckTransactCodeCredentials(uint32_t code) {
            // This is not sensitive information, so should not require permission control.
            // This is not sensitive information, so should not require permission control.
            return OK;
            return OK;
        }
        }
        case ADD_FPS_LISTENER:
        case REMOVE_FPS_LISTENER:
        case ADD_REGION_SAMPLING_LISTENER:
        case ADD_REGION_SAMPLING_LISTENER:
        case REMOVE_REGION_SAMPLING_LISTENER: {
        case REMOVE_REGION_SAMPLING_LISTENER: {
            // codes that require permission check
            // codes that require permission check