BT: Modify implementation for command timeout crashdump collection
Wait for crashdump collection in all valid scenarios, even when
the property is not set by the user.
CRs-Fixed: 1090097
Change-Id: Ieb0efe98cfa5efdcd3f5c0d62795bc987c13082d
diff --git a/libbt-vendor/Android.mk b/libbt-vendor/Android.mk
index 3b1ac18..1867883 100644
--- a/libbt-vendor/Android.mk
+++ b/libbt-vendor/Android.mk
@@ -35,6 +35,7 @@
ifneq (,$(filter userdebug eng,$(TARGET_BUILD_VARIANT)))
LOCAL_CFLAGS += -DPANIC_ON_SOC_CRASH
+LOCAL_CFLAGS += -DENABLE_DBG_FLAGS
endif
LOCAL_C_INCLUDES += \
diff --git a/libbt-vendor/src/bt_vendor_qcom.c b/libbt-vendor/src/bt_vendor_qcom.c
index d58df78..2d4d689 100644
--- a/libbt-vendor/src/bt_vendor_qcom.c
+++ b/libbt-vendor/src/bt_vendor_qcom.c
@@ -1438,6 +1438,9 @@
int ret = 0;
char value[PROPERTY_VALUE_MAX] = {'\0'};
bool enabled = false;
+#ifdef ENABLE_DBG_FLAGS
+ enabled = true;
+#endif
ret = property_get("wc_transport.force_special_byte", value, NULL);