Stop OSX Photos.app opening every time you plug your (Android or IOS) device into your Mac
March 18th, 2016
Prevent annoying behavior on MacOS while developing mobile apps
This has been driving me mad for ages, every time I plugged a test device in to debug a Cordova app. I eventually found this solution on SE for El Capitan:
defaults -currentHost write com.apple.ImageCapture disableHotPlug -bool YES
Problem solved!