RX-130工程机调试笔记 - 恢复部分默认不开放MTP端口的工程机的MTP端口

注册表路径:

HKLM\ControlSet001\Control\USBFN

依次设置下列各键值:

"IncludeDefaultCfg"=dword:00000001
"idVendor"=dword:0000045e
"idProduct"=dword:0000f0ca
"ManufacturerString"="Microsoft"
"ProductString"="Windows Phone 8"
"SerialNumber"="55378018"
"iProduct"=dword:00000002
"iManufacturer"=dword:00000001
"iSerial"=dword:00000003

说明:

上述代码内容为:

将DWORD值IncludeDefaultCfg设为十六进制数1。

将DWORD值idVendor设为十六进制数45e。

将DWORD值idProduct设为十六进制数f0ca。

将字符串值ManufacturerString设为字符串Microsoft。

将字符串值ProductString设为字符串Windows Phone 8。

将字符串值SerialNumber设为字符串55378018。请注意,部分设备中没有此项,此时无需新建项。尚不确定该项与MTP接口是否相关联。

将DWORD值iProduct设为十六进制数2。

将DWORD值iManufacturer设为十六进制数1。

将DWORD值iSerial设为十六进制数3。

另附USBFn子键的完整注册表文件:

注意:此文件是在Mass Storage环境下,将设备的SYSTEM文件挂载到计算机注册表并将挂载点命名为0的情况下导出REG文件得到的。所以用的设备为蓝魔Q7(RAMOS Q7)工程机,型号BYD WP1A。Lumia设备的USBFn以及支援OTG功能的设备的USBFn子键的内容可能不同,建议您不要直接汇入此REG文件。

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\0\ControlSet001\Control\USBFN]
"IncludeDefaultCfg"=dword:00000001
"idVendor"=dword:0000045e
"idProduct"=dword:0000f0ca
"ManufacturerString"="Microsoft"
"ProductString"="Windows Phone 8"
"SerialNumber"="55378018"
"iProduct"=dword:00000002
"iManufacturer"=dword:00000001
"iSerial"=dword:00000003
"CurrentConfiguration"="SerialCompositeConfig"

[HKEY_LOCAL_MACHINE\0\ControlSet001\Control\USBFN\Configurations]

[HKEY_LOCAL_MACHINE\0\ControlSet001\Control\USBFN\Configurations\Default]
"InterfaceList"=hex(7):4d,00,54,00,50,00,00,00,49,00,70,00,4f,00,76,00,65,00,\
  72,00,55,00,73,00,62,00,00,00,56,00,69,00,64,00,53,00,74,00,72,00,65,00,61,\
  00,6d,00,00,00,00,00
"MSOSCompatIdDescriptor"=hex:58,00,00,00,00,01,04,00,03,00,00,00,00,00,00,00,\
  00,01,4d,54,50,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,01,\
  01,57,49,4e,55,53,42,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,02,01,\
  57,49,4e,55,53,42,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00

[HKEY_LOCAL_MACHINE\0\ControlSet001\Control\USBFN\Configurations\RmNetCompositeConfig]
"bmAttributes"=dword:00000080
"bMaxPower"=dword:000000fa
"InterfaceList"=hex(7):44,00,49,00,41,00,47,00,00,00,4e,00,4d,00,45,00,41,00,\
  5f,00,4e,00,45,00,54,00,00,00,4d,00,4f,00,44,00,45,00,4d,00,5f,00,4e,00,45,\
  00,54,00,00,00,52,00,4d,00,4e,00,45,00,54,00,00,00,00,00

[HKEY_LOCAL_MACHINE\0\ControlSet001\Control\USBFN\Configurations\SerialCompositeConfig]
"bmAttributes"=dword:00000080
"bMaxPower"=dword:000000fa
"InterfaceList"=hex(7):44,00,49,00,41,00,47,00,00,00,4d,00,4f,00,44,00,45,00,\
  4d,00,5f,00,53,00,45,00,52,00,00,00,4e,00,4d,00,45,00,41,00,5f,00,53,00,45,\
  00,52,00,00,00,54,00,52,00,41,00,43,00,45,00,00,00,00,00

[HKEY_LOCAL_MACHINE\0\ControlSet001\Control\USBFN\Configurations\TestConfigChassis]
"InterfaceList"=hex(7):54,00,65,00,73,00,74,00,43,00,6c,00,61,00,73,00,73,00,\
  43,00,68,00,61,00,73,00,73,00,69,00,73,00,00,00,00,00

[HKEY_LOCAL_MACHINE\0\ControlSet001\Control\USBFN\Configurations\TestConfigClassic]
"InterfaceList"=hex(7):54,00,65,00,73,00,74,00,43,00,6c,00,61,00,73,00,73,00,\
  43,00,6c,00,61,00,73,00,73,00,69,00,63,00,00,00,00,00
"MSOSCompatIdDescriptor"=hex:28,00,00,00,00,01,04,00,01,00,00,00,00,00,00,00,\
  00,01,55,46,4e,54,43,00,00,00,43,43,00,00,00,00,00,00,00,00,00,00,00,00

[HKEY_LOCAL_MACHINE\0\ControlSet001\Control\USBFN\Configurations\TestConfigComposite]
"InterfaceList"=hex(7):54,00,65,00,73,00,74,00,43,00,6c,00,61,00,73,00,73,00,\
  43,00,6c,00,61,00,73,00,73,00,69,00,63,00,00,00,54,00,65,00,73,00,74,00,43,\
  00,6c,00,61,00,73,00,73,00,43,00,6c,00,61,00,73,00,73,00,69,00,63,00,00,00,\
  00,00

[HKEY_LOCAL_MACHINE\0\ControlSet001\Control\USBFN\Configurations\TestConfigIpOverUsb]
"InterfaceList"=hex(7):54,00,65,00,73,00,74,00,43,00,6c,00,61,00,73,00,73,00,\
  43,00,6c,00,61,00,73,00,73,00,69,00,63,00,00,00,49,00,70,00,4f,00,76,00,65,\
  00,72,00,55,00,73,00,62,00,00,00,00,00
"MSOSCompatIdDescriptor"=hex:40,00,00,00,00,01,04,00,02,00,00,00,00,00,00,00,\
  00,01,57,49,4e,55,53,42,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,01,\
  01,57,49,4e,55,53,42,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00

[HKEY_LOCAL_MACHINE\0\ControlSet001\Control\USBFN\Configurations\TestConfigStress]
"InterfaceList"=hex(7):54,00,65,00,73,00,74,00,43,00,6c,00,61,00,73,00,73,00,\
  53,00,74,00,72,00,65,00,73,00,73,00,00,00,00,00

[HKEY_LOCAL_MACHINE\0\ControlSet001\Control\USBFN\Configurations\TestConfigZero]
"InterfaceList"=hex(7):54,00,65,00,73,00,74,00,43,00,6c,00,61,00,73,00,73,00,\
  5a,00,65,00,72,00,6f,00,00,00,00,00

[HKEY_LOCAL_MACHINE\0\ControlSet001\Control\USBFN\Configurations\VidStream]
"InterfaceList"=hex(7):56,00,69,00,64,00,53,00,74,00,72,00,65,00,61,00,6d,00,\
  00,00,00,00
"MSOSCompatIdDescriptor"=hex:28,00,00,00,00,01,04,00,01,00,00,00,00,00,00,00,\
  00,01,57,49,4e,55,53,42,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00

[HKEY_LOCAL_MACHINE\0\ControlSet001\Control\USBFN\Default]
"bcdDevice"=dword:00000001
"bDeviceClass"=dword:00000000
"bDeviceProtocol"=dword:00000000
"bDeviceSubClass"=dword:00000000
"idProduct"=dword:0000f0ca
"idVendor"=dword:0000045e
"iManufacturer"=dword:00000001
"iProduct"=dword:00000002
"iSerialNumber"=dword:00000003
"ManufacturerString"="Microsoft"
"ProductString"="Windows Phone 8"

[HKEY_LOCAL_MACHINE\0\ControlSet001\Control\USBFN\Interfaces]

[HKEY_LOCAL_MACHINE\0\ControlSet001\Control\USBFN\Interfaces\DIAG]
"InterfaceDescriptor"=hex:09,04,00,00,02,ff,ff,ff,00,07,05,81,02,00,02,00,07,\
  05,02,02,00,02,00
"InterfaceGUID"="{3641691D-B4BD-4715-BB46-641FD214E147}"

[HKEY_LOCAL_MACHINE\0\ControlSet001\Control\USBFN\Interfaces\IpOverUsb]
"InterfaceDescriptor"=hex:09,04,00,00,02,ff,ff,ff,00,07,05,81,02,00,02,00,07,\
  05,02,02,00,02,00
"InterfaceGuid"="{30613563-7df3-4afb-80e0-e8c427c7e9bf}"
"MSOSExtendedPropertyDescriptor"=hex:74,01,00,00,00,01,05,00,05,00,84,00,00,00,\
  01,00,00,00,28,00,44,00,65,00,76,00,69,00,63,00,65,00,49,00,6e,00,74,00,65,\
  00,72,00,66,00,61,00,63,00,65,00,47,00,55,00,49,00,44,00,00,00,4e,00,00,00,\
  7b,00,32,00,36,00,66,00,65,00,64,00,63,00,34,00,65,00,2d,00,36,00,61,00,63,\
  00,33,00,2d,00,34,00,32,00,34,00,31,00,2d,00,39,00,65,00,34,00,64,00,2d,00,\
  65,00,33,00,64,00,34,00,62,00,32,00,63,00,35,00,63,00,35,00,33,00,34,00,7d,\
  00,00,00,36,00,00,00,04,00,00,00,24,00,44,00,65,00,76,00,69,00,63,00,65,00,\
  49,00,64,00,6c,00,65,00,45,00,6e,00,61,00,62,00,6c,00,65,00,64,00,00,00,04,\
  00,00,00,01,00,00,00,34,00,00,00,04,00,00,00,22,00,44,00,65,00,66,00,61,00,\
  75,00,6c,00,74,00,49,00,64,00,6c,00,65,00,53,00,74,00,61,00,74,00,65,00,00,\
  00,04,00,00,00,01,00,00,00,38,00,00,00,04,00,00,00,26,00,44,00,65,00,66,00,\
  61,00,75,00,6c,00,74,00,49,00,64,00,6c,00,65,00,54,00,69,00,6d,00,65,00,6f,\
  00,75,00,74,00,00,00,04,00,00,00,10,27,00,00,44,00,00,00,04,00,00,00,32,00,\
  55,00,73,00,65,00,72,00,53,00,65,00,74,00,44,00,65,00,76,00,69,00,63,00,65,\
  00,49,00,64,00,6c,00,65,00,45,00,6e,00,61,00,62,00,6c,00,65,00,64,00,00,00,\
  04,00,00,00,01,00,00,00

[HKEY_LOCAL_MACHINE\0\ControlSet001\Control\USBFN\Interfaces\MODEM_NET]
"InterfaceDescriptor"=hex:09,04,02,00,03,ff,ff,ff,00,07,05,85,02,00,02,00,07,\
  05,06,02,00,02,00,07,05,87,03,40,00,0c
"InterfaceGUID"="{22D4FC94-E43E-4FED-8057-729191CE71D5}"

[HKEY_LOCAL_MACHINE\0\ControlSet001\Control\USBFN\Interfaces\MODEM_SER]
"InterfaceDescriptor"=hex:09,04,01,00,03,02,ff,ff,00,07,05,83,02,00,02,00,07,\
  05,04,02,00,02,00,07,05,85,03,40,00,0c
"InterfaceGUID"="{A01FDE7F-640E-4981-BB7C-58FC4860896B}"

[HKEY_LOCAL_MACHINE\0\ControlSet001\Control\USBFN\Interfaces\MTP]
"InterfaceDescriptor"=hex:09,04,00,00,03,06,01,01,00,07,05,81,02,00,02,00,07,\
  05,02,02,00,02,00,07,05,83,03,40,00,04
"InterfaceGuid"="{61fd7822-e8d4-44c4-9065-aaad0a3beff0}"

[HKEY_LOCAL_MACHINE\0\ControlSet001\Control\USBFN\Interfaces\NMEA_NET]
"InterfaceDescriptor"=hex:09,04,01,00,02,ff,ff,ff,00,07,05,83,02,00,02,00,07,\
  05,04,02,00,02,00
"InterfaceGUID"="{AA557611-9DB7-4810-88E6-DD03614D1003}"

[HKEY_LOCAL_MACHINE\0\ControlSet001\Control\USBFN\Interfaces\NMEA_SER]
"InterfaceDescriptor"=hex:09,04,02,00,02,ff,ff,ff,00,07,05,86,02,00,02,00,07,\
  05,07,02,00,02,00
"InterfaceGUID"="{A15D6AFA-C85D-426F-A79A-1DBBF17CFD2F}"

[HKEY_LOCAL_MACHINE\0\ControlSet001\Control\USBFN\Interfaces\RMNET]
"InterfaceDescriptor"=hex:09,04,03,00,03,ff,ff,ff,00,07,05,88,02,00,02,00,07,\
  05,09,02,00,02,00,07,05,8a,03,40,00,0c
"InterfaceGUID"="{26884C7E-E24A-4FB6-8C75-00F8CD924A3D}"

[HKEY_LOCAL_MACHINE\0\ControlSet001\Control\USBFN\Interfaces\TestClassChassis]
"InterfaceDescriptor"=hex:09,04,00,00,0f,ff,ff,ff,00,07,05,81,02,00,02,00,07,\
  05,82,02,00,02,00,07,05,83,02,00,02,00,07,05,84,02,00,02,00,07,05,85,02,00,\
  02,00,07,05,06,02,00,02,00,07,05,07,02,00,02,00,07,05,08,02,00,02,00,07,05,\
  09,02,00,02,00,07,05,0a,02,00,02,00,07,05,8b,03,40,00,01,07,05,8c,03,40,00,\
  01,07,05,0d,03,40,00,01,07,05,0e,03,40,00,01,07,05,0f,03,40,00,01
"InterfaceGuid"="{82a112d9-1f75-4388-81e3-b64aaf172458}"

[HKEY_LOCAL_MACHINE\0\ControlSet001\Control\USBFN\Interfaces\TestClassClassic]
"InterfaceDescriptor"=hex:09,04,00,00,04,ff,ff,ff,00,07,05,81,02,00,02,00,07,\
  05,02,02,00,02,00,07,05,83,03,40,00,01,07,05,04,03,40,00,01
"MSOSExtendedPropertyDescriptor"=hex:8e,00,00,00,00,01,05,00,01,00,84,00,00,00,\
  01,00,00,00,28,00,44,00,65,00,76,00,69,00,63,00,65,00,49,00,6e,00,74,00,65,\
  00,72,00,66,00,61,00,63,00,65,00,47,00,55,00,49,00,44,00,00,00,4e,00,00,00,\
  7b,00,31,00,34,00,38,00,37,00,30,00,38,00,64,00,66,00,2d,00,32,00,32,00,33,\
  00,64,00,2d,00,34,00,30,00,31,00,61,00,2d,00,61,00,31,00,61,00,34,00,2d,00,\
  66,00,37,00,37,00,34,00,33,00,62,00,31,00,66,00,31,00,31,00,33,00,30,00,7d,\
  00,00,00

[HKEY_LOCAL_MACHINE\0\ControlSet001\Control\USBFN\Interfaces\TestClassStress]
"InterfaceDescriptor"=hex:09,04,00,00,0e,ff,ff,ff,00,07,05,81,02,00,02,00,07,\
  05,02,02,00,02,00,07,05,83,02,00,02,00,07,05,04,02,00,02,00,07,05,85,03,40,\
  00,01,07,05,06,03,40,00,01,07,05,87,03,40,00,01,07,05,08,03,40,00,01,07,05,\
  89,02,00,02,00,07,05,0a,02,00,02,00,07,05,8b,03,40,00,01,07,05,0c,03,40,00,\
  01,07,05,8d,02,00,02,00,07,05,0e,02,00,02,00
"InterfaceGuid"="{82a112d9-1f75-4388-81e3-b64aaf172458}"

[HKEY_LOCAL_MACHINE\0\ControlSet001\Control\USBFN\Interfaces\TestClassZero]
"InterfaceDescriptor"=hex:09,04,00,00,00,ff,ff,ff,00
"InterfaceGuid"="{82a112d9-1f75-4388-81e3-b64aaf172458}"

[HKEY_LOCAL_MACHINE\0\ControlSet001\Control\USBFN\Interfaces\TRACE]
"InterfaceDescriptor"=hex:09,04,03,00,02,ff,ff,ff,00,07,05,88,02,00,02,00,07,\
  05,09,02,00,02,00
"InterfaceGUID"="{23238082-6DB8-4A76-8693-635F0093282A}"

[HKEY_LOCAL_MACHINE\0\ControlSet001\Control\USBFN\Interfaces\UsbEem]
"InterfaceDescriptor"=hex:09,04,00,00,02,02,0c,07,00,07,05,01,02,00,02,00,07,\
  05,81,02,00,02,00
"InterfaceGuid"="{c00a63ff-ad89-4374-b827-2a03bdc64c7a}"
"MSOSExtendedPropertyDescriptor"=hex:78,01,00,00,00,01,05,00,05,00,84,00,00,00,\
  01,00,00,00,28,00,44,00,65,00,76,00,69,00,63,00,65,00,49,00,6e,00,74,00,65,\
  00,72,00,66,00,61,00,63,00,65,00,47,00,55,00,49,00,44,00,00,00,4e,00,00,00,\
  7b,00,63,00,30,00,30,00,61,00,36,00,33,00,66,00,66,00,2d,00,61,00,64,00,38,\
  00,39,00,2d,00,34,00,33,00,37,00,34,00,2d,00,62,00,38,00,32,00,37,00,2d,00,\
  32,00,61,00,30,00,33,00,62,00,64,00,63,00,36,00,34,00,63,00,37,00,61,00,7d,\
  00,00,00,36,00,00,00,04,00,00,00,24,00,44,00,65,00,76,00,69,00,63,00,65,00,\
  49,00,64,00,6c,00,65,00,45,00,6e,00,61,00,62,00,6c,00,65,00,64,00,00,00,04,\
  00,00,00,01,00,00,00,48,00,00,00,04,00,00,00,36,00,44,00,65,00,76,00,69,00,\
  63,00,65,00,49,00,64,00,6c,00,65,00,49,00,67,00,6e,00,6f,00,72,00,65,00,57,\
  00,61,00,6b,00,65,00,45,00,6e,00,61,00,62,00,6c,00,65,00,00,00,04,00,00,00,\
  01,00,00,00,34,00,00,00,04,00,00,00,22,00,44,00,65,00,66,00,61,00,75,00,6c,\
  00,74,00,49,00,64,00,6c,00,65,00,53,00,74,00,61,00,74,00,65,00,00,00,04,00,\
  00,00,01,00,00,00,38,00,00,00,04,00,00,00,26,00,44,00,65,00,66,00,61,00,75,\
  00,6c,00,74,00,49,00,64,00,6c,00,65,00,54,00,69,00,6d,00,65,00,6f,00,75,00,\
  74,00,00,00,04,00,00,00,f4,01,00,00

[HKEY_LOCAL_MACHINE\0\ControlSet001\Control\USBFN\Interfaces\VidStream]
"InterfaceDescriptor"=hex:09,04,00,00,02,ff,ff,ff,00,07,05,81,02,00,02,00,07,\
  05,02,02,00,02,00
"InterfaceGuid"="{31648E59-6FCB-4D81-9C97-D00999B0459A}"
"MSOSExtendedPropertyDescriptor"=hex:74,01,00,00,00,01,05,00,05,00,84,00,00,00,\
  01,00,00,00,28,00,44,00,65,00,76,00,69,00,63,00,65,00,49,00,6e,00,74,00,65,\
  00,72,00,66,00,61,00,63,00,65,00,47,00,55,00,49,00,44,00,00,00,4e,00,00,00,\
  7b,00,33,00,31,00,36,00,34,00,38,00,45,00,35,00,39,00,2d,00,36,00,46,00,43,\
  00,42,00,2d,00,34,00,44,00,38,00,31,00,2d,00,39,00,43,00,39,00,37,00,2d,00,\
  44,00,30,00,30,00,39,00,39,00,39,00,42,00,30,00,34,00,35,00,39,00,41,00,7d,\
  00,00,00,36,00,00,00,04,00,00,00,24,00,44,00,65,00,76,00,69,00,63,00,65,00,\
  49,00,64,00,6c,00,65,00,45,00,6e,00,61,00,62,00,6c,00,65,00,64,00,00,00,04,\
  00,00,00,01,00,00,00,34,00,00,00,04,00,00,00,22,00,44,00,65,00,66,00,61,00,\
  75,00,6c,00,74,00,49,00,64,00,6c,00,65,00,53,00,74,00,61,00,74,00,65,00,00,\
  00,04,00,00,00,01,00,00,00,38,00,00,00,04,00,00,00,26,00,44,00,65,00,66,00,\
  61,00,75,00,6c,00,74,00,49,00,64,00,6c,00,65,00,54,00,69,00,6d,00,65,00,6f,\
  00,75,00,74,00,00,00,04,00,00,00,10,27,00,00,44,00,00,00,04,00,00,00,32,00,\
  55,00,73,00,65,00,72,00,53,00,65,00,74,00,44,00,65,00,76,00,69,00,63,00,65,\
  00,49,00,64,00,6c,00,65,00,45,00,6e,00,61,00,62,00,6c,00,65,00,64,00,00,00,\
  04,00,00,00,01,00,00,00

[HKEY_LOCAL_MACHINE\0\ControlSet001\Control\USBFN\settings]
"PromptForDataConnection"=dword:00000001
除非特别注明,本页内容采用以下授权方式: Creative Commons Attribution-ShareAlike 3.0 License