http://blog.csdn.net/zhenwenxian/article/details/8521287

Windows XP安装MTP驱动

Android4.0使用MTP协议在SD卡和PC之间进行通信。

WIndows 7系统自带MTP驱动程序,可以直接使用。

Windows XP系统则需要安装驱动程序。

首先将系统的Windows Media Player版本升级至wmp11,最新的版本自带了MTP驱动。

如果系统是盗版的不能够成功安装就用下面的方法
http://download.csdn.net/detail/zhenwenxian/6590747
下载的那个WMP11安装文件(其实是一个自解压安装程序,双击它会自动运行安装),不要双击打开,右键-解压到wmp11- windowsxp-x86-zh-cn(和WMP11安装文件同名)文件夹下,然后进去依次运行 “umdf.exe(功能补丁)”, “wmdbexport.exe(功能扩展文件)”,“wmfdist11.exe”,“wmp11.exe(这显然是windows meida player 11的简写嘛,肯定是主程序了)”最后重新启动电脑-OK,
如果升级完后还无法识别,则需要手动修改inf文件。
文件管理器-->工具--》文件夹选项--》查看--》高级选项--》隐藏文件和文件夹-->显示所有文件和文件夹  打勾

位置在c:\windows\inf\wpdmtp.inf

查看你的MTP设备的VID和PID,加入下面

XXXX用USB设备属性对应的VID和PID替换

[Generic.NTx86]

%GenericMTP.DeviceDesc%=MTP, USB\MS_COMP_MTP

%GenericMTP.DeviceDesc%=MTP, USB\VID_XXXX&PID_XXXX&MI_00

[Generic.NTamd64]

%GenericMTP.DeviceDesc%=MTP, USB\MS_COMP_MTP

%GenericMTP.DeviceDesc%=MTP, USB\VID_XXXX&PID_XXXX&MI_00 
进而就可以安装上这个驱动程序了

比如如果你的设备的ID为\VID_22D9&PID_2764那么在inf文件添加下面内容后,从启后安装驱动就可以了

[Generic.NTx86]

%GenericMTP.DeviceDesc%=MTP, USB\MS_COMP_MTP

%GenericMTP.DeviceDesc%=MTP, USB\VID_22D9&PID_2764&MI_00

[Generic.NTamd64]

%GenericMTP.DeviceDesc%=MTP, USB\MS_COMP_MTP

%GenericMTP.DeviceDesc%=MTP, USB\VID_22D9&PID_2764&MI_00

sony LT26ii 插入电脑后,通过我的电脑--》属性--》设备管理器--》MTP属性---》详细信息--》

USB\VID_0FCE&PID_5169&MI_00\6&12E15FEE&0&0000

那么在c:\windows\inf\wpdmtp.inf 文件添加下面内容

[Generic.NTx86]

%GenericMTP.DeviceDesc%=MTP, USB\MS_COMP_MTP

%GenericMTP.DeviceDesc%=MTP, USB\VID_0FCE&PID_5169&MI_00\6&12E15FEE&0&0000

[Generic.NTamd64]

%GenericMTP.DeviceDesc%=MTP, USB\MS_COMP_MTP

%GenericMTP.DeviceDesc%=MTP, USB\VID_0FCE&PID_5169&MI_00\6&12E15FEE&0&0000

c:\windows\inf\wpdmtp.inf -->隐藏文件夹

; Installation inf for devices supporting Media Transfer Protocol (MTP)
;
; Copyright (c) Microsoft Corporation.
;

[Version]
Signature="$WINDOWS NT$"
Class=WPD
ClassGUID={EEC5AD98-8080-425f-922A-DABF3DE3F69A}
Provider=%Msft%
LayoutFile=layout.inf
DriverVer=02/22/2006,5.2.5326.4762

[DestinationDirs]
MTP.Files.Kernel = 12
MTP.Files.XPRT_USB = 11
MTP.Files.Core = 11
MTP.Files.UMDFDDriver = 12,UMDF ; copy to system32\drivers\umdf

[Manufacturer]
%MfgName%=Generic,NTx86,NTamd64

;
;Device is identified by Microsoft OS descriptor
;If your device does not support it, use specific VID & PID for identification
;

[Generic.NTx86]
%GenericMTP.DeviceDesc%=MTP, USB\MS_COMP_MTP
%GenericMTP.DeviceDesc%=MTP, USB\VID_1F3A&PID_1007&MI_00

[Generic.NTamd64]
%GenericMTP.DeviceDesc%=MTP, USB\MS_COMP_MTP
%GenericMTP.DeviceDesc%=MTP, USB\VID_1F3A&PID_1007&MI_00

;USB\VID_1F3A&PID_1007&MI_00\6&180EC705&0&0000

;;******************************************************************************
;; The following are to be used in vendor specific "Includes" and "Needs" sections.
;; Specifically, the INF should contain:
;;
;; [DDInstall]
;; Include = wpdmtp.inf
;; Needs   = WPD.MTP
;;
;; [DDInstall.hw]
;; Include = wpdmtp.inf
;; Needs   = WPD.MTP.Registration       <- includes all default legacy API and autoplay registration for the device
;;  - OR - 
;; Needs   = WPD.MTP.RegistrationBasic  <- only do minimum registration, no legacy API or autoplay
;;
;; [DDInstall.Services]
;; Include = wpdmtp.inf
;; Needs   = WPD.MTP.Services
;;
;; [DDInstall.CoInstallers]
;; Include = wpdmtp.inf
;; Needs = WPD.MTP.CoInstallers
;;
;; [DDInstall.Wdf]
;; Include = wpdmtp.inf
;; Needs = WPD.MTP.Wdf
;; UmdfServiceOrder=WpdMtpDriver
;;
;;******************************************************************************

[WPD.MTP]
CopyFiles = MTP.Files.Kernel, MTP.Files.XPRT_USB, MTP.Files.Core, MTP.Files.UMDFDDriver
RegisterDlls = MTP.RegisterComServers

[WPD.MTP.Registration]
AddReg    = WDF.Registration, MTP.AutoPlayRegistration, MTP.LEGACY.Registration, MTPUSB.Transport.Registration

[WPD.MTP.RegistrationBasic]
AddReg    = WDF.Registration, MTPUSB.Transport.Registration

[WPD.MTP.Services]
AddService=WUDFRd, 0x000001fa, WUDFRD_ServiceInstall   ; 0x2 - assigned the name service as the PnP function driver
AddService=WpdUsb, 0x000001f8, MTP.WpdUsb.AddService, MTPEventlog.AddService

[WPD.MTP.CoInstallers]
AddReg   = WDF.CoInstaller

[WPD.MTP.Wdf]
UmdfService=WpdMtpDriver,WpdMtpDriver_Install

;;******************************************************************************
;; MTP section
;;******************************************************************************

[MTP.NT]
CopyFiles = MTP.Files.Kernel, MTP.Files.XPRT_USB, MTP.Files.Core, MTP.Files.UMDFDDriver
RegisterDlls = MTP.RegisterComServers

[MTP.NT.hw]
AddReg    = WDF.Registration, MTP.AutoPlayRegistration, MTP.LEGACY.Registration, MTPUSB.Transport.Registration

[MTP.NT.Services]
AddService=WUDFRd, 0x000001fa, WUDFRD_ServiceInstall   ; 0x2 - assigned the name service as the PnP function driver
AddService=WpdUsb, 0x000001f8, MTP.WpdUsb.AddService, MTPEventlog.AddService

[MTP.NT.CoInstallers]
AddReg = WDF.CoInstaller

[MTP.NT.Wdf]
UmdfService=WpdMtpDriver,WpdMtpDriver_Install
UmdfServiceOrder=WpdMtpDriver

[MTPUSB.Transport.Registration]
HKR,"WpdMtpDriver","TransportClassID",0x0,"{34C445BA-07EB-4b5d-8EE9-F66BB9DA403B}"

;;******************************************************************************
;; Common section
;;   1. File copy 
;;   2. Regsvr COM servers
;;   3. AutoPlay 
;;   4. WDF 
;;   5. Registration
;;   6. WMDM/WIA legacy support
;;   7. Kernel mode service (WPDUSB)
;;   8. Eventlog service
;;******************************************************************************

[MTP.Files.Kernel]
;WpdUsb.sys,,,0x0100

[MTP.Files.XPRT_USB]
;WpdMtpUS.dll,,,0x0100
;WpdConns.dll,,,0x0100

[MTP.Files.Core]
;WpdMtp.dll,,,0x0100

[MTP.Files.UMDFDDriver]
;WpdMtpDr.dll,,,0x0100

[MTP.RegisterComServers]
11,,wpdconns.dll,1
11,,wpdmtpus.dll,1
11,,wpdmtp.dll,1
12,UMDF,wpdmtpdr.dll,1

; ================ AutoPlay =================

[MTP.AutoPlayRegistration]
; This lists the interfaces which WpdUsb.sys will register on device start; this list contains the legacy AutoPlay
HKR,,"Interfaces",0x00010000,"{14480d3f-7a47-4a75-aaef-b14f56397153}"
; This indicates the interface used by the device for it's AutoPlay configuration; this is used by the WPD Namespace device properties AutoPlay tab on XP only
HKR,,"PortableDeviceNameSpaceAutoPlayInterface",,"{14480d3f-7a47-4a75-aaef-b14f56397153}"
; Per interface setting enabling Autoplay
HKLM,"SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\AutoplayHandlers\DeviceClasses\{14480d3f-7a47-4a75-aaef-b14f56397153}","DeviceGroup",,"PortableAudioPlayer"
HKLM,"SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\AutoplayHandlers\DeviceClasses\{14480d3f-7a47-4a75-aaef-b14f56397153}","Label",,%Autoplay.Label%
HKLM,"SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\AutoplayHandlers\DeviceClasses\{14480d3f-7a47-4a75-aaef-b14f56397153}","DeviceHandlers",,"MTPMediaPlayerHandler"
HKLM,"SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\AutoplayHandlers\DeviceClasses\{14480d3f-7a47-4a75-aaef-b14f56397153}","Icons",0x00010000,"%%SystemRoot%%\system32\wpdshext.dll,-701"
;   DeviceHandler
HKLM,"SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\AutoplayHandlers\DeviceHandlers\MTPMediaPlayerHandler\EventHandlers\DeviceArrival","MTPMediaPlayerArrival",,""
;   EventHandlers.  Creating an empty key will give "Take no action" option if no handlers are registered.
HKLM,"SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\AutoplayHandlers\EventHandlers\MTPMediaPlayerArrival\",,0x00000012

; ================= WDF sections ===============

[WDF.CoInstaller]
HKR,,CoInstallers32,0x00010000,"WUDFCoinstaller.dll"

[WDF.Registration]
HKR,"WUDF","Exclusive",0x10001,1
HKR,,"LowerFilters",0x00010008,"WpdUSB" ; FLG_ADDREG_TYPE_MULTI_SZ | FLG_ADDREG_APPEND

[WpdMtpDriver_Install]
UmdfLibraryVersion=1.0.0
ServiceBinary="%12%\umdf\WpdMtpDr.dll"
DriverCLSID="{AAAE762B-A6A2-4c45-B5D8-9A83AFB6BB70}"

; =============== Legacy support ===============

[MTP.LEGACY.Registration]
; Request for auto-determination of WIA/WMDM legacy API (and autoplay) support based on device capabilities and type
HKR,,"EnableLegacySupport",0x10001,0xFFFFFFFF

; Report EXIF format as JPEG for WIA  
HKR,,"ReportJPGFormatForEXIF",0x10001,1

; =================== WUDFRd ===================

[WUDFRD_ServiceInstall]
ServiceType     = %SERVICE_KERNEL_DRIVER%
StartType       = %SERVICE_DEMAND_START%
ErrorControl    = %SERVICE_ERROR_NORMAL%
ServiceBinary   = %12%\WUDFRd.sys

; =================== WPDUSB ===================

[MTP.WpdUsb.AddService]
DisplayName    = %WpdUsb.SvcDesc%
ServiceType    = %SERVICE_KERNEL_DRIVER%
StartType      = %SERVICE_DEMAND_START%
ErrorControl   = %SERVICE_ERROR_NORMAL%
ServiceBinary  = %12%\wpdusb.sys
LoadOrderGroup = Base

;
; ============= System Event Log ===============
;

[MTPEventlog.AddService]
AddReg=MTPEventlog.Addreg

[MTPEventlog.Addreg]
HKLM,"SYSTEM\CurrentControlSet\Services\EventLog\System\WPDMTPDriver","CategoryCount",0x00010001,3
HKLM,"SYSTEM\CurrentControlSet\Services\EventLog\System\WPDMTPDriver","EventMessageFile",0x00020000,"%12%\umdf\wpdmtpdr.dll"
HKLM,"SYSTEM\CurrentControlSet\Services\EventLog\System\WPDMTPDriver","CategoryMessageFile",0x00020000,"%12%\umdf\wpdmtpdr.dll"
HKLM,"SYSTEM\CurrentControlSet\Services\EventLog\System\WPDMTPDriver","TypesSupported",0x00010001,7

;
; =================== Strings ===================
;

[Strings]

; not localizable 
SERVICE_KERNEL_DRIVER = 0x1 
SERVICE_DEMAND_START  = 0x3 
SERVICE_ERROR_NORMAL  = 0x1

;; Localizable strings
Msft="Microsoft"
WpdUsb.SvcDesc="WpdUsb"
GenericMTP.DeviceDesc="MTP Device"
MfgName="(Standard MTP-compliant devices)"
MfgNameVendorModels="(Standard MTP-Compliant Device)"
Autoplay.Label= "Portable Device"

android mtp usb相关推荐

  1. Android 连接USB默认选中MTP模式

    Android 连接USB默认选中MTP模式 需求分析 Android系统默认连接USB会显示:正在通过USB为此设备充电,并且无法在电脑查看存储内容.需要实现的效果:Android 连接USB默认选 ...

  2. android usb 默认mtp,usb修改为默认MTP模式

    1.packages/apps/Settings / src/com/android/settings/deviceinfo/UsbBackend.java getUsbDataMode() 中  / ...

  3. android usb单反相机,android mtp 获取单反相机中的照片

    通过调用Android mtp API 完成相机照片的导出 核心代码: //注册广播 IntentFilter intentFilter = new IntentFilter(); intentFil ...

  4. Android Q USB Tethering 端口切换分析

    需求:在开启 USB Tethering 后,同时需要开启 diag 端口供 QXDM 调试使用.于是 trace code 大概分析了一下设置 USB Tethering 过程,比较毛糙,如有不正之 ...

  5. android手机怎样开启usb调试模式,Android手机USB调试在哪?安卓手机如何打开USB调试模式?...

    Android手机USB调试在哪?安卓手机如何打开USB调试模式?如果我们要将安卓手机连接到电脑上,从而传输文件.下载应用或ROOT等,都需要打开手机的USB调试模式.安卓系统的版本有很多,它们的打开 ...

  6. 用代码实现断开Android手机USB连接【转】

    本文转载自:https://blog.csdn.net/phoebe_2012/article/details/47025309 用代码实现断开Android手机USB连接 用代码 实现了一个小功能: ...

  7. android下usb框架系列文章---(2)Usb mass_storage turn on的过程

    下面从framework层的ui来看一下插入usb后share的过程,这个动作的触发是从status bar下面弹出的usb connect开始的. frameworks/base/packages/ ...

  8. Android下USB Accessory的实现分析 (三)--- Android Open AccessoryProtocol

    本文 接着前面的文章 <Android下USB Accessory的实现分析 (二)- 底层驱动设计实现> 2.1.4 Android Open AccessoryProtocol 为了支 ...

  9. android 代码打开usb调试,Android手机USB调试在哪?安卓手机如何打开USB调试模式?...

    Android手机USB调试在哪?安卓手机如何打开USB调试模式?如果我们要将安卓手机连接到电脑上,从而传输文件.下载应用或ROOT等,都需要打开手机的USB调试模式.安卓系统的版本有很多,它们的打开 ...

最新文章

  1. 京东抢购服务高并发实践
  2. CSS三种写法的优先级
  3. Gym - 101889I Imperial roads(最小生成树+树链剖分+线段树)
  4. echart高级使用_Echart使用总结
  5. TClientDataSet使用要点
  6. hashcode java_java 的Object类的hashcode()方法具体是怎么实现的?
  7. 架构业务wait和sleep区别狭义jiavaBean规范,三层架构模式
  8. 设计模式 ( 十三 ) JDK动态代理模式
  9. C# Winform 开发框架
  10. UCI数据集+机器学习+十折交叉验证
  11. linux设置双屏拼接_Linux 与Windows(A卡、N卡)下折腾双屏、3屏拼接
  12. 超简单的动图制作、利用ps制作简单的动图、把动图导入我们的博客中;
  13. 爱荷华州立大学计算机专业,爱荷华州立大学|Iowa State University|Department of Electrical and Computer Engineering_毕达留学...
  14. 北京邮电大学计算机考研难,北京邮电大学(专业学位)计算机技术考研难吗
  15. EMLOG模板山河网站主题分享
  16. 春节假期和幺儿一起玩xbox360的体感游戏
  17. 为图片赋值红色或绿色的伪彩 用python、EmguCV、 OpenCvSharp实现
  18. HTML5实战-张晓飞-专题视频课程
  19. HNUST 1231:猜牌术(水....)
  20. 输入圆的半径,计算圆的周长与面积

热门文章

  1. x7plus升级Android,vivo X7 Plus原版系统刷机包_X7Plus最新全量升级包更新下载
  2. 反工厂的零工族,他们的出路在哪里
  3. sip re-invite 详解
  4. 机器学习-吴恩达-ex3
  5. 莫扎特与《费加罗的婚礼》
  6. 支付宝首页搜索栏淡出效果HTML,仿支付宝首页效果实现
  7. 华为3次面试可谓是面面俱到啊,侥幸收到offer
  8. 高通公司全球首席商务官Jim Cathey先生一行莅临美格智能参观指导
  9. 00后腾讯T8晒出工资单:狠补了这个,真香...
  10. 测试服务器角色转移系统,王者荣耀转区测试什么时候开始 跨系统角色转移测试时间...