dre: init: Chown used display nodes

Change-Id: Iea4985c06e6094464b5b5dfa7a06294e895a9971
This commit is contained in:
Alexander Koskovich 2022-04-11 08:23:57 -07:00 committed by Albert Tang
parent 5ba23790d0
commit 3deb110867
3 changed files with 22 additions and 0 deletions

View file

@ -297,6 +297,7 @@ PRODUCT_COPY_FILES += \
PRODUCT_PACKAGES += \
fstab.qcom \
init.class_main.sh \
init.oplus.rc \
init.qcom.early_boot.sh \
init.qcom.rc \
init.qcom.recovery.rc \

View file

@ -9,6 +9,13 @@ prebuilt_etc {
vendor: true,
}
prebuilt_etc {
name: "init.oplus.rc",
src: "init.oplus.rc",
sub_dir: "init",
device_specific: true,
}
prebuilt_etc {
name: "init.qcom.rc",
src: "init.qcom.rc",

14
init/init.oplus.rc Normal file
View file

@ -0,0 +1,14 @@
#
# Copyright (C) 2022 The LineageOS Project
#
# SPDX-License-Identifier: Apache-2.0
#
on boot
# Display
chown system system /dev/oplus_display
chown system system /sys/kernel/oplus_display/dimlayer_bl_en
chown system system /sys/kernel/oplus_display/dynamic_osc_clock
chown system system /sys/kernel/oplus_display/hbm
chown system system /sys/kernel/oplus_display/notify_fppress
chown system system /sys/kernel/oplus_display/panel_serial_number