My Samsung phone was not recognized by Android Studio on windows 7. I repaired it by installing the Samung Driver here:
http://developer.samsung.com/technical-doc/view.do?v=T00
Galaxy J7(2016) same problem solved
when i go to software update section on phone.
asked me to allow debug mode from this computer . Checked always trust this computer. and OK
Note : Usb mode PTP