j7elte: Define permissions for OEM-sensors
authorLukas0610 <mail@lukasberger.at>
Sun, 28 Jan 2018 14:51:07 +0000 (15:51 +0100)
committerDario Trombello <dariotr@outlook.de>
Sun, 24 May 2020 19:06:35 +0000 (21:06 +0200)
Change-Id: I0647846dce7e99a1aef6347679a91fd3014ed074

configs/permissions/com.samsung.permission.HRM_EXT.xml [new file with mode: 0644]
configs/permissions/com.samsung.permission.SSENSOR.xml [new file with mode: 0644]
device.mk

diff --git a/configs/permissions/com.samsung.permission.HRM_EXT.xml b/configs/permissions/com.samsung.permission.HRM_EXT.xml
new file mode 100644 (file)
index 0000000..460c4d1
--- /dev/null
@@ -0,0 +1,16 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- Copyright (C) 2014 The Android Open Source 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>
+    <permission name="com.samsung.permission.HRM_EXT" />
+</permissions>
diff --git a/configs/permissions/com.samsung.permission.SSENSOR.xml b/configs/permissions/com.samsung.permission.SSENSOR.xml
new file mode 100644 (file)
index 0000000..b8b695e
--- /dev/null
@@ -0,0 +1,16 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- Copyright (C) 2014 The Android Open Source 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>
+    <permission name="com.samsung.permission.SSENSOR" />
+</permissions>
index 9ee64293db7edca5f48fdf0828e16874c8675f8d..d98c5db4433f9572a8971409a03f2ed0b1570184 100644 (file)
--- a/device.mk
+++ b/device.mk
@@ -58,7 +58,9 @@ PRODUCT_COPY_FILES += \
     frameworks/native/data/etc/android.hardware.sensor.accelerometer.xml:system/etc/permissions/android.hardware.sensor.accelerometer.xml \
     frameworks/native/data/etc/android.hardware.sensor.proximity.xml:system/etc/permissions/android.hardware.sensor.proximity.xml \
     frameworks/native/data/etc/android.hardware.telephony.gsm.xml:system/etc/permissions/android.hardware.telephony.gsm.xml \
-    frameworks/native/data/etc/handheld_core_hardware.xml:system/etc/permissions/handheld_core_hardware.xml
+    frameworks/native/data/etc/handheld_core_hardware.xml:system/etc/permissions/handheld_core_hardware.xml \
+    $(LOCAL_PATH)/configs/permissions/com.samsung.permission.HRM_EXT.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/com.samsung.permission.HRM_EXT.xml \
+    $(LOCAL_PATH)/configs/permissions/com.samsung.permission.SSENSOR.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/com.samsung.permission.SSENSOR.xml
 
 # Properties
 -include $(LOCAL_PATH)/system_prop.mk