From 3ddccdb183aa8b0f83b8f6e4444fcdc1cfd3fb6e Mon Sep 17 00:00:00 2001 From: Todd Poynor Date: Sat, 26 Aug 2017 00:53:06 -0700 Subject: [PATCH] thermalservice: don't register IThermalCallback service This service is only to be registered with IThermal 1.1 HALs via a registration method, not for lookup via hwservicemanager. Bug: 64986538 Bug: 30982366 Test: manual on w Change-Id: I2c14a454dd4446267529f2e1cbf99ff23fbd1737 --- services/thermalservice/thermalserviced.cpp | 6 ------ 1 file changed, 6 deletions(-) diff --git a/services/thermalservice/thermalserviced.cpp b/services/thermalservice/thermalserviced.cpp index b9315b8bc3..8e2726669f 100644 --- a/services/thermalservice/thermalserviced.cpp +++ b/services/thermalservice/thermalserviced.cpp @@ -97,18 +97,12 @@ void ThermalServiceDaemon::getThermalHal() { } void ThermalServiceDaemon::thermalCallbackStartup() { - status_t err; - // HIDL IThermalCallback startup // Need at least 2 threads in thread pool since we wait for dead HAL // to come back on the binder death notification thread and we need // another thread for the incoming service now available call. configureRpcThreadpool(2, false /* callerWillJoin */); mThermalCallback = new ThermalCallback(); - err = mThermalCallback->registerAsService(); - ALOGE_IF(err != OK, "Cannot register %s: %d", - IThermalCallback::descriptor, err); - // Lookup Thermal HAL and register our ThermalCallback. getThermalHal(); } -- 2.11.0