-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathBigSur tccutil fix.command
41 lines (36 loc) · 1.71 KB
/
BigSur tccutil fix.command
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
#!/bin/sh
#!/bin/bash
# simple Bash Menu Script by jackluke
printf '\e[96m;%s\a' "$color"
printf "$'\e[40m'BigSur beta 1 tccutil fix by jackluke"
printf "\n\n\n"
clear && printf '\e[3J'
echo "Welcome to the BigSur beta 1 tccutil this should fix third party app permissions"
echo "\nBigSur prelinkedkernel fix can't be executed as standard user if you want to suspend the script just press CTRL+Z"
echo "\nto apply this fix your current account password is required\notherwise the script can't process\n"
echo "\nSetting nvram parameter to enforce compatibility check"
sudo nvram boot-args="-no_compat_check"
echo "Done"
echo "\nDetecting and adjusting BigSur APFS Preboot"
diskutil mount Preboot
if [ -e /Volumes/Preboot/*/boot/System/Library/KernelCollections/ ]
then
cd /Volumes/Preboot/*/boot/System/Library/KernelCollections/
cd .. ; cd .. ; cd .. ; cd ..
cd System/Library/CoreServices/
sudo mv PlatformSupport.plist PlatformSupport.plist2
sudo perl -p -i -e 's/amfi_get_out_of_my_way=1//g' com.apple.Boot.plist
echo "Done"
echo "\nAfter reboot your BigSur should use the stock tccutil"
elif [ -e /System/Volumes/Preboot/*/boot/System/Library/KernelCollections/ ]
then
cd /System/Volumes/Preboot/*/boot/System/Library/KernelCollections/
cd .. ; cd .. ; cd .. ; cd ..
cd System/Library/CoreServices/
sudo mv PlatformSupport.plist PlatformSupport.plist2
sudo perl -p -i -e 's/amfi_get_out_of_my_way=1//g' com.apple.Boot.plist
echo "Done"
echo "\nAfter reboot your BigSur should use the stock tccutil"
else
echo "\nWarning: you have multiple separate APFS containers to find your correct BigSur APFS Preboot type:\n\ndiskutil unmount Preboot\ndiskutil list | grep Preboot\n(select the largest MB Preboot and mount)\ndiskutil mount diskXsY\n\n"
fi