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

Sonoma fixes #66

Merged
merged 2 commits into from
Feb 17, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions tccutil.py
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ def open_database(digest=False):
accessTableDigest in ["3d1c2a0e97", "cef70648de"]) or
# Sonoma
(osx_version >= version('14.0') and
accessTableDigest in ["34abf99d20"])
accessTableDigest in ["34abf99d20", "e3a2181c14"])
):
print(f"TCC Database structure is unknown ({accessTableDigest})", file=sys.stderr)
sys.exit(1)
Expand Down Expand Up @@ -249,7 +249,7 @@ def insert_client(client):
client_type = cli_util_or_bundle_id(client)
verbose_output(f'Inserting "{client}" into Database...')
# Sonoma
if osx_version >= version('10.16'):
if osx_version >= version('14.0'):
try:
c.execute(f"INSERT or REPLACE INTO access VALUES('{service}','{client}',{client_type},2,4,1,NULL,NULL,0,'UNUSED',NULL,0, NULL, NULL, NULL,'UNUSED', NULL)")
except sqlite3.OperationalError:
Expand Down
Loading