boot_reason: Add reasons for boot_reason_test.sh
Add "power_on_key" and "power_on_cable" to match heuristics in system/core/bootstat/bootstat.cpp Change-Id: I947026d658c8a385aab7a3ade9efacffb9538d56 Signed-off-by: jiajia tang <tangjiajia@xiaomi.com>
This commit is contained in:
parent
0c1fdc1a09
commit
52f9adf176
|
@ -518,20 +518,20 @@ validate_reason() {
|
||||||
reboot,bootloader | reboot,bootloader,* ) var=${var#reboot,} ; var=${var%,} ;;
|
reboot,bootloader | reboot,bootloader,* ) var=${var#reboot,} ; var=${var%,} ;;
|
||||||
reboot | reboot,?* ) ;;
|
reboot | reboot,?* ) ;;
|
||||||
# Aliases and Heuristics
|
# Aliases and Heuristics
|
||||||
*wdog* | *watchdog* ) var="watchdog" ;;
|
*wdog* | *watchdog* ) var="watchdog" ;;
|
||||||
*powerkey* | *power_key* | *PowerKey* ) var="cold,powerkey" ;;
|
*powerkey* | *power_on_key* | *power_key* | *PowerKey* ) var="cold,powerkey" ;;
|
||||||
*panic* | *kernel_panic* ) var="kernel_panic" ;;
|
*panic* | *kernel_panic* ) var="kernel_panic" ;;
|
||||||
*thermal* ) var="shutdown,thermal" ;;
|
*thermal* ) var="shutdown,thermal" ;;
|
||||||
*s3_wakeup* ) var="warm,s3_wakeup" ;;
|
*s3_wakeup* ) var="warm,s3_wakeup" ;;
|
||||||
*hw_reset* ) var="hard,hw_reset" ;;
|
*hw_reset* ) var="hard,hw_reset" ;;
|
||||||
*usb* ) var="cold,charger" ;;
|
*usb* | *power_on_cable* ) var="cold,charger" ;;
|
||||||
*rtc* ) var="cold,rtc" ;;
|
*rtc* ) var="cold,rtc" ;;
|
||||||
*2sec_reboot* ) var="cold,rtc,2sec" ;;
|
*2sec_reboot* ) var="cold,rtc,2sec" ;;
|
||||||
*wdt_by_pass_pwk* ) var="warm" ;;
|
*wdt_by_pass_pwk* ) var="warm" ;;
|
||||||
wdt ) var="reboot" ;;
|
wdt ) var="reboot" ;;
|
||||||
*tool_by_pass_pwk* ) var="reboot,tool" ;;
|
*tool_by_pass_pwk* ) var="reboot,tool" ;;
|
||||||
*bootloader* ) var="bootloader" ;;
|
*bootloader* ) var="bootloader" ;;
|
||||||
* ) var="reboot" ;;
|
* ) var="reboot" ;;
|
||||||
esac
|
esac
|
||||||
echo ${var}
|
echo ${var}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue