diff --git a/js/src/util/StructuredSpewer.cpp b/js/src/util/StructuredSpewer.cpp index 72f483c6b547..f2fe82ca0f6d 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 46d4daeba1be..ae7c34deb20c 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() {