aboutsummaryrefslogtreecommitdiff
path: root/android-push
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2024-08-20 20:44:34 -0300
committerSilvio Rhatto <rhatto@riseup.net>2024-08-20 20:44:34 -0300
commite851401694daacaf1aba2c87ed557e5dbf00af02 (patch)
treed772b15f3a5ba9e015936f7162f448a7208a4001 /android-push
parentd6a4d78d31ffa57e00a7d5b0a87baa38156cee06 (diff)
downloadscripts-e851401694daacaf1aba2c87ed557e5dbf00af02.tar.gz
scripts-e851401694daacaf1aba2c87ed557e5dbf00af02.tar.bz2
Move scripts to other repositories
Diffstat (limited to 'android-push')
-rwxr-xr-xandroid-push35
1 files changed, 0 insertions, 35 deletions
diff --git a/android-push b/android-push
deleted file mode 100755
index 1eafa10..0000000
--- a/android-push
+++ /dev/null
@@ -1,35 +0,0 @@
-#!/bin/bash
-#
-# Push and pull to android device.
-#
-
-# Parameters
-BASENAME="`basename $0`"
-ORIG="$1"
-DEST="$2"
-ANDROID_BASE="${3:-/storage/emulated/0}"
-
-# Check
-if [ -z "$DEST" ]; then
- echo "Usage: $BASENAME <orig> <dest> [android-base]"
- echo ""
- echo "Examples"
- echo ""
- echo "android-push /mylocal/music/ Music/"
- echo "androis-pull DCIM/Camera /mylocal/camera"
- echo "androis-pull Music /mylocal/music"
- echo "androis-pull Ringtones /mylocal/ringtones $ANDROID_BASE"
- exit 1
-fi
-
-# Run
-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