thermalservice: add HIDL ThermalCallback implementation
The IThermalCallback implementation in thermalserviced enables vendor
thermal management code to send thermal events to ThermalService.
Test: manual: marlin with modified thermal-engine.conf
Bug: 30982366
Change-Id: Ic566bc51aebcd03163f8909f846ee4f7025ed472
diff --git a/services/thermalservice/Android.bp b/services/thermalservice/Android.bp
index 02268b7..d754560 100644
--- a/services/thermalservice/Android.bp
+++ b/services/thermalservice/Android.bp
@@ -1,3 +1,7 @@
+subdirs = [
+ "libthermalcallback"
+]
+
cc_library {
name: "libthermalservice",
@@ -33,10 +37,17 @@
"thermalserviced.cpp",
],
+ include_dirs: ["frameworks/native"],
+
shared_libs: [
"libthermalservice",
"libbinder",
"libutils",
+ "libthermalcallback",
+ "android.hardware.thermal@1.1",
+ "libhidlbase",
+ "libhidltransport",
+ "liblog",
],
cflags: [