Topic: Any idea of how to add MTP Device Support?  (Read 2634 times)

Any idea of how to add MTP Device Support?
« on: September 23, 2017, 05:09:22 AM »

Hikari Calyx

  • Jr. Chef
  • **
  • The Mascot of HCT
  • Date Registered: May 2016
  • Posts: 36
Well, I'm not satisfied with my Win10PE SE build. I really want my build become more innovative.

Most of Android phone and almost all of the Windows Phone (WP8.0 or newer) transfer files to PC via Media Transfer Protocol, or simply abbreviated as MTP.
And here's the reason of why I want to add MTP Device Support:

I downloaded some files (For example, Original Windows 10 Installation ISO) to my phone, and I want to transfer them to the PC on Win10PE immediately but I don't want to download them again from Internet. However, it's difficult to find a modern Android phone or Windows Phone that could transfer files via USB Mass Storage mode.

Several Windows 7 PEs that available on Wuyou Forum are able to use MTP. I think there's no third party driver and application required for MTP on Windows NT 6.X.
So... Any idea of how to add MTP Device Support?
« Last Edit: September 23, 2017, 05:11:16 AM by Hikari Calyx »

Re: Any idea of how to add MTP Device Support?
« Reply #1 on: September 23, 2017, 06:46:20 PM »

bob.omb

  • Moderator, Code Baker
  • Grand Chef
  • *****
  • Location: USA
  • Date Registered: Jul 2017
  • Posts: 1261
Have you checked here? Looks like a good place to start:

http://www.thewindowsclub.com/media-transfer-protocol-mtp-not-working-windows-10

In that post:
"Microsoft provides a set of class drivers to support the Media Transfer Protocol (MTP). If your device supports MTP, you can use one of these drivers. In addition to the class drivers, Microsoft provides a setup information (.inf) file to install a class driver. This file is named WpdMtp.inf"

One way they suggest to correct the issue is to right-click on the WpdMtp.inf and select "Install" and try and see if it works then.  If so, you can include this in your build

Let me know and I'll try to help if that doesn't work...
« Last Edit: September 23, 2017, 08:20:19 PM by bob.omb »

Re: Any idea of how to add MTP Device Support?
« Reply #2 on: September 24, 2017, 01:09:44 AM »

bob.omb

  • Moderator, Code Baker
  • Grand Chef
  • *****
  • Location: USA
  • Date Registered: Jul 2017
  • Posts: 1261
Also I found this, credit to: gbrao

http://theoven.org/index.php?topic=1283.msg14956#msg14956

lmk....
« Last Edit: September 24, 2017, 01:10:55 AM by bob.omb »

Re: Any idea of how to add MTP Device Support?
« Reply #3 on: September 24, 2017, 12:49:15 PM »

Lancelot

  • Gena Baker
  • Grand Chef
  • *****
  • Date Registered: Sep 2010
  • Posts: 10350
Hi Hikari Calyx

Well, I'm not satisfied with my Win10PE SE build. I really want my build become more innovative.

I'm not satisfied with your topic.

You can be innovative if you can contribute with a plugin to add MTP support.
ex: like ied206 contributing with Korean IME plugin http://theoven.org/index.php?topic=1440



See FAQ http://theoven.org/index.php?topic=834.0
** Forum TheOven.org
....
Always Keep In Mind:
....
All projects, and many things you find around are created with Contributions.
 Projects are not "compiled executables",
   many features requires too many work & time than writing programs,
      We are not support forum of a programing project (ex: GitHub, sourceforge etc.)
      We can not add features / requests quickly, do not add features and request that does not take our interest of our hobby time.
        Shortly: You need contribute about features etc. you think about.

ex:
Reply1 search plugin: http://TheOven.org/index.php?topic=1483

We have our priorities, See Reply 7: http://TheOven.org/index.php?topic=1375.msg15803#msg15803
We successfully work with "Development Upwards" principles for years like all good softwares.

 Plugins and Projects constantly and slowly increases :turtle: ,
 we DO NOT work with "Development Circle", See Reply 9
http://TheOven.org/index.php?topic=1375.msg15805#msg15805
....
....
....

I hope you can be innovative with creating a satisfied MTP plugin and share with public.

:turtle:

Re: Any idea of how to add MTP Device Support?
« Reply #4 on: September 24, 2017, 05:54:54 PM »

Hikari Calyx

  • Jr. Chef
  • **
  • The Mascot of HCT
  • Date Registered: May 2016
  • Posts: 36
OK. I'll give it a try to find out in order to add MTP support, which files and registry are required.

Re: Any idea of how to add MTP Device Support?
« Reply #5 on: September 24, 2017, 06:00:01 PM »

bob.omb

  • Moderator, Code Baker
  • Grand Chef
  • *****
  • Location: USA
  • Date Registered: Jul 2017
  • Posts: 1261
That app I listed above doesnt work?

https://www.freefilesync.org/download.php - Credit: gbrao

This is an active project that is well maintained and will hold you over until you get MTP integrated.

which files and registry are required.

I can see why people don't always use their time to research everything people ask, and give real answers on here.  Because they are usually ignored anyway so why even try. Its a little frustrating.

AS I SAID - *clears throat* -  This is the SAME link I posted in the very first response to your post.  If you click it it will take you DIRECTLY to your answer.

http://www.thewindowsclub.com/media-transfer-protocol-mtp-not-working-windows-10

In that link with about 5 seconds of effort you will find the below picture:

ila_rendered

You will need to copy that INF and probably the matching PNF with it, then right click the INF and select 'Install' (You can probably boot into PE and navigate to your HOST OS's Windows\INF folder and right click it directly from there to test.)

It should work correctly but if it doesnt then YOU are the sole researcher actively working on this.  Seeing how you did not read the links I already sent you, its probably better for you to just use the application I linked in the beginning of this thread, and again, in this post.

This is a direct response to your question ("which files and keys do I need", You are given good starting points for your research but you must post results for more help or it seems they fell on deaf ears) I will try to help you but you must at the very least try what I am telling you, and let us know the results...
« Last Edit: September 24, 2017, 07:08:32 PM by bob.omb »

Re: Any idea of how to add MTP Device Support?
« Reply #6 on: September 24, 2017, 07:06:07 PM »

bob.omb

  • Moderator, Code Baker
  • Grand Chef
  • *****
  • Location: USA
  • Date Registered: Jul 2017
  • Posts: 1261
Manually installing the inf does not appear to be working (You should be telling me this)

In that case the more time I spend on this the less likely it appears your going to be able to do it natively.  At the very least a reboot is required, which means keys must be imported into the system at build time, you probably will have to use RegShot2, 1st snapshot before installing the INF, 2nd snapshot afterwards, to get your keys and see if its just a matter of needing to add to build (to simulate rebooted values) or if this doesnt actually work. <--- This may not work but I do not have time to test this for you.

If the installer for unsupported systems directly from microsoft is any indicator.  There is a LOT to MTP working correctly.  Installer content listed in screenshot, over 400 files need to do their work to enable MTP on systems without.

ila_rendered

*****EDIT*****

You can try the installer for the MTP porting kit (linked below) but it also requires a restart so you would need to get snapshots from reg like posted above but also of hd(usb files from PE) files.  You will need to use 7zip to extract the MSI from the EXE or you will get a Policy error.  All these keys will need to be converted and imported into your build as well as all new files created by installer. <---DURING the build process.  Any keys dropped into HKCU\Software **MAY** need to be moved to HKLM\Software if your using LoginAsAdmin.  <--During the build process (best with Finals_Y\XYAdditional Registry.script)

https://www.microsoft.com/en-us/download/details.aspx?id=19153
« Last Edit: October 07, 2017, 02:25:07 PM by bob.omb »

Re: Any idea of how to add MTP Device Support?
« Reply #7 on: September 25, 2017, 03:56:51 PM »

ChrisR

  • XPE Baker
  • Grand Chef
  • *****
  • Date Registered: Mar 2011
  • Posts: 3494
In addition. Have you tried to integrate the original win10 MTP drivers.
...\DriverStore\FileRepository\wpdmtp.inf_amd64*
by reading quickly wpdmtp.inf, it seems you need also:
...\DriverStore\FileRepository\winusb.inf_amd64*
...\Divers\WUDFRd.sys + WUDFRd service
Use "Driver Integration" plugin after copying the drivers in %GlobalTemplates%\Drivers_x64\

 

Powered by EzPortal