macOS Big Sur 添加麦克风,摄像头权限给应用
for arp in ${ars[@]} do rig=${arp%%:*} app=${arp##*:} sql="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') VALUES ('${rig}', '${app}', 0, 2, 4, 1, NULL, NULL, 0, 'UNUSED', NULL, 0, 1698058859);" /usr/bin/sqlite3 ~/Library/Application\ Support/com.apple.TCC/TCC.db "${