From 1203dfec294412e97841066a5b85d4697d7c4ca2 Mon Sep 17 00:00:00 2001 From: Thomas Barber Date: Thu, 5 Dec 2024 12:26:16 +0000 Subject: [PATCH] Updating default spew location for Android --- js/src/util/StructuredSpewer.cpp | 2 +- js/src/util/StructuredSpewer.h | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/js/src/util/StructuredSpewer.cpp b/js/src/util/StructuredSpewer.cpp index 72f483c6b5472..f2fe82ca0f6d0 100644 --- a/js/src/util/StructuredSpewer.cpp +++ b/js/src/util/StructuredSpewer.cpp @@ -31,7 +31,7 @@ const StructuredSpewer::NameArray StructuredSpewer::names_ = { # if defined(_WIN32) # define DEFAULT_SPEW_DIRECTORY "." # elif defined(__ANDROID__) -# define DEFAULT_SPEW_DIRECTORY "/data/local/tmp" +# define DEFAULT_SPEW_DIRECTORY "/sdcard/Download" # else # define DEFAULT_SPEW_DIRECTORY "." # endif diff --git a/js/src/util/StructuredSpewer.h b/js/src/util/StructuredSpewer.h index 46d4daeba1be3..ae7c34deb20c0 100644 --- a/js/src/util/StructuredSpewer.h +++ b/js/src/util/StructuredSpewer.h @@ -126,9 +126,13 @@ class StructuredSpewer { spewingEnabled_(0), json_(mozilla::Nothing()), selectedChannel_() { +#if defined(__ANDROID__) + parseSpewFlags("TaintFlowSpewer,AtStartup"); +#else if (getenv("SPEW")) { parseSpewFlags(getenv("SPEW")); } +#endif } ~StructuredSpewer() {