Files
android_device_nintendo_nx/initfiles/nx_cec.rc
T
tmakin 7d8d7f10f8 nx: cec: switch checked prop to cec_disable
This works together with a change to U-Boot to allow kernel and
userspace HDMI-CEC functionality to be disabled manually (or
automatically on vali). Now users who do not care about CEC do not
have to suffer from the CEC volume UI platform bug.

Change-Id: I34a89c78052193c38dc8217841a816615f135fb2
2024-01-25 15:54:02 -05:00

25 lines
1.1 KiB
Plaintext

# Copyright (C) 2023 The LineageOS 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.
on property:vold.post_fs_data_done=1
mkdir /data/vendor/permissions/ 0755 system system
chown system system /data/vendor/permissions/android.hardware.hdmi.cec.xml
rm /data/vendor/permissions/android.hardware.hdmi.cec.xml
on property:vold.post_fs_data_done=1 && property:ro.boot.cec_disable=1
symlink /vendor/etc/staging/cec_disable.xml /data/vendor/permissions/android.hardware.hdmi.cec.xml
on property:vold.post_fs_data_done=1
symlink /vendor/etc/staging/android.hardware.hdmi.cec.xml /data/vendor/permissions/android.hardware.hdmi.cec.xml