2022-10-24 19:21:53 -07:00
|
|
|
on property:vendor.thermal.link_ready=1
|
|
|
|
mkdir /data/vendor/mitigation 0755 system system
|
|
|
|
chown system system /data/vendor/mitigation
|
|
|
|
start vendor.battery_mitigation
|
|
|
|
|
2023-02-08 21:36:17 +00:00
|
|
|
on property:vendor.thermal.link_ready=1 && property:ro.boot.bootreason=reboot,uvlo,pmic,if && property:sys.boot.reason=reboot,uvlo,pmic,if
|
2022-11-09 16:02:40 -08:00
|
|
|
setprop vendor.brownout_reason "uvlo,pmic,if"
|
2022-10-24 19:21:53 -07:00
|
|
|
|
2023-02-08 21:36:17 +00:00
|
|
|
on property:vendor.thermal.link_ready=1 && property:ro.boot.bootreason=reboot,ocp,pmic,if && property:sys.boot.reason=reboot,ocp,pmic,if
|
2022-11-09 16:02:40 -08:00
|
|
|
setprop vendor.brownout_reason "ocp,pmic,if"
|
2022-10-24 19:21:53 -07:00
|
|
|
|
2023-02-08 21:36:17 +00:00
|
|
|
on property:vendor.thermal.link_ready=1 && property:ro.boot.bootreason=reboot,uvlo,pmic,main && property:sys.boot.reason=reboot,uvlo,pmic,main
|
2022-11-09 16:02:40 -08:00
|
|
|
setprop vendor.brownout_reason "uvlo,pmic,main"
|
2022-10-24 19:21:53 -07:00
|
|
|
|
2023-02-08 21:36:17 +00:00
|
|
|
on property:vendor.thermal.link_ready=1 && property:ro.boot.bootreason=reboot,uvlo,pmic,sub && property:sys.boot.reason=reboot,uvlo,pmic,sub
|
2022-11-09 16:02:40 -08:00
|
|
|
setprop vendor.brownout_reason "uvlo,pmic,sub"
|
2022-10-24 19:21:53 -07:00
|
|
|
|
2023-02-10 13:11:38 -08:00
|
|
|
on property:vendor.thermal.link_ready=1 && property:ro.boot.bootreason=reboot,ocp,BUCK1M && property:sys.boot.reason=reboot,ocp,buck1m
|
2022-11-09 16:02:40 -08:00
|
|
|
setprop vendor.brownout_reason "ocp,buck1m"
|
2022-10-24 19:21:53 -07:00
|
|
|
|
2023-02-10 13:11:38 -08:00
|
|
|
on property:vendor.thermal.link_ready=1 && property:ro.boot.bootreason=reboot,ocp,BUCK2M && property:sys.boot.reason=reboot,ocp,buck2m
|
2022-11-09 16:02:40 -08:00
|
|
|
setprop vendor.brownout_reason "ocp,buck2m"
|
2022-10-24 19:21:53 -07:00
|
|
|
|
2023-02-10 13:11:38 -08:00
|
|
|
on property:vendor.thermal.link_ready=1 && property:ro.boot.bootreason=reboot,ocp,BUCK3M && property:sys.boot.reason=reboot,ocp,buck3m
|
2022-11-09 16:02:40 -08:00
|
|
|
setprop vendor.brownout_reason "ocp,buck3m"
|
2022-10-24 19:21:53 -07:00
|
|
|
|
2023-02-10 13:11:38 -08:00
|
|
|
on property:vendor.thermal.link_ready=1 && property:ro.boot.bootreason=reboot,ocp,BUCK4M && property:sys.boot.reason=reboot,ocp,buck4m
|
2022-11-09 16:02:40 -08:00
|
|
|
setprop vendor.brownout_reason "ocp,buck4m"
|
2022-10-24 19:21:53 -07:00
|
|
|
|
2023-02-10 13:11:38 -08:00
|
|
|
on property:vendor.thermal.link_ready=1 && property:ro.boot.bootreason=reboot,ocp,BUCK5M && property:sys.boot.reason=reboot,ocp,buck5m
|
2022-11-09 16:02:40 -08:00
|
|
|
setprop vendor.brownout_reason "ocp,buck5m"
|
2022-10-24 19:21:53 -07:00
|
|
|
|
2023-02-10 13:11:38 -08:00
|
|
|
on property:vendor.thermal.link_ready=1 && property:ro.boot.bootreason=reboot,ocp,BUCK6M && property:sys.boot.reason=reboot,ocp,buck6m
|
2022-11-09 16:02:40 -08:00
|
|
|
setprop vendor.brownout_reason "ocp,buck6m"
|
2022-10-24 19:21:53 -07:00
|
|
|
|
2023-02-10 13:11:38 -08:00
|
|
|
on property:vendor.thermal.link_ready=1 && property:ro.boot.bootreason=reboot,ocp,BUCK7M && property:sys.boot.reason=reboot,ocp,buck7m
|
2022-11-09 16:02:40 -08:00
|
|
|
setprop vendor.brownout_reason "ocp,buck7m"
|
2022-10-24 19:21:53 -07:00
|
|
|
|
2023-02-10 13:11:38 -08:00
|
|
|
on property:vendor.thermal.link_ready=1 && property:ro.boot.bootreason=reboot,ocp,BUCK8M && property:sys.boot.reason=reboot,ocp,buck8m
|
2022-11-09 16:02:40 -08:00
|
|
|
setprop vendor.brownout_reason "ocp,buck8m"
|
2022-10-24 19:21:53 -07:00
|
|
|
|
2023-02-10 13:11:38 -08:00
|
|
|
on property:vendor.thermal.link_ready=1 && property:ro.boot.bootreason=reboot,ocp,BUCK9M && property:sys.boot.reason=reboot,ocp,buck9m
|
2022-11-09 16:02:40 -08:00
|
|
|
setprop vendor.brownout_reason "ocp,buck9m"
|
2022-10-24 19:21:53 -07:00
|
|
|
|
2023-02-10 13:11:38 -08:00
|
|
|
on property:vendor.thermal.link_ready=1 && property:ro.boot.bootreason=reboot,ocp,BUCK10M && property:sys.boot.reason=reboot,ocp,buck10m
|
2022-11-09 16:02:40 -08:00
|
|
|
setprop vendor.brownout_reason "ocp,buck10m"
|
2022-10-24 19:21:53 -07:00
|
|
|
|
2023-02-10 13:11:38 -08:00
|
|
|
on property:vendor.thermal.link_ready=1 && property:ro.boot.bootreason=reboot,ocp,BUCK1S && property:sys.boot.reason=reboot,ocp,buck1s
|
2022-11-09 16:02:40 -08:00
|
|
|
setprop vendor.brownout_reason "ocp,buck1s"
|
2022-10-24 19:21:53 -07:00
|
|
|
|
2023-02-10 13:11:38 -08:00
|
|
|
on property:vendor.thermal.link_ready=1 && property:ro.boot.bootreason=reboot,ocp,BUCK2S && property:sys.boot.reason=reboot,ocp,buck2s
|
2022-11-09 16:02:40 -08:00
|
|
|
setprop vendor.brownout_reason "ocp,buck2s"
|
2022-10-24 19:21:53 -07:00
|
|
|
|
2023-02-10 13:11:38 -08:00
|
|
|
on property:vendor.thermal.link_ready=1 && property:ro.boot.bootreason=reboot,ocp,BUCK3S && property:sys.boot.reason=reboot,ocp,buck3s
|
2022-11-09 16:02:40 -08:00
|
|
|
setprop vendor.brownout_reason "ocp,buck3s"
|
2022-10-24 19:21:53 -07:00
|
|
|
|
2023-02-10 13:11:38 -08:00
|
|
|
on property:vendor.thermal.link_ready=1 && property:ro.boot.bootreason=reboot,ocp,BUCK4S && property:sys.boot.reason=reboot,ocp,buck4s
|
2022-11-09 16:02:40 -08:00
|
|
|
setprop vendor.brownout_reason "ocp,buck4s"
|
2022-10-24 19:21:53 -07:00
|
|
|
|
2023-02-10 13:11:38 -08:00
|
|
|
on property:vendor.thermal.link_ready=1 && property:ro.boot.bootreason=reboot,ocp,BUCK5S && property:sys.boot.reason=reboot,ocp,buck5s
|
2022-11-09 16:02:40 -08:00
|
|
|
setprop vendor.brownout_reason "ocp,buck5s"
|
2022-10-24 19:21:53 -07:00
|
|
|
|
2023-02-10 13:11:38 -08:00
|
|
|
on property:vendor.thermal.link_ready=1 && property:ro.boot.bootreason=reboot,ocp,BUCK6S && property:sys.boot.reason=reboot,ocp,buck6s
|
2022-11-09 16:02:40 -08:00
|
|
|
setprop vendor.brownout_reason "ocp,buck6s"
|
2022-10-24 19:21:53 -07:00
|
|
|
|
2023-02-10 13:11:38 -08:00
|
|
|
on property:vendor.thermal.link_ready=1 && property:ro.boot.bootreason=reboot,ocp,BUCK7S && property:sys.boot.reason=reboot,ocp,buck7s
|
2022-11-09 16:02:40 -08:00
|
|
|
setprop vendor.brownout_reason "ocp,buck7s"
|
2022-10-24 19:21:53 -07:00
|
|
|
|
2023-02-10 13:11:38 -08:00
|
|
|
on property:vendor.thermal.link_ready=1 && property:ro.boot.bootreason=reboot,ocp,BUCK8S && property:sys.boot.reason=reboot,ocp,buck8s
|
2022-11-09 16:02:40 -08:00
|
|
|
setprop vendor.brownout_reason "ocp,buck8s"
|
2022-10-24 19:21:53 -07:00
|
|
|
|
2023-02-10 13:11:38 -08:00
|
|
|
on property:vendor.thermal.link_ready=1 && property:ro.boot.bootreason=reboot,ocp,BUCK9S && property:sys.boot.reason=reboot,ocp,buck9s
|
2022-11-09 16:02:40 -08:00
|
|
|
setprop vendor.brownout_reason "ocp,buck9s"
|
2022-10-24 19:21:53 -07:00
|
|
|
|
2023-02-10 13:11:38 -08:00
|
|
|
on property:vendor.thermal.link_ready=1 && property:ro.boot.bootreason=reboot,ocp,BUCK10S && property:sys.boot.reason=reboot,ocp,buck10s
|
2022-11-09 16:02:40 -08:00
|
|
|
setprop vendor.brownout_reason "ocp,buck10s"
|
2022-10-24 19:21:53 -07:00
|
|
|
|
2023-02-10 13:11:38 -08:00
|
|
|
on property:vendor.thermal.link_ready=1 && property:ro.boot.bootreason=reboot,ocp,BUCKDS && property:sys.boot.reason=reboot,ocp,buckds
|
2022-11-09 16:02:40 -08:00
|
|
|
setprop vendor.brownout_reason "ocp,buckds"
|
2022-10-24 19:21:53 -07:00
|
|
|
|
2023-02-10 13:11:38 -08:00
|
|
|
on property:vendor.thermal.link_ready=1 && property:ro.boot.bootreason=reboot,ocp,BUCKAS && property:sys.boot.reason=reboot,ocp,buckas
|
2022-11-09 16:02:40 -08:00
|
|
|
setprop vendor.brownout_reason "ocp,buckas"
|
2022-10-24 19:21:53 -07:00
|
|
|
|
2023-02-10 13:11:38 -08:00
|
|
|
on property:vendor.thermal.link_ready=1 && property:ro.boot.bootreason=reboot,ocp,BUCKCS && property:sys.boot.reason=reboot,ocp,buckcs
|
2022-11-09 16:02:40 -08:00
|
|
|
setprop vendor.brownout_reason "ocp,buckcs"
|
2022-10-24 19:21:53 -07:00
|
|
|
|
2023-02-10 13:11:38 -08:00
|
|
|
on property:vendor.thermal.link_ready=1 && property:ro.boot.bootreason=reboot,ocp,BUCKBS && property:sys.boot.reason=reboot,ocp,buckbs
|
2022-11-09 16:02:40 -08:00
|
|
|
setprop vendor.brownout_reason "ocp,buckbs"
|
2022-10-24 19:21:53 -07:00
|
|
|
|
2023-01-27 15:34:38 -08:00
|
|
|
on property:vendor.brownout.br.feasible=1
|
|
|
|
chown system system data/vendor/mitigation/lastmeal.txt
|
|
|
|
|
2022-10-24 19:21:53 -07:00
|
|
|
service vendor.battery_mitigation /vendor/bin/hw/battery_mitigation
|
|
|
|
user system
|
|
|
|
group system
|
|
|
|
capabilities WAKE_ALARM BLOCK_SUSPEND
|