bliss: Add permissions for Angle
Fixed:
E AndroidRuntime: *** FATAL EXCEPTION IN SYSTEM PROCESS: main
E AndroidRuntime: java.lang.IllegalStateException: Signature|privileged permissions not in privapp-permissions allowlist: {com.android.angle (/product/priv-app/ANGLE): android.permission.WRITE_SECURE_SETTINGS}
Change-Id: I4027340210a4fe8ec2a870526d7579a42f05c0a8
Signed-off-by: Jackeagle <jackeagle102@gmail.com>
diff --git a/config/bliss_packages.mk b/config/bliss_packages.mk
index 20514f6..321e286 100644
--- a/config/bliss_packages.mk
+++ b/config/bliss_packages.mk
@@ -100,3 +100,7 @@
# TouchGestures
PRODUCT_PACKAGES += \
TouchGestures
+
+# Bliss specific permissions
+PRODUCT_COPY_FILES += \
+ vendor/bliss/config/permissions/privapp-permissions-bliss-product.xml:$(TARGET_COPY_OUT_PRODUCT)/etc/permissions/privapp-permissions-bliss-product.xml
diff --git a/config/permissions/privapp-permissions-bliss-product.xml b/config/permissions/privapp-permissions-bliss-product.xml
new file mode 100644
index 0000000..713d60e
--- /dev/null
+++ b/config/permissions/privapp-permissions-bliss-product.xml
@@ -0,0 +1,24 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- Copyright (C) 2023-2023 BlissRoms Project
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+-->
+
+<permissions>
+
+ <privapp-permissions package="com.android.angle">
+ <permission name="android.permission.WRITE_SECURE_SETTINGS"/>
+ </privapp-permissions>
+
+</permissions>
+