Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
*._*
tccPlus.dmg
8 changes: 7 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ I never recommend manually modifying any system database because if a mistake is

Requires SIP and AMFI to be disabled.

Currently can only add one or all (not recommended) services at a time. Using `reset All` is fine.
Fixed adding, resetting multiple services at a time. (Command Click to select multiple services) Currently, script runs separate commands for each service.

```
tccplus [add/reset] SERVICE [BUNDLE_ID]
Expand Down Expand Up @@ -49,3 +49,9 @@ Services:
- Ubiquity
- Willow
```
Usage Example:
Run AppleScript.
Select Application.
Select services.
Select whether to add, reset service(s).
PROFIT!
13 changes: 9 additions & 4 deletions tccplus.applescript
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
# Applescript Initially created by Will http://junebeetle.github.io/
# Modified by Ben https://github.com/plessbd/
# Further modified to support 'reset' functionality for tccplus by FreQRiDeR/
# Uses tccplus https://github.com/jslegendre/tccplus/

to getHomePath()
do shell script "echo ~"
end getHomePath
Expand Down Expand Up @@ -41,22 +43,25 @@ repeat with outputLine in paragraphs of result
end if
end repeat

choose file of type "app" with prompt "Choose an application to add privileges." default location strAppPath
choose file of type "app" with prompt "Choose an application to modify privileges." default location strAppPath
set appPath to POSIX path of result

choose from list serviceNames with prompt "Choose privileges to add." with multiple selections allowed
choose from list serviceNames with prompt "Choose services to modify." with multiple selections allowed
set services to result

display dialog "Do you want to ADD or RESET the selected services?" buttons {"Cancel", "Reset", "Add"} default button 3 cancel button 1
set actionChoice to button returned of result
set actionChoice to (do shell script "echo " & quoted form of actionChoice & " | tr '[:upper:]' '[:lower:]'")

do shell script "defaults read " & quoted form of (appPath & "/Contents/Info.plist") & " CFBundleIdentifier"
set appID to result

set command to ""

repeat with service in services
set command to command & quoted form of toolPath & " add " & service & " " & appID & ";"
set command to command & quoted form of toolPath & " " & actionChoice & " " & service & " " & appID & ";"
end repeat

# set command to quoted form of toolPath & " add " & service & " " & appID
display dialog "The following commands will be run. Is that okay?" buttons {"Cancel", "Run"} default answer command cancel button 1 default button 2

tell application "Terminal"
Expand Down
28 changes: 0 additions & 28 deletions wrapper.sh

This file was deleted.