From e32a1f5779f3626219316a57e796bfa6bf623b68 Mon Sep 17 00:00:00 2001 From: mhdzli <50514359+mhdzli@users.noreply.github.com> Date: Fri, 24 Jan 2020 03:41:33 +0330 Subject: [PATCH] Allow access to phone date (#462) Sometimes android phones ask for permission to allow access to phone data --- .local/bin/dmenumount | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.local/bin/dmenumount b/.local/bin/dmenumount index 6784402..e01c7eb 100755 --- a/.local/bin/dmenumount +++ b/.local/bin/dmenumount @@ -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." }