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

Error on inject: System Policy: backboardd(38962) deny(1) file-read-data /Users/...user.../Documents/GitHub/VisionOSStereoScreenshots/libvisionos_stereo_screenshots.dylib #5

Open
rbaileyquintar opened this issue Sep 2, 2023 · 2 comments

Comments

@rbaileyquintar
Copy link

Is there something special for permissions needed in order to inject the dylib?

richardbailey@RICHARDs-MacBook-Pro VisionOSStereoScreenshots % ./inject.sh

Service configured for next launch.
richardbailey@RICHARDs-MacBook-Pro VisionOSStereoScreenshots % ./screenshot.sh

richardbailey@RICHARDs-MacBook-Pro VisionOSStereoScreenshots %

VisionOS Console:
launchctl default 12:38:54.803397-0700 launchctl launchctl debug: launchctl debug user/501/com.apple.backboardd --environment DYLD_INSERT_LIBRARIES=/Users/richardbailey/Documents/GitHub/VisionOSStereoScreenshots/libvisionos_stereo_screenshots.dylib
launchctl default 12:38:54.803397-0700 launchctl launchctl debug: launchctl debug user/501/com.apple.backboardd --environment DYLD_INSERT_LIBRARIES=/Users/richardbailey/Documents/GitHub/VisionOSStereoScreenshots/libvisionos_stereo_screenshots.dylib
launchctl default 12:38:54.803397-0700 launchctl launchctl debug: launchctl debug user/501/com.apple.backboardd --environment DYLD_INSERT_LIBRARIES=/Users/richardbailey/Documents/GitHub/VisionOSStereoScreenshots/libvisionos_stereo_screenshots.dylib
launchctl default 12:38:54.803397-0700 launchctl launchctl debug: launchctl debug user/501/com.apple.backboardd --environment DYLD_INSERT_LIBRARIES=/Users/richardbailey/Documents/GitHub/VisionOSStereoScreenshots/libvisionos_stereo_screenshots.dylib

macOS console:
launchctl default 12:31:56.304867-0700 launchctl launchctl debug: launchctl debug user/501/com.apple.backboardd --environment DYLD_INSERT_LIBRARIES=/Users/richardbailey/Documents/GitHub/VisionOSStereoScreenshots/libvisionos_stereo_screenshots.dylib
Sandbox error 12:31:56.655487-0700 kernel System Policy: backboardd(38962) deny(1) file-read-data /Users/richardbailey/Documents/GitHub/VisionOSStereoScreenshots/libvisionos_stereo_screenshots.dylib
Sandbox error 12:31:56.655615-0700 kernel 1 duplicate report for System Policy: backboardd(38962) deny(1) file-read-data /Users/richardbailey/Documents/GitHub/VisionOSStereoScreenshots/libvisionos_stereo_screenshots.dylib

@rbaileyquintar
Copy link
Author

Ok, I copied the dylib into the simulator directory and injected from there:
cp /Users/richardbailey/Documents/GitHub/VisionOSStereoScreenshots/libvisionos_stereo_screenshots.dylib /Users/richardbailey/Library/Developer/CoreSimulator/Devices/5D875511-639B-4C0C-AD06-CDBC007B5D47/data

xcrun simctl spawn booted launchctl debug user/$UID/com.apple.backboardd --environment DYLD_INSERT_LIBRARIES=/Users/richardbailey/Library/Developer/CoreSimulator/Devices/5D875511-639B-4C0C-AD06-CDBC007B5D47/data/libvisionos_stereo_screenshots.dylib

That cleared the console issues:
AppleMobileFileIntegrity default 13:07:29.076396-0700 kernel AMFI: '/Users/richardbailey/Library/Developer/CoreSimulator/Devices/5D875511-639B-4C0C-AD06-CDBC007B5D47/data/libvisionos_stereo_screenshots.dylib' has no CMS blob?
AppleMobileFileIntegrity default 13:07:29.076410-0700 kernel AMFI: '/Users/richardbailey/Library/Developer/CoreSimulator/Devices/5D875511-639B-4C0C-AD06-CDBC007B5D47/data/libvisionos_stereo_screenshots.dylib': Unrecoverable CT signature issue, bailing out.
libvisionos_stereo_screenshots.dylib default 13:07:29.311712-0700 backboardd visionos_stereo_screenshots starting!

I'n not seeing the file written out.

@rgsaura
Copy link

rgsaura commented Nov 5, 2023

Did you manage to solve it? @rbaileyquintar

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants