android.hardware.light@2.0-impl \
android.hardware.light@2.0-service
+
+# Livedisplay
+PRODUCT_PACKAGES += \
+ vendor.lineage.livedisplay@2.0-service.samsung-exynos
+
# Media
PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/configs/media/media_codecs.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs.xml \
type sysfs_jack, sysfs_type, fs_type, mlstrustedobject;
allow sysfs_type tmpfs:filesystem associate;
+
+### data types
+type display_vendor_data_file, file_type, data_file_type;
/data/nfc(/.*)? u:object_r:nfc_data_file:s0
/data/\.cid\.info u:object_r:wifi_data_file:s0
/data/misc/conn/\.wifiver\.info u:object_r:wifi_data_file:s0
-
/data/misc/radio(/.*)? u:object_r:radio_data_file:s0
+/data/vendor/display(/.*)? u:object_r:display_vendor_data_file:s0
# gps
/data/system/gps(/.*)? u:object_r:gps_data_file:s0
/system/bin/gpsd u:object_r:gpsd_exec:s0
/system/bin/sswap u:object_r:sswap_exec:s0
+/(vendor|system/vendor)/bin/hw/vendor\.lineage\.livedisplay@2\.0-service\.samsung-exynos u:object_r:hal_lineage_livedisplay_sysfs_exec:s0
/(vendor|system/vendor)/bin/hw/vendor\.lineage\.touch@1\.0-service\.samsung u:object_r:hal_lineage_touch_default_exec:s0
--- /dev/null
+# Allow LiveDisplay to store files under /data/vendor/display and access them
+allow hal_lineage_livedisplay_sysfs display_vendor_data_file:dir rw_dir_perms;
+allow hal_lineage_livedisplay_sysfs display_vendor_data_file:file create_file_perms;
+# Allow LiveDisplay to read and write to files in sysfs_graphics, sysfs_mdnie
+allow hal_lineage_livedisplay_sysfs {
+ sysfs_graphics
+ sysfs_mdnie
+}:dir search;
+allow hal_lineage_livedisplay_sysfs {
+ sysfs_graphics
+ sysfs_mdnie
+}:file rw_file_perms;