From: Silvio Rhatto Date: Thu, 14 Dec 2023 00:13:08 +0000 (-0300) Subject: Feat: android-push: adb: refresh mediastore (commented) X-Git-Url: https://gitweb.fluxo.info/?a=commitdiff_plain;h=85523e7aa67e0c50cc0e66f81ced720aeaa7b167;p=scripts.git Feat: android-push: adb: refresh mediastore (commented) --- 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