diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2023-12-13 21:13:08 -0300 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2023-12-13 21:13:08 -0300 |
commit | 85523e7aa67e0c50cc0e66f81ced720aeaa7b167 (patch) | |
tree | 0900d7ecbecb70e1ee4e8e4e31998ea89d396f4b | |
parent | fb8ab93632a87880be3d492da2bd2bf5918b8b3f (diff) | |
download | scripts-85523e7aa67e0c50cc0e66f81ced720aeaa7b167.tar.gz scripts-85523e7aa67e0c50cc0e66f81ced720aeaa7b167.tar.bz2 |
Feat: android-push: adb: refresh mediastore (commented)
-rwxr-xr-x | android-push | 5 |
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 |