I've been suffering through this for a couple weeks now, hoping that an update would fix it, but now I don't know who to turn to. So, I develop apps for android and iOS. Typically I just test on my own phone, which is a Galaxy S7 Edge. When I got it, I looked up how to access developer mode and did that. I then turned on USB debugging, however, when I hooked up my phone, my Android Studio could not find the device. 

I looked at my options under the "Use USB for..." menu and picked 'Software installation'. My Android Studio found my device and I started using it to test apps. It worked great, so I didn't ask any questions, until a couple weeks ago, after a security update I started getting a weird error. Every time I was connected to my computer and I set my usb mode to Software installation, after about 30 seconds it would change to File Transfer mode on its own. 

I cannot be in Software installation mode for more than a minute at any given time, and when I am in File Transfer mode, my Android Studio won't register my phone as a debugging device. I downloaded the most recent update today, but that didn't fix my issue. I Googled the issue, but I can't find anyone who seems to have had this problem. Has anyone had this problem? Does anyone have a clue how to fix it?

Tl;dr: My phone cannot stay in Software installation mode long enough for me to download an app from Android Studio to test. I'm using 6.0.1