Going by the code of this function, aft-mtp-mount should support filtering devices by "vendor:product".
Example: aft-mtp-mount -D 0e8d:2008 /tmp/mtp
It is a very useful feature for other script and apps.
But to do so, the following line
if (device && device->Matches(filter))
should be changed to
if (device && ((vendor >= 0 && product >= 0) || device->Matches(filter)))
Going by the code of this function, aft-mtp-mount should support filtering devices by "vendor:product". Example:
aft-mtp-mount -D 0e8d:2008 /tmp/mtp
It is a very useful feature for other script and apps. But to do so, the following lineif (device && device->Matches(filter))
should be changed toif (device && ((vendor >= 0 && product >= 0) || device->Matches(filter)))