Default change usb connection behavior

I have to do a project... and i have a strange question for you :

 can i change usb connection behavioir? when i connect smartphone to pc "android" start charge it . can i avoid this behavioir?

I connect a cable in micro usb and send sata to smartphone by usb port.