Allow access to phone date (#462)

Sometimes android phones ask for permission to allow access to phone data
This commit is contained in:
mhdzli 2020-01-24 03:41:33 +03:30 committed by Luke Smith
parent 858094ffd4
commit e32a1f5779

View file

@ -31,6 +31,8 @@ mountusb() { \
mountandroid() { \
chosen=$(echo "$anddrives" | dmenu -i -p "Which Android device?" | cut -d : -f 1)
getmount "$HOME -maxdepth 3 -type d"
simple-mtpfs --device "$chosen" "$mp"
echo "OK" | dmenu -i -p "Tap Allow on your phone if it asks for permission and then press enter"
simple-mtpfs --device "$chosen" "$mp"
notify-send "🤖 Android Mounting" "Android device mounted to $mp."
}