愿意:界面上直接空白的,无法手动或自动弹出要配置授权的软件
解决思路:
给 TCC.db 增加1条权限记录
添加到数据库里
/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);"
us.zoom.xos 就是你要修改的值
查询麦克风授权的
/usr/bin/sqlite3 ~/Library/Application\ Support/com.apple.TCC/TCC.db "select * from Access where service='kTCCServiceMicrophone'"
已授权的列表
/usr/bin/sqlite3 ~/Library/Application\ Support/com.apple.TCC/TCC.db "select * from Access "
案例 飞书麦克风
访达->应用程序->飞书,右击显示包内容,打开方式用 文本编辑 打开
在文本编辑中搜索 CFBundleIdentifier,在它的下一行,就是我们要找的数据 com.electron.lark
在终端里执行
/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', 'com.electron.lark', 0, 2, 4, 1, NULL, NULL, 0, 'UNUSED', NULL, 0, 1698058859, NULL, NULL, 'UNUSED', 1698058859);"
关闭 系统设置。重新打开 麦克风权限那里,你会发现已经 有飞书 麦克风 权限了
参考:
https://discussionschinese.apple.com/thread/255203283