bliss: Include livedisplay permissions
Change-Id: I27b7d67baf8485bd243593aa3249e36df425fd66
Signed-off-by: Jackeagle <jackeagle102@gmail.com>
diff --git a/config/common.mk b/config/common.mk
index 6b88f1c..9e99f9c 100644
--- a/config/common.mk
+++ b/config/common.mk
@@ -132,6 +132,10 @@
PRODUCT_ENFORCE_RRO_EXCLUDED_OVERLAYS += vendor/bliss/overlay
+# Livedisplay
+PRODUCT_COPY_FILES += \
+ vendor/bliss/prebuilt/common/etc/permissions/privapp-permissions-lineagehw.xml:$(TARGET_COPY_OUT_SYSTEM_EXT)/etc/permissions/privapp-permissions-lineagehw.xml
+
# Bliss Bootanimation
-include vendor/bliss/config/bootanimation.mk
diff --git a/prebuilt/common/etc/permissions/privapp-permissions-lineagehw.xml b/prebuilt/common/etc/permissions/privapp-permissions-lineagehw.xml
new file mode 100644
index 0000000..c6e8861
--- /dev/null
+++ b/prebuilt/common/etc/permissions/privapp-permissions-lineagehw.xml
@@ -0,0 +1,12 @@
+<?xml version="1.0" encoding="utf-8"?>
+<permissions>
+ <privapp-permissions package="com.android.systemui">
+ <permission name="lineageos.permission.HARDWARE_ABSTRACTION_ACCESS" />
+ <permission name="lineageos.permission.MANAGE_LIVEDISPLAY" />
+ </privapp-permissions>
+
+ <privapp-permissions package="com.android.settings">
+ <permission name="lineageos.permission.HARDWARE_ABSTRACTION_ACCESS" />
+ <permission name="lineageos.permission.MANAGE_LIVEDISPLAY" />
+ </privapp-permissions>
+</permissions>
\ No newline at end of file