Last active
February 10, 2021 04:45
-
-
Save mtauraso/b4839ee262ab6f612805 to your computer and use it in GitHub Desktop.
TCC Database Script
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# This will add lauchd to the list of allowed processes for accessibility access | |
sudo sqlite3 /Library/Application\ Support/com.apple.TCC/TCC.db "INSERT or REPLACE INTO access VALUES('kTCCServiceAccessibility','/sbin/launchd',1,1,1,NULL)" | |
# This outputs the rows in the TCC database | |
sudo sqlite3 /Library/Application\ Support/com.apple.TCC/TCC.db 'select * from access' | |
echo "Restart is required for these changes to take effect" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I found out that in macOS Sierra, TCC is not allowed to be modified unless SIP is disabled.