CMIO CameraExtension installation is not ATOMIC

If I do these tasks on random order, CMIO CameraExtension go into unstable condition.

  • Copy MyApp.app under /Applications or /Applications/MyAppGroup/
  • Install by MyApp sending OSSystemExtensionRequest.activationRequest
  • Check install condition by command : "systemextensionsctl list"
  • uninstall by MyApp sending OSSystemExtensionRequest.deactivationRequest
  • Remove /Applications/MyAppGroup/ by command line and Finder
  • Remove /Applications/MyApp.app by command line and Finder
  • Kill MyApp.app during activationRequest.

Once my CMIO CameraExtension go into unstable condition, it is impossible to remove on normal way.

  • "systemextensionsctl list" shows my extension is activated.
  • Remove by API failed with code=4.
  • Removing file of MyApp.app does not remove CameraExtension

Only way to remove CameraExtension is "Boot macOS as recovery mode", disable SIP, "systemextensionsctl uninstall"

Audio HAL extension is file based and ATOMIC. I can check file existence by "ls" command and remove by "rm -rf" command. I never met unstable condition.

I can only offer the same suggestion I offered in the other thread where you raised this.

Share and Enjoy

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

CMIO CameraExtension installation is not ATOMIC
 
 
Q