Some bring-up patches for Mediatek platforms (mt67xx pre-O devices)
Go to file
Christopher R. Palmer 67114b009f seccomp: Fix policy for ffmpeg
Without this, a bunch of cts tests fail.  For example:

android.media.cts.AdaptivePlaybackTest#testMpeg4_adaptiveDrc

fails with the log message:

E/media.codec( 8194): libminijail: blocked syscall: getdents64

and

android.security.cts.StagefrightTest#testStagefright_bug_25765591

fails because of a blocked call to nanosleep.

Change-Id: Iba99163c86e2941a8e821136188ddb3cf4d34a5c
2017-12-08 16:34:02 +01:00
doze doze: add... doze :> 2017-11-24 17:04:42 +01:00
hidl fixes 2017-12-05 18:24:26 +01:00
include include: add @danielhk's audio headers with its' legacy_audio_stream_in, 2017-10-31 16:54:00 +01:00
libshims libshim: cleanup 2017-12-05 19:21:45 +01:00
patches patch: add danielhk's audio fix (thanks to him) 2017-12-05 18:38:53 +01:00
power mtk: add more mtk power_hint cases 2017-11-24 15:28:15 +01:00
seccomp_policy seccomp: Fix policy for ffmpeg 2017-12-08 16:34:02 +01:00
Android.bp fixes 2017-12-05 18:24:26 +01:00
Libshims.mk Add mad shim config logic with 6 flags 2017-12-05 18:55:15 +01:00
README.md readme: add libshim quick-use doc 2017-12-06 14:57:22 +01:00
VendorConfig.mk seccomp: add mediaextractor.policy 2017-12-08 16:26:24 +01:00
VendorProduct.mk Add mad shim config logic with 6 flags 2017-12-05 18:55:15 +01:00
vmtk.xml dt: add a local manifest and a readme 2017-11-21 16:39:38 +01:00

README.md

Pre-Oreo Mediatek common-tree

such repo, much nice, wow!

How to download ?

Download / git clone this repository to :
$android_src/vendor/mediatek
or copy vmtk.xml to :
$android_src/.repo/local_manifests/
then simply repo sync your sources

How to use ?

Include both VendorConfig.mk & VendorProduct.mk in your device tree like so :

  • BoardConfig.mk :
    $(call inherit-product, $(SRC_TARGET_DIR)/vendor/mediatek/VendorConfig.mk)

  • device(_product).mk :
    $(call inherit-product, $(SRC_TARGET_DIR)/vendor/mediatek/VendorProduct.mk)

How to apply the patches ?

Patches located in the patches folder can be applied from the root of your android sources :
. vendor/mediatek/install.sh & . vendor/mediatek/uninstall.sh

How to configure libshim ?

Libshim is divided into bits which will generate LINKER_FORCED_SHIM_LIBS for you, you don't need to export LD_SHIM_LIBS.
The only configuration libshim needs is the following flags :
#LIBSHIM_XLOG_SYMBOLS :=true
#LIBSHIM_SND_SYMBOLS := true
#LIBSHIM_UI_SYMBOLS := true
#LIBSHIM_GUI_SYMBOLS := true
#LIBSHIM_OMX_SYMBOLS := true
#LIBSHIM_AGPS_SYMBOLS := true
(uncomment the flags you need)