S666LN: aee: Add libaedv

Co-authored-by: Onelots <onelots@onelots.fr>
Signed-off-by: KimelaZX <mmikailrei@gmail.com>
This commit is contained in:
Shirayuki39
2025-12-19 19:35:29 +07:00
committed by KimelaZX
parent 8841cb7cd8
commit 02469540a0
4 changed files with 50 additions and 3 deletions

View File

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

View File

@@ -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()
utils.run()

14
libaedv/Android.bp Normal file
View File

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

33
libaedv/aee.c Normal file
View File

@@ -0,0 +1,33 @@
//
// SPDX-FileCopyrightText: The LineageOS Project
// SPDX-License-Identifier: Apache-2.0
//
#define LOG_TAG "libaedv"
#include <log/log.h>
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;
}