From a3f60a069c1f20629ffb26cf3056ff97b3f61a11 Mon Sep 17 00:00:00 2001 From: Ziyang Zhou Date: Sat, 11 Jun 2022 10:11:34 +0800 Subject: [PATCH] claim more system features; bluetooth NOT ready --- android.hardware.bluetooth@1.1.xml | 11 +++++++++++ redroid-removed-permissions.xml | 4 ++++ redroid.mk | 19 ++++++++++++++++++- 3 files changed, 33 insertions(+), 1 deletion(-) create mode 100644 android.hardware.bluetooth@1.1.xml create mode 100644 redroid-removed-permissions.xml diff --git a/android.hardware.bluetooth@1.1.xml b/android.hardware.bluetooth@1.1.xml new file mode 100644 index 0000000..9a40f6f --- /dev/null +++ b/android.hardware.bluetooth@1.1.xml @@ -0,0 +1,11 @@ + + + android.hardware.bluetooth + hwbinder + 1.1 + + IBluetoothHci + default + + + diff --git a/redroid-removed-permissions.xml b/redroid-removed-permissions.xml new file mode 100644 index 0000000..97ff38d --- /dev/null +++ b/redroid-removed-permissions.xml @@ -0,0 +1,4 @@ + + + + diff --git a/redroid.mk b/redroid.mk index 1e91505..956259d 100644 --- a/redroid.mk +++ b/redroid.mk @@ -105,6 +105,18 @@ PRODUCT_PACKAGES += \ android.hardware.power.stats@1.0-service.mock \ +#DEVICE_MANIFEST_FILE += device/redroid/android.hardware.bluetooth@1.1.xml +# +#PRODUCT_PACKAGES += \ +# android.hardware.bluetooth@1.1-service \ +# libbt-vendor \ + + +PRODUCT_PACKAGES += \ + android.hardware.gnss@2.1-service \ + android.hardware.sensors@2.1-service.mock \ + + PRODUCT_SOONG_NAMESPACES += frameworks/av/services/audiopolicy/config # audio policy PRODUCT_PACKAGES += \ @@ -124,7 +136,12 @@ PRODUCT_COPY_FILES += \ frameworks/av/media/libstagefright/data/media_codecs_google_video.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_google_video.xml \ frameworks/av/media/libeffects/data/audio_effects.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_effects.xml \ frameworks/native/data/etc/android.hardware.ethernet.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.ethernet.xml \ - frameworks/native/data/etc/android.software.autofill.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.software.autofill.xml \ + frameworks/native/data/etc/android.hardware.opengles.aep.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.opengles.aep.xml \ + frameworks/native/data/etc/android.hardware.vulkan.compute-0.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.vulkan.compute-0.xml \ + frameworks/native/data/etc/android.hardware.vulkan.level-1.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.vulkan.level-1.xml \ + frameworks/native/data/etc/android.hardware.vulkan.version-1_1.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.vulkan.version-1_1.xml \ + frameworks/native/data/etc/handheld_core_hardware.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/handheld_core_hardware.xml \ + $(LOCAL_PATH)/redroid-removed-permissions.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/redroid-removed-permissions.xml \ $(LOCAL_PATH)/gpu_config.sh:$(TARGET_COPY_OUT_VENDOR)/bin/gpu_config.sh \ $(LOCAL_PATH)/init.redroid.rc:$(TARGET_COPY_OUT_VENDOR)/etc/init/init.redroid.rc \