Skip to content

Instantly share code, notes, and snippets.

@conmute
Created August 23, 2020 20:23

Revisions

  1. @pwnsdx pwnsdx revised this gist Mar 28, 2020. 2 changed files with 18 additions and 6 deletions.
    12 changes: 9 additions & 3 deletions disable.sh
    Original file line number Diff line number Diff line change
    @@ -22,7 +22,7 @@ TODISABLE+=('com.apple.security.cloudkeychainproxy3' \
    'com.apple.icloud.searchpartyuseragent' \
    'com.apple.cloudd' \
    'com.apple.cloudpaird' \
    'com.apple.cloudphotod' \
    'com.apple.cloudphotosd' \
    'com.apple.followupd' \
    'com.apple.protectedcloudstorage.protectedcloudkeysyncing')

    @@ -124,7 +124,13 @@ TODISABLE+=('com.apple.telephonyutilities.callservicesd' \
    'com.apple.amp.mediasharingd' \
    'com.apple.mediaanalysisd' \
    'com.apple.mediaremoteagent' \
    'com.apple.remindd')
    'com.apple.remindd' \
    'com.apple.keyboardservicesd' \
    'com.apple.AddressBook.SourceSync' \
    'com.apple.telephonyutilities.callservicesd' \
    'com.apple.mobileassetd' \
    'com.apple.CalendarAgent' \
    'com.apple.knowledge-agent')

    for agent in "${TODISABLE[@]}"
    do
    @@ -136,7 +142,7 @@ done
    TODISABLE=()

    # iCloud
    TODISABLE+=('com.apple.analyticsd')
    TODISABLE+=('com.apple.analyticsd', 'com.apple.icloud.findmydeviced')

    # Others
    TODISABLE+=('com.apple.netbiosd' \
    12 changes: 9 additions & 3 deletions enable.sh
    Original file line number Diff line number Diff line change
    @@ -19,7 +19,7 @@ TOENABLE+=('com.apple.security.cloudkeychainproxy3' \
    'com.apple.icloud.searchpartyuseragent' \
    'com.apple.cloudd' \
    'com.apple.cloudpaird' \
    'com.apple.cloudphotod' \
    'com.apple.cloudphotosd' \
    'com.apple.followupd' \
    'com.apple.protectedcloudstorage.protectedcloudkeysyncing')

    @@ -121,7 +121,13 @@ TOENABLE+=('com.apple.telephonyutilities.callservicesd' \
    'com.apple.amp.mediasharingd' \
    'com.apple.mediaanalysisd' \
    'com.apple.mediaremoteagent' \
    'com.apple.remindd')
    'com.apple.remindd' \
    'com.apple.keyboardservicesd' \
    'com.apple.AddressBook.SourceSync' \
    'com.apple.telephonyutilities.callservicesd' \
    'com.apple.mobileassetd' \
    'com.apple.CalendarAgent' \
    'com.apple.knowledge-agent')

    for agent in "${TOENABLE[@]}"
    do
    @@ -133,7 +139,7 @@ done
    TOENABLE=()

    # iCloud
    TOENABLE+=('com.apple.analyticsd')
    TOENABLE+=('com.apple.analyticsd', 'com.apple.icloud.findmydeviced')

    # Others
    TOENABLE+=('com.apple.netbiosd' \
  2. @pwnsdx pwnsdx revised this gist Oct 26, 2019. 2 changed files with 8 additions and 0 deletions.
    4 changes: 4 additions & 0 deletions disable.sh
    Original file line number Diff line number Diff line change
    @@ -85,6 +85,10 @@ TODISABLE+=('com.apple.spindump_agent' \
    'com.apple.ReportPanic' \
    'com.apple.DiagnosticReportCleanup' \
    'com.apple.TrustEvaluationAgent')

    # Screentime
    TODISABLE+=('com.apple.ScreenTimeAgent' \
    'com.apple.UsageTrackingAgent')

    # Others
    TODISABLE+=('com.apple.telephonyutilities.callservicesd' \
    4 changes: 4 additions & 0 deletions enable.sh
    Original file line number Diff line number Diff line change
    @@ -83,6 +83,10 @@ TOENABLE+=('com.apple.spindump_agent' \
    'com.apple.DiagnosticReportCleanup' \
    'com.apple.TrustEvaluationAgent')

    # Screentime
    TOENABLE+=('com.apple.ScreenTimeAgent' \
    'com.apple.UsageTrackingAgent')

    # Others
    TOENABLE+=('com.apple.telephonyutilities.callservicesd' \
    'com.apple.photoanalysisd' \
  3. @pwnsdx pwnsdx revised this gist Oct 22, 2019. 2 changed files with 2 additions and 0 deletions.
    1 change: 1 addition & 0 deletions disable.sh
    Original file line number Diff line number Diff line change
    @@ -23,6 +23,7 @@ TODISABLE+=('com.apple.security.cloudkeychainproxy3' \
    'com.apple.cloudd' \
    'com.apple.cloudpaird' \
    'com.apple.cloudphotod' \
    'com.apple.followupd' \
    'com.apple.protectedcloudstorage.protectedcloudkeysyncing')

    # Safari useless stuff
    1 change: 1 addition & 0 deletions enable.sh
    Original file line number Diff line number Diff line change
    @@ -20,6 +20,7 @@ TOENABLE+=('com.apple.security.cloudkeychainproxy3' \
    'com.apple.cloudd' \
    'com.apple.cloudpaird' \
    'com.apple.cloudphotod' \
    'com.apple.followupd' \
    'com.apple.protectedcloudstorage.protectedcloudkeysyncing')

    # Safari useless stuff
  4. @pwnsdx pwnsdx revised this gist Oct 8, 2019. No changes.
  5. @pwnsdx pwnsdx revised this gist Sep 18, 2019. 1 changed file with 2 additions and 4 deletions.
    6 changes: 2 additions & 4 deletions enable.sh
    Original file line number Diff line number Diff line change
    @@ -8,9 +8,7 @@
    # Get active services: launchctl list | grep -v "\-\t0"
    # Find a service: grep -lR [service] /System/Library/Launch* /Library/Launch* ~/Library/LaunchAgents

    # Agents to disable
    # 'com.apple.speech.speechdatainstallerd' 'com.apple.speech.speechsynthesisd' 'com.apple.speech.synthesisserver' will freeze Edit menus
    # 'com.apple.bird' will prevent saving prompt from being shown
    # Agents to enable
    TOENABLE=()

    # iCloud
    @@ -126,7 +124,7 @@ do
    echo "[OK] Agent ${agent} disabled"
    done

    # Daemons to disable
    # Daemons to enable
    TOENABLE=()

    # iCloud
  6. @pwnsdx pwnsdx revised this gist Sep 18, 2019. 1 changed file with 0 additions and 1 deletion.
    1 change: 0 additions & 1 deletion enable.sh
    Original file line number Diff line number Diff line change
    @@ -4,7 +4,6 @@
    # IMPORTANT: You will need to run this script from Recovery. In fact, macOS Catalina brings read-only filesystem which prevent this script from working from the main OS.
    # This script needs to be run from the volume you wish to use.
    # E.g. run it like this: cd /Volumes/Macintosh\ HD && sh /Volumes/Macintosh\ HD/Users/sabri/Desktop/disable.sh
    # WARNING: It might disable things that you may not like. Please double check the services in the TOENABLE vars.

    # Get active services: launchctl list | grep -v "\-\t0"
    # Find a service: grep -lR [service] /System/Library/Launch* /Library/Launch* ~/Library/LaunchAgents
  7. @pwnsdx pwnsdx revised this gist Sep 18, 2019. 2 changed files with 0 additions and 8 deletions.
    4 changes: 0 additions & 4 deletions disable.sh
    Original file line number Diff line number Diff line change
    @@ -133,10 +133,6 @@ TODISABLE=()
    # iCloud
    TODISABLE+=('com.apple.analyticsd')

    # Ad-related
    TODISABLE+=('com.apple.ap.adprivacyd' \
    'com.apple.ap.adservicesd')

    # Others
    TODISABLE+=('com.apple.netbiosd' \
    'com.apple.preferences.timezone.admintool' \
    4 changes: 0 additions & 4 deletions enable.sh
    Original file line number Diff line number Diff line change
    @@ -133,10 +133,6 @@ TOENABLE=()
    # iCloud
    TOENABLE+=('com.apple.analyticsd')

    # Ad-related
    TOENABLE+=('com.apple.ap.adprivacyd' \
    'com.apple.ap.adservicesd')

    # Others
    TOENABLE+=('com.apple.netbiosd' \
    'com.apple.preferences.timezone.admintool' \
  8. @pwnsdx pwnsdx revised this gist Sep 18, 2019. 2 changed files with 281 additions and 13 deletions.
    139 changes: 136 additions & 3 deletions disable.sh
    Original file line number Diff line number Diff line change
    @@ -11,8 +11,115 @@

    # Agents to disable
    # 'com.apple.speech.speechdatainstallerd' 'com.apple.speech.speechsynthesisd' 'com.apple.speech.synthesisserver' will freeze Edit menus
    # 'com.apple.quicklook.ui.helper' will prevent saving prompt
    TODISABLE=('com.apple.SafariCloudHistoryPushAgent' 'com.apple.bird' 'com.apple.iCloudUserNotifications' 'com.apple.icloud.findmydeviced.findmydevice-user-agent' 'com.apple.icloud.fmfd' 'com.apple.icloud.searchpartyuseragent' 'com.apple.security.cloudkeychainproxy3' 'com.apple.cloudd' 'com.apple.cloudpaird' 'com.apple.cloudphotod' 'com.apple.SafariBookmarksSyncAgent' 'com.apple.SafariCloudHistoryPushAgent' 'com.apple.protectedcloudstorage.protectedcloudkeysyncing' 'com.apple.imagent' 'com.apple.imautomatichistorydeletionagent' 'com.apple.imklaunchagent' 'com.apple.imtransferagent' 'com.apple.avconferenced' 'com.apple.gamed' 'com.apple.passd' 'com.apple.Maps.pushdaemon' 'com.apple.screencaptureui' 'com.apple.screensharing.MessagesAgent' 'com.apple.screensharing.agent' 'com.apple.screensharing.menuextra' 'com.apple.telephonyutilities.callservicesd' 'com.apple.photoanalysisd' 'com.apple.parsecd' 'com.apple.AOSPushRelay' 'com.apple.AOSHeartbeat' 'com.apple.AirPlayUIAgent' 'com.apple.AirPortBaseStationAgent' 'com.apple.familycircled' 'com.apple.familycontrols.useragent' 'com.apple.familynotificationd' 'com.apple.findmymacmessenger' 'com.apple.videosubscriptionsd' 'com.apple.CommCenter-osx' 'com.apple.sharingd' 'com.apple.identityservicesd' 'com.apple.java.InstallOnDemand' 'com.apple.parentalcontrols.check' 'com.apple.parsec-fbf' 'com.apple.security.keychain-circle-notification' 'com.apple.syncdefaultsd' 'com.apple.appleseed.seedusaged' 'com.apple.appleseed.seedusaged.postinstall' 'com.apple.CallHistorySyncHelper' 'com.apple.RemoteDesktop' 'com.apple.CallHistoryPluginHelper' 'com.apple.SocialPushAgent' 'com.apple.WebKit.PluginAgent' 'com.apple.touristd' 'com.apple.macos.studentd' 'com.apple.KeyboardAccessAgent' 'com.apple.exchange.exchangesyncd' 'com.apple.suggestd' 'com.apple.AddressBook.abd' 'com.apple.ap.adprivacyd' 'com.apple.helpd' 'com.apple.homed' 'com.apple.ap.adservicesd' 'com.apple.amp.mediasharingd' 'com.apple.mediaanalysisd' 'com.apple.mediaremoteagent' 'com.apple.siriknowledged' 'com.apple.assistant_service' 'com.apple.assistantd' 'com.apple.Siri.agent' 'com.apple.VoiceOver' 'com.apple.voicememod' 'com.apple.accessibility.AXVisualSupportAgent' 'com.apple.accessibility.dfrhud' 'com.apple.accessibility.heard' 'com.apple.quicklook.ThumbnailsAgent' 'com.apple.quicklook' 'com.apple.remindd' 'com.apple.sidecar-hid-relay' 'com.apple.sidecar-relay' 'com.apple.spindump_agent' 'com.apple.ReportCrash' 'com.apple.ReportGPURestart' 'com.apple.ReportPanic' 'com.apple.DiagnosticReportCleanup' 'com.apple.TrustEvaluationAgent')
    # 'com.apple.bird' will prevent saving prompt from being shown
    TODISABLE=()

    # iCloud
    TODISABLE+=('com.apple.security.cloudkeychainproxy3' \
    'com.apple.iCloudUserNotifications' \
    'com.apple.icloud.findmydeviced.findmydevice-user-agent' \
    'com.apple.icloud.fmfd' \
    'com.apple.icloud.searchpartyuseragent' \
    'com.apple.cloudd' \
    'com.apple.cloudpaird' \
    'com.apple.cloudphotod' \
    'com.apple.protectedcloudstorage.protectedcloudkeysyncing')

    # Safari useless stuff
    TODISABLE+=('com.apple.SafariBookmarksSyncAgent' \
    'com.apple.SafariCloudHistoryPushAgent' \
    'com.apple.WebKit.PluginAgent')

    # iMessage / Facetime
    TODISABLE+=('com.apple.imagent' \
    'com.apple.imautomatichistorydeletionagent' \
    'com.apple.imklaunchagent' \
    'com.apple.imtransferagent' \
    'com.apple.avconferenced')

    # Game Center / Passbook / Apple TV / Homekit...
    TODISABLE+=('com.apple.gamed' \
    'com.apple.passd' \
    'com.apple.Maps.pushdaemon' \
    'com.apple.videosubscriptionsd' \
    'com.apple.CommCenter-osx' \
    'com.apple.homed')

    # Ad-related
    TODISABLE+=('com.apple.ap.adprivacyd' \
    'com.apple.ap.adservicesd')

    # Screensharing
    TODISABLE+=('com.apple.screensharing.MessagesAgent' \
    'com.apple.screensharing.agent' \
    'com.apple.screensharing.menuextra')

    # Siri
    TODISABLE+=('com.apple.siriknowledged' \
    'com.apple.assistant_service' \
    'com.apple.assistantd' \
    'com.apple.Siri.agent' \
    'com.apple.parsec-fbf')

    # VoiceOver / accessibility-related stuff
    TODISABLE+=('com.apple.VoiceOver' \
    'com.apple.voicememod' \
    'com.apple.accessibility.AXVisualSupportAgent' \
    'com.apple.accessibility.dfrhud' \
    'com.apple.accessibility.heard')

    # Quicklook
    TODISABLE+=('com.apple.quicklook.ui.helper' \
    'com.apple.quicklook.ThumbnailsAgent' \
    'com.apple.quicklook')

    # Sidecar
    TODISABLE+=('com.apple.sidecar-hid-relay' \
    'com.apple.sidecar-relay')

    # Debugging process
    TODISABLE+=('com.apple.spindump_agent' \
    'com.apple.ReportCrash' \
    'com.apple.ReportGPURestart' \
    'com.apple.ReportPanic' \
    'com.apple.DiagnosticReportCleanup' \
    'com.apple.TrustEvaluationAgent')

    # Others
    TODISABLE+=('com.apple.telephonyutilities.callservicesd' \
    'com.apple.photoanalysisd' \
    'com.apple.parsecd' \
    'com.apple.AOSPushRelay' \
    'com.apple.AOSHeartbeat' \
    'com.apple.AirPlayUIAgent' \
    'com.apple.AirPortBaseStationAgent' \
    'com.apple.familycircled' \
    'com.apple.familycontrols.useragent' \
    'com.apple.familynotificationd' \
    'com.apple.findmymacmessenger' \
    'com.apple.sharingd' \
    'com.apple.identityservicesd' \
    'com.apple.java.InstallOnDemand' \
    'com.apple.parentalcontrols.check' \
    'com.apple.security.keychain-circle-notification' \
    'com.apple.syncdefaultsd' \
    'com.apple.appleseed.seedusaged' \
    'com.apple.appleseed.seedusaged.postinstall' \
    'com.apple.CallHistorySyncHelper' \
    'com.apple.RemoteDesktop' \
    'com.apple.CallHistoryPluginHelper' \
    'com.apple.SocialPushAgent' \
    'com.apple.touristd' \
    'com.apple.macos.studentd' \
    'com.apple.KeyboardAccessAgent' \
    'com.apple.exchange.exchangesyncd' \
    'com.apple.suggestd' \
    'com.apple.AddressBook.abd' \
    'com.apple.helpd' \
    'com.apple.amp.mediasharingd' \
    'com.apple.mediaanalysisd' \
    'com.apple.mediaremoteagent' \
    'com.apple.remindd')

    for agent in "${TODISABLE[@]}"
    do
    @@ -21,7 +128,33 @@ do
    done

    # Daemons to disable
    TODISABLE=('com.apple.netbiosd' 'com.apple.preferences.timezone.admintool' 'com.apple.remotepairtool' 'com.apple.security.FDERecoveryAgent' 'com.apple.icloud.findmydeviced' 'com.apple.icloud.searchpartyd' 'com.apple.familycontrols' 'com.apple.findmymac' 'com.apple.findmymacmessenger' 'com.apple.SubmitDiagInfo' 'com.apple.screensharing' 'com.apple.appleseed.fbahelperd' 'com.apple.apsd' 'com.apple.ManagedClient.cloudconfigurationd' 'com.apple.ManagedClient.enroll' 'com.apple.ManagedClient' 'com.apple.ManagedClient.startup' 'com.apple.locate' 'com.apple.locationd' 'com.apple.eapolcfg_auth' 'com.apple.RemoteDesktop.PrivilegeProxy' 'com.apple.mediaremoted' 'com.apple.analyticsd')
    TODISABLE=()

    # iCloud
    TODISABLE+=('com.apple.analyticsd')

    # Ad-related
    TODISABLE+=('com.apple.ap.adprivacyd' \
    'com.apple.ap.adservicesd')

    # Others
    TODISABLE+=('com.apple.netbiosd' \
    'com.apple.preferences.timezone.admintool' \
    'com.apple.remotepairtool' \
    'com.apple.security.FDERecoveryAgent' \
    'com.apple.SubmitDiagInfo' \
    'com.apple.screensharing' \
    'com.apple.appleseed.fbahelperd' \
    'com.apple.apsd' \
    'com.apple.ManagedClient.cloudconfigurationd' \
    'com.apple.ManagedClient.enroll' \
    'com.apple.ManagedClient' \
    'com.apple.ManagedClient.startup' \
    'com.apple.locate' \
    'com.apple.locationd' \
    'com.apple.eapolcfg_auth' \
    'com.apple.RemoteDesktop.PrivilegeProxy' \
    'com.apple.mediaremoted')

    for daemon in "${TODISABLE[@]}"
    do
    155 changes: 145 additions & 10 deletions enable.sh
    Original file line number Diff line number Diff line change
    @@ -4,25 +4,160 @@
    # IMPORTANT: You will need to run this script from Recovery. In fact, macOS Catalina brings read-only filesystem which prevent this script from working from the main OS.
    # This script needs to be run from the volume you wish to use.
    # E.g. run it like this: cd /Volumes/Macintosh\ HD && sh /Volumes/Macintosh\ HD/Users/sabri/Desktop/disable.sh
    # WARNING: It might disable things that you may not like. Please double check the services in the TODISABLE vars.
    # WARNING: It might disable things that you may not like. Please double check the services in the TOENABLE vars.

    # Get active services: launchctl list | grep -v "\-\t0"
    # Find a service: grep -lR [service] /System/Library/Launch* /Library/Launch* ~/Library/LaunchAgents

    # Agents to enable
    TOENABLE=('com.apple.SafariCloudHistoryPushAgent' 'com.apple.bird' 'com.apple.iCloudUserNotifications' 'com.apple.icloud.findmydeviced.findmydevice-user-agent' 'com.apple.icloud.fmfd' 'com.apple.icloud.searchpartyuseragent' 'com.apple.security.cloudkeychainproxy3' 'com.apple.cloudd' 'com.apple.cloudpaird' 'com.apple.cloudphotod' 'com.apple.SafariBookmarksSyncAgent' 'com.apple.SafariCloudHistoryPushAgent' 'com.apple.protectedcloudstorage.protectedcloudkeysyncing' 'com.apple.imagent' 'com.apple.imautomatichistorydeletionagent' 'com.apple.imklaunchagent' 'com.apple.imtransferagent' 'com.apple.avconferenced' 'com.apple.gamed' 'com.apple.passd' 'com.apple.Maps.pushdaemon' 'com.apple.screencaptureui' 'com.apple.screensharing.MessagesAgent' 'com.apple.screensharing.agent' 'com.apple.screensharing.menuextra' 'com.apple.telephonyutilities.callservicesd' 'com.apple.photoanalysisd' 'com.apple.parsecd' 'com.apple.AOSPushRelay' 'com.apple.AOSHeartbeat' 'com.apple.AirPlayUIAgent' 'com.apple.AirPortBaseStationAgent' 'com.apple.DictationIM' 'com.apple.familycircled' 'com.apple.familycontrols.useragent' 'com.apple.familynotificationd' 'com.apple.findmymacmessenger' 'com.apple.videosubscriptionsd' 'com.apple.CommCenter-osx' 'com.apple.sharingd' 'com.apple.identityservicesd' 'com.apple.java.InstallOnDemand' 'com.apple.parentalcontrols.check' 'com.apple.parsec-fbf' 'com.apple.security.keychain-circle-notification' 'com.apple.syncdefaultsd' 'com.apple.appleseed.seedusaged' 'com.apple.appleseed.seedusaged.postinstall' 'com.apple.CallHistorySyncHelper' 'com.apple.RemoteDesktop' 'com.apple.CallHistoryPluginHelper' 'com.apple.SocialPushAgent' 'com.apple.WebKit.PluginAgent' 'com.apple.touristd' 'com.apple.macos.studentd' 'com.apple.KeyboardAccessAgent' 'com.apple.exchange.exchangesyncd' 'com.apple.suggestd' 'com.apple.AddressBook.abd' 'com.apple.ap.adprivacyd' 'com.apple.helpd' 'com.apple.homed' 'com.apple.ap.adservicesd' 'com.apple.amp.mediasharingd' 'com.apple.mediaanalysisd' 'com.apple.mediaremoteagent' 'com.apple.siriknowledged' 'com.apple.assistant_service' 'com.apple.assistantd' 'com.apple.speech.speechdatainstallerd' 'com.apple.speech.speechsynthesisd' 'com.apple.speech.synthesisserver' 'com.apple.Siri.agent' 'com.apple.VoiceOver' 'com.apple.voicememod' 'com.apple.accessibility.AXVisualSupportAgent' 'com.apple.accessibility.dfrhud' 'com.apple.accessibility.heard' 'com.apple.quicklook.ThumbnailsAgent' 'com.apple.quicklook' 'com.apple.quicklook.ui.helper' 'com.apple.remindd' 'com.apple.sidecar-hid-relay' 'com.apple.sidecar-relay' 'com.apple.spindump_agent' 'com.apple.ReportCrash' 'com.apple.ReportGPURestart' 'com.apple.ReportPanic' 'com.apple.DiagnosticReportCleanup' 'com.apple.TrustEvaluationAgent')
    # Agents to disable
    # 'com.apple.speech.speechdatainstallerd' 'com.apple.speech.speechsynthesisd' 'com.apple.speech.synthesisserver' will freeze Edit menus
    # 'com.apple.bird' will prevent saving prompt from being shown
    TOENABLE=()

    # iCloud
    TOENABLE+=('com.apple.security.cloudkeychainproxy3' \
    'com.apple.iCloudUserNotifications' \
    'com.apple.icloud.findmydeviced.findmydevice-user-agent' \
    'com.apple.icloud.fmfd' \
    'com.apple.icloud.searchpartyuseragent' \
    'com.apple.cloudd' \
    'com.apple.cloudpaird' \
    'com.apple.cloudphotod' \
    'com.apple.protectedcloudstorage.protectedcloudkeysyncing')

    # Safari useless stuff
    TOENABLE+=('com.apple.SafariBookmarksSyncAgent' \
    'com.apple.SafariCloudHistoryPushAgent' \
    'com.apple.WebKit.PluginAgent')

    # iMessage / Facetime
    TOENABLE+=('com.apple.imagent' \
    'com.apple.imautomatichistorydeletionagent' \
    'com.apple.imklaunchagent' \
    'com.apple.imtransferagent' \
    'com.apple.avconferenced')

    # Game Center / Passbook / Apple TV / Homekit...
    TOENABLE+=('com.apple.gamed' \
    'com.apple.passd' \
    'com.apple.Maps.pushdaemon' \
    'com.apple.videosubscriptionsd' \
    'com.apple.CommCenter-osx' \
    'com.apple.homed')

    # Ad-related
    TOENABLE+=('com.apple.ap.adprivacyd' \
    'com.apple.ap.adservicesd')

    # Screensharing
    TOENABLE+=('com.apple.screensharing.MessagesAgent' \
    'com.apple.screensharing.agent' \
    'com.apple.screensharing.menuextra')

    # Siri
    TOENABLE+=('com.apple.siriknowledged' \
    'com.apple.assistant_service' \
    'com.apple.assistantd' \
    'com.apple.Siri.agent' \
    'com.apple.parsec-fbf')

    # VoiceOver / accessibility-related stuff
    TOENABLE+=('com.apple.VoiceOver' \
    'com.apple.voicememod' \
    'com.apple.accessibility.AXVisualSupportAgent' \
    'com.apple.accessibility.dfrhud' \
    'com.apple.accessibility.heard')

    # Quicklook
    TOENABLE+=('com.apple.quicklook.ui.helper' \
    'com.apple.quicklook.ThumbnailsAgent' \
    'com.apple.quicklook')

    # Sidecar
    TOENABLE+=('com.apple.sidecar-hid-relay' \
    'com.apple.sidecar-relay')

    # Debugging process
    TOENABLE+=('com.apple.spindump_agent' \
    'com.apple.ReportCrash' \
    'com.apple.ReportGPURestart' \
    'com.apple.ReportPanic' \
    'com.apple.DiagnosticReportCleanup' \
    'com.apple.TrustEvaluationAgent')

    # Others
    TOENABLE+=('com.apple.telephonyutilities.callservicesd' \
    'com.apple.photoanalysisd' \
    'com.apple.parsecd' \
    'com.apple.AOSPushRelay' \
    'com.apple.AOSHeartbeat' \
    'com.apple.AirPlayUIAgent' \
    'com.apple.AirPortBaseStationAgent' \
    'com.apple.familycircled' \
    'com.apple.familycontrols.useragent' \
    'com.apple.familynotificationd' \
    'com.apple.findmymacmessenger' \
    'com.apple.sharingd' \
    'com.apple.identityservicesd' \
    'com.apple.java.InstallOnDemand' \
    'com.apple.parentalcontrols.check' \
    'com.apple.security.keychain-circle-notification' \
    'com.apple.syncdefaultsd' \
    'com.apple.appleseed.seedusaged' \
    'com.apple.appleseed.seedusaged.postinstall' \
    'com.apple.CallHistorySyncHelper' \
    'com.apple.RemoteDesktop' \
    'com.apple.CallHistoryPluginHelper' \
    'com.apple.SocialPushAgent' \
    'com.apple.touristd' \
    'com.apple.macos.studentd' \
    'com.apple.KeyboardAccessAgent' \
    'com.apple.exchange.exchangesyncd' \
    'com.apple.suggestd' \
    'com.apple.AddressBook.abd' \
    'com.apple.helpd' \
    'com.apple.amp.mediasharingd' \
    'com.apple.mediaanalysisd' \
    'com.apple.mediaremoteagent' \
    'com.apple.remindd')

    for agent in "${TOENABLE[@]}"
    do
    mv /System/Library/LaunchAgents/${agent}.plist.bak /System/Library/LaunchAgents/${agent}.plist
    echo "[OK] Agent ${agent} enabled"
    mv ./System/Library/LaunchAgents/${agent}.plist.bak ./System/Library/LaunchAgents/${agent}.plist
    echo "[OK] Agent ${agent} disabled"
    done

    # Daemons to enable
    TOENABLE=('com.apple.netbiosd' 'com.apple.preferences.timezone.admintool' 'com.apple.remotepairtool' 'com.apple.security.FDERecoveryAgent' 'com.apple.icloud.findmydeviced' 'com.apple.icloud.searchpartyd' 'com.apple.familycontrols' 'com.apple.findmymac' 'com.apple.findmymacmessenger' 'com.apple.SubmitDiagInfo' 'com.apple.screensharing' 'com.apple.appleseed.fbahelperd' 'com.apple.apsd' 'com.apple.ManagedClient.cloudconfigurationd' 'com.apple.ManagedClient.enroll' 'com.apple.ManagedClient' 'com.apple.ManagedClient.startup' 'com.apple.locate' 'com.apple.locationd' 'com.apple.eapolcfg_auth' 'com.apple.RemoteDesktop.PrivilegeProxy' 'com.apple.mediaremoted' 'com.apple.analyticsd')
    # Daemons to disable
    TOENABLE=()

    # iCloud
    TOENABLE+=('com.apple.analyticsd')

    # Ad-related
    TOENABLE+=('com.apple.ap.adprivacyd' \
    'com.apple.ap.adservicesd')

    # Others
    TOENABLE+=('com.apple.netbiosd' \
    'com.apple.preferences.timezone.admintool' \
    'com.apple.remotepairtool' \
    'com.apple.security.FDERecoveryAgent' \
    'com.apple.SubmitDiagInfo' \
    'com.apple.screensharing' \
    'com.apple.appleseed.fbahelperd' \
    'com.apple.apsd' \
    'com.apple.ManagedClient.cloudconfigurationd' \
    'com.apple.ManagedClient.enroll' \
    'com.apple.ManagedClient' \
    'com.apple.ManagedClient.startup' \
    'com.apple.locate' \
    'com.apple.locationd' \
    'com.apple.eapolcfg_auth' \
    'com.apple.RemoteDesktop.PrivilegeProxy' \
    'com.apple.mediaremoted')

    for daemon in "${TOENABLE[@]}"
    do
    mv /System/Library/LaunchDaemons/${daemon}.plist.bak /System/Library/LaunchDaemons/${daemon}.plist
    echo "[OK] Daemon ${daemon} enabled"
    done
    mv ./System/Library/LaunchDaemons/${daemon}.plist.bak ./System/Library/LaunchDaemons/${daemon}.plist
    echo "[OK] Daemon ${daemon} disabled"
    done
  9. @pwnsdx pwnsdx revised this gist Sep 18, 2019. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion disable.sh
    Original file line number Diff line number Diff line change
    @@ -12,7 +12,7 @@
    # Agents to disable
    # 'com.apple.speech.speechdatainstallerd' 'com.apple.speech.speechsynthesisd' 'com.apple.speech.synthesisserver' will freeze Edit menus
    # 'com.apple.quicklook.ui.helper' will prevent saving prompt
    TODISABLE=('com.apple.SafariCloudHistoryPushAgent' 'com.apple.bird' 'com.apple.iCloudUserNotifications' 'com.apple.icloud.findmydeviced.findmydevice-user-agent' 'com.apple.icloud.fmfd' 'com.apple.icloud.searchpartyuseragent' 'com.apple.security.cloudkeychainproxy3' 'com.apple.photolibraryd' 'com.apple.cloudd' 'com.apple.cloudpaird' 'com.apple.cloudphotod' 'com.apple.SafariBookmarksSyncAgent' 'com.apple.SafariCloudHistoryPushAgent' 'com.apple.protectedcloudstorage.protectedcloudkeysyncing' 'com.apple.imagent' 'com.apple.imautomatichistorydeletionagent' 'com.apple.imklaunchagent' 'com.apple.imtransferagent' 'com.apple.avconferenced' 'com.apple.gamed' 'com.apple.passd' 'com.apple.Maps.pushdaemon' 'com.apple.screencaptureui' 'com.apple.screensharing.MessagesAgent' 'com.apple.screensharing.agent' 'com.apple.screensharing.menuextra' 'com.apple.telephonyutilities.callservicesd' 'com.apple.photoanalysisd' 'com.apple.parsecd' 'com.apple.AOSPushRelay' 'com.apple.AOSHeartbeat' 'com.apple.AirPlayUIAgent' 'com.apple.AirPortBaseStationAgent' 'com.apple.familycircled' 'com.apple.familycontrols.useragent' 'com.apple.familynotificationd' 'com.apple.findmymacmessenger' 'com.apple.videosubscriptionsd' 'com.apple.CommCenter-osx' 'com.apple.sharingd' 'com.apple.identityservicesd' 'com.apple.java.InstallOnDemand' 'com.apple.parentalcontrols.check' 'com.apple.parsec-fbf' 'com.apple.security.keychain-circle-notification' 'com.apple.syncdefaultsd' 'com.apple.appleseed.seedusaged' 'com.apple.appleseed.seedusaged.postinstall' 'com.apple.CallHistorySyncHelper' 'com.apple.RemoteDesktop' 'com.apple.CallHistoryPluginHelper' 'com.apple.SocialPushAgent' 'com.apple.WebKit.PluginAgent' 'com.apple.touristd' 'com.apple.macos.studentd' 'com.apple.KeyboardAccessAgent' 'com.apple.exchange.exchangesyncd' 'com.apple.suggestd' 'com.apple.AddressBook.abd' 'com.apple.ap.adprivacyd' 'com.apple.helpd' 'com.apple.homed' 'com.apple.ap.adservicesd' 'com.apple.amp.mediasharingd' 'com.apple.mediaanalysisd' 'com.apple.mediaremoteagent' 'com.apple.siriknowledged' 'com.apple.assistant_service' 'com.apple.assistantd' 'com.apple.Siri.agent' 'com.apple.VoiceOver' 'com.apple.voicememod' 'com.apple.accessibility.AXVisualSupportAgent' 'com.apple.accessibility.dfrhud' 'com.apple.accessibility.heard' 'com.apple.quicklook.ThumbnailsAgent' 'com.apple.quicklook' 'com.apple.remindd' 'com.apple.sidecar-hid-relay' 'com.apple.sidecar-relay' 'com.apple.spindump_agent' 'com.apple.ReportCrash' 'com.apple.ReportGPURestart' 'com.apple.ReportPanic' 'com.apple.DiagnosticReportCleanup' 'com.apple.TrustEvaluationAgent')
    TODISABLE=('com.apple.SafariCloudHistoryPushAgent' 'com.apple.bird' 'com.apple.iCloudUserNotifications' 'com.apple.icloud.findmydeviced.findmydevice-user-agent' 'com.apple.icloud.fmfd' 'com.apple.icloud.searchpartyuseragent' 'com.apple.security.cloudkeychainproxy3' 'com.apple.cloudd' 'com.apple.cloudpaird' 'com.apple.cloudphotod' 'com.apple.SafariBookmarksSyncAgent' 'com.apple.SafariCloudHistoryPushAgent' 'com.apple.protectedcloudstorage.protectedcloudkeysyncing' 'com.apple.imagent' 'com.apple.imautomatichistorydeletionagent' 'com.apple.imklaunchagent' 'com.apple.imtransferagent' 'com.apple.avconferenced' 'com.apple.gamed' 'com.apple.passd' 'com.apple.Maps.pushdaemon' 'com.apple.screencaptureui' 'com.apple.screensharing.MessagesAgent' 'com.apple.screensharing.agent' 'com.apple.screensharing.menuextra' 'com.apple.telephonyutilities.callservicesd' 'com.apple.photoanalysisd' 'com.apple.parsecd' 'com.apple.AOSPushRelay' 'com.apple.AOSHeartbeat' 'com.apple.AirPlayUIAgent' 'com.apple.AirPortBaseStationAgent' 'com.apple.familycircled' 'com.apple.familycontrols.useragent' 'com.apple.familynotificationd' 'com.apple.findmymacmessenger' 'com.apple.videosubscriptionsd' 'com.apple.CommCenter-osx' 'com.apple.sharingd' 'com.apple.identityservicesd' 'com.apple.java.InstallOnDemand' 'com.apple.parentalcontrols.check' 'com.apple.parsec-fbf' 'com.apple.security.keychain-circle-notification' 'com.apple.syncdefaultsd' 'com.apple.appleseed.seedusaged' 'com.apple.appleseed.seedusaged.postinstall' 'com.apple.CallHistorySyncHelper' 'com.apple.RemoteDesktop' 'com.apple.CallHistoryPluginHelper' 'com.apple.SocialPushAgent' 'com.apple.WebKit.PluginAgent' 'com.apple.touristd' 'com.apple.macos.studentd' 'com.apple.KeyboardAccessAgent' 'com.apple.exchange.exchangesyncd' 'com.apple.suggestd' 'com.apple.AddressBook.abd' 'com.apple.ap.adprivacyd' 'com.apple.helpd' 'com.apple.homed' 'com.apple.ap.adservicesd' 'com.apple.amp.mediasharingd' 'com.apple.mediaanalysisd' 'com.apple.mediaremoteagent' 'com.apple.siriknowledged' 'com.apple.assistant_service' 'com.apple.assistantd' 'com.apple.Siri.agent' 'com.apple.VoiceOver' 'com.apple.voicememod' 'com.apple.accessibility.AXVisualSupportAgent' 'com.apple.accessibility.dfrhud' 'com.apple.accessibility.heard' 'com.apple.quicklook.ThumbnailsAgent' 'com.apple.quicklook' 'com.apple.remindd' 'com.apple.sidecar-hid-relay' 'com.apple.sidecar-relay' 'com.apple.spindump_agent' 'com.apple.ReportCrash' 'com.apple.ReportGPURestart' 'com.apple.ReportPanic' 'com.apple.DiagnosticReportCleanup' 'com.apple.TrustEvaluationAgent')

    for agent in "${TODISABLE[@]}"
    do
  10. @pwnsdx pwnsdx revised this gist Sep 18, 2019. 2 changed files with 9 additions and 5 deletions.
    9 changes: 6 additions & 3 deletions disable.sh
    Original file line number Diff line number Diff line change
    @@ -1,15 +1,18 @@
    #!/bin/bash

    # IMPORTANT: Don't forget to logout from your Apple ID in the settings before running it!
    # IMPORTANT: You will need to run this script from Recovery. In fact, macOS Catalina brings read-only filesystem which prevent this script from working from the main OS.
    # This script needs to be run from the volume you wish to use it.
    # This script needs to be run from the volume you wish to use.
    # E.g. run it like this: cd /Volumes/Macintosh\ HD && sh /Volumes/Macintosh\ HD/Users/sabri/Desktop/disable.sh
    # WARNING: It might disable things that you may not like. Please double check the services in the TODISABLE vars.

    # Get active services: launchctl list | grep -v "\-\t0"
    # Find a service: grep -lR [service] /System/Library/Launch* /Library/Launch* ~/Library/LaunchAgents

    # Agents to disable
    TODISABLE=('com.apple.SafariCloudHistoryPushAgent' 'com.apple.bird' 'com.apple.iCloudUserNotifications' 'com.apple.icloud.findmydeviced.findmydevice-user-agent' 'com.apple.icloud.fmfd' 'com.apple.icloud.searchpartyuseragent' 'com.apple.security.cloudkeychainproxy3' 'com.apple.cloudd' 'com.apple.cloudpaird' 'com.apple.cloudphotod' 'com.apple.SafariBookmarksSyncAgent' 'com.apple.SafariCloudHistoryPushAgent' 'com.apple.protectedcloudstorage.protectedcloudkeysyncing' 'com.apple.imagent' 'com.apple.imautomatichistorydeletionagent' 'com.apple.imklaunchagent' 'com.apple.imtransferagent' 'com.apple.avconferenced' 'com.apple.gamed' 'com.apple.passd' 'com.apple.Maps.pushdaemon' 'com.apple.screencaptureui' 'com.apple.screensharing.MessagesAgent' 'com.apple.screensharing.agent' 'com.apple.screensharing.menuextra' 'com.apple.telephonyutilities.callservicesd' 'com.apple.photoanalysisd' 'com.apple.parsecd' 'com.apple.AOSPushRelay' 'com.apple.AOSHeartbeat' 'com.apple.AirPlayUIAgent' 'com.apple.AirPortBaseStationAgent' 'com.apple.DictationIM' 'com.apple.familycircled' 'com.apple.familycontrols.useragent' 'com.apple.familynotificationd' 'com.apple.findmymacmessenger' 'com.apple.videosubscriptionsd' 'com.apple.CommCenter-osx' 'com.apple.sharingd' 'com.apple.identityservicesd' 'com.apple.java.InstallOnDemand' 'com.apple.parentalcontrols.check' 'com.apple.parsec-fbf' 'com.apple.security.keychain-circle-notification' 'com.apple.syncdefaultsd' 'com.apple.appleseed.seedusaged' 'com.apple.appleseed.seedusaged.postinstall' 'com.apple.CallHistorySyncHelper' 'com.apple.RemoteDesktop' 'com.apple.CallHistoryPluginHelper' 'com.apple.SocialPushAgent' 'com.apple.WebKit.PluginAgent' 'com.apple.touristd' 'com.apple.macos.studentd' 'com.apple.KeyboardAccessAgent' 'com.apple.exchange.exchangesyncd' 'com.apple.suggestd' 'com.apple.AddressBook.abd' 'com.apple.ap.adprivacyd' 'com.apple.helpd' 'com.apple.homed' 'com.apple.ap.adservicesd' 'com.apple.amp.mediasharingd' 'com.apple.mediaanalysisd' 'com.apple.mediaremoteagent' 'com.apple.siriknowledged' 'com.apple.assistant_service' 'com.apple.assistantd' 'com.apple.speech.speechdatainstallerd' 'com.apple.speech.speechsynthesisd' 'com.apple.speech.synthesisserver' 'com.apple.Siri.agent' 'com.apple.VoiceOver' 'com.apple.voicememod' 'com.apple.accessibility.AXVisualSupportAgent' 'com.apple.accessibility.dfrhud' 'com.apple.accessibility.heard' 'com.apple.quicklook.ThumbnailsAgent' 'com.apple.quicklook' 'com.apple.quicklook.ui.helper' 'com.apple.remindd' 'com.apple.sidecar-hid-relay' 'com.apple.sidecar-relay' 'com.apple.spindump_agent' 'com.apple.ReportCrash' 'com.apple.ReportGPURestart' 'com.apple.ReportPanic' 'com.apple.DiagnosticReportCleanup' 'com.apple.TrustEvaluationAgent')
    # 'com.apple.speech.speechdatainstallerd' 'com.apple.speech.speechsynthesisd' 'com.apple.speech.synthesisserver' will freeze Edit menus
    # 'com.apple.quicklook.ui.helper' will prevent saving prompt
    TODISABLE=('com.apple.SafariCloudHistoryPushAgent' 'com.apple.bird' 'com.apple.iCloudUserNotifications' 'com.apple.icloud.findmydeviced.findmydevice-user-agent' 'com.apple.icloud.fmfd' 'com.apple.icloud.searchpartyuseragent' 'com.apple.security.cloudkeychainproxy3' 'com.apple.photolibraryd' 'com.apple.cloudd' 'com.apple.cloudpaird' 'com.apple.cloudphotod' 'com.apple.SafariBookmarksSyncAgent' 'com.apple.SafariCloudHistoryPushAgent' 'com.apple.protectedcloudstorage.protectedcloudkeysyncing' 'com.apple.imagent' 'com.apple.imautomatichistorydeletionagent' 'com.apple.imklaunchagent' 'com.apple.imtransferagent' 'com.apple.avconferenced' 'com.apple.gamed' 'com.apple.passd' 'com.apple.Maps.pushdaemon' 'com.apple.screencaptureui' 'com.apple.screensharing.MessagesAgent' 'com.apple.screensharing.agent' 'com.apple.screensharing.menuextra' 'com.apple.telephonyutilities.callservicesd' 'com.apple.photoanalysisd' 'com.apple.parsecd' 'com.apple.AOSPushRelay' 'com.apple.AOSHeartbeat' 'com.apple.AirPlayUIAgent' 'com.apple.AirPortBaseStationAgent' 'com.apple.familycircled' 'com.apple.familycontrols.useragent' 'com.apple.familynotificationd' 'com.apple.findmymacmessenger' 'com.apple.videosubscriptionsd' 'com.apple.CommCenter-osx' 'com.apple.sharingd' 'com.apple.identityservicesd' 'com.apple.java.InstallOnDemand' 'com.apple.parentalcontrols.check' 'com.apple.parsec-fbf' 'com.apple.security.keychain-circle-notification' 'com.apple.syncdefaultsd' 'com.apple.appleseed.seedusaged' 'com.apple.appleseed.seedusaged.postinstall' 'com.apple.CallHistorySyncHelper' 'com.apple.RemoteDesktop' 'com.apple.CallHistoryPluginHelper' 'com.apple.SocialPushAgent' 'com.apple.WebKit.PluginAgent' 'com.apple.touristd' 'com.apple.macos.studentd' 'com.apple.KeyboardAccessAgent' 'com.apple.exchange.exchangesyncd' 'com.apple.suggestd' 'com.apple.AddressBook.abd' 'com.apple.ap.adprivacyd' 'com.apple.helpd' 'com.apple.homed' 'com.apple.ap.adservicesd' 'com.apple.amp.mediasharingd' 'com.apple.mediaanalysisd' 'com.apple.mediaremoteagent' 'com.apple.siriknowledged' 'com.apple.assistant_service' 'com.apple.assistantd' 'com.apple.Siri.agent' 'com.apple.VoiceOver' 'com.apple.voicememod' 'com.apple.accessibility.AXVisualSupportAgent' 'com.apple.accessibility.dfrhud' 'com.apple.accessibility.heard' 'com.apple.quicklook.ThumbnailsAgent' 'com.apple.quicklook' 'com.apple.remindd' 'com.apple.sidecar-hid-relay' 'com.apple.sidecar-relay' 'com.apple.spindump_agent' 'com.apple.ReportCrash' 'com.apple.ReportGPURestart' 'com.apple.ReportPanic' 'com.apple.DiagnosticReportCleanup' 'com.apple.TrustEvaluationAgent')

    for agent in "${TODISABLE[@]}"
    do
    @@ -24,4 +27,4 @@ for daemon in "${TODISABLE[@]}"
    do
    mv ./System/Library/LaunchDaemons/${daemon}.plist ./System/Library/LaunchDaemons/${daemon}.plist.bak
    echo "[OK] Daemon ${daemon} disabled"
    done
    done
    5 changes: 3 additions & 2 deletions enable.sh
    Original file line number Diff line number Diff line change
    @@ -1,8 +1,9 @@
    #!/bin/bash

    # IMPORTANT: Don't forget to logout from your Apple ID in the settings before running it!
    # IMPORTANT: You will need to run this script from Recovery. In fact, macOS Catalina brings read-only filesystem which prevent this script from working from the main OS.
    # This script needs to be run from the volume you wish to use it.
    # E.g. run it like this: cd /Volumes/Macintosh\ HD && sh /Volumes/Macintosh\ HD/Users/sabri/Desktop/enable.sh
    # This script needs to be run from the volume you wish to use.
    # E.g. run it like this: cd /Volumes/Macintosh\ HD && sh /Volumes/Macintosh\ HD/Users/sabri/Desktop/disable.sh
    # WARNING: It might disable things that you may not like. Please double check the services in the TODISABLE vars.

    # Get active services: launchctl list | grep -v "\-\t0"
  11. @pwnsdx pwnsdx revised this gist Sep 18, 2019. 2 changed files with 2 additions and 2 deletions.
    2 changes: 1 addition & 1 deletion disable.sh
    Original file line number Diff line number Diff line change
    @@ -9,7 +9,7 @@
    # Find a service: grep -lR [service] /System/Library/Launch* /Library/Launch* ~/Library/LaunchAgents

    # Agents to disable
    TODISABLE=('com.apple.SafariCloudHistoryPushAgent' 'com.apple.bird' 'com.apple.iCloudUserNotifications' 'com.apple.icloud.findmydeviced.findmydevice-user-agent' 'com.apple.icloud.fmfd' 'com.apple.icloud.searchpartyuseragent' 'com.apple.security.cloudkeychainproxy3' 'com.apple.photolibraryd' 'com.apple.cloudd' 'com.apple.cloudpaird' 'com.apple.cloudphotod' 'com.apple.SafariBookmarksSyncAgent' 'com.apple.SafariCloudHistoryPushAgent' 'com.apple.protectedcloudstorage.protectedcloudkeysyncing' 'com.apple.imagent' 'com.apple.imautomatichistorydeletionagent' 'com.apple.imklaunchagent' 'com.apple.imtransferagent' 'com.apple.avconferenced' 'com.apple.gamed' 'com.apple.passd' 'com.apple.Maps.pushdaemon' 'com.apple.screencaptureui' 'com.apple.screensharing.MessagesAgent' 'com.apple.screensharing.agent' 'com.apple.screensharing.menuextra' 'com.apple.telephonyutilities.callservicesd' 'com.apple.photoanalysisd' 'com.apple.parsecd' 'com.apple.AOSPushRelay' 'com.apple.AOSHeartbeat' 'com.apple.AirPlayUIAgent' 'com.apple.AirPortBaseStationAgent' 'com.apple.DictationIM' 'com.apple.familycircled' 'com.apple.familycontrols.useragent' 'com.apple.familynotificationd' 'com.apple.findmymacmessenger' 'com.apple.videosubscriptionsd' 'com.apple.CommCenter-osx' 'com.apple.sharingd' 'com.apple.identityservicesd' 'com.apple.java.InstallOnDemand' 'com.apple.parentalcontrols.check' 'com.apple.parsec-fbf' 'com.apple.security.keychain-circle-notification' 'com.apple.syncdefaultsd' 'com.apple.appleseed.seedusaged' 'com.apple.appleseed.seedusaged.postinstall' 'com.apple.CallHistorySyncHelper' 'com.apple.RemoteDesktop' 'com.apple.CallHistoryPluginHelper' 'com.apple.SocialPushAgent' 'com.apple.WebKit.PluginAgent' 'com.apple.touristd' 'com.apple.macos.studentd' 'com.apple.KeyboardAccessAgent' 'com.apple.exchange.exchangesyncd' 'com.apple.suggestd' 'com.apple.AddressBook.abd' 'com.apple.ap.adprivacyd' 'com.apple.helpd' 'com.apple.homed' 'com.apple.ap.adservicesd' 'com.apple.amp.mediasharingd' 'com.apple.mediaanalysisd' 'com.apple.mediaremoteagent' 'com.apple.siriknowledged' 'com.apple.assistant_service' 'com.apple.assistantd' 'com.apple.speech.speechdatainstallerd' 'com.apple.speech.speechsynthesisd' 'com.apple.speech.synthesisserver' 'com.apple.Siri.agent' 'com.apple.VoiceOver' 'com.apple.voicememod' 'com.apple.accessibility.AXVisualSupportAgent' 'com.apple.accessibility.dfrhud' 'com.apple.accessibility.heard' 'com.apple.quicklook.ThumbnailsAgent' 'com.apple.quicklook' 'com.apple.quicklook.ui.helper' 'com.apple.remindd' 'com.apple.sidecar-hid-relay' 'com.apple.sidecar-relay' 'com.apple.spindump_agent' 'com.apple.ReportCrash' 'com.apple.ReportGPURestart' 'com.apple.ReportPanic' 'com.apple.DiagnosticReportCleanup' 'com.apple.TrustEvaluationAgent')
    TODISABLE=('com.apple.SafariCloudHistoryPushAgent' 'com.apple.bird' 'com.apple.iCloudUserNotifications' 'com.apple.icloud.findmydeviced.findmydevice-user-agent' 'com.apple.icloud.fmfd' 'com.apple.icloud.searchpartyuseragent' 'com.apple.security.cloudkeychainproxy3' 'com.apple.cloudd' 'com.apple.cloudpaird' 'com.apple.cloudphotod' 'com.apple.SafariBookmarksSyncAgent' 'com.apple.SafariCloudHistoryPushAgent' 'com.apple.protectedcloudstorage.protectedcloudkeysyncing' 'com.apple.imagent' 'com.apple.imautomatichistorydeletionagent' 'com.apple.imklaunchagent' 'com.apple.imtransferagent' 'com.apple.avconferenced' 'com.apple.gamed' 'com.apple.passd' 'com.apple.Maps.pushdaemon' 'com.apple.screencaptureui' 'com.apple.screensharing.MessagesAgent' 'com.apple.screensharing.agent' 'com.apple.screensharing.menuextra' 'com.apple.telephonyutilities.callservicesd' 'com.apple.photoanalysisd' 'com.apple.parsecd' 'com.apple.AOSPushRelay' 'com.apple.AOSHeartbeat' 'com.apple.AirPlayUIAgent' 'com.apple.AirPortBaseStationAgent' 'com.apple.DictationIM' 'com.apple.familycircled' 'com.apple.familycontrols.useragent' 'com.apple.familynotificationd' 'com.apple.findmymacmessenger' 'com.apple.videosubscriptionsd' 'com.apple.CommCenter-osx' 'com.apple.sharingd' 'com.apple.identityservicesd' 'com.apple.java.InstallOnDemand' 'com.apple.parentalcontrols.check' 'com.apple.parsec-fbf' 'com.apple.security.keychain-circle-notification' 'com.apple.syncdefaultsd' 'com.apple.appleseed.seedusaged' 'com.apple.appleseed.seedusaged.postinstall' 'com.apple.CallHistorySyncHelper' 'com.apple.RemoteDesktop' 'com.apple.CallHistoryPluginHelper' 'com.apple.SocialPushAgent' 'com.apple.WebKit.PluginAgent' 'com.apple.touristd' 'com.apple.macos.studentd' 'com.apple.KeyboardAccessAgent' 'com.apple.exchange.exchangesyncd' 'com.apple.suggestd' 'com.apple.AddressBook.abd' 'com.apple.ap.adprivacyd' 'com.apple.helpd' 'com.apple.homed' 'com.apple.ap.adservicesd' 'com.apple.amp.mediasharingd' 'com.apple.mediaanalysisd' 'com.apple.mediaremoteagent' 'com.apple.siriknowledged' 'com.apple.assistant_service' 'com.apple.assistantd' 'com.apple.speech.speechdatainstallerd' 'com.apple.speech.speechsynthesisd' 'com.apple.speech.synthesisserver' 'com.apple.Siri.agent' 'com.apple.VoiceOver' 'com.apple.voicememod' 'com.apple.accessibility.AXVisualSupportAgent' 'com.apple.accessibility.dfrhud' 'com.apple.accessibility.heard' 'com.apple.quicklook.ThumbnailsAgent' 'com.apple.quicklook' 'com.apple.quicklook.ui.helper' 'com.apple.remindd' 'com.apple.sidecar-hid-relay' 'com.apple.sidecar-relay' 'com.apple.spindump_agent' 'com.apple.ReportCrash' 'com.apple.ReportGPURestart' 'com.apple.ReportPanic' 'com.apple.DiagnosticReportCleanup' 'com.apple.TrustEvaluationAgent')

    for agent in "${TODISABLE[@]}"
    do
    2 changes: 1 addition & 1 deletion enable.sh
    Original file line number Diff line number Diff line change
    @@ -9,7 +9,7 @@
    # Find a service: grep -lR [service] /System/Library/Launch* /Library/Launch* ~/Library/LaunchAgents

    # Agents to enable
    TOENABLE=('com.apple.SafariCloudHistoryPushAgent' 'com.apple.bird' 'com.apple.iCloudUserNotifications' 'com.apple.icloud.findmydeviced.findmydevice-user-agent' 'com.apple.icloud.fmfd' 'com.apple.icloud.searchpartyuseragent' 'com.apple.security.cloudkeychainproxy3' 'com.apple.photolibraryd' 'com.apple.cloudd' 'com.apple.cloudpaird' 'com.apple.cloudphotod' 'com.apple.SafariBookmarksSyncAgent' 'com.apple.SafariCloudHistoryPushAgent' 'com.apple.protectedcloudstorage.protectedcloudkeysyncing' 'com.apple.imagent' 'com.apple.imautomatichistorydeletionagent' 'com.apple.imklaunchagent' 'com.apple.imtransferagent' 'com.apple.avconferenced' 'com.apple.gamed' 'com.apple.passd' 'com.apple.Maps.pushdaemon' 'com.apple.screencaptureui' 'com.apple.screensharing.MessagesAgent' 'com.apple.screensharing.agent' 'com.apple.screensharing.menuextra' 'com.apple.telephonyutilities.callservicesd' 'com.apple.photoanalysisd' 'com.apple.parsecd' 'com.apple.AOSPushRelay' 'com.apple.AOSHeartbeat' 'com.apple.AirPlayUIAgent' 'com.apple.AirPortBaseStationAgent' 'com.apple.DictationIM' 'com.apple.familycircled' 'com.apple.familycontrols.useragent' 'com.apple.familynotificationd' 'com.apple.findmymacmessenger' 'com.apple.videosubscriptionsd' 'com.apple.CommCenter-osx' 'com.apple.sharingd' 'com.apple.identityservicesd' 'com.apple.java.InstallOnDemand' 'com.apple.parentalcontrols.check' 'com.apple.parsec-fbf' 'com.apple.security.keychain-circle-notification' 'com.apple.syncdefaultsd' 'com.apple.appleseed.seedusaged' 'com.apple.appleseed.seedusaged.postinstall' 'com.apple.CallHistorySyncHelper' 'com.apple.RemoteDesktop' 'com.apple.CallHistoryPluginHelper' 'com.apple.SocialPushAgent' 'com.apple.WebKit.PluginAgent' 'com.apple.touristd' 'com.apple.macos.studentd' 'com.apple.KeyboardAccessAgent' 'com.apple.exchange.exchangesyncd' 'com.apple.suggestd' 'com.apple.AddressBook.abd' 'com.apple.ap.adprivacyd' 'com.apple.helpd' 'com.apple.homed' 'com.apple.ap.adservicesd' 'com.apple.amp.mediasharingd' 'com.apple.mediaanalysisd' 'com.apple.mediaremoteagent' 'com.apple.siriknowledged' 'com.apple.assistant_service' 'com.apple.assistantd' 'com.apple.speech.speechdatainstallerd' 'com.apple.speech.speechsynthesisd' 'com.apple.speech.synthesisserver' 'com.apple.Siri.agent' 'com.apple.VoiceOver' 'com.apple.voicememod' 'com.apple.accessibility.AXVisualSupportAgent' 'com.apple.accessibility.dfrhud' 'com.apple.accessibility.heard' 'com.apple.quicklook.ThumbnailsAgent' 'com.apple.quicklook' 'com.apple.quicklook.ui.helper' 'com.apple.remindd' 'com.apple.sidecar-hid-relay' 'com.apple.sidecar-relay' 'com.apple.spindump_agent' 'com.apple.ReportCrash' 'com.apple.ReportGPURestart' 'com.apple.ReportPanic' 'com.apple.DiagnosticReportCleanup' 'com.apple.TrustEvaluationAgent')
    TOENABLE=('com.apple.SafariCloudHistoryPushAgent' 'com.apple.bird' 'com.apple.iCloudUserNotifications' 'com.apple.icloud.findmydeviced.findmydevice-user-agent' 'com.apple.icloud.fmfd' 'com.apple.icloud.searchpartyuseragent' 'com.apple.security.cloudkeychainproxy3' 'com.apple.cloudd' 'com.apple.cloudpaird' 'com.apple.cloudphotod' 'com.apple.SafariBookmarksSyncAgent' 'com.apple.SafariCloudHistoryPushAgent' 'com.apple.protectedcloudstorage.protectedcloudkeysyncing' 'com.apple.imagent' 'com.apple.imautomatichistorydeletionagent' 'com.apple.imklaunchagent' 'com.apple.imtransferagent' 'com.apple.avconferenced' 'com.apple.gamed' 'com.apple.passd' 'com.apple.Maps.pushdaemon' 'com.apple.screencaptureui' 'com.apple.screensharing.MessagesAgent' 'com.apple.screensharing.agent' 'com.apple.screensharing.menuextra' 'com.apple.telephonyutilities.callservicesd' 'com.apple.photoanalysisd' 'com.apple.parsecd' 'com.apple.AOSPushRelay' 'com.apple.AOSHeartbeat' 'com.apple.AirPlayUIAgent' 'com.apple.AirPortBaseStationAgent' 'com.apple.DictationIM' 'com.apple.familycircled' 'com.apple.familycontrols.useragent' 'com.apple.familynotificationd' 'com.apple.findmymacmessenger' 'com.apple.videosubscriptionsd' 'com.apple.CommCenter-osx' 'com.apple.sharingd' 'com.apple.identityservicesd' 'com.apple.java.InstallOnDemand' 'com.apple.parentalcontrols.check' 'com.apple.parsec-fbf' 'com.apple.security.keychain-circle-notification' 'com.apple.syncdefaultsd' 'com.apple.appleseed.seedusaged' 'com.apple.appleseed.seedusaged.postinstall' 'com.apple.CallHistorySyncHelper' 'com.apple.RemoteDesktop' 'com.apple.CallHistoryPluginHelper' 'com.apple.SocialPushAgent' 'com.apple.WebKit.PluginAgent' 'com.apple.touristd' 'com.apple.macos.studentd' 'com.apple.KeyboardAccessAgent' 'com.apple.exchange.exchangesyncd' 'com.apple.suggestd' 'com.apple.AddressBook.abd' 'com.apple.ap.adprivacyd' 'com.apple.helpd' 'com.apple.homed' 'com.apple.ap.adservicesd' 'com.apple.amp.mediasharingd' 'com.apple.mediaanalysisd' 'com.apple.mediaremoteagent' 'com.apple.siriknowledged' 'com.apple.assistant_service' 'com.apple.assistantd' 'com.apple.speech.speechdatainstallerd' 'com.apple.speech.speechsynthesisd' 'com.apple.speech.synthesisserver' 'com.apple.Siri.agent' 'com.apple.VoiceOver' 'com.apple.voicememod' 'com.apple.accessibility.AXVisualSupportAgent' 'com.apple.accessibility.dfrhud' 'com.apple.accessibility.heard' 'com.apple.quicklook.ThumbnailsAgent' 'com.apple.quicklook' 'com.apple.quicklook.ui.helper' 'com.apple.remindd' 'com.apple.sidecar-hid-relay' 'com.apple.sidecar-relay' 'com.apple.spindump_agent' 'com.apple.ReportCrash' 'com.apple.ReportGPURestart' 'com.apple.ReportPanic' 'com.apple.DiagnosticReportCleanup' 'com.apple.TrustEvaluationAgent')

    for agent in "${TOENABLE[@]}"
    do
  12. @pwnsdx pwnsdx revised this gist Sep 16, 2019. 2 changed files with 13 additions and 25 deletions.
    18 changes: 6 additions & 12 deletions disable.sh
    Original file line number Diff line number Diff line change
    @@ -1,21 +1,19 @@
    #!/bin/bash

    # IMPORTANT: You will need to disable SIP aka Rootless in order to fully execute this script, you can reenable it after.
    # IMPORTANT: You will need to run this script from Recovery. In fact, macOS Catalina brings read-only filesystem which prevent this script from working from the main OS.
    # This script needs to be run from the volume you wish to use it.
    # E.g. run it like this: cd /Volumes/Macintosh\ HD && sh /Volumes/Macintosh\ HD/Users/sabri/Desktop/disable.sh
    # WARNING: It might disable things that you may not like. Please double check the services in the TODISABLE vars.

    # Get active services: launchctl list | grep -v "\-\t0"
    # Find a service: grep -lR [service] /System/Library/Launch* /Library/Launch* ~/Library/LaunchAgents

    # Agents to disable
    TODISABLE=('com.apple.SafariCloudHistoryPushAgent' 'com.apple.iCloudUserNotifications' 'com.apple.icloud.findmydeviced.findmydevice-user-agent' 'com.apple.icloud.fmfd' 'com.apple.icloud.searchpartyuseragent' 'com.apple.security.cloudkeychainproxy3' 'com.apple.photolibraryd' 'com.apple.cloudd' 'com.apple.cloudpaird' 'com.apple.cloudphotod' 'com.apple.SafariBookmarksSyncAgent' 'com.apple.SafariCloudHistoryPushAgent' 'com.apple.protectedcloudstorage.protectedcloudkeysyncing' 'com.apple.imagent' 'com.apple.imautomatichistorydeletionagent' 'com.apple.imklaunchagent' 'com.apple.imtransferagent' 'com.apple.avconferenced' 'com.apple.gamed' 'com.apple.passd' 'com.apple.Maps.pushdaemon' 'com.apple.screencaptureui' 'com.apple.screensharing.MessagesAgent' 'com.apple.screensharing.agent' 'com.apple.screensharing.menuextra' 'com.apple.telephonyutilities.callservicesd' 'com.apple.photoanalysisd' 'com.apple.parsecd' 'com.apple.java.InstallOnDemand' 'com.apple.AOSPushRelay' 'com.apple.AOSHeartbeat' 'com.apple.AirPlayUIAgent' 'com.apple.AirPortBaseStationAgent' 'com.apple.DictationIM' 'com.apple.familycircled' 'com.apple.familycontrols.useragent' 'com.apple.familynotificationd' 'com.apple.findmymacmessenger' 'com.apple.videosubscriptionsd' 'com.apple.CommCenter-osx' 'com.apple.sharingd' 'com.apple.identityservicesd' 'com.apple.java.InstallOnDemand' 'com.apple.parentalcontrols.check' 'com.apple.parsec-fbf' 'com.apple.security.keychain-circle-notification' 'com.apple.syncdefaultsd' 'com.apple.appleseed.seedusaged' 'com.apple.appleseed.seedusaged.postinstall' 'com.apple.CallHistorySyncHelper' 'com.apple.RemoteDesktop' 'com.apple.CallHistoryPluginHelper' 'com.apple.SocialPushAgent' 'com.apple.WebKit.PluginAgent' 'com.apple.touristd' 'com.apple.macos.studentd' 'com.apple.KeyboardAccessAgent' 'com.apple.exchange.exchangesyncd' 'com.apple.suggestd' 'com.apple.AddressBook.abd' 'com.apple.ap.adprivacyd' 'com.apple.helpd' 'com.apple.homed' 'com.apple.ap.adservicesd' 'com.apple.amp.mediasharingd' 'com.apple.mediaanalysisd' 'com.apple.mediaremoteagent' 'com.apple.siriknowledged' 'com.apple.assistant_service' 'com.apple.assistantd' 'com.apple.speech.speechdatainstallerd' 'com.apple.speech.speechsynthesisd' 'com.apple.speech.synthesisserver' 'com.apple.Siri.agent' 'com.apple.VoiceOver' 'com.apple.voicememod' 'com.apple.accessibility.AXVisualSupportAgent' 'com.apple.accessibility.dfrhud' 'com.apple.accessibility.heard' 'com.apple.quicklook.ThumbnailsAgent' 'com.apple.quicklook' 'com.apple.quicklook.ui.helper' 'com.apple.remindd' 'com.apple.sidecar-hid-relay' 'com.apple.sidecar-relay' 'com.apple.spindump_agent' 'com.apple.ReportCrash' 'com.apple.ReportGPURestart' 'com.apple.ReportPanic' 'com.apple.DiagnosticReportCleanup' 'com.apple.TrustEvaluationAgent')
    TODISABLE=('com.apple.SafariCloudHistoryPushAgent' 'com.apple.bird' 'com.apple.iCloudUserNotifications' 'com.apple.icloud.findmydeviced.findmydevice-user-agent' 'com.apple.icloud.fmfd' 'com.apple.icloud.searchpartyuseragent' 'com.apple.security.cloudkeychainproxy3' 'com.apple.photolibraryd' 'com.apple.cloudd' 'com.apple.cloudpaird' 'com.apple.cloudphotod' 'com.apple.SafariBookmarksSyncAgent' 'com.apple.SafariCloudHistoryPushAgent' 'com.apple.protectedcloudstorage.protectedcloudkeysyncing' 'com.apple.imagent' 'com.apple.imautomatichistorydeletionagent' 'com.apple.imklaunchagent' 'com.apple.imtransferagent' 'com.apple.avconferenced' 'com.apple.gamed' 'com.apple.passd' 'com.apple.Maps.pushdaemon' 'com.apple.screencaptureui' 'com.apple.screensharing.MessagesAgent' 'com.apple.screensharing.agent' 'com.apple.screensharing.menuextra' 'com.apple.telephonyutilities.callservicesd' 'com.apple.photoanalysisd' 'com.apple.parsecd' 'com.apple.AOSPushRelay' 'com.apple.AOSHeartbeat' 'com.apple.AirPlayUIAgent' 'com.apple.AirPortBaseStationAgent' 'com.apple.DictationIM' 'com.apple.familycircled' 'com.apple.familycontrols.useragent' 'com.apple.familynotificationd' 'com.apple.findmymacmessenger' 'com.apple.videosubscriptionsd' 'com.apple.CommCenter-osx' 'com.apple.sharingd' 'com.apple.identityservicesd' 'com.apple.java.InstallOnDemand' 'com.apple.parentalcontrols.check' 'com.apple.parsec-fbf' 'com.apple.security.keychain-circle-notification' 'com.apple.syncdefaultsd' 'com.apple.appleseed.seedusaged' 'com.apple.appleseed.seedusaged.postinstall' 'com.apple.CallHistorySyncHelper' 'com.apple.RemoteDesktop' 'com.apple.CallHistoryPluginHelper' 'com.apple.SocialPushAgent' 'com.apple.WebKit.PluginAgent' 'com.apple.touristd' 'com.apple.macos.studentd' 'com.apple.KeyboardAccessAgent' 'com.apple.exchange.exchangesyncd' 'com.apple.suggestd' 'com.apple.AddressBook.abd' 'com.apple.ap.adprivacyd' 'com.apple.helpd' 'com.apple.homed' 'com.apple.ap.adservicesd' 'com.apple.amp.mediasharingd' 'com.apple.mediaanalysisd' 'com.apple.mediaremoteagent' 'com.apple.siriknowledged' 'com.apple.assistant_service' 'com.apple.assistantd' 'com.apple.speech.speechdatainstallerd' 'com.apple.speech.speechsynthesisd' 'com.apple.speech.synthesisserver' 'com.apple.Siri.agent' 'com.apple.VoiceOver' 'com.apple.voicememod' 'com.apple.accessibility.AXVisualSupportAgent' 'com.apple.accessibility.dfrhud' 'com.apple.accessibility.heard' 'com.apple.quicklook.ThumbnailsAgent' 'com.apple.quicklook' 'com.apple.quicklook.ui.helper' 'com.apple.remindd' 'com.apple.sidecar-hid-relay' 'com.apple.sidecar-relay' 'com.apple.spindump_agent' 'com.apple.ReportCrash' 'com.apple.ReportGPURestart' 'com.apple.ReportPanic' 'com.apple.DiagnosticReportCleanup' 'com.apple.TrustEvaluationAgent')

    for agent in "${TODISABLE[@]}"
    do
    {
    sudo launchctl unload -w /System/Library/LaunchAgents/${agent}.plist
    launchctl unload -w /System/Library/LaunchAgents/${agent}.plist
    } &> /dev/null
    sudo mv /System/Library/LaunchAgents/${agent}.plist /System/Library/LaunchAgents/${agent}.plist.bak
    mv ./System/Library/LaunchAgents/${agent}.plist ./System/Library/LaunchAgents/${agent}.plist.bak
    echo "[OK] Agent ${agent} disabled"
    done

    @@ -24,10 +22,6 @@ TODISABLE=('com.apple.netbiosd' 'com.apple.preferences.timezone.admintool' 'com.

    for daemon in "${TODISABLE[@]}"
    do
    {
    sudo launchctl unload -w /System/Library/LaunchDaemons/${daemon}.plist
    launchctl unload -w /System/Library/LaunchDaemons/${daemon}.plist
    } &> /dev/null
    sudo mv /System/Library/LaunchDaemons/${daemon}.plist /System/Library/LaunchDaemons/${daemon}.plist.bak
    mv ./System/Library/LaunchDaemons/${daemon}.plist ./System/Library/LaunchDaemons/${daemon}.plist.bak
    echo "[OK] Daemon ${daemon} disabled"
    done
    20 changes: 7 additions & 13 deletions enable.sh
    Original file line number Diff line number Diff line change
    @@ -1,21 +1,19 @@
    #!/bin/bash

    # IMPORTANT: You will need to disable SIP aka Rootless in order to fully execute this script, you can reenable it after.
    # WARNING: It might enable things that you may not like. Please double check the services in the TOENABLE vars.
    # IMPORTANT: You will need to run this script from Recovery. In fact, macOS Catalina brings read-only filesystem which prevent this script from working from the main OS.
    # This script needs to be run from the volume you wish to use it.
    # E.g. run it like this: cd /Volumes/Macintosh\ HD && sh /Volumes/Macintosh\ HD/Users/sabri/Desktop/enable.sh
    # WARNING: It might disable things that you may not like. Please double check the services in the TODISABLE vars.

    # Get active services: launchctl list | grep -v "\-\t0"
    # Find a service: grep -lR [service] /System/Library/Launch* /Library/Launch* ~/Library/LaunchAgents

    # Agents to enable
    TOENABLE=('com.apple.SafariCloudHistoryPushAgent' 'com.apple.iCloudUserNotifications' 'com.apple.icloud.findmydeviced.findmydevice-user-agent' 'com.apple.icloud.fmfd' 'com.apple.icloud.searchpartyuseragent' 'com.apple.security.cloudkeychainproxy3' 'com.apple.photolibraryd' 'com.apple.cloudd' 'com.apple.cloudpaird' 'com.apple.cloudphotod' 'com.apple.SafariBookmarksSyncAgent' 'com.apple.SafariCloudHistoryPushAgent' 'com.apple.protectedcloudstorage.protectedcloudkeysyncing' 'com.apple.imagent' 'com.apple.imautomatichistorydeletionagent' 'com.apple.imklaunchagent' 'com.apple.imtransferagent' 'com.apple.avconferenced' 'com.apple.gamed' 'com.apple.passd' 'com.apple.Maps.pushdaemon' 'com.apple.screencaptureui' 'com.apple.screensharing.MessagesAgent' 'com.apple.screensharing.agent' 'com.apple.screensharing.menuextra' 'com.apple.telephonyutilities.callservicesd' 'com.apple.photoanalysisd' 'com.apple.parsecd' 'com.apple.java.InstallOnDemand' 'com.apple.AOSPushRelay' 'com.apple.AOSHeartbeat' 'com.apple.AirPlayUIAgent' 'com.apple.AirPortBaseStationAgent' 'com.apple.DictationIM' 'com.apple.familycircled' 'com.apple.familycontrols.useragent' 'com.apple.familynotificationd' 'com.apple.findmymacmessenger' 'com.apple.videosubscriptionsd' 'com.apple.CommCenter-osx' 'com.apple.sharingd' 'com.apple.identityservicesd' 'com.apple.java.InstallOnDemand' 'com.apple.parentalcontrols.check' 'com.apple.parsec-fbf' 'com.apple.security.keychain-circle-notification' 'com.apple.syncdefaultsd' 'com.apple.appleseed.seedusaged' 'com.apple.appleseed.seedusaged.postinstall' 'com.apple.CallHistorySyncHelper' 'com.apple.RemoteDesktop' 'com.apple.CallHistoryPluginHelper' 'com.apple.SocialPushAgent' 'com.apple.WebKit.PluginAgent' 'com.apple.touristd' 'com.apple.macos.studentd' 'com.apple.KeyboardAccessAgent' 'com.apple.exchange.exchangesyncd' 'com.apple.suggestd' 'com.apple.AddressBook.abd' 'com.apple.ap.adprivacyd' 'com.apple.helpd' 'com.apple.homed' 'com.apple.ap.adservicesd' 'com.apple.amp.mediasharingd' 'com.apple.mediaanalysisd' 'com.apple.mediaremoteagent' 'com.apple.siriknowledged' 'com.apple.assistant_service' 'com.apple.assistantd' 'com.apple.speech.speechdatainstallerd' 'com.apple.speech.speechsynthesisd' 'com.apple.speech.synthesisserver' 'com.apple.Siri.agent' 'com.apple.VoiceOver' 'com.apple.voicememod' 'com.apple.accessibility.AXVisualSupportAgent' 'com.apple.accessibility.dfrhud' 'com.apple.accessibility.heard' 'com.apple.quicklook.ThumbnailsAgent' 'com.apple.quicklook' 'com.apple.quicklook.ui.helper' 'com.apple.remindd' 'com.apple.sidecar-hid-relay' 'com.apple.sidecar-relay' 'com.apple.spindump_agent' 'com.apple.ReportCrash' 'com.apple.ReportGPURestart' 'com.apple.ReportPanic' 'com.apple.DiagnosticReportCleanup' 'com.apple.TrustEvaluationAgent')
    TOENABLE=('com.apple.SafariCloudHistoryPushAgent' 'com.apple.bird' 'com.apple.iCloudUserNotifications' 'com.apple.icloud.findmydeviced.findmydevice-user-agent' 'com.apple.icloud.fmfd' 'com.apple.icloud.searchpartyuseragent' 'com.apple.security.cloudkeychainproxy3' 'com.apple.photolibraryd' 'com.apple.cloudd' 'com.apple.cloudpaird' 'com.apple.cloudphotod' 'com.apple.SafariBookmarksSyncAgent' 'com.apple.SafariCloudHistoryPushAgent' 'com.apple.protectedcloudstorage.protectedcloudkeysyncing' 'com.apple.imagent' 'com.apple.imautomatichistorydeletionagent' 'com.apple.imklaunchagent' 'com.apple.imtransferagent' 'com.apple.avconferenced' 'com.apple.gamed' 'com.apple.passd' 'com.apple.Maps.pushdaemon' 'com.apple.screencaptureui' 'com.apple.screensharing.MessagesAgent' 'com.apple.screensharing.agent' 'com.apple.screensharing.menuextra' 'com.apple.telephonyutilities.callservicesd' 'com.apple.photoanalysisd' 'com.apple.parsecd' 'com.apple.AOSPushRelay' 'com.apple.AOSHeartbeat' 'com.apple.AirPlayUIAgent' 'com.apple.AirPortBaseStationAgent' 'com.apple.DictationIM' 'com.apple.familycircled' 'com.apple.familycontrols.useragent' 'com.apple.familynotificationd' 'com.apple.findmymacmessenger' 'com.apple.videosubscriptionsd' 'com.apple.CommCenter-osx' 'com.apple.sharingd' 'com.apple.identityservicesd' 'com.apple.java.InstallOnDemand' 'com.apple.parentalcontrols.check' 'com.apple.parsec-fbf' 'com.apple.security.keychain-circle-notification' 'com.apple.syncdefaultsd' 'com.apple.appleseed.seedusaged' 'com.apple.appleseed.seedusaged.postinstall' 'com.apple.CallHistorySyncHelper' 'com.apple.RemoteDesktop' 'com.apple.CallHistoryPluginHelper' 'com.apple.SocialPushAgent' 'com.apple.WebKit.PluginAgent' 'com.apple.touristd' 'com.apple.macos.studentd' 'com.apple.KeyboardAccessAgent' 'com.apple.exchange.exchangesyncd' 'com.apple.suggestd' 'com.apple.AddressBook.abd' 'com.apple.ap.adprivacyd' 'com.apple.helpd' 'com.apple.homed' 'com.apple.ap.adservicesd' 'com.apple.amp.mediasharingd' 'com.apple.mediaanalysisd' 'com.apple.mediaremoteagent' 'com.apple.siriknowledged' 'com.apple.assistant_service' 'com.apple.assistantd' 'com.apple.speech.speechdatainstallerd' 'com.apple.speech.speechsynthesisd' 'com.apple.speech.synthesisserver' 'com.apple.Siri.agent' 'com.apple.VoiceOver' 'com.apple.voicememod' 'com.apple.accessibility.AXVisualSupportAgent' 'com.apple.accessibility.dfrhud' 'com.apple.accessibility.heard' 'com.apple.quicklook.ThumbnailsAgent' 'com.apple.quicklook' 'com.apple.quicklook.ui.helper' 'com.apple.remindd' 'com.apple.sidecar-hid-relay' 'com.apple.sidecar-relay' 'com.apple.spindump_agent' 'com.apple.ReportCrash' 'com.apple.ReportGPURestart' 'com.apple.ReportPanic' 'com.apple.DiagnosticReportCleanup' 'com.apple.TrustEvaluationAgent')

    for agent in "${TOENABLE[@]}"
    do
    {
    sudo launchctl load -w /System/Library/LaunchAgents/${agent}.plist
    launchctl load -w /System/Library/LaunchAgents/${agent}.plist
    } &> /dev/null
    sudo mv /System/Library/LaunchAgents/${agent}.plist.bak /System/Library/LaunchAgents/${agent}.plist
    mv /System/Library/LaunchAgents/${agent}.plist.bak /System/Library/LaunchAgents/${agent}.plist
    echo "[OK] Agent ${agent} enabled"
    done

    @@ -24,10 +22,6 @@ TOENABLE=('com.apple.netbiosd' 'com.apple.preferences.timezone.admintool' 'com.a

    for daemon in "${TOENABLE[@]}"
    do
    {
    sudo launchctl load -w /System/Library/LaunchDaemons/${daemon}.plist
    launchctl load -w /System/Library/LaunchDaemons/${daemon}.plist
    } &> /dev/null
    sudo mv /System/Library/LaunchDaemons/${daemon}.plist.bak /System/Library/LaunchDaemons/${daemon}.plist
    mv /System/Library/LaunchDaemons/${daemon}.plist.bak /System/Library/LaunchDaemons/${daemon}.plist
    echo "[OK] Daemon ${daemon} enabled"
    done
  13. @pwnsdx pwnsdx created this gist Sep 16, 2019.
    33 changes: 33 additions & 0 deletions disable.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,33 @@
    #!/bin/bash

    # IMPORTANT: You will need to disable SIP aka Rootless in order to fully execute this script, you can reenable it after.
    # WARNING: It might disable things that you may not like. Please double check the services in the TODISABLE vars.

    # Get active services: launchctl list | grep -v "\-\t0"
    # Find a service: grep -lR [service] /System/Library/Launch* /Library/Launch* ~/Library/LaunchAgents

    # Agents to disable
    TODISABLE=('com.apple.SafariCloudHistoryPushAgent' 'com.apple.iCloudUserNotifications' 'com.apple.icloud.findmydeviced.findmydevice-user-agent' 'com.apple.icloud.fmfd' 'com.apple.icloud.searchpartyuseragent' 'com.apple.security.cloudkeychainproxy3' 'com.apple.photolibraryd' 'com.apple.cloudd' 'com.apple.cloudpaird' 'com.apple.cloudphotod' 'com.apple.SafariBookmarksSyncAgent' 'com.apple.SafariCloudHistoryPushAgent' 'com.apple.protectedcloudstorage.protectedcloudkeysyncing' 'com.apple.imagent' 'com.apple.imautomatichistorydeletionagent' 'com.apple.imklaunchagent' 'com.apple.imtransferagent' 'com.apple.avconferenced' 'com.apple.gamed' 'com.apple.passd' 'com.apple.Maps.pushdaemon' 'com.apple.screencaptureui' 'com.apple.screensharing.MessagesAgent' 'com.apple.screensharing.agent' 'com.apple.screensharing.menuextra' 'com.apple.telephonyutilities.callservicesd' 'com.apple.photoanalysisd' 'com.apple.parsecd' 'com.apple.java.InstallOnDemand' 'com.apple.AOSPushRelay' 'com.apple.AOSHeartbeat' 'com.apple.AirPlayUIAgent' 'com.apple.AirPortBaseStationAgent' 'com.apple.DictationIM' 'com.apple.familycircled' 'com.apple.familycontrols.useragent' 'com.apple.familynotificationd' 'com.apple.findmymacmessenger' 'com.apple.videosubscriptionsd' 'com.apple.CommCenter-osx' 'com.apple.sharingd' 'com.apple.identityservicesd' 'com.apple.java.InstallOnDemand' 'com.apple.parentalcontrols.check' 'com.apple.parsec-fbf' 'com.apple.security.keychain-circle-notification' 'com.apple.syncdefaultsd' 'com.apple.appleseed.seedusaged' 'com.apple.appleseed.seedusaged.postinstall' 'com.apple.CallHistorySyncHelper' 'com.apple.RemoteDesktop' 'com.apple.CallHistoryPluginHelper' 'com.apple.SocialPushAgent' 'com.apple.WebKit.PluginAgent' 'com.apple.touristd' 'com.apple.macos.studentd' 'com.apple.KeyboardAccessAgent' 'com.apple.exchange.exchangesyncd' 'com.apple.suggestd' 'com.apple.AddressBook.abd' 'com.apple.ap.adprivacyd' 'com.apple.helpd' 'com.apple.homed' 'com.apple.ap.adservicesd' 'com.apple.amp.mediasharingd' 'com.apple.mediaanalysisd' 'com.apple.mediaremoteagent' 'com.apple.siriknowledged' 'com.apple.assistant_service' 'com.apple.assistantd' 'com.apple.speech.speechdatainstallerd' 'com.apple.speech.speechsynthesisd' 'com.apple.speech.synthesisserver' 'com.apple.Siri.agent' 'com.apple.VoiceOver' 'com.apple.voicememod' 'com.apple.accessibility.AXVisualSupportAgent' 'com.apple.accessibility.dfrhud' 'com.apple.accessibility.heard' 'com.apple.quicklook.ThumbnailsAgent' 'com.apple.quicklook' 'com.apple.quicklook.ui.helper' 'com.apple.remindd' 'com.apple.sidecar-hid-relay' 'com.apple.sidecar-relay' 'com.apple.spindump_agent' 'com.apple.ReportCrash' 'com.apple.ReportGPURestart' 'com.apple.ReportPanic' 'com.apple.DiagnosticReportCleanup' 'com.apple.TrustEvaluationAgent')

    for agent in "${TODISABLE[@]}"
    do
    {
    sudo launchctl unload -w /System/Library/LaunchAgents/${agent}.plist
    launchctl unload -w /System/Library/LaunchAgents/${agent}.plist
    } &> /dev/null
    sudo mv /System/Library/LaunchAgents/${agent}.plist /System/Library/LaunchAgents/${agent}.plist.bak
    echo "[OK] Agent ${agent} disabled"
    done

    # Daemons to disable
    TODISABLE=('com.apple.netbiosd' 'com.apple.preferences.timezone.admintool' 'com.apple.remotepairtool' 'com.apple.security.FDERecoveryAgent' 'com.apple.icloud.findmydeviced' 'com.apple.icloud.searchpartyd' 'com.apple.familycontrols' 'com.apple.findmymac' 'com.apple.findmymacmessenger' 'com.apple.SubmitDiagInfo' 'com.apple.screensharing' 'com.apple.appleseed.fbahelperd' 'com.apple.apsd' 'com.apple.ManagedClient.cloudconfigurationd' 'com.apple.ManagedClient.enroll' 'com.apple.ManagedClient' 'com.apple.ManagedClient.startup' 'com.apple.locate' 'com.apple.locationd' 'com.apple.eapolcfg_auth' 'com.apple.RemoteDesktop.PrivilegeProxy' 'com.apple.mediaremoted' 'com.apple.analyticsd')

    for daemon in "${TODISABLE[@]}"
    do
    {
    sudo launchctl unload -w /System/Library/LaunchDaemons/${daemon}.plist
    launchctl unload -w /System/Library/LaunchDaemons/${daemon}.plist
    } &> /dev/null
    sudo mv /System/Library/LaunchDaemons/${daemon}.plist /System/Library/LaunchDaemons/${daemon}.plist.bak
    echo "[OK] Daemon ${daemon} disabled"
    done
    33 changes: 33 additions & 0 deletions enable.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,33 @@
    #!/bin/bash

    # IMPORTANT: You will need to disable SIP aka Rootless in order to fully execute this script, you can reenable it after.
    # WARNING: It might enable things that you may not like. Please double check the services in the TOENABLE vars.

    # Get active services: launchctl list | grep -v "\-\t0"
    # Find a service: grep -lR [service] /System/Library/Launch* /Library/Launch* ~/Library/LaunchAgents

    # Agents to enable
    TOENABLE=('com.apple.SafariCloudHistoryPushAgent' 'com.apple.iCloudUserNotifications' 'com.apple.icloud.findmydeviced.findmydevice-user-agent' 'com.apple.icloud.fmfd' 'com.apple.icloud.searchpartyuseragent' 'com.apple.security.cloudkeychainproxy3' 'com.apple.photolibraryd' 'com.apple.cloudd' 'com.apple.cloudpaird' 'com.apple.cloudphotod' 'com.apple.SafariBookmarksSyncAgent' 'com.apple.SafariCloudHistoryPushAgent' 'com.apple.protectedcloudstorage.protectedcloudkeysyncing' 'com.apple.imagent' 'com.apple.imautomatichistorydeletionagent' 'com.apple.imklaunchagent' 'com.apple.imtransferagent' 'com.apple.avconferenced' 'com.apple.gamed' 'com.apple.passd' 'com.apple.Maps.pushdaemon' 'com.apple.screencaptureui' 'com.apple.screensharing.MessagesAgent' 'com.apple.screensharing.agent' 'com.apple.screensharing.menuextra' 'com.apple.telephonyutilities.callservicesd' 'com.apple.photoanalysisd' 'com.apple.parsecd' 'com.apple.java.InstallOnDemand' 'com.apple.AOSPushRelay' 'com.apple.AOSHeartbeat' 'com.apple.AirPlayUIAgent' 'com.apple.AirPortBaseStationAgent' 'com.apple.DictationIM' 'com.apple.familycircled' 'com.apple.familycontrols.useragent' 'com.apple.familynotificationd' 'com.apple.findmymacmessenger' 'com.apple.videosubscriptionsd' 'com.apple.CommCenter-osx' 'com.apple.sharingd' 'com.apple.identityservicesd' 'com.apple.java.InstallOnDemand' 'com.apple.parentalcontrols.check' 'com.apple.parsec-fbf' 'com.apple.security.keychain-circle-notification' 'com.apple.syncdefaultsd' 'com.apple.appleseed.seedusaged' 'com.apple.appleseed.seedusaged.postinstall' 'com.apple.CallHistorySyncHelper' 'com.apple.RemoteDesktop' 'com.apple.CallHistoryPluginHelper' 'com.apple.SocialPushAgent' 'com.apple.WebKit.PluginAgent' 'com.apple.touristd' 'com.apple.macos.studentd' 'com.apple.KeyboardAccessAgent' 'com.apple.exchange.exchangesyncd' 'com.apple.suggestd' 'com.apple.AddressBook.abd' 'com.apple.ap.adprivacyd' 'com.apple.helpd' 'com.apple.homed' 'com.apple.ap.adservicesd' 'com.apple.amp.mediasharingd' 'com.apple.mediaanalysisd' 'com.apple.mediaremoteagent' 'com.apple.siriknowledged' 'com.apple.assistant_service' 'com.apple.assistantd' 'com.apple.speech.speechdatainstallerd' 'com.apple.speech.speechsynthesisd' 'com.apple.speech.synthesisserver' 'com.apple.Siri.agent' 'com.apple.VoiceOver' 'com.apple.voicememod' 'com.apple.accessibility.AXVisualSupportAgent' 'com.apple.accessibility.dfrhud' 'com.apple.accessibility.heard' 'com.apple.quicklook.ThumbnailsAgent' 'com.apple.quicklook' 'com.apple.quicklook.ui.helper' 'com.apple.remindd' 'com.apple.sidecar-hid-relay' 'com.apple.sidecar-relay' 'com.apple.spindump_agent' 'com.apple.ReportCrash' 'com.apple.ReportGPURestart' 'com.apple.ReportPanic' 'com.apple.DiagnosticReportCleanup' 'com.apple.TrustEvaluationAgent')

    for agent in "${TOENABLE[@]}"
    do
    {
    sudo launchctl load -w /System/Library/LaunchAgents/${agent}.plist
    launchctl load -w /System/Library/LaunchAgents/${agent}.plist
    } &> /dev/null
    sudo mv /System/Library/LaunchAgents/${agent}.plist.bak /System/Library/LaunchAgents/${agent}.plist
    echo "[OK] Agent ${agent} enabled"
    done

    # Daemons to enable
    TOENABLE=('com.apple.netbiosd' 'com.apple.preferences.timezone.admintool' 'com.apple.remotepairtool' 'com.apple.security.FDERecoveryAgent' 'com.apple.icloud.findmydeviced' 'com.apple.icloud.searchpartyd' 'com.apple.familycontrols' 'com.apple.findmymac' 'com.apple.findmymacmessenger' 'com.apple.SubmitDiagInfo' 'com.apple.screensharing' 'com.apple.appleseed.fbahelperd' 'com.apple.apsd' 'com.apple.ManagedClient.cloudconfigurationd' 'com.apple.ManagedClient.enroll' 'com.apple.ManagedClient' 'com.apple.ManagedClient.startup' 'com.apple.locate' 'com.apple.locationd' 'com.apple.eapolcfg_auth' 'com.apple.RemoteDesktop.PrivilegeProxy' 'com.apple.mediaremoted' 'com.apple.analyticsd')

    for daemon in "${TOENABLE[@]}"
    do
    {
    sudo launchctl load -w /System/Library/LaunchDaemons/${daemon}.plist
    launchctl load -w /System/Library/LaunchDaemons/${daemon}.plist
    } &> /dev/null
    sudo mv /System/Library/LaunchDaemons/${daemon}.plist.bak /System/Library/LaunchDaemons/${daemon}.plist
    echo "[OK] Daemon ${daemon} enabled"
    done