am e1e9c7d8: am b568de03: Build bugreport paths for emulated storage.
* commit 'e1e9c7d87f1253f26e54383958319fd48f1fcc7e':
Build bugreport paths for emulated storage.
diff --git a/bugmailer/bugmailer.sh b/bugmailer/bugmailer.sh
index 8b1b7fe..c467aee 100755
--- a/bugmailer/bugmailer.sh
+++ b/bugmailer/bugmailer.sh
@@ -9,15 +9,16 @@
exit 0
fi
-# Use bugreport-specific paths if defined
-if [ -n "$BUGREPORT_WRITE_PATH" ]; then
- writePath="$BUGREPORT_WRITE_PATH"
+# Build emulated storage paths when appropriate
+# See storage config details at http://source.android.com/tech/storage/
+if [ -n "$EMULATED_STORAGE_SOURCE" ]; then
+ writePath="$EMULATED_STORAGE_SOURCE/0"
+ readPath="$EMULATED_STORAGE_TARGET/0"
else
writePath="$EXTERNAL_STORAGE"
+ readPath="$EXTERNAL_STORAGE"
fi
-readPath="$EXTERNAL_STORAGE"
-
tmpPath="/data/local/tmp"
bugreportPath="bugreports"
screenshotPath="Pictures/Screenshots"