aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRashed Abdel-Tawab <rashed@linux.com>2018-01-07 14:01:18 -0800
committerDavide Garberi <dade.garberi@gmail.com>2018-01-11 20:34:25 +0100
commitf78adb9e691be39d01d72ca9dbfe4bbbea89c7d4 (patch)
tree05fe29ee418c786f3dc261e720c2ee3f9017d063
parente21d472f69effee7c4fe69479a0db96cf00d1206 (diff)
msm8996-common: Add QTI privileged app permissions
Change-Id: Ide1b79d83624e8aba2ee17979efacc356dfacb55 Signed-off-by: Davide Garberi <dade.garberi@gmail.com>
-rw-r--r--configs/privapp-permissions-qti.xml59
-rwxr-xr-xmsm8996.mk4
2 files changed, 63 insertions, 0 deletions
diff --git a/configs/privapp-permissions-qti.xml b/configs/privapp-permissions-qti.xml
new file mode 100644
index 0000000..22e342f
--- /dev/null
+++ b/configs/privapp-permissions-qti.xml
@@ -0,0 +1,59 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+/* Copyright (c) 2017, The Linux Foundation. All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions are
+ * met:
+ * * Redistributions of source code must retain the above copyright
+ * notice, this list of conditions and the following disclaimer.
+ * * Redistributions in binary form must reproduce the above
+ * copyright notice, this list of conditions and the following
+ * disclaimer in the documentation and/or other materials provided
+ * with the distribution.
+ * * Neither the name of The Linux Foundation nor the names of its
+ * contributors may be used to endorse or promote products derived
+ * from this software without specific prior written permission.
+ *
+ * THIS SOFTWARE IS PROVIDED "AS IS" AND ANY EXPRESS OR IMPLIED
+ * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
+ * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT
+ * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS
+ * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+ * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
+ * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
+ * BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
+ * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
+ * OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
+ * IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ */
+-->
+
+<!--
+This XML file declares which signature|privileged permissions should be
+granted to privileged applications on Qualcomm devices.
+It allows additional grants on top of privapp-permissions-platform.xml
+-->
+
+<permissions>
+ <privapp-permissions package="com.quicinc.cne.CNEService">
+ <permission name="android.permission.INTERACT_ACROSS_USERS"/>
+ <permission name="android.permission.PACKET_KEEPALIVE_OFFLOAD"/>
+ </privapp-permissions>
+
+ <privapp-permissions package="com.qti.dpmserviceapp">
+ <permission name="android.permission.INTERACT_ACROSS_USERS"/>
+ </privapp-permissions>
+
+ <privapp-permissions package="com.qualcomm.location">
+ <permission name="android.permission.CONTROL_LOCATION_UPDATES"/>
+ </privapp-permissions>
+
+ <privapp-permissions package="com.qualcomm.location.XT">
+ <permission name="android.permission.WRITE_SECURE_SETTINGS"/>
+ </privapp-permissions>
+
+ <privapp-permissions package="com.qualcomm.qcrilmsgtunnel">
+ <permission name="android.permission.INTERACT_ACROSS_USERS"/>
+ </privapp-permissions>
+</permissions>
diff --git a/msm8996.mk b/msm8996.mk
index 91fd548..790d522 100755
--- a/msm8996.mk
+++ b/msm8996.mk
@@ -221,6 +221,10 @@ PRODUCT_PACKAGES += \
libOmxVdecHevc \
libstagefrighthw
+# QCOM
+PRODUCT_COPY_FILES += \
+ $(LOCAL_PATH)/configs/privapp-permissions-qti.xml:system/etc/permissions/privapp-permissions-qti.xml
+
# QMI
PRODUCT_PACKAGES += \
libjson