magnusja / libaums

Open source library to access USB Mass Storage devices on Android without rooting your device
Apache License 2.0
1.26k stars 270 forks source link

SLR CAMERA (Implement PTP driver) #222

Open zq798778610 opened 4 years ago

zq798778610 commented 4 years ago

Problem

use Canon SLR CAMERA connect phone ,show no device
UsbMassStorageDevice[] devices=UsbMassStorageDevice.getMassStorageDevices(this); Log.i("zqq", "devices: " + devices.length); devices.length = 0 but use u disk devices.length = 1 support SLR CAMERA? SLR CAMERA can get image type jpg but other file no can read camera Folder?

Expected behavior

Actual behavior

Stacktrace of Excpetion

(if exists)

Code where problem occurs

magnusja commented 4 years ago

Hey There,

this is not supported because it is a completely different protocol. See https://en.wikipedia.org/wiki/Media_Transfer_Protocol and https://en.wikipedia.org/wiki/Picture_Transfer_Protocol.

Happy about contributions regarding that though ...

zq798778610 commented 4 years ago

Thankyou

xiaocainiaooo commented 2 years ago

Ptp support has other lib to support. android Framework had MTP code ,if you want to use. you can get this way @zq798778610