aboutsummaryrefslogtreecommitdiff
path: root/android-push
diff options
context:
space:
mode:
Diffstat (limited to 'android-push')
-rwxr-xr-xandroid-push5
1 files changed, 5 insertions, 0 deletions
diff --git a/android-push b/android-push
index dba8e55..1eafa10 100755
--- a/android-push
+++ b/android-push
@@ -27,4 +27,9 @@ if [ "$BASENAME" == "android-pull" ]; then
adb pull $ANDROID_BASE/$ORIG $DEST
else
adb push $ORIG $ANDROID_BASE/$DEST
+
+ # Thanks https://stackoverflow.com/questions/17928576/refresh-android-mediastore-using-adb
+ #adb shell "find $ANDROID_BASE/$DEST -exec am broadcast \
+ #-a android.intent.action.MEDIA_SCANNER_SCAN_FILE \
+ #-d file://{} \\;"
fi