diff --git a/device.mk b/device.mk index 93d4add..564a7ae 100644 --- a/device.mk +++ b/device.mk @@ -459,9 +459,9 @@ PRODUCT_PACKAGES += \ # Soong namespaces PRODUCT_SOONG_NAMESPACES += \ $(LOCAL_PATH) \ + device/itel/S666LN/libaedv \ hardware/mediatek \ hardware/mediatek/libmtkperf_client \ - hardware/mediatek/libaedv \ hardware/google/interfaces \ hardware/google/pixel \ hardware/millennium diff --git a/extract-files.py b/extract-files.py index a5c3740..1b8033b 100755 --- a/extract-files.py +++ b/extract-files.py @@ -21,9 +21,9 @@ from extract_utils.main import ( namespace_imports = [ 'device/itel/S666LN', + 'device/itel/S666LN/libaedv' 'hardware/mediatek', 'hardware/mediatek/libmtkperf_client', - 'hardware/mediatek/libaedv', 'hardware/millennium', ] @@ -120,4 +120,4 @@ module = ExtractUtilsModule( if __name__ == '__main__': utils = ExtractUtils.device(module) - utils.run() \ No newline at end of file + utils.run() diff --git a/libaedv/Android.bp b/libaedv/Android.bp new file mode 100644 index 0000000..80dac3b --- /dev/null +++ b/libaedv/Android.bp @@ -0,0 +1,14 @@ +// +// SPDX-FileCopyrightText: The LineageOS Project +// SPDX-License-Identifier: Apache-2.0 +// + +soong_namespace { +} + +cc_library_shared { + name: "libaedv", + vendor: true, + srcs: ["aee.c"], + shared_libs: ["liblog"], +} diff --git a/libaedv/aee.c b/libaedv/aee.c new file mode 100644 index 0000000..873ec53 --- /dev/null +++ b/libaedv/aee.c @@ -0,0 +1,33 @@ +// +// SPDX-FileCopyrightText: The LineageOS Project +// SPDX-License-Identifier: Apache-2.0 +// + +#define LOG_TAG "libaedv" + +#include + +int aee_switch_ftrace(int status) { + ALOGD("[%s]: status: %d", __func__, status); + return 0; +} + +int aee_system_exception(const char *lib, const char *path, unsigned int options, const char *log_msg) { + ALOGD("[%s]: lib: %s, path: %s, options: %u, log_msg: %s", __func__, lib, path, options, log_msg); + return 0; +} + +int aee_system_warning(const char *lib, const char *path, unsigned int options, const char *log_msg) { + ALOGD("[%s]: lib: %s, path: %s, options: %u, log_msg: %s", __func__, lib, path, options, log_msg); + return 0; +} + +int aee_modem_warning(const char *lib,const char* path,unsigned int options, const char *log_msg, const char *ver) { + ALOGD("[%s]: lib: %s, path: %s, options: %u, log_msg: %s, ver: %s", __func__, lib, path, options, log_msg, ver); + return 0; +} + +int aee_log_msg(const char *lib, const char *path, unsigned int options, const char *log_msg, const char *ver) { + ALOGD("[%s]: lib: %s, path: %s, options: %u, log_msg: %s, ver: %s", __func__, lib, path, options, log_msg, ver); + return 0; +}