Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

imaging-edge-webcam 120_2403a,xB4KucKqdT (new cask) #198845

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

diemogebhardt
Copy link

@diemogebhardt diemogebhardt commented Jan 20, 2025

Important: Do not tick a checkbox if you haven’t performed its action. Honesty is indispensable for a smooth review process.

In the following questions <cask> is the token of the cask you're submitting.

After making any changes to a cask, existing or new, verify:

Additionally, if adding a new cask:

  • Named the cask according to the token reference.
  • Checked the cask was not already refused (add your cask's name to the end of the search field).
  • brew audit --cask --new <cask> worked successfully.
  • HOMEBREW_NO_INSTALL_FROM_API=1 brew install --cask <cask> worked successfully.
  • brew uninstall --cask <cask> worked successfully.
  • brew uninstall --cask <cask> --zap worked successfully.

pkg "IEW_INST.pkg"

uninstall pkgutil: "com.sony.Webcam"
# trash: "/Library/SystemExtensions/*/com.sony.imagingedge.iew.CameraExt.systemextension"
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This Cask installs a Camera Extension.

In System Settings > General > Login Items & Extensions:

image

It's location is /Library/SystemExtensions/*/com.sony.imagingedge.iew.CameraExt.systemextension and it can't be removed due to an Operation not permitted error:

==> Implied `brew uninstall --cask imaging-edge-webcam`
==> Uninstalling packages with sudo; the password may be necessary:
==> Removing files:
/Library/SystemExtensions/*/com.sony.imagingedge.iew.CameraExt.systemextension
Password:
rm: /Library/SystemExtensions/*/com.sony.imagingedge.iew.CameraExt.systemextension/Contents/_CodeSignature/CodeResources: Operation not permitted
rm: /Library/SystemExtensions/*/com.sony.imagingedge.iew.CameraExt.systemextension/Contents/_CodeSignature: Operation not permitted
rm: /Library/SystemExtensions/*/com.sony.imagingedge.iew.CameraExt.systemextension/Contents/MacOS/com.sony.imagingedge.iew.CameraExt: Operation not permitted
rm: /Library/SystemExtensions/*/com.sony.imagingedge.iew.CameraExt.systemextension/Contents/MacOS: Operation not permitted
rm: /Library/SystemExtensions/*/com.sony.imagingedge.iew.CameraExt.systemextension/Contents/Resources/dummy_gray.jpg: Operation not permitted
rm: /Library/SystemExtensions/*/com.sony.imagingedge.iew.CameraExt.systemextension/Contents/Resources/dummy_white.jpg: Operation not permitted
rm: /Library/SystemExtensions/*/com.sony.imagingedge.iew.CameraExt.systemextension/Contents/Resources: Operation not permitted
rm: /Library/SystemExtensions/*/com.sony.imagingedge.iew.CameraExt.systemextension/Contents/Frameworks/LjAdapter/libLja_PTP_USB.dylib: Operation not permitted
rm: /Library/SystemExtensions/*/com.sony.imagingedge.iew.CameraExt.systemextension/Contents/Frameworks/LjAdapter/libusb-1.0.0.dylib: Operation not permitted
rm: /Library/SystemExtensions/*/com.sony.imagingedge.iew.CameraExt.systemextension/Contents/Frameworks/LjAdapter: Operation not permitted
rm: /Library/SystemExtensions/*/com.sony.imagingedge.iew.CameraExt.systemextension/Contents/Frameworks: Operation not permitted
rm: /Library/SystemExtensions/*/com.sony.imagingedge.iew.CameraExt.systemextension/Contents/Info.plist: Operation not permitted
rm: /Library/SystemExtensions/*/com.sony.imagingedge.iew.CameraExt.systemextension/Contents: Operation not permitted
rm: /Library/SystemExtensions/*/com.sony.imagingedge.iew.CameraExt.systemextension: Operation not permitted

How are we going to handle this best? Neither trash nor delete works, that's why it's commented out.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does the pkg uninstall not remove this?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It didn't on my machine – neither from the System Settings nor the Path.

I tried to remove it manually from the System Settings, which worked, but kept the extension in the Path: /Library/SystemExtensions/*/com.sony.imagingedge.iew.CameraExt.systemextension. * = UUID1

Then, after installing again, it shows up as expected in System Settings and there is a second extension in the Path: /Library/SystemExtensions/*/com.sony.imagingedge.iew.CameraExt.systemextension. * = UUID2

Copy link
Author

@diemogebhardt diemogebhardt Jan 20, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

❯ systemextensionsctl list
2 extension(s)
--- com.apple.system_extension.cmio (Go to 'System Settings > General > Login Items & Extensions > Camera Extensions' to modify these system extension(s))
enabled active  teamID  bundleID (version)      name    [state]
                __________      com.sony.imagingedge.iew.CameraExt (1.2.0.02210/1)      CameraExt       [terminated waiting to uninstall on reboot]
*       *       __________      com.sony.imagingedge.iew.CameraExt (1.2.0.02210/1)      CameraExt       [activated enabled]

❯ brew uninstall imaging-edge-webcam --zap
Error: Cask 'imaging-edge-webcam' is not installed.

This shows both instances of the Camera Extension:

  • The first one [terminated waiting to uninstall on reboot], that I deleted manually in System Settings
  • and the second one [activated enabled], that is not being removed by pkg uninstall.

Removing the Camera Extension manually via System Settings > General > Login Items & Extensions > Camera Extensions seems to work.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The ftdi-vcp-driver cask has a similar limitation with system extensions. I've expanded the comment to better explain the situation. Should we also add a caveat to inform users that they need to manually remove the extension through System Settings > General > Login Items & Extensions?

@diemogebhardt diemogebhardt force-pushed the add-imaging-edge-webcam branch 5 times, most recently from d6f3ff2 to 9b9bafd Compare January 20, 2025 12:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants