愿意:界面上直接空白的,无法手动或自动弹出要配置授权的软件
解决思路:
给 TCC.db 增加1条权限记录
添加到数据库里
shell
/usr/bin/sqlite3 ~/Library/Application\ Support/com.apple.TCC/TCC.db "INSERT INTO 'main'.'access' ('service', 'client', 'client_type', 'auth_value', 'auth_reason', 'auth_version', 'csreq', 'policy_id', 'indirect_object_identifier_type', 'indirect_object_identifier', 'indirect_object_code_identity', 'flags', 'last_modified', 'pid', 'pid_version', 'boot_uuid', 'last_reminded')
VALUES ('kTCCServiceMicrophone', 'us.zoom.xos', 0, 2, 4, 1, NULL, NULL, 0, 'UNUSED', NULL, 0, 1698058859, NULL, NULL, 'UNUSED', 1698058859);"
查询麦克风授权的
shell
/usr/bin/sqlite3 ~/Library/Application\ Support/com.apple.TCC/TCC.db "select * from Access where service='kTCCServiceMicrophone'"
已授权的列表
shell
/usr/bin/sqlite3 ~/Library/Application\ Support/com.apple.TCC/TCC.db "select * from Access "
参考: