Hello,
Is it possible to check if my application can access to the disk or not (System Preferences > Security & Privacy > Privacy > Full Disk Access)?
Nothing in the TCC.db…
Thanks.
Hello,
Is it possible to check if my application can access to the disk or not (System Preferences > Security & Privacy > Privacy > Full Disk Access)?
Nothing in the TCC.db…
Thanks.
No, other than trying it.
A solution… It’s necessary to copy the TCC.db file (on the Desktop, for example) and it’s possible to check with this command:
try
set checkAccessApp to do shell script "sqlite3 /Users/myaccount/Desktop/TCC.db 'SELECT * FROM access' | grep kTCCServiceSystemPolicyAllFiles"
if checkAccessApp contains "com.xxxxxx.myApp|0|1|1|" then
display alert "OK"
end if
on error
display alert "Not OK"
end try
Problem: It’s possible to copy the TCC.db file from the Finder but not with a command (operation not permitted)
do shell script "cp /Library/'Application Support'/com.apple.TCC/TCC.db /Users/myaccount/Desktop/TCC.db" with administrator privileges