mondrianlte: add libshim_ril

This commit is contained in:
nyyu 2023-01-01 21:08:42 +01:00
parent 843732921e
commit e85ba3517a
5 changed files with 47 additions and 1 deletions

View file

@ -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

View file

@ -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)

17
libshims/Android.mk Normal file
View file

@ -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))

View file

@ -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,
}

View file

@ -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);
}