diff options
author | Alberto97 <albertop2197@gmail.com> | 2017-01-14 13:32:26 +0000 |
---|---|---|
committer | Davide Garberi <dade.garberi@gmail.com> | 2017-12-11 19:32:49 +0100 |
commit | 7a8ffba750c0d799441e679b7b7fb25767fa5dd0 (patch) | |
tree | e69fd9f2aa944723bf2e8e0709e271de16e6ba47 | |
parent | 1cf73d398df6e0a774ef152d2437193fac555802 (diff) |
msm8996-common: libshims: Add IMS shim
Change-Id: I6ea1662d2fa478a460ea107f79f75171bf390d7e
Signed-off-by: Davide Garberi <dade.garberi@gmail.com>
-rw-r--r-- | libshims/Android.mk | 12 | ||||
-rw-r--r-- | libshims/MediaBuffer.c | 19 | ||||
-rwxr-xr-x | msm8996.mk | 4 | ||||
-rwxr-xr-x | rootdir/etc/init.qcom.rc | 2 |
4 files changed, 36 insertions, 1 deletions
diff --git a/libshims/Android.mk b/libshims/Android.mk index 5bf3e5b..5eba3ec 100644 --- a/libshims/Android.mk +++ b/libshims/Android.mk @@ -44,3 +44,15 @@ LOCAL_MODULE_TAGS := optional LOCAL_MULTILIB := 32 include $(BUILD_SHARED_LIBRARY) + +# media buffer shim +include $(CLEAR_VARS) + +LOCAL_SRC_FILES := MediaBuffer.c + +LOCAL_SHARED_LIBRARIES := libstagefright_foundation + +LOCAL_MODULE := libshims_ims +LOCAL_MODULE_TAGS := optional + +include $(BUILD_SHARED_LIBRARY) diff --git a/libshims/MediaBuffer.c b/libshims/MediaBuffer.c new file mode 100644 index 0000000..1ba3f72 --- /dev/null +++ b/libshims/MediaBuffer.c @@ -0,0 +1,19 @@ +/* + * Copyright (C) 2016 The CyanogenMod Project + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +/* TODO: Actually provide implementations for these functions! */ + +void _ZNK7android11MediaBuffer8refcountEv() {} @@ -166,6 +166,10 @@ PRODUCT_COPY_FILES += \ PRODUCT_PACKAGES += \ libsdm-disp-apis +# IMS Shim +PRODUCT_PACKAGES += \ + libshims_ims + # IPC router config PRODUCT_COPY_FILES += \ $(LOCAL_PATH)/configs/sec_config:$(TARGET_COPY_OUT_VENDOR)/etc/sec_config diff --git a/rootdir/etc/init.qcom.rc b/rootdir/etc/init.qcom.rc index 2f4a7d8..5c0910a 100755 --- a/rootdir/etc/init.qcom.rc +++ b/rootdir/etc/init.qcom.rc @@ -38,7 +38,7 @@ on early-init mkdir /dsp 0771 media media on init - export LD_SHIM_LIBS "/system/vendor/lib64/libizat_core.so|libshims_get_process_name.so:/system/vendor/lib/libmmcamera_ppeiscore.so|/system/lib/libshim_camera.so:/system/vendor/lib/hw/camera.vendor.msm8996.so|/system/lib/libshim_camera.so" + export LD_SHIM_LIBS "/system/vendor/lib64/libizat_core.so|libshims_get_process_name.so:/system/vendor/lib/libmmcamera_ppeiscore.so|/system/lib/libshim_camera.so:/system/vendor/lib/hw/camera.vendor.msm8996.so|/system/lib/libshim_camera.so:/system/vendor/lib64/lib-imsvt.so|libshims_ims.so" # Set permissions for persist partition mkdir /persist 0771 system system |