locked
Win 8 SMS Device Metadata failing

    Question

  • I am creating a metadata file using VS2012 tool for a embedded Mobile Broadband device. I am using all the hardware ID's listed in the "Network Adapter" Device details tab and creating file under "Networl.MobileBroadband" category. I can see from the event logs that, an event is generated when the metadata file is created in store but the actual device does not appear on the "Control Panel->Printers and devices ". Event data also does not show any query matching my hardware IDs or GUID from DMRC. Further my modern app still gets "access denied" error after creating the file.

    The mobile broadband adapter that I am using is listed under Sensor, Network adapter and USB controller. I tried creating metadata files under each category and once together also. I created metadata files using only the Device Model ID. Unfortunately the device does not show Model ID in properties. I had to use GUID value from "HKEY_LOCAL_MACHINE > SOFTWARE > Microsoft > WindowsNT > CurrentVersion > NetworkCards > (number).." but that does not work either.

    • My question is why does entering Hardware ID's not work?
    • If GUID is enough to detect the device, should I have 3 seperate GUID's for the 3 entries in device manager?
    • Is the registry entry from where I am getting GUID valid for Win8?
    • The modem I am using is an embedded modem, not a pnp model, will this make a difference? I tried installing a metadata for another non pnp device and it failed whereas if I create one for a pnp device like mouse it seems to install properly and I can see the new device in the control panel.



    Thursday, October 04, 2012 4:24 PM

Answers

  • Hi,

    The reason you're encountering this problem is that the mobile broadband device is embedded, which means it's an integral part of the computer and so doesn't get its own metadata package.  In general, a single metadata package applies to a single thing you can pick up with your hands - for example, a multifunction printer+scanner+fax would get one metadata package because it's one physical object, even though it consists of three separate devices.  By this rule, everything that is built into a laptop or tablet (cameras, mobile broadband, microphones, etc) shares the same metadata package, which is bound to the entire computer.

    What you need to do is create a computer metadata package (the document "Device Metadata Package Schema Reference for Windows 8" at http://www.microsoft.com/en-us/download/details.aspx?id=30725, specifically the section named "Notes for Computer Device Containers", has the details) and add your app's publisher and name to the list of privileged apps for that metadata package, just as you would for a removable device.  Then your app will have access to the WinRT SMS API.  If your computer already has a metadata package that was put there by the manufacturer, you will need to edit it and add your app to its privileged app list.  Since this will invalidate the existing package's digital signatures, you will need to enable test signing on that machine using bcdedit.

    Friday, October 12, 2012 12:48 AM