From 949107830044b8eaa58b7fca57bd0e0737646c1d Mon Sep 17 00:00:00 2001 From: Suren Baghdasaryan Date: Fri, 25 Jan 2019 05:32:52 +0000 Subject: [PATCH] DO NOT MERGE: Revert "Revert "Add dependencies on libprocessgroup for sched_policy users"" This reverts commit 1bef8c550c6c9118969a93f14d9c5933cb7b2811. Reason for revert: AOSP is fixed with new vendor image Change-Id: Ib341ac80e2f88c13a7815a490ea2d9422ebdf55f Signed-off-by: Suren Baghdasaryan --- healthd/Android.mk | 1 + libprocessgroup/Android.bp | 5 ++++- libutils/Android.bp | 3 +++ libutils/Threads.cpp | 2 +- lmkd/Android.bp | 1 + logcat/Android.bp | 2 +- logcat/logcat.cpp | 2 +- logd/Android.bp | 1 + logd/main.cpp | 2 +- 9 files changed, 14 insertions(+), 5 deletions(-) diff --git a/healthd/Android.mk b/healthd/Android.mk index 80bf84ae8..2127b9603 100644 --- a/healthd/Android.mk +++ b/healthd/Android.mk @@ -109,6 +109,7 @@ CHARGER_STATIC_LIBRARIES := \ libbase \ libutils \ libcutils \ + libprocessgroup \ liblog \ libm \ libc \ diff --git a/libprocessgroup/Android.bp b/libprocessgroup/Android.bp index 21d453ef6..d04a79a66 100644 --- a/libprocessgroup/Android.bp +++ b/libprocessgroup/Android.bp @@ -27,7 +27,10 @@ cc_library { enabled: true, support_system_process: true, }, - shared_libs: ["libbase"], + shared_libs: [ + "libbase", + "liblog", + ], // for cutils/android_filesystem_config.h header_libs: [ "libcutils_headers", diff --git a/libutils/Android.bp b/libutils/Android.bp index 3e8417eb9..fb7ca3254 100644 --- a/libutils/Android.bp +++ b/libutils/Android.bp @@ -22,11 +22,13 @@ cc_library_headers { "liblog_headers", "libsystem_headers", "libcutils_headers", + "libprocessgroup_headers", ], export_header_lib_headers: [ "liblog_headers", "libsystem_headers", "libcutils_headers", + "libprocessgroup_headers", ], export_include_dirs: ["include"], @@ -82,6 +84,7 @@ cc_defaults { shared_libs: [ "libcutils", + "libprocessgroup", "libdl", "libvndksupport", ], diff --git a/libutils/Threads.cpp b/libutils/Threads.cpp index 64bc4025d..31ca1383e 100644 --- a/libutils/Threads.cpp +++ b/libutils/Threads.cpp @@ -36,7 +36,7 @@ #include -#include +#include #if defined(__ANDROID__) # define __android_unused diff --git a/lmkd/Android.bp b/lmkd/Android.bp index 903d0e243..f9ed57cce 100644 --- a/lmkd/Android.bp +++ b/lmkd/Android.bp @@ -5,6 +5,7 @@ cc_binary { shared_libs: [ "libcutils", "liblog", + "libprocessgroup", ], static_libs: [ "libstatslogc", diff --git a/logcat/Android.bp b/logcat/Android.bp index 0543aba73..5030b1563 100644 --- a/logcat/Android.bp +++ b/logcat/Android.bp @@ -24,8 +24,8 @@ cc_defaults { ], shared_libs: [ "libbase", - "libcutils", "libpcrecpp", + "libprocessgroup", ], static_libs: ["liblog"], logtags: ["event.logtags"], diff --git a/logcat/logcat.cpp b/logcat/logcat.cpp index 87bc6ae84..15e07feef 100644 --- a/logcat/logcat.cpp +++ b/logcat/logcat.cpp @@ -49,11 +49,11 @@ #include #include #include -#include #include #include #include #include +#include #include #include diff --git a/logd/Android.bp b/logd/Android.bp index 3abfc2171..bdbdf12e4 100644 --- a/logd/Android.bp +++ b/logd/Android.bp @@ -73,6 +73,7 @@ cc_binary { "libcutils", "libbase", "libpackagelistparser", + "libprocessgroup", "libcap", ], diff --git a/logd/main.cpp b/logd/main.cpp index 8c38d9aa3..fd3cdf877 100644 --- a/logd/main.cpp +++ b/logd/main.cpp @@ -38,12 +38,12 @@ #include #include #include -#include #include #include #include #include #include +#include #include #include "CommandListener.h"