From 0ad02140917436095833de90f45f7c873457db5a Mon Sep 17 00:00:00 2001 From: Alexander Koskovich Date: Mon, 11 Apr 2022 08:23:57 -0700 Subject: [PATCH] sm8250-common: init: Chown used display nodes Change-Id: Iea4985c06e6094464b5b5dfa7a06294e895a9971 --- common.mk | 1 + init/Android.bp | 7 +++++++ init/init.oplus.rc | 14 ++++++++++++++ 3 files changed, 22 insertions(+) create mode 100644 init/init.oplus.rc diff --git a/common.mk b/common.mk index 90225e0..565d223 100644 --- a/common.mk +++ b/common.mk @@ -280,6 +280,7 @@ PRODUCT_PACKAGES += \ # Init PRODUCT_PACKAGES += \ init.class_main.sh \ + init.oplus.rc \ init.qcom.early_boot.sh \ init.qcom.post_boot.sh \ init.qcom.rc \ diff --git a/init/Android.bp b/init/Android.bp index 644a3c7..5ba4347 100644 --- a/init/Android.bp +++ b/init/Android.bp @@ -10,6 +10,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.recovery.rc", src: "init.qcom.recovery.rc", diff --git a/init/init.oplus.rc b/init/init.oplus.rc new file mode 100644 index 0000000..74bf89a --- /dev/null +++ b/init/init.oplus.rc @@ -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