From cce8dc57dfa428f1d4a551d224677a7425888edb Mon Sep 17 00:00:00 2001 From: Brendan Szymanski Date: Wed, 15 Jul 2026 22:46:56 -0400 Subject: [PATCH] Add missing mediatek gralloc4 init .rc file The gbm_mesa cherry-pick series added a mediatek gralloc@4.0 service definition but the corresponding init .rc file was missing from the aosp/android-16.0_r3 branch. Create it from the msm template. Copyright (C) 2026 Brendan Szymanski --- ....allocator@4.0-service.minigbm_mediatek.rc | 24 +++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 cros_gralloc/gralloc4/android.hardware.graphics.allocator@4.0-service.minigbm_mediatek.rc diff --git a/cros_gralloc/gralloc4/android.hardware.graphics.allocator@4.0-service.minigbm_mediatek.rc b/cros_gralloc/gralloc4/android.hardware.graphics.allocator@4.0-service.minigbm_mediatek.rc new file mode 100644 index 0000000..38e514e --- /dev/null +++ b/cros_gralloc/gralloc4/android.hardware.graphics.allocator@4.0-service.minigbm_mediatek.rc @@ -0,0 +1,24 @@ +# +# Copyright 2020 The Android Open Source Project +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# + +service vendor.graphics.allocator-4-0 /vendor/bin/hw/android.hardware.graphics.allocator@4.0-service.minigbm_mediatek + interface android.hardware.graphics.allocator@4.0::IAllocator default + class hal animation + user system + group graphics drmrpc + capabilities SYS_NICE + onrestart restart surfaceflinger + task_profiles ServiceCapacityLow