whoozle / android-file-transfer-linux

Android File Transfer for Linux (and macOS!)
http://whoozle.github.io/android-file-transfer-linux/
GNU Lesser General Public License v2.1
1.43k stars 120 forks source link

How to mount specific device? #326

Closed niksingh710 closed 1 year ago

niksingh710 commented 1 year ago

how can i pass device name or id as argument to mount it?

niksingh710 commented 1 year ago

using the cli command aft-mount-device is there any way i can pass a specific device model name to mount? if i have multiple mtp devices connected as it mounts the last connected device in cli?

whoozle commented 1 year ago

Do you think it's better to add -d <name> filter similar to cli?

niksingh710 commented 1 year ago

Yep that would be a great option But imo -s and --serial would be nice option as adb and other Android utility like scrcpy uses serial for handling multiple devices.

whoozle commented 1 year ago

oh, good idea, I'll rework

niksingh710 commented 1 year ago

using the cli command aft-mount-device is there any way i can pass a specific device model name to mount? if i have multiple mtp devices connected as it mounts the last connected device in cli?

@whoozle sorry for mentioning the wrong command here the command i want to have a specific device flag is aft-mtp-mount

whoozle commented 1 year ago

ouch, turned out the option just wasn't on the help list

try using -D your-serial

where smth is matched against manufacturer, device name or serial number.

whoozle commented 1 year ago

feel free to reopen if it's not working for you