AudioManager
has a setParameters method that accepts a Key-Value pair in string representation (\"parameter_name=parameter_value\").
Internally, it calls native
After brief investigation I can guess that there is no reliable way to enumerate all available keys for audio device parameters. Android headers define small set of general parameters, that probably should be supported by all devices. You can find actual keys here (look for AUDIO_PARAMETER_*
macros). And interface to actual device implementation struct audio_hw_device
(that is implemented by vendor) has only get_parameters()/set_parameters()
and no enumeration entry points. So, there is no way to request full list of supported parameter keys.
To top it off:
Any correctives are welcome.