Created
December 9, 2023 10:44
-
-
Save Manamama/b275c30fc0201b70de3af354e00cbc70 to your computer and use it in GitHub Desktop.
Alias MTP that connects the Droid via MTP and opens the Downloads via nemo
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
alias mtp='adb -d shell svc usb setFunctions mtp && echo "Connecting to: $(adb -d shell getprop ro.product.brand | tr -d '\''\\n'\'')" && nemo "mtp://$(adb -d shell getprop ro.product.brand | tr -d '\''\\n'\'')_$(adb -d shell getprop ro.product.model | tr -d '\''\\n'\'')_$(adb devices | awk '\''NR==2 {print $1}'\'' | tr -d '\''\\n'\'')/Internal%20shared%20storage/Download"' | |
#Results: | |
#~$ mtp | |
# Connecting to: realme | |
# nemo shows Downloads of Droid |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment