Setting the default value of a preference

60 views
Skip to first unread message

Will Newton

unread,
Mar 9, 2018, 3:21:40 PM3/9/18
to android-porting
Hi,

For my device I would like to override the default value of Settings.Secure.USB_AUDIO_AUTOMATIC_ROUTING_DISABLED (my device has the primary audio interface over USB so I don't want USB audio treated specially). Is there a way to set a default value of this setting?

Obviously I can edit the code in frameworks/base/services/usb/java/com/android/server/usb/UsbAlsaManager.java but I would rather do it as part of the device overlay or similar.

Thanks,
Reply all
Reply to author
Forward
0 new messages