a5xelte: define permissions for OEM-sensors
authorLukas0610 <mail@lukasberger.at>
Sun, 28 Jan 2018 14:51:07 +0000 (15:51 +0100)
committerJan Altensen <info@stricted.net>
Mon, 12 Aug 2019 07:13:45 +0000 (09:13 +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 456a2fcdec2494a86fc0a1b106123904ba9e4d35..1c2c3fc27f5ead895da3fa9d5a233789d191a253 100644 (file)
--- a/device.mk
+++ b/device.mk
@@ -91,7 +91,9 @@ PRODUCT_COPY_FILES += \
     frameworks/native/data/etc/android.hardware.sensor.stepdetector.xml:system/etc/permissions/android.hardware.sensor.stepdetector.xml \
     frameworks/native/data/etc/android.hardware.nfc.xml:system/etc/permissions/android.hardware.nfc.xml \
     frameworks/native/data/etc/android.hardware.nfc.hce.xml:system/etc/permissions/android.hardware.nfc.hce.xml \
-    frameworks/native/data/etc/com.android.nfc_extras.xml:system/etc/permissions/com.android.nfc_extras.xml
+    frameworks/native/data/etc/com.android.nfc_extras.xml:system/etc/permissions/com.android.nfc_extras.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
 
 # Ramdisk
 PRODUCT_PACKAGES += \