aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorceltare21 <celtare21@gmail.com>2019-08-25 09:47:58 +0000
committerceltare21 <celtare21@gmail.com>2019-08-25 11:12:19 +0000
commit4d17d21d9a4465ef5a4078ab2ba12552cbde56e7 (patch)
tree4455b9bc6a1f54ae590e36f96385e45877798a1c
parentc8c8f28107551510c7d9ec4eeacc67682b84bf57 (diff)
mata: Add excluded-input-devices from CAF
Signed-off-by: celtare21 <celtare21@gmail.com>
-rw-r--r--device.mk4
-rw-r--r--excluded-input-devices.xml30
2 files changed, 34 insertions, 0 deletions
diff --git a/device.mk b/device.mk
index 6de9e097..3d0785d3 100644
--- a/device.mk
+++ b/device.mk
@@ -152,6 +152,10 @@ PRODUCT_PACKAGES += \
android.hardware.drm@1.1-service.clearkey \
move_widevine_data.sh
+# Exclude TOF sensor from InputManager
+PRODUCT_COPY_FILES += \
+ device/essential/mata/excluded-input-devices.xml:system/etc/excluded-input-devices.xml
+
# Fingerprint
PRODUCT_PACKAGES += \
android.hardware.biometrics.fingerprint@2.1
diff --git a/excluded-input-devices.xml b/excluded-input-devices.xml
new file mode 100644
index 00000000..7cc394a1
--- /dev/null
+++ b/excluded-input-devices.xml
@@ -0,0 +1,30 @@
+<?xml version="1.0" encoding="ISO-8859-1"?>
+<!-- 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. -->
+<devices>
+ <device name="STM VL53L0 proximity sensor" />
+</devices>