Discussion:
[android-porting] Disable USB Audio Routing Programmaticaly
PW
2017-12-18 15:06:12 UTC
Permalink
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+***@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+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Glenn Kasten
2017-12-29 18:04:40 UTC
Permalink
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.
Post by PW
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+***@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+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Loading...