diff --git a/android.hardware.media.omx@1.0.xml b/android.hardware.media.omx@1.0.xml
deleted file mode 100644
index 0b6ce80..0000000
--- a/android.hardware.media.omx@1.0.xml
+++ /dev/null
@@ -1,15 +0,0 @@
-
-
- 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/redroid.mk b/redroid.mk
index 787cb75..b09250b 100644
--- a/redroid.mk
+++ b/redroid.mk
@@ -108,18 +108,9 @@ PRODUCT_PACKAGES += \
ifneq ($(REDROID_DISABLE_OMX),true)
-# Codec 1.0 requires the OMX services
-DEVICE_MANIFEST_FILE += device/redroid/android.hardware.media.omx@1.0.xml
-
-PRODUCT_COPY_FILES += \
- device/redroid/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 \
-
+$(call inherit-product, hardware/redroid/omx/omx.mk)
else
-# use Codec 2.0
-PRODUCT_PACKAGES += android.hardware.media.c2@1.2-default-service
+$(call inherit-product, hardware/redroid/c2/c2.mk)
endif
@@ -135,7 +126,6 @@ PRODUCT_PACKAGES += \
PRODUCT_COPY_FILES += \
- device/generic/goldfish/camera/media_profiles.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_profiles_V1_0.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.hardware.opengles.aep.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.opengles.aep.xml \