November 14th, 2011, 11:01 PM
|
#7 (permalink)
|
|
New Member
Join Date: Nov 2011
Posts: 6
Device(s):
Thanks: 0
Thanked 0 Times in 0 Posts
|
Hi,
Thank you for your info.
Quote:
Originally Posted by jiminaus
As you know there's an android.mtp package, but that's only useful for when the Android device is acting as an initiator. The Android sources include libmtp, but again that's an initiator MTP library.
I know that with introduction of Andriod 3.0, Android devices stopped presenting themselves as USB mass storage devices and instead started presenting themselves as MTP devices. So Android 3.0 is going to have kernel support for MTP being an MTP responder. I don't know (and would doubt) if the Android 2.x kernel has such support.
I don't know if you can use the likes of libusb to do this in userland. I've never used libusb.
|
I tried to check about MTP Responder event by using "ICONIA Tab(Acer A500)" and USB packet capture/analyzer.
As I installed of "ES file explorer" on my tab, tried to connect to PC, and deleted my music/photo file.
And then, MTP Responder(ICONIA Tab) issues the "ObjectRemoved(0x4003)" command to PC using interrupt endpoint.
Furthermore, "ObjectAdded(0x4002)" command issues to PC when I tried to capture photo by build-in camera app.
It may be issued event.
Are these command issued from app level? middle level? OS/kernel level?
It seems to me that it is not application level, basically because, MTP Responder API does not expose by Google.
Anyone can explain of these phenomena?
Thanks,
ptaro.
|
|
|
Last edited by ptaro; November 15th, 2011 at 03:01 AM.
|
|