android_device_xiaomi_sdm66.../power-libperfmgr/aidl/android.hardware.power-service.xiaomi_sdm660-libperfmgr.rc
Kyle Lin 7a0e578ef1
sdm660-common: power-libperfmgr: let power hal start early
Bug: 162791243
Bug: 72471476
Test: build and using emul temp/running burn8 to verify it
Change-Id: I5ca475be8b73b940e4858634595a7918ae92f6ef
(cherry picked from commit 35e110fe669a7d2996ce503d7e31204554f972e3)

Signed-off-by: Chenyang Zhong <zhongcy95@gmail.com>
2021-06-07 09:21:11 +06:00

18 lines
549 B
Text

service vendor.power-hal-aidl /vendor/bin/hw/android.hardware.power-service.xiaomi_sdm660-libperfmgr
class hal
user root
group system
priority -20
on late-fs
start vendor.power-hal-aidl
# restart powerHAL when framework died
on property:init.svc.zygote=restarting && property:vendor.powerhal.state=*
setprop vendor.powerhal.state ""
setprop vendor.powerhal.rendering ""
restart vendor.power-hal-aidl
# initialize powerHAL when boot is completed
on property:sys.boot_completed=1
setprop vendor.powerhal.init 1