- Close Android File Transfer
- Open Activity Monitor and kill “Android File Transfer Agent”
- Go to where you installed “Android File Transfer.app” (I have it under /Applications)
- Ctrl+click –> “Show package contents”
- Go to Contents/Resources
- Rename “Android File Transfer Agent” to e.g. “Android File Transfer Agent_DISABLED”
- Then go to “/Users/username/Library/Application Support/Google/Android File Transfer” and again rename the Agent app.
This comment has been minimized.
This comment has been minimized.
@alg the way you suggested does work. The agent is still launched when inserted with the usb. |
This comment has been minimized.
This comment has been minimized.
@zeroseis: Thanks. |
This comment has been minimized.
This comment has been minimized.
just put this command in Terminal (Mac).
|
This comment has been minimized.
This comment has been minimized.
@rb-shahid Your solution work like a charm! |
This comment has been minimized.
This comment has been minimized.
@rb-shahid solution worked for me as well, thank you! |
This comment has been minimized.
This comment has been minimized.
@rb-shahid Thanks!. works for me |
This comment has been minimized.
This comment has been minimized.
Thanks very much, i was getting very irrated while degubbing android app, this file transfer always opens up. |
This comment has been minimized.
This comment has been minimized.
Works, thaaaaaaank you |
This comment has been minimized.
This comment has been minimized.
works, thanks. files renamed, login item removed. Dear "Android File Transfer Agent": Don't call us, we'll call you. Sincerely, |
This comment has been minimized.
This comment has been minimized.
works, thanks. files renamed, login item removed. Dear "Android File Transfer Agent": Don't call us, we'll call you. Sincerely, |
This comment has been minimized.
This comment has been minimized.
@rb-shahid your the man ! And for Android File Transfer developers just : WTF |
This comment has been minimized.
This comment has been minimized.
Thank you so much. This was the most annoying app I've ever had installed >:( |
This comment has been minimized.
This comment has been minimized.
Thanks |
This comment has been minimized.
This comment has been minimized.
|
This comment has been minimized.
This comment has been minimized.
Awesome, this worked like a charm. Thanks @zeroseis |
This comment has been minimized.
This comment has been minimized.
thanks |
This comment has been minimized.
This comment has been minimized.
@rb-shahid Thanks |
This comment has been minimized.
This comment has been minimized.
FYI, these approaches only work until you reinstall or update the application. Another approach is to make the agent unreachable, then change its owner to the root user so that an update/reinstall cannot revert your changes. In a terminal: chmod 000 ~/Library/Application\ Support/Google/Android\ File\ Transfer/Android\ File\ Transfer\ Agent.app
sudo chown root:wheel ~/Library/Application\ Support/Google/Android\ File\ Transfer/Android\ File\ Transfer\ Agent.app Obviously, the agent is still already running, so you will have to kill it in Activity Monitor. To undo it: sudo chown $UID:staff ~/Library/Application\ Support/Google/Android\ File\ Transfer/Android\ File\ Transfer\ Agent.app
chmod 755 ~/Library/Application\ Support/Google/Android\ File\ Transfer/Android\ File\ Transfer\ Agent.app |
This comment has been minimized.
This comment has been minimized.
@zeroseis Thanks |
This comment has been minimized.
This comment has been minimized.
@DanielSmedegaardBuus thanks, much better! |
This comment has been minimized.
This comment has been minimized.
Mac OS Sierra. |
This comment has been minimized.
This comment has been minimized.
Thanks, |
This comment has been minimized.
This comment has been minimized.
Thank for that nice android transfer! |
This comment has been minimized.
This comment has been minimized.
This REALLY needs to be an option within the application. I write Android apps on Windows in a macOS Parallels VM. While the VM properly captures the android device, macOS still generates a "hey, an android device was plugged in" signal. AFT then pops up, but by this time the VM has captured the device and its not available to macOS. So then I get the app alert: No device is connected. This is TERRIBLY annoying!! Please, give us the option from within AFT to disable the USB agent. |
This comment has been minimized.
This comment has been minimized.
thank you all so much <3 |
This comment has been minimized.
This comment has been minimized.
This was very useful. Thanks. |
This comment has been minimized.
This comment has been minimized.
@DanielSmedegaardBuus Thanks! |
This comment has been minimized.
This comment has been minimized.
Important note: if you are running OS X 10.13 High Sierra, this hack will cause undeletable "Unknown" login items to appear in your Login Items. These bogus/corrupted "unknown" items can cause some apps to crash. For now I've switched to using the command-line |
This comment has been minimized.
This comment has been minimized.
There is a relatively clean way to circumvent this issue. Very brief:
This way, the login item stays valid since it refers to an existing app and isn't duplicated on each launch. I wrote up the required steps in a bit more detail here: https://0xstubs.org/prevent-autostart-of-android-file-transfer-on-macos/ |
This comment has been minimized.
This comment has been minimized.
amazing! |
This comment has been minimized.
This comment has been minimized.
@rb-shahid Great..It worked.. Thanks Shahid |
This comment has been minimized.
This comment has been minimized.
@michaellass, works! thank you. |
This comment has been minimized.
This comment has been minimized.
@rb-shahid So easy and works perfectly! Thanks :) |
This comment has been minimized.
This comment has been minimized.
Ok, the problem is the app crashed after did this. |
This comment has been minimized.
This comment has been minimized.
@rb-shahid Your solution works haffa, pumma! |
This comment has been minimized.
This comment has been minimized.
Thank you |
This comment has been minimized.
This comment has been minimized.
@rb-shahid one code, one kill :) thank you |
This comment has been minimized.
This comment has been minimized.
Very nice !!! But - Did not do the trick for me with copy and paste --> the .app file within the application bundle was not located in /Contents/Resources/*** but in /Contents/Helpers/ (...) So for me I had to change the Terminal command to:
|
This comment has been minimized.
This comment has been minimized.
This doesn't seem to work with the latest android transfer, which automatically recreates the .app file in Application Support and adds itself back to login item. It really needs an option in the app itself.. |
This comment has been minimized.
This comment has been minimized.
Further to yesterday, file transfer adds itself to login items. Here's a short script which opens file transfer when run, and stops the process when the file window is shut, stops the agent. open /Applications/Internet+phone/Android\ File\ Transfer.app && Put this in a script e.g. "fandroid", make it executable, and click it after connecting an android device. It'll ask for a admin password which is probably not necessary if the process ownership is right - I haven;t checked. |
This comment has been minimized.
This comment has been minimized.
Per @jduerr's comment, it's moved to I'd imagine that @rb-shahid's script will need updating now though as the agent location's changed. I'd also like to +1 the general "WTF, how is this not a setting in the app itself?!!" comments. |
This comment has been minimized.
This comment has been minimized.
@rb-shahid Thanks |
This comment has been minimized.
This comment has been minimized.
Apparently each time you launch AFT this |
This comment has been minimized.
This comment has been minimized.
Thanks |
This comment has been minimized.
This comment has been minimized.
@rb-shahid 10/10 |
This comment has been minimized.
This comment has been minimized.
@anticitizen4 The easiest and only solution that worked for me |
This comment has been minimized.
This comment has been minimized.
@jduerr that worked for me, thanks. |
This comment has been minimized.
This comment has been minimized.
@rb-shahid Thanks |
This comment has been minimized.
This comment has been minimized.
Thanks @anticitizen4 |
This comment has been minimized.
This comment has been minimized.
@rb-shahid . God like |
This comment has been minimized.
This comment has been minimized.
@alg Thanks. I like your solution, it worked for me. |
This comment has been minimized.
This comment has been minimized.
Thanks! @anticitizen4 |
This comment has been minimized.
This comment has been minimized.
@rb-shahid thank you |
This comment has been minimized.
This comment has been minimized.
Thank you so much! <3 |
This comment has been minimized.
This comment has been minimized.
Yup, the app wrecks havoc too when working on USB related setting up on mac os in hack type things. For sure make apps prefs |
This comment has been minimized.
This comment has been minimized.
@rb-shahid |
This comment has been minimized.
This comment has been minimized.
I got some useful information about android file transfer windows at windowsclassroom.com/android-file-transfer-windows |
This comment has been minimized.
This comment has been minimized.
The current version (1.0.11 as of November 2018) is quite different:
I guess one copy of the agent wasn't enough, and Google wanted it to stick around even if you delete the transfer app? Jerks. |
This comment has been minimized.
This comment has been minimized.
If you dont want to fully uninstall it you can kill the agent from the Activity monitor before you connect your device.
|
This comment has been minimized.
This comment has been minimized.
@rb-shahid THANKS! |
This comment has been minimized.
This comment has been minimized.
@swinggraphics Thanks. Thanks! Although for point 3
for me the location was |
This comment has been minimized.
This comment has been minimized.
Creating an Automator app called cat disable-android-file-transfer-agent.sh
#!/bin/bash
# disables auto-start of AFT when plugging in an Android device into USB
# -- prerequisite create an Automator application that launches an empty shell script and save it as /Applications/Noop.app
sudo killall 'Android File Transfer'
sudo killall 'Android File Transfer Agent'
# remove the runtime Library copy
sudo rm -rf "${HOME}/Library/Application Support/Google/Android File Transfer/Android File Transfer Agent.app"
# remove the source app
sudo rm -rf "/Applications/Android File Transfer.app/Contents/Helpers/Android File Transfer Agent.app"
# copy the Noop app into the source location
sudo cp -r "/Applications/Noop.app" "/Applications/Android File Transfer.app/Contents/Helpers/" inspired by: https://gist.github.com/zeroseis/ce66d4c6b776577442a6#gistcomment-2238139 |
This comment has been minimized.
This comment has been minimized.
This is for the newest version of the program:
|
This comment has been minimized.
This comment has been minimized.
Over time a switched to Script that looks at all the places. This has the advantage of being easier to read them 5 commands on one terminal line and it can be quickly started after each update. And last not least one can easily add more location to search in case Google moves stuff again: #!/bin/zsh
typeset PID=$(ps -fe | grep "[A]ndroid File Transfer Agent" | awk '{print $2}')
if [[ -n ${PID} ]]; then
kill ${PID}
fi
for AFT in \
"/Applications/Android File Transfer.app" \
"/Applications/Sync/Android File Transfer.app" \
"${HOME}/Library/Application Support/Google/Android File Transfer"
do
echo "### Look for agents in “${AFT}”"
if test -e "${AFT}"; then
for AFTA in \
"${AFT}/Contents/Resources/Android File Transfer Agent.app" \
"${AFT}/Contents/Helpers/Android File Transfer Agent.app"
do
echo "# Look for agent “${AFTA}”"
if test -e "${AFTA}"; then
mv -v "${AFTA}" "${AFTA}.DISABLE"
fi
done; unset AFTA
fi
done; unset AFT
osascript -e 'tell application "System Events" to delete every login item whose name is "Android File Transfer Agent"' |
This comment has been minimized.
This comment has been minimized.
Android File Transfer is the most annoying piece of software I've forced to use, seriously, why someone would thing it needs to run on every launch whether the user wants it or not. |
This comment has been minimized.
This comment has been minimized.
@alg This does work. thank you! (I just needed to kill/stop the agent process manually after removing it from the list as you suggested) |
This comment has been minimized.
This comment has been minimized.
that's awesome, thx |
This comment has been minimized.
This comment has been minimized.
@alg Thank you. Worked for me. |
This comment has been minimized.
This comment has been minimized.
@krischik: thank you! |
This comment has been minimized.
This comment has been minimized.
Brilliant! Thanks to both the OP as well as @krischik for your handy dandy script. |
This comment has been minimized.
This comment has been minimized.
The permissions trick worked great for me. All I did was:
That's it. I confirmed that re-opening the Android File Transfer app no longer adds the launch entry or makes the copy to Application Support directory and the app no longer auto-launches when a device is plugged in. |
This comment has been minimized.
This comment has been minimized.
Thanks! It's a clean way indeed. This was really getting me nuts, every f**** time that damn app open, while I don't asked for it. Garbage. |
This comment has been minimized.
This comment has been minimized.
You can use HandShaker if you don't mind the company being based in China. |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
Removing execution permissions for the agent in
|
This comment has been minimized.
This comment has been minimized.
I used the einsteinx2 solution but found an error in step 5.
/* this line is incorrect, the slashes after Support and Google should be forward slashes */ /* the corrected line 5 is as follows */
|
This comment has been minimized.
This comment has been minimized.
I tried all solutions but this one was the simplest and the best one of for me. I dragged the Android File Transfer icon to Trash. Lol |
This comment has been minimized.
This comment has been minimized.
macOS 10.15.3 with Android File Transfer 1.0.11 |
This comment has been minimized.
This comment has been minimized.
|
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
nice, thanks~ |
This comment has been minimized.
This is too radical. I'd suggest going to the System Preferences / Users & Groups / / Login Items and removing "Android File Transfer Agent" from the list. This way you will still be able to launch it when you need it.