g_it/mobisync
Archived
1
0
Fork 0

Deleted some superfluous files

This commit is contained in:
g 2020-09-12 21:01:41 +02:00
commit 62e490d5ba
6 changed files with 9 additions and 4 deletions

View file

@ -49,7 +49,7 @@ printf '%*s\n' "${COLUMNS:-$(tput cols)}" '' | tr ' ' - >> $LOG # Prints line
} }
# Writes the header for the log file: Program, Version number, Date and Line. # Writes the header for the log file: Program, Version number, Date and Line.
{ echo "mobisync 11.2"; echo "Log: " `date`; line; } > $LOG { echo "mobisync 11.2.1"; echo "Log: " `date`; line; } > $LOG
# Syncing images and video on device to the Downloads folder and sync the wallpaper on computer. # Syncing images and video on device to the Downloads folder and sync the wallpaper on computer.
{ adb shell find "/sdcard/DCIM/Camera/" -iname "*.mp4" | tr -d '\015' | while read line; do adb pull "$line" $DOWNLOADS; done; adb shell find "/sdcard/DCIM/Camera/" -iname "*.jpg" | tr -d '\015' | while read line; do adb pull "$line" $DOWNLOADS; done; adb shell find "/sdcard/DCIM/" -iname "*.jpg" | tr -d '\015' | while read line; do adb pull "$line" $DOWNLOADS; done; adb shell find "/sdcard/Pictures/" -iname "*.jpg" | tr -d '\015' | while read line; do adb pull "$line" $DOWNLOADS; done; } >> $LOG { adb shell find "/sdcard/DCIM/Camera/" -iname "*.mp4" | tr -d '\015' | while read line; do adb pull "$line" $DOWNLOADS; done; adb shell find "/sdcard/DCIM/Camera/" -iname "*.jpg" | tr -d '\015' | while read line; do adb pull "$line" $DOWNLOADS; done; adb shell find "/sdcard/DCIM/" -iname "*.jpg" | tr -d '\015' | while read line; do adb pull "$line" $DOWNLOADS; done; adb shell find "/sdcard/Pictures/" -iname "*.jpg" | tr -d '\015' | while read line; do adb pull "$line" $DOWNLOADS; done; } >> $LOG

Binary file not shown.

Binary file not shown.

Before

Width:  |  Height:  |  Size: 271 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 92 KiB

View file

@ -1,14 +1,19 @@
# mobisync # mobisync
This script syncs an Android with a Mac using adb and adb-sync. You will need to edit the script to meet your own needs. [![License: MIT](https://img.shields.io/badge/License-MIT-red.svg)](https://opensource.org/licenses/MIT)
![mobisync-logo](https://gugulet.hu/site/wp-content/uploads/mobisync-logo-1200x600-1.png)
This script syncs an Android with a Mac using adb and adb-sync. You will need to edit the script to meet your own needs. You will need to enable 'USB Debugging' mode in Developer options on your Android in order for this to work.
## Dependencies ## Dependencies
**adb** **adb**
*brew install android-platform-tools* _brew install android-platform-tools_
**adb-sync** **adb-sync**
*git clone https://github.com/google/adb-sync.git* _git clone https://github.com/google/adb-sync.git_
## Note ## Note
Some knowledge of adb and the Android file system is required. Runs on macOS. Some knowledge of adb and the Android file system is required. Runs on macOS.