| | 1 | == OMX on thea (video playback) == |
| | 2 | Steps to make video playback work |
| | 3 | === patch omx_vdec_msm8974.cpp === |
| | 4 | |
| | 5 | patch the file $ANDROID_ROOT/hardware/qcom/media-caf/msm8974/mm-video-v4l2/vidc/vdec/src/omx_vdec_msm8974.cpp according to this commit [https://github.com/guhl/android_hardware_qcom_media/commit/753fd171ea3240cd17195fffd7dd3c6a406bf370] |
| | 6 | |
| | 7 | |
| | 8 | enter the HADK (ubuntu) and build libOmxVdec |
| | 9 | {{{ |
| | 10 | cd $ANDROID_ROOT |
| | 11 | . build/envsetup.sh |
| | 12 | breakfast $DEVICE |
| | 13 | make -j4 libOmxVdec |
| | 14 | }}} |
| | 15 | |
| | 16 | === edit /init.rc === |
| | 17 | edit the file $ANDROID_ROOT/system/core/rootdir/init.rc and preload the libOmxVdec with service minimedia. Make it look like this: |
| | 18 | {{{ |
| | 19 | service minimedia /usr/libexec/droid-hybris/system/bin/minimediaservice |
| | 20 | class main |
| | 21 | user media |
| | 22 | group audio camera |
| | 23 | ioprio rt 4 |
| | 24 | # hack to make recorded video playback work |
| | 25 | setenv LD_PRELOAD /usr/libexec/droid-hybris/system/lib/libOmxVdec.so |
| | 26 | }}} |
| | 27 | |
| | 28 | in HADK build hybris-hal |
| | 29 | {{{ |
| | 30 | cd $ANDROID_ROOT |
| | 31 | . build/envsetup.sh |
| | 32 | breakfast $DEVICE |
| | 33 | make -j4 hybris-hal |
| | 34 | }}} |
| | 35 | |
| | 36 | === pack the hal === |
| | 37 | in SDK |
| | 38 | {{{ |
| | 39 | cd $ANDROID_ROOT |
| | 40 | rpm/dhd/helpers/build_packages.sh -d |
| | 41 | }}} |
| | 42 | |
| | 43 | rebuild image with mic |