Disable USB permission in Android 7.0
I have this issue too! I have not found a slight work around for my particular application by using tasker. While I know this is not a perfect solution, perhaps it can get you by until we know what the correct solution is.