battery_mitigation: Add BrownoutDetection app [DO NOT MERGE]
This app files bugreport for user-debug build with reboot reason = ocp or uvlo. Removed the dependency on BetterBug. Bug: 237287659 Test: Ensure bugreport is generated under user-debug build with reboot reason = ocp or uvlo. Signed-off-by: George Lee <geolee@google.com> Change-Id: I267f077e9c6c856b038b008397c0b465d209d9c3
This commit is contained in:
parent
31883f3edc
commit
d0d71a7ce8
2 changed files with 30 additions and 29 deletions
|
@ -4,88 +4,88 @@ on property:vendor.thermal.link_ready=1
|
||||||
start vendor.battery_mitigation
|
start vendor.battery_mitigation
|
||||||
|
|
||||||
on property:ro.boot.bootreason=reboot,uvlo,pmic,if
|
on property:ro.boot.bootreason=reboot,uvlo,pmic,if
|
||||||
setprop vendor.startup_bugreport_requested 1
|
setprop vendor.brownout_reason "uvlo,pmic,if"
|
||||||
|
|
||||||
on property:ro.boot.bootreason=reboot,ocp,pmic,if
|
on property:ro.boot.bootreason=reboot,ocp,pmic,if
|
||||||
setprop vendor.startup_bugreport_requested 1
|
setprop vendor.brownout_reason "ocp,pmic,if"
|
||||||
|
|
||||||
on property:ro.boot.bootreason=reboot,uvlo,pmic,main
|
on property:ro.boot.bootreason=reboot,uvlo,pmic,main
|
||||||
setprop vendor.startup_bugreport_requested 1
|
setprop vendor.brownout_reason "uvlo,pmic,main"
|
||||||
|
|
||||||
on property:ro.boot.bootreason=reboot,uvlo,pmic,sub
|
on property:ro.boot.bootreason=reboot,uvlo,pmic,sub
|
||||||
setprop vendor.startup_bugreport_requested 1
|
setprop vendor.brownout_reason "uvlo,pmic,sub"
|
||||||
|
|
||||||
on property:ro.boot.bootreason=reboot,ocp,buck1m
|
on property:ro.boot.bootreason=reboot,ocp,buck1m
|
||||||
setprop vendor.startup_bugreport_requested 1
|
setprop vendor.brownout_reason "ocp,buck1m"
|
||||||
|
|
||||||
on property:ro.boot.bootreason=reboot,ocp,buck2m
|
on property:ro.boot.bootreason=reboot,ocp,buck2m
|
||||||
setprop vendor.startup_bugreport_requested 1
|
setprop vendor.brownout_reason "ocp,buck2m"
|
||||||
|
|
||||||
on property:ro.boot.bootreason=reboot,ocp,buck3m
|
on property:ro.boot.bootreason=reboot,ocp,buck3m
|
||||||
setprop vendor.startup_bugreport_requested 1
|
setprop vendor.brownout_reason "ocp,buck3m"
|
||||||
|
|
||||||
on property:ro.boot.bootreason=reboot,ocp,buck4m
|
on property:ro.boot.bootreason=reboot,ocp,buck4m
|
||||||
setprop vendor.startup_bugreport_requested 1
|
setprop vendor.brownout_reason "ocp,buck4m"
|
||||||
|
|
||||||
on property:ro.boot.bootreason=reboot,ocp,buck5m
|
on property:ro.boot.bootreason=reboot,ocp,buck5m
|
||||||
setprop vendor.startup_bugreport_requested 1
|
setprop vendor.brownout_reason "ocp,buck5m"
|
||||||
|
|
||||||
on property:ro.boot.bootreason=reboot,ocp,buck6m
|
on property:ro.boot.bootreason=reboot,ocp,buck6m
|
||||||
setprop vendor.startup_bugreport_requested 1
|
setprop vendor.brownout_reason "ocp,buck6m"
|
||||||
|
|
||||||
on property:ro.boot.bootreason=reboot,ocp,buck7m
|
on property:ro.boot.bootreason=reboot,ocp,buck7m
|
||||||
setprop vendor.startup_bugreport_requested 1
|
setprop vendor.brownout_reason "ocp,buck7m"
|
||||||
|
|
||||||
on property:ro.boot.bootreason=reboot,ocp,buck8m
|
on property:ro.boot.bootreason=reboot,ocp,buck8m
|
||||||
setprop vendor.startup_bugreport_requested 1
|
setprop vendor.brownout_reason "ocp,buck8m"
|
||||||
|
|
||||||
on property:ro.boot.bootreason=reboot,ocp,buck9m
|
on property:ro.boot.bootreason=reboot,ocp,buck9m
|
||||||
setprop vendor.startup_bugreport_requested 1
|
setprop vendor.brownout_reason "ocp,buck9m"
|
||||||
|
|
||||||
on property:ro.boot.bootreason=reboot,ocp,buck10m
|
on property:ro.boot.bootreason=reboot,ocp,buck10m
|
||||||
setprop vendor.startup_bugreport_requested 1
|
setprop vendor.brownout_reason "ocp,buck10m"
|
||||||
|
|
||||||
on property:ro.boot.bootreason=reboot,ocp,buck1s
|
on property:ro.boot.bootreason=reboot,ocp,buck1s
|
||||||
setprop vendor.startup_bugreport_requested 1
|
setprop vendor.brownout_reason "ocp,buck1s"
|
||||||
|
|
||||||
on property:ro.boot.bootreason=reboot,ocp,buck2s
|
on property:ro.boot.bootreason=reboot,ocp,buck2s
|
||||||
setprop vendor.startup_bugreport_requested 1
|
setprop vendor.brownout_reason "ocp,buck2s"
|
||||||
|
|
||||||
on property:ro.boot.bootreason=reboot,ocp,buck3s
|
on property:ro.boot.bootreason=reboot,ocp,buck3s
|
||||||
setprop vendor.startup_bugreport_requested 1
|
setprop vendor.brownout_reason "ocp,buck3s"
|
||||||
|
|
||||||
on property:ro.boot.bootreason=reboot,ocp,buck4s
|
on property:ro.boot.bootreason=reboot,ocp,buck4s
|
||||||
setprop vendor.startup_bugreport_requested 1
|
setprop vendor.brownout_reason "ocp,buck4s"
|
||||||
|
|
||||||
on property:ro.boot.bootreason=reboot,ocp,buck5s
|
on property:ro.boot.bootreason=reboot,ocp,buck5s
|
||||||
setprop vendor.startup_bugreport_requested 1
|
setprop vendor.brownout_reason "ocp,buck5s"
|
||||||
|
|
||||||
on property:ro.boot.bootreason=reboot,ocp,buck6s
|
on property:ro.boot.bootreason=reboot,ocp,buck6s
|
||||||
setprop vendor.startup_bugreport_requested 1
|
setprop vendor.brownout_reason "ocp,buck6s"
|
||||||
|
|
||||||
on property:ro.boot.bootreason=reboot,ocp,buck7s
|
on property:ro.boot.bootreason=reboot,ocp,buck7s
|
||||||
setprop vendor.startup_bugreport_requested 1
|
setprop vendor.brownout_reason "ocp,buck7s"
|
||||||
|
|
||||||
on property:ro.boot.bootreason=reboot,ocp,buck8s
|
on property:ro.boot.bootreason=reboot,ocp,buck8s
|
||||||
setprop vendor.startup_bugreport_requested 1
|
setprop vendor.brownout_reason "ocp,buck8s"
|
||||||
|
|
||||||
on property:ro.boot.bootreason=reboot,ocp,buck9s
|
on property:ro.boot.bootreason=reboot,ocp,buck9s
|
||||||
setprop vendor.startup_bugreport_requested 1
|
setprop vendor.brownout_reason "ocp,buck9s"
|
||||||
|
|
||||||
on property:ro.boot.bootreason=reboot,ocp,buck10s
|
on property:ro.boot.bootreason=reboot,ocp,buck10s
|
||||||
setprop vendor.startup_bugreport_requested 1
|
setprop vendor.brownout_reason "ocp,buck10s"
|
||||||
|
|
||||||
on property:ro.boot.bootreason=reboot,ocp,buckds
|
on property:ro.boot.bootreason=reboot,ocp,buckds
|
||||||
setprop vendor.startup_bugreport_requested 1
|
setprop vendor.brownout_reason "ocp,buckds"
|
||||||
|
|
||||||
on property:ro.boot.bootreason=reboot,ocp,buckas
|
on property:ro.boot.bootreason=reboot,ocp,buckas
|
||||||
setprop vendor.startup_bugreport_requested 1
|
setprop vendor.brownout_reason "ocp,buckas"
|
||||||
|
|
||||||
on property:ro.boot.bootreason=reboot,ocp,buckcs
|
on property:ro.boot.bootreason=reboot,ocp,buckcs
|
||||||
setprop vendor.startup_bugreport_requested 1
|
setprop vendor.brownout_reason "ocp,buckcs"
|
||||||
|
|
||||||
on property:ro.boot.bootreason=reboot,ocp,buckbs
|
on property:ro.boot.bootreason=reboot,ocp,buckbs
|
||||||
setprop vendor.startup_bugreport_requested 1
|
setprop vendor.brownout_reason "ocp,buckbs"
|
||||||
|
|
||||||
service vendor.battery_mitigation /vendor/bin/hw/battery_mitigation
|
service vendor.battery_mitigation /vendor/bin/hw/battery_mitigation
|
||||||
user system
|
user system
|
||||||
|
|
|
@ -551,7 +551,8 @@ PRODUCT_PACKAGES += \
|
||||||
|
|
||||||
# Battery Mitigation
|
# Battery Mitigation
|
||||||
PRODUCT_PACKAGES += \
|
PRODUCT_PACKAGES += \
|
||||||
battery_mitigation
|
battery_mitigation \
|
||||||
|
BrownoutDetection
|
||||||
|
|
||||||
PRODUCT_PACKAGES_DEBUG += \
|
PRODUCT_PACKAGES_DEBUG += \
|
||||||
sg_write_buffer \
|
sg_write_buffer \
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue