]> gitweb.fluxo.info Git - scripts.git/commitdiff
Feat: android-push: adb: refresh mediastore (commented)
authorSilvio Rhatto <rhatto@riseup.net>
Thu, 14 Dec 2023 00:13:08 +0000 (21:13 -0300)
committerSilvio Rhatto <rhatto@riseup.net>
Thu, 14 Dec 2023 00:13:08 +0000 (21:13 -0300)
android-push

index dba8e551da66b16b8a755c1cb3cb9b7e9b7d7aaf..1eafa10f0ad9f4001d073b0cfad690ea80bc811c 100755 (executable)
@@ -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