At one time there was a setting for this, and there may still be but I seem to recall it has suffered from bit rot and does not work as well as it used to. Search source code in frameworks/base and packages/apps/Settings for all references to the symbol USB_AUDIO_AUTOMATIC_ROUTING_DISABLED and then follow the bread crumbs from there. Please update here with anything you find, as I am curious too.
On Monday, December 18, 2017 at 12:48:42 PM UTC-8, PW wrote: > > Hi, I'm wondering if there is a way to disable USB AUDIO ROUTING on > nougat. I did it in lower api via reflection and > setwireddeviceconnectionstate. This however doesn't seem to want to work on > nougat and i'm not sure if the reflection has changed at all. > > I want exclusive access on USB output and do not want system notifications > to go via USB as they interrupt the signal. > > Thanks > -- -- unsubscribe: android-porting+unsubscr...@googlegroups.com website: http://groups.google.com/group/android-porting --- You received this message because you are subscribed to the Google Groups "android-porting" group. To unsubscribe from this group and stop receiving emails from it, send an email to android-porting+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.