aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2023-12-13 21:13:08 -0300
committerSilvio Rhatto <rhatto@riseup.net>2023-12-13 21:13:08 -0300
commit85523e7aa67e0c50cc0e66f81ced720aeaa7b167 (patch)
tree0900d7ecbecb70e1ee4e8e4e31998ea89d396f4b
parentfb8ab93632a87880be3d492da2bd2bf5918b8b3f (diff)
downloadscripts-85523e7aa67e0c50cc0e66f81ced720aeaa7b167.tar.gz
scripts-85523e7aa67e0c50cc0e66f81ced720aeaa7b167.tar.bz2
Feat: android-push: adb: refresh mediastore (commented)
-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