-
-
Notifications
You must be signed in to change notification settings - Fork 120
Device Permission Setup
Christian Findlay edited this page Dec 30, 2018
·
6 revisions
Android and UWP both require that you specify which devices you will need to access in their manifest files. This is because Store apps are secure and won't let a given app access devices without the user's knowledge.
Here is an example Capabilities section for Hid and USB on UWP:
<Capabilities>
<Capability Name="internetClient" />
<uap:Capability Name="removableStorage" />
<DeviceCapability Name="humaninterfacedevice">
<Device Id="vidpid:534C 0001">
<Function Type="usage:0005 *" />
<Function Type="usage:FF00 0001" />
<Function Type="usage:ff00 *" />
</Device>
<Device Id="vidpid:1209 53C0">
<Function Type="usage:0005 *" />
<Function Type="usage:FF00 0001" />
<Function Type="usage:ff00 *" />
</Device>
<Device Id="vidpid:1209 53C1">
<Function Type="usage:0005 *" />
<Function Type="usage:FF00 0001" />
<Function Type="usage:ff00 *" />
</Device>
</DeviceCapability>
<DeviceCapability Name="usb">
<!--Trezor Firmware 1.7.x -->
<Device Id="vidpid:1209 53C1">
<Function Type="classId:ff * *" />
</Device>
</DeviceCapability>
</Capabilities>