Skip to content

Instantly share code, notes, and snippets.

View jduerr's full-sized avatar

Johannes Dürr jduerr

View GitHub Profile
@jduerr
jduerr / gist:f149034e8d3789c776c07206e2312cd1
Created February 24, 2018 11:18
Disable auto start for Android File Transfer (macOS)
I stumbled upon this solution: https://gist.github.com/zeroseis/ce66d4c6b776577442a6
But in my version of Android the .app file was not placed under /Content/Resources but /Content/Helpers...
so the needed terminal command in my case is:
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/Helpers/Android File Transfer Agent.app" "/Applications/Android File Transfer.app/Contents/Helpers/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"'