summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--configs/media_codecs.xml44
-rw-r--r--gta04.mk8
2 files changed, 48 insertions, 4 deletions
diff --git a/configs/media_codecs.xml b/configs/media_codecs.xml
new file mode 100644
index 0000000..bcbe1ef
--- /dev/null
+++ b/configs/media_codecs.xml
@@ -0,0 +1,44 @@
+<?xml version="1.0" encoding="utf-8" ?>
+<!--
+ Copyright (C) 2014 Paul Kocialkowski <contact@paulk.fr>
+
+ This program is free software: you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation, either version 3 of the License, or
+ (at your option) any later version.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with this program. If not, see <http://www.gnu.org/licenses/>.
+ -->
+
+<MediaCodecs>
+ <Decoders>
+ <MediaCodec name="OMX.google.mp3.decoder" type="audio/mpeg" />
+ <MediaCodec name="OMX.google.amrnb.decoder" type="audio/3gpp" />
+ <MediaCodec name="OMX.google.amrwb.decoder" type="audio/amr-wb" />
+ <MediaCodec name="OMX.google.aac.decoder" type="audio/mp4a-latm" />
+ <MediaCodec name="OMX.google.g711.alaw.decoder" type="audio/g711-alaw" />
+ <MediaCodec name="OMX.google.g711.mlaw.decoder" type="audio/g711-mlaw" />
+ <MediaCodec name="OMX.google.vorbis.decoder" type="audio/vorbis" />
+
+ <MediaCodec name="OMX.google.mpeg4.decoder" type="video/mp4v-es" />
+ <MediaCodec name="OMX.google.h263.decoder" type="video/3gpp" />
+ <MediaCodec name="OMX.google.h264.decoder" type="video/avc" />
+ <MediaCodec name="OMX.google.vpx.decoder" type="video/x-vnd.on2.vp8" />
+ </Decoders>
+
+ <Encoders>
+ <MediaCodec name="OMX.google.aac.encoder" type="audio/mp4a-latm" />
+ <MediaCodec name="OMX.google.amrnb.encoder" type="audio/3gpp" />
+ <MediaCodec name="OMX.google.amrwb.encoder" type="audio/amr-wb" />
+ <MediaCodec name="OMX.google.h263.encoder" type="video/3gpp" />
+ <MediaCodec name="OMX.google.h264.encoder" type="video/avc" />
+ <MediaCodec name="OMX.google.mpeg4.encoder" type="video/mp4v-es" />
+ <MediaCodec name="OMX.google.flac.encoder" type="audio/flac" />
+ </Encoders>
+</MediaCodecs>
diff --git a/gta04.mk b/gta04.mk
index 64f29d2..da9d298 100644
--- a/gta04.mk
+++ b/gta04.mk
@@ -55,6 +55,10 @@ PRODUCT_LOCALES := hdpi
PRODUCT_COPY_FILES += \
device/goldelico/gta04/rootdir/initlogo.rle:root/initlogo.rle
+# Media
+PRODUCT_COPY_FILES += \
+ device/goldelico/gta04/configs/media_codecs.xml:system/etc/media_codecs.xml
+
# Audio
PRODUCT_PACKAGES += \
audio.primary.omap3
@@ -87,10 +91,6 @@ PRODUCT_COPY_FILES += \
PRODUCT_PROPERTY_OVERRIDES += \
wifi.interface=wlan0
-# APNS
-PRODUCT_COPY_FILES += \
- vendor/replicant/prebuilt/common/etc/apns-conf.xml:system/etc/apns-conf.xml
-
# Dalvik
PRODUCT_PROPERTY_OVERRIDES += \
dalvik.vm.dexopt-data-only=1 \