From bbc692c6d95a87a278c0a46f30e4b86ddfc95f71 Mon Sep 17 00:00:00 2001 From: Todd Poynor Date: Wed, 12 Jul 2017 18:12:52 -0700 Subject: [PATCH] PowerUI access to thermalservice Allow PowerUI / platform_app to use thermalservice for receiving notifications of thermal events. Bug: 66698613 Test: PowerNotificationWarningsTest, PowerUITest, manual: marlin and with artificially low temperature threshold and logcat debugging messages Change-Id: I5428bd5f99424f83ef72d981afaf769bdcd03629 Merged-In: I5428bd5f99424f83ef72d981afaf769bdcd03629 --- private/platform_app.te | 1 + public/thermalserviced.te | 2 ++ 2 files changed, 3 insertions(+) diff --git a/private/platform_app.te b/private/platform_app.te index 4d937bedf..884c4364b 100644 --- a/private/platform_app.te +++ b/private/platform_app.te @@ -54,6 +54,7 @@ allow platform_app mediadrmserver_service:service_manager find; allow platform_app persistent_data_block_service:service_manager find; allow platform_app radio_service:service_manager find; allow platform_app surfaceflinger_service:service_manager find; +allow platform_app thermal_service:service_manager find; allow platform_app timezone_service:service_manager find; allow platform_app app_api_service:service_manager find; allow platform_app system_api_service:service_manager find; diff --git a/public/thermalserviced.te b/public/thermalserviced.te index 5b6025cea..00e007132 100644 --- a/public/thermalserviced.te +++ b/public/thermalserviced.te @@ -9,3 +9,5 @@ add_service(thermalserviced, thermal_service) hwbinder_use(thermalserviced) hal_client_domain(thermalserviced, hal_thermal) add_hwservice(thermalserviced, thermalcallback_hwservice) + +binder_call(thermalserviced, platform_app)