USB issue

there is a functional issue that I hope to receive your help

Background: When my app is running, it will monitor the USB devices currently connected to the Mac and obtain the hid related configurations for each USB device, such as:

{vendorId: 10168,

productId: 493,

path: 'IOService:/ AppleACPIPl...HIDDevice@14210000 0 serialNumber: '20002E8C',

manufacturer: 'ThingM',

product: 'blink(1) mk2',

release: 2,

interface: -1,

usagePage: 65280,

usage: 1}

Originally running normally, but in sandbox mode, I found that there were some missing information in obtaining device information, specifically the path of each USB device obtained (e.g. 'IOService:/ AppleACPIPl...HIDDevice@14210000 0 ') are all lost (with empty content), but they can be obtained in non sandbox environments. Do i need any additional permissions for this?

PS: I have been keeping it on:

com. apple. security. device. usb

Written by dongkeqiang in 770189021
I found that there were some missing information in obtaining device information, specifically the path of each USB device obtained

What API are you using to get that info?

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"

USB issue
 
 
Q