AMPDevicesAgent helps with synchronisation of iOS devices, but can also be the cause of many errors and high CPU usage. What is AMPDevicesAgent and why do you need it?
What is AMPDevicesAgent?
AMPDevicesAgent in Catalina is a new background daemon in macOS Catalina responsible for synchronisation of iOS devices using Finder. This functionality was split from iTunes in Catalina, and such helper code has been split into different daemons, such as this one.
AMPDevicesAgent is located at:
This agent is not malware but is part of macOS and written by Apple. It works alongside
AMPDeviceDiscoveryAgent which performs the discovery of connected devices over Wi-Fi when the relevant option is enabled in the device’s settings in Finder.
AMPDevicesAgent wants to use your confidential information
AMPDevicesAgent wants to use your confidential information stored in “iOS backup” in your keychain. To allow this, enter the login keychain password.
This message is displayed when AMP devices agent in macOS Catalina needs to perform a local backup of your iPhone or iPad. You can grant this permission by entering your keychain password, which by default is the password you use to log into your Mac.
iOS Backup is the password to an encrypted backup of your iPhone iOS device or iPad iPadOS device. To fix the issue and stop the prompt from being displayed, follow the steps below:
- Open Keychain Access.app. Find this in /Applications/Utilities (or Spotlight search with cmd-space).
- Search for ‘iOS Backup’. You’ll find one or more application passwords in the login keychain.
- Double-click on the first password row in the results. An attributes page opens for the password.
- Switch to the Access Control tab at the top of the dialog.
- Under ‘Always allow access by these applications’, check the box below those words. If ‘AMPDevicesAgent’ is already listed in the box, go to step 9. If not, continue with step 6.
- Click the plus (+) button at the bottom-left corner of the window.
- Press shift-cmd-g and paste the path:
- Click the blue Add button at the bottom-right of the window. This adds AMPDevicesAgent to the list of applications allowed to access the iOS backup keychain item.
- Close the window. Repeat with any other iOS backup items in the list.
AMPDevicesAgent high CPU up to 100% of total or 200% in Activity Monitor can be caused by an iOS sync in progress. This might not be immediately apparent, since synchronisation with an iPhone can happen in the background, wirelessly. This is perfectly normal and AMPDevicesAgent CPU will decrease after the sync or backup has concluded.
You can either disable automatic synchronisation always or just disable wireless background sync. See the next section for detailed instructions.
Choose the device in the sidebar and untick ‘Show this iPhone when on Wi-Fi’.
This will hide the device in the sidebar when not connected to your computer over USB: when the device is on the same Wi-Fi network as your Mac. This won’t hide the iPhone in all cases.
All connected iOS devices will be shown in Finder sidebar when connected via a USB to Lightning cable. If your device is connected with USB, you’ll need to disconnect it to remove it from the sidebar. Alternatively, you can remove all iOS devices from Finder sidebar by going to Finder Preferences (cmd-,) and deselecting ‘CDs, DVDs and iOS Devices’ from the Sidebar tab.
Stop Finder automatically opening
You can disable this by running the following command in Terminal.
Code language: CSS (css)
defaults write com.apple.AMPDevicesAgent dontAutomaticallySyncIPods -bool true
This sets a user preference on the
com.apple.AMPDevicesAgent.plist preference list to disable AMPDevicesAgent from automatically syncing iOS devices, which stops Finder automatically opening when connecting such a device. You need to log out and back in for the change to take effect.
To undo the change, delete the preference:
Code language: CSS (css)
defaults delete com.apple.AMPDevicesAgent
If you only need to disable AMPDevicesAgent temporarily, you can send the process the STOP signal instead:
pkill --signal SIGSTOP AMPDeviceDiscoveryAgent
What does the defaults write command do?
The command given at the top of this post uses the
defaults command line tool to set (
write) a value to a preference list. Preferences are stored in
~/Library/Preferences. This preference is then read when
AMPDevicesAgent is loaded by macOS and changes its behaviour.
Disable iPhone syncing in Finder
You can disable all iPhone management in Finder by setting the ignore-devices preference. This will remove the ability to configure iOS devices in Finder, requiring the use of third-party tools. This is not recommended unless you are familiar with such tools or do not use a computer to manage your device.
Code language: PHP (php)
defaults write -g ignore-devices -bool true # undo defaults delete -g ignore-devices