172

Mac隐私中的摄像头和麦克风没有应用列表,如何解决?

 2 years ago
source link: https://www.oschina.net/question/873167_2324087
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client

Mac隐私中的摄像头和麦克风没有应用列表,如何解决?

柠檬夕桐 发布于 今天 14:43

第一步:关机后重启长按Command+R,打开命令行输入:csrutil disable

第二步:重启进入用户桌面,打卡命令行输入:

sqlite3 ~/Library/Application\ Support/com.apple.TCC/TCC.db "INSERT or REPLACE INTO access VALUES('kTCCServiceMicrophone','com.google.Chrome',0,1,1,NULL,NULL,NULL,'UNUSED',NULL,0,1577993260);"

注意:com.google.Chrome为需要添加权限的应用包名路径(应用右键→显示包内容→找到Info.plist打开→找到CFBundleIdentifier→复制下一行的值进行替换)。kTCCServiceMicrophone为需要添加的权限,如摄像头为kTCCServiceCamera,麦克风为kTCCServiceMicrophone。

第三步:系统偏好设置→安全性与隐私→隐私→摄像头或麦克风→查看右边是否已有添加的权限应用

第四步:关机后重启长按Command+R,打开命令行输入:csrutil enable


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK