zenfone9: Remove software omx codec references
These are no longer available as of Android 14 QPR3. The C2 codecs
available by default in the swcodec apex will be used instead.
Change-Id: I8cdf3e700823779a7382c66c3df8410d41209b7c
diff --git a/device.mk b/device.mk
index 12ef63f..532d88c 100755
--- a/device.mk
+++ b/device.mk
@@ -219,13 +219,9 @@
# Media
PRODUCT_COPY_FILES += \
- 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_c2.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_google_c2.xml \
frameworks/av/media/libstagefright/data/media_codecs_google_c2_audio.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_google_c2_audio.xml \
- frameworks/av/media/libstagefright/data/media_codecs_google_c2_video.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_google_c2_video.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/libstagefright/data/media_codecs_google_video_le.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_google_video_le.xml
+ frameworks/av/media/libstagefright/data/media_codecs_google_c2_video.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_google_c2_video.xml
PRODUCT_PACKAGES += \
libavservices_minijail.vendor \
diff --git a/extract-files.sh b/extract-files.sh
index 4b4c99d..02f9312 100755
--- a/extract-files.sh
+++ b/extract-files.sh
@@ -76,6 +76,9 @@
vendor/bin/vendor.dpmd)
"${PATCHELF}" --replace-needed "libhidlbase.so" "libhidlbase-v32.so" "${2}"
;;
+ vendor/etc/media_codecs_cape.xml|vendor/etc/media_codecs_cape_vendor.xml)
+ sed -Ei "/media_codecs_(google_audio|google_telephony|google_video|vendor_audio)/d" "${2}"
+ ;;
esac
}