How to custom MTP/PTP device icon?

218 views
Skip to first unread message

王新锋

unread,
Mar 2, 2015, 10:16:41 AM3/2/15
to android-...@googlegroups.com

Now I encounted a problem about MTP/PTP device icon. 

usually,

when the device in MTP mode,the device icon in PC(windows 7) is a portable device.

when the device in PTP mode,the device icon in PC(windows 7) is a camera type device.

but,now when my phone in PTP mode,the device icon in PC(windows 7) is also a portable device. 

I am sure that  the device runs  in PTP mode beacase  of only DCIM/pictures dirs in portable device .but the device icon is not camera type icon. 

Now,I want to change the device icon when the device runs in ptp mode. 

How to custom MTP/DEVICE device icon?

I have seach a lot about that, but no help.

I am not familar with MTP/PTP. so I have to ask you about that.

can give me some suggestions? 

Thank  you  very much

very very thank you!!!


Mike Lockwood

unread,
Mar 2, 2015, 12:08:45 PM3/2/15
to android-...@googlegroups.com
Hi there,

The icon used by Windows to display a MTP or PTP device is not part of the MTP or PTP specification. I suspect Windows uses a default camera icon for PTP devices (which are identified by the USB interface class, subclass and protocol) and a portable device icon for MTP devices (which are identified by a Microsoft proprietary handshake that is not part of the USB specification). I'm not sure why Windows would get the two confused.

If there is a way to customize the icon used by Windows to display an MTP or PTP device, I suspect it is probably done by putting an icon file in the device storage with a special file name that Windows knows to look for. I don't know the details of this mechanism if it exists. It would probably be better to ask on a Microsoft forum or search through their documentation.

thanks,
Mike

王新锋

unread,
Mar 3, 2015, 10:18:24 AM3/3/15
to android-...@googlegroups.com
Dear Mike,

Thank you very much for your reply.

I also think the device icon  exits in device storage.

But could not find which one is user for MTP/PTP device.

all in all.

Thank you very much~ 

在 2015年3月3日星期二 UTC+8上午1:08:45,Mike Lockwood写道:
Reply all
Reply to author
Forward
0 new messages