Merge "Enable gxp dumps in bugreport" into udc-dev

This commit is contained in:
NISCHAL JAIN 2023-04-10 07:29:34 +00:00 committed by Android (Google) Code Review
commit 496b95282b

View File

@ -20,7 +20,8 @@
#define maxGxpDebugDumps 3
int main() {
if(::android::base::GetBoolProperty("vendor.gxp.attach_to_bugreport", false)) {
/* TODO(b/277094681): Set default value to false around device beta milestone. */
if(::android::base::GetBoolProperty("vendor.gxp.attach_to_bugreport", true)) {
std::string outputDir = concatenatePath(BUGREPORT_PACKING_DIR, "gxp_ssrdump");
printf("Creating %s", outputDir.c_str());
if (mkdir(outputDir.c_str(), 0777) == -1) {