If you’re an Android device owner with a Mac, chances are you’ve installed the rather rudimentary app called Android File Transfer. This app gets one useful job done, namely to transfer files between Mac and Android. Yet, for many of us it’s a nuisance that Android File Transfer launches every time you plug your Android device into the computer. In my case, I rarely need to use AFT. I mostly plug my phone in for tethering purposes. 

So, here’s how to disable AFT from launching automatically. I found numerous solutions to this issue, but most had become redundant as AFT was updated, or are too complicated for many people. Credit for this solution goes to krischik on Github.

In Terminal launch change to the directory where you want the script, and then create a new file with nano:

Then paste in the following code:

You’ll then need to make the file executable, and run it: