jacobsalmela / tccutil

♿️ Command line tool to modify OS X's accessibility database (TCC.db)
https://jacobsalmela.com/2014/07/14/tccutil-py-command-line-utility-modifying-accessibility-database-os-x/
GNU General Public License v2.0
471 stars 62 forks source link

Add insert support for Catalina #32

Closed brycebostwick closed 4 years ago

brycebostwick commented 4 years ago

For anyone else with SIP disabled that's still happily using tccutil in spite of #18 — there was some brief mention of this previously (in comments on #28), but it looks like the schema fo the access table has changed in Catalina.

There seem to be only a few columns added (and all of them work fine with some default values)

indirect_object_identifier_type    INTEGER,
indirect_object_identifier         TEXT,
indirect_object_code_identity      BLOB,
flags                              INTEGER, 
last_modified                      INTEGER NOT NULL DEFAULT (CAST(strftime('%s','now') AS INTEGER)

Tested the change with macOS 10.15.1 and it works well — based on the comments in #28 (where the error message called out an addition of 5 unexpected columns, back in March) I'm optimistic this is generally applicable to 10.15.0 as well.

Brief summary of changes:

dwoz commented 8 months ago

There could be some kind of work around if we were table to grant full disk access pragmatically:

https://forums.developer.apple.com/forums/thread/670923