Is there a macOS objective c or swift call for me to check if a system extension has been installed?

510 views Asked by At

I have googled and searched here and have come up empty.

I have an application that installs a system extension and I'm resorting to writing to a file when the extension is installed to know.

Is there an objective C or Swift function that does essentially what systemextensionctl list does? This is a sandboxed app and I don't want to (and suspect I can't) fork/run a shell command.

1

There are 1 answers

0
Arthur  Bulakaiev On

There is still no public API to do that, but there is a way to use the private API under the systemextensionctl, OSSystemExtensionClient, as described here. You will need to reverse the OSSystemExtensionClient futher to get the list of extensions.

It also may be that you can find desired information in some .db files.

Both things are not considered as public and could be changed at any moment.