diff --git a/BoardConfig.mk b/BoardConfig.mk index 866fe3f..ada2b95 100644 --- a/BoardConfig.mk +++ b/BoardConfig.mk @@ -19,6 +19,10 @@ include device/samsung/mondrianwifi/BoardConfig.mk # HIDL DEVICE_MANIFEST_FILE += device/samsung/mondrianlte/manifest.xml +# Legacy BLOB Support +TARGET_LD_SHIM_LIBS += \ + /system/vendor/lib/libril-qc-qmi-1.so|libshim_ril.so + # Properties TARGET_SYSTEM_PROP += device/samsung/mondrianlte/system.prop diff --git a/device.mk b/device.mk index 7f9ffe2..4eae096 100644 --- a/device.mk +++ b/device.mk @@ -38,7 +38,8 @@ PRODUCT_PACKAGES += \ PRODUCT_PACKAGES += \ libsecnativefeature \ libcnefeatureconfig \ - librmnetctl + librmnetctl \ + libshim_ril # Get non-open-source specific aspects $(call inherit-product, vendor/samsung/mondrianlte/mondrianlte-vendor.mk) diff --git a/libshims/Android.mk b/libshims/Android.mk new file mode 100644 index 0000000..37483e0 --- /dev/null +++ b/libshims/Android.mk @@ -0,0 +1,17 @@ +# +# Copyright (C) 2017 The LineageOS 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. +# + +include $(call first-makefiles-under,$(call my-dir)) diff --git a/libshims/libshim_ril/Android.bp b/libshims/libshim_ril/Android.bp new file mode 100644 index 0000000..857c7f4 --- /dev/null +++ b/libshims/libshim_ril/Android.bp @@ -0,0 +1,14 @@ +// +// Copyright (C) 2022 The LineageOS Project +// SPDX-License-Identifier: Apache-2.0 +// + +cc_library_shared { + srcs: ["libshim_ril.c"], + shared_libs: [ + "libaudioclient", + ], + name: "libshim_ril", + compile_multilib: "32", + vendor: true, +} diff --git a/libshims/libshim_ril/libshim_ril.c b/libshims/libshim_ril/libshim_ril.c new file mode 100644 index 0000000..fecbe25 --- /dev/null +++ b/libshims/libshim_ril/libshim_ril.c @@ -0,0 +1,10 @@ +// +// Copyright (C) 2022 The LineageOS Project +// SPDX-License-Identifier: Apache-2.0 +// + +void* _ZN7android11AudioSystem16addErrorCallbackEPFviE(void *cb); + +void _ZN7android11AudioSystem16setErrorCallbackEPFviE(void *cb) { + _ZN7android11AudioSystem16addErrorCallbackEPFviE(cb); +}