summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--midas.mk4
-rw-r--r--unsupported_hardware.xml27
2 files changed, 31 insertions, 0 deletions
diff --git a/midas.mk b/midas.mk
index 32e7235..a3cf00d 100644
--- a/midas.mk
+++ b/midas.mk
@@ -86,6 +86,10 @@ PRODUCT_COPY_FILES += \
frameworks/av/services/audiopolicy/config/default_volume_tables.xml:$(TARGET_COPY_OUT_VENDOR)/etc/default_volume_tables.xml \
frameworks/av/services/audiopolicy/config/surround_sound_configuration_5_0.xml:$(TARGET_COPY_OUT_VENDOR)/etc/surround_sound_configuration_5_0.xml
+# Copy list of unsupported HW features
+PRODUCT_COPY_FILES += \
+ device/samsung/midas-common/unsupported_hardware.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/unsupported_hardware.xml
+
# DRM HAL packages
PRODUCT_PACKAGES += \
android.hardware.drm@1.0-service \
diff --git a/unsupported_hardware.xml b/unsupported_hardware.xml
new file mode 100644
index 0000000..56c8462
--- /dev/null
+++ b/unsupported_hardware.xml
@@ -0,0 +1,27 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<!--
+ Copyright 2020 Joonas Kylmälä
+
+ 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.
+-->
+
+<!--
+
+We include the default HW features from
+frameworks/native/data/etc/handheld_core_hardware.xml. List here all
+the features the devices don't actually support yet.
+
+-->
+<permissions>
+ <unavailable-feature name="android.hardware.bluetooth" />
+</permissions>