2016-02-23 20:12:32 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
set +x
|
|
|
|
|
|
|
|
FILES=""
|
|
|
|
|
|
|
|
## Remove Internet Providers / Sharing / iCloud
|
|
|
|
FILES+="
|
|
|
|
/System/Library/PreferencePanes/iCloudPref.prefPane
|
2016-03-08 10:59:50 +00:00
|
|
|
/usr/libexec/sharingd
|
|
|
|
/System/Library/InternetAccounts/iCloud.iaplugin
|
|
|
|
/System/Library/CoreServices/cloudpaird
|
|
|
|
/System/Library/LaunchAgents/com.apple.cloudpaird.plist
|
|
|
|
/System/Library/PrivateFrameworks/CloudDocsDaemon.framework/Versions/A/Support/bird
|
|
|
|
/System/Library/LaunchAgents/com.apple.CommCenter-osx.plist
|
|
|
|
/System/Library/LaunchDaemons/com.apple.CommCenterRootHelper.plist
|
2016-02-23 20:12:32 +00:00
|
|
|
"
|
|
|
|
|
2016-03-08 10:59:50 +00:00
|
|
|
# /System/Library/PrivateFrameworks/SafariShared.framework/Versions/A/XPCServices/com.apple.Safari.SearchHelper.xpc
|
|
|
|
# /System/Library/PrivateFrameworks/SafariShared.framework/Versions/A/XPCServices/com.apple.Safari.SocialHelper.xpc
|
|
|
|
|
2016-02-23 20:12:32 +00:00
|
|
|
## Remove all crash reporting daemons
|
|
|
|
FILES+="
|
|
|
|
/System/Library/LaunchAgents/com.apple.ReportPanic.plist
|
|
|
|
/System/Library/CoreServices/ReportPanic.app/Contents/MacOS/ReportPanic
|
|
|
|
/System/Library/LaunchAgents/com.apple.ReportCrash.Self.plist
|
|
|
|
/System/Library/CoreServices/ReportCrash
|
|
|
|
/System/Library/LaunchAgents/com.apple.ReportCrash.plist
|
|
|
|
/System/Library/LaunchAgents/com.apple.ReportGPURestart.plist
|
|
|
|
/System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/ReportGPURestart
|
|
|
|
/System/Library/LaunchAgents/com.apple.rtcreportingd.plist
|
|
|
|
/usr/libexec/rtcreportingd
|
|
|
|
/System/Library/LaunchDaemons/com.apple.SubmitDiagInfo.plist
|
|
|
|
/System/Library/CoreServices/SubmitDiagInfo
|
|
|
|
/System/Library/LaunchAgents/com.apple.diagnostics_agent.plist
|
|
|
|
/System/Library/CoreServices/diagnostics_agent
|
2016-03-08 10:59:50 +00:00
|
|
|
/usr/sbin/spindump
|
|
|
|
/usr/libexec/spindump_agent
|
|
|
|
/System/Library/LaunchAgents/com.apple.spindump_agent.plist
|
2016-02-23 20:12:32 +00:00
|
|
|
"
|
|
|
|
|
2016-03-08 10:59:50 +00:00
|
|
|
## Remove Spotlight network support
|
2016-02-23 20:12:32 +00:00
|
|
|
FILES+="
|
|
|
|
/System/Library/LaunchAgents/com.apple.metadata.SpotlightNetHelper.plist
|
|
|
|
"
|
|
|
|
|
|
|
|
## Remove CommCenter
|
2016-03-08 10:59:50 +00:00
|
|
|
#FILES+="
|
|
|
|
# /System/Library/Frameworks/CoreTelephony.framework
|
|
|
|
#"
|
|
|
|
|
|
|
|
## remove spotlight suggestions/helper
|
|
|
|
#FILES+="
|
|
|
|
# /System/Library/LaunchAgents/com.apple.suggestd.plist
|
|
|
|
# /System/Library/PrivateFrameworks/CoreSuggestions.framework
|
|
|
|
#"
|
|
|
|
|
|
|
|
# remove phone-home xpc services
|
2016-02-23 20:12:32 +00:00
|
|
|
FILES+="
|
2016-03-08 10:59:50 +00:00
|
|
|
/System/Library/PrivateFrameworks/GeoServices.framework/Versions/A/XPCServices/com.apple.geod.xpc
|
|
|
|
/System/Library/Frameworks/AddressBook.framework/Versions/A/XPCServices/com.apple.AddressBook.ContactsAccountsService.xpc
|
|
|
|
/System/Library/Frameworks/AddressBook.framework/Versions/A/XPCServices/com.apple.AddressBook.FaceTimeService.xpc
|
|
|
|
/System/Library/Frameworks/AddressBook.framework/Versions/A/XPCServices/com.apple.AddressBook.InternetAccountsBridge.xpc
|
2016-02-23 20:12:32 +00:00
|
|
|
"
|
|
|
|
|
2016-03-08 10:59:50 +00:00
|
|
|
# commercekit contains some xpc services that phone home,
|
|
|
|
# but without MAS support the system doesn't need any of it.
|
|
|
|
# disabled for suspected finder crash
|
|
|
|
|
|
|
|
#FILES+="
|
|
|
|
# /System/Library/PrivateFrameworks/CommerceKit.framework
|
|
|
|
#"
|
|
|
|
|
|
|
|
# SocialPushAgent:
|
|
|
|
FILES+="
|
|
|
|
/System/Library/CoreServices/SocialPushAgent.app
|
|
|
|
"
|
|
|
|
|
|
|
|
FILES+="
|
|
|
|
/System/Library/CoreServices/Software?Update.app/Contents/Resources/softwareupdated
|
|
|
|
/usr/libexec/UserEventAgent
|
|
|
|
/System/Library/PrivateFrameworks/IMFoundation.framework/XPCServices/IMRemoteURLConnectionAgent.xpc/Contents/MacOS/IMRemoteURLConnectionAgent
|
|
|
|
/System/Library/PrivateFrameworks/ApplePushService.framework/apsd
|
|
|
|
/usr/libexec/locationd
|
|
|
|
/System/Library/PrivateFrameworks/CommerceKit.framework/Versions/A/Resources/storeaccountd
|
|
|
|
/System/Library/CoreServices/Stocks.app/Contents/PlugIns/com.apple.ncplugin.stocks.appex
|
|
|
|
/System/Library/CoreServices/AppleIDAuthAgent
|
|
|
|
/System/Library/PrivateFrameworks/AssistantServices.framework/assistantd
|
|
|
|
/System/Library/PrivateFrameworks/HelpData.framework/Versions/A/Resources/helpd
|
|
|
|
"
|
|
|
|
|
|
|
|
## remove spyware apps (safari and mail and iTunes all phone home)
|
|
|
|
## facetime/messages/photos depend on APNS/iCloud, so unavailable
|
|
|
|
|
2016-02-23 20:12:32 +00:00
|
|
|
FILES+="
|
2016-03-08 10:59:50 +00:00
|
|
|
/Applications/Safari.app
|
|
|
|
/Applications/Mail.app
|
|
|
|
/Applications/Messages.app
|
|
|
|
/Applications/Photos.app
|
|
|
|
/Applications/FaceTime.app
|
|
|
|
/Applications/iTunes.app
|
|
|
|
/Applications/Maps.app
|
|
|
|
/Applications/App?Store.app
|
2016-02-23 20:12:32 +00:00
|
|
|
"
|
|
|
|
|
|
|
|
for FILE in $FILES ; do
|
2016-03-08 10:59:50 +00:00
|
|
|
rm -rfv "$3/$FILE"
|
2016-02-23 20:12:32 +00:00
|
|
|
done
|