From 8796579a5fc20dc60ba9c20574380fe5c19b5c3c Mon Sep 17 00:00:00 2001 From: SaiChand Duppala Date: Wed, 24 Apr 2024 16:11:30 -0700 Subject: [PATCH] Disable dumpstate strict-run flag in gs101 The change disables the dumpstate strict-run flag in gs101 devices, which is enabled by default. Disabling this flag increases the timeout for capturing incident report to 120 seconds, from the default 20 seconds. This is done because 20s isn't enough to capture incident report proto in some cases, especially when device is throttling. Bug: 330400782 Test: Booted a gs101 device with the change. Then manually thermal throttled the device and captured bugreports. In some tests Incident report took a lot more more than 20s, and in all these cases it was succesfully captured. Change-Id: I8c4ee4e4412c517822776a9b10bbdad7da1c1213 --- device.mk | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/device.mk b/device.mk index c8679f36..46a301f1 100644 --- a/device.mk +++ b/device.mk @@ -1129,3 +1129,9 @@ include hardware/google/pixel/HardwareInfo/HardwareInfo.mk # Touch service include device/google/gs-common/touch/twoshay/aidl_gs101.mk include device/google/gs-common/touch/twoshay/twoshay.mk + +# Allow longer timeout for incident report generation in bugreport +# Overriding in /product partition instead of /vendor intentionally, +# since it can't be overridden from /vendor. +PRODUCT_PRODUCT_PROPERTIES += \ + dumpstate.strict_run=false