power-libperfmgr: initialize powerHAL when boot is completed
authorJesse Chan <jc@lineageos.org>
Mon, 29 Jun 2020 04:32:17 +0000 (12:32 +0800)
committerAndreas Schneider <asn@cryptomilk.org>
Thu, 2 Jul 2020 07:22:55 +0000 (09:22 +0200)
Change-Id: I801b3aba05ef0be14c7af1969ddf9318c05ef64c

hidl/power-libperfmgr/android.hardware.power@1.3-service.samsung-libperfmgr.rc

index 4b9771baa9ec4c700ffd54b9184cb94ee8812c93..c813083567884fb1296d20ff44f9d41481c77616 100644 (file)
@@ -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