From 85523e7aa67e0c50cc0e66f81ced720aeaa7b167 Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Wed, 13 Dec 2023 21:13:08 -0300 Subject: Feat: android-push: adb: refresh mediastore (commented) --- android-push | 5 +++++ 1 file changed, 5 insertions(+) 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 -- cgit v1.2.3