diff --git a/adb/Android.bp b/adb/Android.bp index bd1f12414..3e8da8ad6 100644 --- a/adb/Android.bp +++ b/adb/Android.bp @@ -217,6 +217,7 @@ cc_test_host { "libcutils", "libcrypto_utils", "libcrypto", + "liblog", "libmdnssd", "libdiagnose_usb", "libusb", diff --git a/base/include/android-base/logging.h b/base/include/android-base/logging.h index ab6476c59..f4a4c5d9a 100644 --- a/base/include/android-base/logging.h +++ b/base/include/android-base/logging.h @@ -116,7 +116,6 @@ void DefaultAborter(const char* abort_message); std::string GetDefaultTag(); void SetDefaultTag(const std::string& tag); -#ifdef __ANDROID__ // We expose this even though it is the default because a user that wants to // override the default log buffer will have to construct this themselves. class LogdLogger { @@ -129,7 +128,6 @@ class LogdLogger { private: LogId default_log_id_; }; -#endif // Configure logging based on ANDROID_LOG_TAGS environment variable. // We need to parse a string that looks like diff --git a/base/logging.cpp b/base/logging.cpp index f89168c0f..643cdf00b 100644 --- a/base/logging.cpp +++ b/base/logging.cpp @@ -45,8 +45,8 @@ #include // Headers for LogMessage::LogLine. -#ifdef __ANDROID__ #include +#ifdef __ANDROID__ #include #else #include @@ -242,7 +242,6 @@ void DefaultAborter(const char* abort_message) { } -#ifdef __ANDROID__ LogdLogger::LogdLogger(LogId default_log_id) : default_log_id_(default_log_id) { } @@ -276,7 +275,6 @@ void LogdLogger::operator()(LogId id, LogSeverity severity, const char* tag, __android_log_buf_print(lg_id, priority, tag, "%s", message); } } -#endif void InitLogging(char* argv[], LogFunction&& logger, AbortFunction&& aborter) { SetLogger(std::forward(logger)); diff --git a/fs_mgr/libvbmeta/Android.bp b/fs_mgr/libvbmeta/Android.bp index 937e0f31f..bceababea 100644 --- a/fs_mgr/libvbmeta/Android.bp +++ b/fs_mgr/libvbmeta/Android.bp @@ -37,6 +37,7 @@ cc_library { cc_test_host { name: "libvbmeta_test", static_libs: [ + "liblog", "libsparse", "libvbmeta", "libz", diff --git a/property_service/property_info_checker/Android.bp b/property_service/property_info_checker/Android.bp index 7d6619967..65e660a21 100644 --- a/property_service/property_info_checker/Android.bp +++ b/property_service/property_info_checker/Android.bp @@ -7,6 +7,7 @@ cc_binary { "libpropertyinfoserializer", "libpropertyinfoparser", "libbase", + "liblog", "libsepol", ], srcs: ["property_info_checker.cpp"],