
Sudo rm -rf /Applications/Android\ File\ Transfer.app/Contents/Resources/Android\ File\ Transfer\ Agent.app Replace the agent app under /Applications:.Rm -rf ~/Library/Application\ Support/Google/Android\ File\ Transfer/Android\ File\ Transfer\ Agent.app Stop any running “Android File Transfer Agent” using the Activity Monitor.Save the application as “Android File Transfer Agent.app” in your user’s directory.Since some action has to be performed, insert an empty shell script into the work flow.Run Automator.app and create a new Application.We can simply use the Automator to create an application bundle:

A more clean solution therefore is to replace “Android File Transfer Agent.app” by an application bundle that does nothing. Unfortunately, these solutions have side effects, such as an increasing number of invalid entries in the user’s startup items. renaming “Android File Transfer Agent.app” to something else in the /Applications folder or making the folder under ~/Library unaccessible for AFT. People have come up with different hacks to sabotage this “feature”, e.g. An entry for this application is installed as a Login Item for the current user.“~/Library/Application Support/Google/Android File Transfer/Android File Transfer Agent.app” is replaced by “/Applications/Android File Transfer.app/Contents/Resources/Android File Transfer Agent.app”.Here is what seems to happen on every launch of AFT to install this agent: This behavior is caused by an App called “Android File Transfer Agent.app”, which is automatically installed by AFT to launch on login and wait for connecting devices. Since on most modern Android devices, the user has to give permission to access files after connecting it to a PC, it opens up just to confront the user with an error message. This software has an annoying habit though: It automatically starts when an Android device is plugged in. Android File Transfer (let’s call it AFT) is a handy tool to transfer files from and to an Android device when using a Mac.
