vendor/bliss: allow Settings privapp permission to FONT_MANAGER
Signed-off-by: Jayant-Deshmukh <jayantdeshmuk008@gmail.com>
Change-Id: I7cbf1f33f83b31858963b258aaa63e43b4f415e6
Signed-off-by: Jackeagle <jackeagle102@gmail.com>
diff --git a/config/common.mk b/config/common.mk
index ab78d76..bd6fe44 100644
--- a/config/common.mk
+++ b/config/common.mk
@@ -46,6 +46,10 @@
PRODUCT_COPY_FILES += \
vendor/bliss/config/permissions/lineage-sysconfig.xml:$(TARGET_COPY_OUT_SYSTEM)/etc/sysconfig/lineage-sysconfig.xml
+# Font service Permissions
+PRODUCT_COPY_FILES += \
+ vendor/bliss/config/permissions/privapp-permissions-bliss-system_ext.xml:$(TARGET_COPY_OUT_SYSTEM_EXT)/etc/permissions/privapp-permissions-bliss-system_ext.xml \
+
# Copy all Lineage-specific init rc files
$(foreach f,$(wildcard vendor/bliss/prebuilt/common/etc/init/*.rc),\
$(eval PRODUCT_COPY_FILES += $(f):$(TARGET_COPY_OUT_SYSTEM)/etc/init/$(notdir $f)))
diff --git a/config/permissions/privapp-permissions-bliss-system_ext.xml b/config/permissions/privapp-permissions-bliss-system_ext.xml
new file mode 100644
index 0000000..5a2018c
--- /dev/null
+++ b/config/permissions/privapp-permissions-bliss-system_ext.xml
@@ -0,0 +1,28 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+ ~ Copyright (C) 2020 SuperiorOS
+ ~
+ ~ 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
+ -->
+
+<!--
+This XML file declares which signature|privileged permissions should be granted to privileged
+applications on CarbonROM supported devices.
+It allows additional grants on top of privapp-permissions-{platform/google}.xml
+-->
+<permissions>
+ <privapp-permissions package="com.android.settings">
+ <permission name="android.permission.ACCESS_FONT_MANAGER"/>
+ </privapp-permissions>
+</permissions>
+