-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtransfert_android_pc
More file actions
executable file
·36 lines (27 loc) · 1.15 KB
/
transfert_android_pc
File metadata and controls
executable file
·36 lines (27 loc) · 1.15 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
#!/usr/bin/env bash
echo "Transfer OpenCamera directory"
open_camera="/storage/emulated/0/DCIM/OpenCamera"
adb pull "$open_camera" ~/téléchargements/ && adb shell rm -rR "$open_camera"
echo "Done"
echo "Transfer Pictures directory"
pictures="/storage/emulated/0/Pictures"
adb pull "$pictures" ~/téléchargements/ && adb shell rm -rR "$pictures"
echo "Done"
echo "Transfer Movies directory"
movies="/storage/emulated/0/Movies"
adb pull "$movies" ~/téléchargements/ && adb shell rm -rR "$movies"
echo "Done"
echo "Transfer Waistline backups"
waistline="/storage/emulated/0/Documents/Waistline"
adb pull "$waistline" ~/téléchargements/
echo "Done"
whatsapp="/storage/emulated/0/Android/media/com.whatsapp/WhatsApp/Media"
echo "Transfer WhatsApp Images directory"
adb pull "$whatsapp/WhatsApp Images/" ~/téléchargements/ && adb shell rm -rR "$whatsapp/WhatsApp\ Images/"
echo "Done"
echo "Transfer WhatsApp Video directory"
adb pull "$whatsapp/WhatsApp Video/" ~/téléchargements/ && adb shell rm -rR "$whatsapp/WhatsApp\ Video/"
echo "Done"
echo "Transfer WhatsApp Documents directory"
adb pull "$whatsapp/WhatsApp Documents/" ~/téléchargements/
echo "Done"