Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion Android/app/src/main/assets/bugreport.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,14 @@ BUSYBOX="${DROIDSPACE_DIR}/bin/busybox"
LOGS_DIR="${DROIDSPACE_DIR}/Logs"
DATE_TIME="$("${BUSYBOX}" date +"%Y-%m-%d_%H-%M-%S")"
BUGREPORT_DIR="${LOGS_DIR}/bugreport_${DATE_TIME}"
OUTPUT_TARBALL="/sdcard/Droidspaces-bugreport_${DATE_TIME}.tar.gz"
TARBALL="Droidspaces-bugreport_${DATE_TIME}.tar.gz"

# Check if /sdcard is writable
if [ -w /sdcard ]; then
OUTPUT_TARBALL="/sdcard/$TARBALL"
else
OUTPUT_TARBALL="$DROIDSPACE_DIR/$TARBALL"
fi

# We need busybox for reliable cross-device tools (tar, sort, grep, etc.)
if [ ! -f "${BUSYBOX}" ] || [ ! -x "${BUSYBOX}" ]; then
Expand Down
Loading