From 2b6ad1841516f4c859efc656570ff8f3adfd6abb Mon Sep 17 00:00:00 2001 From: Jesse Chan Date: Mon, 29 Jun 2020 12:32:17 +0800 Subject: [PATCH] power-libperfmgr: initialize powerHAL when boot is completed Change-Id: I801b3aba05ef0be14c7af1969ddf9318c05ef64c --- .../android.hardware.power@1.3-service.samsung-libperfmgr.rc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/hidl/power-libperfmgr/android.hardware.power@1.3-service.samsung-libperfmgr.rc b/hidl/power-libperfmgr/android.hardware.power@1.3-service.samsung-libperfmgr.rc index 4b9771ba..c8130835 100644 --- a/hidl/power-libperfmgr/android.hardware.power@1.3-service.samsung-libperfmgr.rc +++ b/hidl/power-libperfmgr/android.hardware.power@1.3-service.samsung-libperfmgr.rc @@ -14,3 +14,7 @@ on property:init.svc.zygote=restarting && property:vendor.powerhal.state=* setprop vendor.powerhal.audio "" setprop vendor.powerhal.rendering "" restart vendor.power-hal-1-3 + +# initialize powerHAL when boot is completed +on property:sys.boot_completed=1 + setprop vendor.powerhal.init 1