blob: 51755f1e0b31f5a60123275db54bc78ad3d5dab9 [file] [log] [blame]
service vendor.power-hal-aidl /vendor/bin/hw/android.hardware.power-service.mediatek-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.mediatek.powerhal.state=*
setprop vendor.mediatek.powerhal.state ""
setprop vendor.mediatek.powerhal.audio ""
setprop vendor.mediatek.powerhal.rendering ""
restart vendor.power-hal-aidl
# Clean up after b/163539793 resolved
on property:vendor.mediatek.powerhal.dalvik.vm.dex2oat-threads=*
setprop dalvik.vm.dex2oat-threads ${vendor.mediatek.powerhal.dalvik.vm.dex2oat-threads}
setprop dalvik.vm.restore-dex2oat-threads ${vendor.mediatek.powerhal.dalvik.vm.dex2oat-threads}
on property:vendor.mediatek.powerhal.dalvik.vm.dex2oat-cpu-set=*
setprop dalvik.vm.dex2oat-cpu-set ${vendor.mediatek.powerhal.dalvik.vm.dex2oat-cpu-set}
setprop dalvik.vm.restore-dex2oat-cpu-set ${vendor.mediatek.powerhal.dalvik.vm.dex2oat-cpu-set}
# Restart powerHAL when debug property set
on property:ro.debuggable=1 && property:vendor.mediatek.powerhal.config.debug=*
restart vendor.power-hal-aidl
on property:persist.vendor.mediatek.powerhal.config.debug=*
setprop vendor.mediatek.powerhal.config.debug ${persist.vendor.mediatek.powerhal.config.debug}