summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeff Sharkey <jsharkey@android.com>2012-09-12 13:15:50 -0700
committerJeff Sharkey <jsharkey@android.com>2012-09-12 13:15:50 -0700
commitb568de03db20f124a458d914eed33cee4630bb81 (patch)
tree2f2e349082a6684d40de13a5aa163d0c9ec7460a
parentcf4e11b4f8ba78de68a06b0ad463397d488df522 (diff)
downloadextras-b568de03db20f124a458d914eed33cee4630bb81.tar.gz
Build bugreport paths for emulated storage.
Bug: 7152673 Change-Id: Iae7b298721d2b6690ce9b57245400702fb5d0c4c
-rwxr-xr-xbugmailer/bugmailer.sh11
1 files changed, 6 insertions, 5 deletions
diff --git a/bugmailer/bugmailer.sh b/bugmailer/bugmailer.sh
index 8b1b7fe6..c467aeea 100755
--- a/bugmailer/bugmailer.sh
+++ b/bugmailer/bugmailer.sh
@@ -9,15 +9,16 @@ if [ "x$(getprop ro.build.type)" = "xuser" -a \
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"