From fc58f231aa49463faecbc38e45b99db4cacc489e Mon Sep 17 00:00:00 2001 From: Ziyang Zhou Date: Sat, 11 Jun 2022 09:10:52 +0800 Subject: [PATCH] add redroid codecs (OMX & C2) --- manifest.xml | 13 -- media_codecs.xml | 84 ---------- media_profiles.xml | 391 --------------------------------------------- redroid.mk | 12 +- 4 files changed, 7 insertions(+), 493 deletions(-) delete mode 100644 media_codecs.xml delete mode 100644 media_profiles.xml diff --git a/manifest.xml b/manifest.xml index 56d4188..5a16db6 100644 --- a/manifest.xml +++ b/manifest.xml @@ -80,17 +80,4 @@ default - - android.hardware.media.omx - hwbinder - 1.0 - - IOmx - default - - - IOmxStore - default - - diff --git a/media_codecs.xml b/media_codecs.xml deleted file mode 100644 index 87d11f2..0000000 --- a/media_codecs.xml +++ /dev/null @@ -1,84 +0,0 @@ - - - - - - - - - - diff --git a/media_profiles.xml b/media_profiles.xml deleted file mode 100644 index 733b2e1..0000000 --- a/media_profiles.xml +++ /dev/null @@ -1,391 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -]> - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/redroid.mk b/redroid.mk index 2ea6687..ff29206 100644 --- a/redroid.mk +++ b/redroid.mk @@ -99,6 +99,13 @@ PRODUCT_PACKAGES += \ DEVICE_MANIFEST_FILE += device/redroid/android.hardware.drm@1.2-service.clearkey.xml +ifneq ($(REDROID_DISABLE_OMX),true) + $(call inherit-product, hardware/redroid/omx/omx.mk) +else + $(call inherit-product, hardware/redroid/c2/c2.mk) +endif + + PRODUCT_PACKAGES += \ android.hardware.gnss@2.0-service \ android.hardware.sensors@2.0-service.mock \ @@ -107,11 +114,6 @@ PRODUCT_PACKAGES += \ USE_XML_AUDIO_POLICY_CONF := 1 PRODUCT_COPY_FILES += \ - $(LOCAL_PATH)/media_profiles.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_profiles_V1_0.xml \ - $(LOCAL_PATH)/media_codecs.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs.xml \ - frameworks/av/media/libstagefright/data/media_codecs_google_audio.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_google_audio.xml \ - frameworks/av/media/libstagefright/data/media_codecs_google_telephony.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_google_telephony.xml \ - 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/av/services/audiopolicy/config/audio_policy_configuration_generic.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_policy_configuration.xml \ frameworks/av/services/audiopolicy/config/primary_audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/primary_audio_policy_configuration.xml \