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 alternative table structure digest for late 10.11 versions #22

Closed antontsv closed 7 years ago

antontsv commented 7 years ago
* 9b2ea61b30 digest [early 10.11] is for:
CREATE TABLE access ( service   TEXT  NOT NULL,   client    TEXT  NOT NULL,   client_type INTEGENOT NULL,   allowed   INTEGER NOT NULL,   prompt_count  INTEGER NOT NULL,   csreq   BLOB,   policy_id INTEGER,  PRIMARY KEY (service, client, client_type), FOREIGN KEY (policy_id) REFERENCES policies(id) ON DELETE CASCADE ON UPDATE CASCADE)

* 1072dc0e4b digest [late 10.11, early 10.12] is for:
CREATE TABLE "access" ( service   TEXT  NOT NULL,   client    TEXT  NOT NULL,   client_type INTEGENOT NULL,   allowed   INTEGER NOT NULL,   prompt_count  INTEGER NOT NULL,   csreq   BLOB,   policy_id INTEGER,  PRIMARY KEY (service, client, client_type), FOREIGN KEY (policy_id) REFERENCES policies(id) ON DELETE CASCADE ON UPDATE CASCADE)
antontsv commented 7 years ago

Addresses issue https://github.com/jacobsalmela/tccutil/issues/21

jacobsalmela commented 7 years ago

Thanks man!