From 96d5c625acbb14328e8a85a7b84f4e3535a680b6 Mon Sep 17 00:00:00 2001 From: Simon1511 Date: Fri, 22 Jul 2022 13:06:47 +0200 Subject: [PATCH] sm7125: Build AdvancedDisplay from hardware/samsung Change-Id: Iab195edee0fcfedcd7373568ac49a811afcd9563 --- common.mk | 3 +- .../AdvancedDisplay/res/values/arrays.xml | 48 +++++++++++++++++++ sepolicy/vendor/system_app.te | 4 ++ 3 files changed, 54 insertions(+), 1 deletion(-) create mode 100644 overlay/hardware/samsung/AdvancedDisplay/res/values/arrays.xml diff --git a/common.mk b/common.mk index df2d84a..d315638 100644 --- a/common.mk +++ b/common.mk @@ -165,7 +165,8 @@ PRODUCT_PACKAGES += \ vendor.qti.hardware.display.mapper@2.0.vendor \ vendor.qti.hardware.display.mapper@3.0.vendor \ vendor.qti.hardware.display.mapper@4.0.vendor \ - vendor.display.config@2.0.vendor + vendor.display.config@2.0.vendor \ + AdvancedDisplay # Doze PRODUCT_PACKAGES += \ diff --git a/overlay/hardware/samsung/AdvancedDisplay/res/values/arrays.xml b/overlay/hardware/samsung/AdvancedDisplay/res/values/arrays.xml new file mode 100644 index 0000000..eb36387 --- /dev/null +++ b/overlay/hardware/samsung/AdvancedDisplay/res/values/arrays.xml @@ -0,0 +1,48 @@ + + + + + LineageOS (default) + Video + Video warm + Video cold + Camera + Navigation + Gallery + Video call + Browser + eBook + E-mail + Digital television + + + + 0 + 1 + 2 + 3 + 4 + 5 + 6 + 7 + 8 + 9 + 10 + 16 + + diff --git a/sepolicy/vendor/system_app.te b/sepolicy/vendor/system_app.te index be81216..9b4e2bd 100644 --- a/sepolicy/vendor/system_app.te +++ b/sepolicy/vendor/system_app.te @@ -6,3 +6,7 @@ allow system_app sysfs_zram:file { read open getattr }; binder_call(system_app, hal_power_default) binder_call(system_app, hal_vibrator_default) + +# MDNIE +allow system_app sysfs_mdnie_writable:dir search; +allow system_app sysfs_mdnie_writable:file { open write getattr };