Stop Android File Transfer Running Automatically on MAC

There are some blof posts that change the app name in package contents, etc.. but it failed. But the following script does the thing:

PID=$(ps -fe | grep “[A]ndroid File Transfer Agent” | awk ‘{print $2}’); if [[ -n $PID ]]; then kill $PID; fi; mv “/Applications/Android File Transfer.app/Contents/Resources/Android File Transfer Agent.app” “/Applications/Android File Transfer.app/Contents/Resources/Android File Transfer Agent DISABLED.app”; mv “${HOME}/Library/Application Support/Google/Android File Transfer/Android File Transfer Agent.app” “${HOME}/Library/Application Support/Google/Android File Transfer/Android File Transfer Agent DISABLED.app”; osascript -e ‘tell application “System Events” to delete every login item whose name is “Android File Transfer Agent”‘

 

Just copy&paste this script on terminal and run it.

Reference:

h ttps://gist.github.com/zeroseis/ce66d4c6b776577442a6

admin Hakkında

Murat Aydin works as a senior software engineer at Arcelik and develops Android apps. He has several Android applications in Google Play. He is a Sun Certified Java Developer and has eight years of experience in developing web based applications using Java technologies, and desktop and engineering applications using .Net technologies. Murat Aydin earned his BSc degree in Computer Engineering from METU (Middle East Technical University) and his MSc degree in Software Engineering from METU. He is a member of GDG Ankara (Google Developer Group Ankara, www.gdgankara.org), who organize several Android events in GDG Ankara, such as Android Developer Days. (www.androiddeveloperdays.com). twitter: @maydintr gmail: maydin