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

macOS 12+ uses auth_value=2 to enable an application #67

Merged

Conversation

C-Duv
Copy link
Contributor

@C-Duv C-Duv commented Feb 26, 2024

This PR aims to fix #61 by changing the value the scripts sets the auth_value field to on macOS 12+.

Lacking more information/data I don't know if I rather use 12.4 (from the #61's OP) as a "pivot" version instead of 12.0 as I did.

Feel free to comment with more information.

The script was setting auth_value to value `1` when enabling an application/client in the tccutil database.

According to jacobsalmela#61, on macOS 12.4 and macOS 13.5 the correct value for enabling is `2`.

This commit adds a conditional value depending on OS version to use `auth_value=2` on macOS 12.0 and higher.

Issue: jacobsalmela#61
@jacobsalmela
Copy link
Owner

Seems reasonable without breaking existing functionality.

@jacobsalmela jacobsalmela merged commit 512b611 into jacobsalmela:main Feb 26, 2024
1 of 2 checks passed
@C-Duv C-Duv deleted the fix/gh61/enable_with_auth_value_set_to_2 branch July 25, 2024 08:13
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

Successfully merging this pull request may close these issues.

Should auth_value be 2 when enabling?
2 participants