On your Android device, media profiles / features are stored in the media_profiles.xml configuration file (on ICS / 4.0).
Usually this file is located in the / etc folder on the device.
So what you can do is
- Connect your device to the computer and pull the / etc / media _profiles.xml file using the adb pull command
Explore the properties of AudioEncoderCap. Multiple entries will be announced for each advertised advertisement. for ex:
AudioEncoderCap name = "aac" enabled = "true" minBitRate = "8192" maxBitRate = "96000" minSampleRate = "8000" maxSampleRate = "16000" minChannels = "1" maxChannels = "1"
If the "enabled" flag is set to "true", as indicated above, this function must be supported by the device. If it is not supported, the "enabled" flag will be set to "false".
AFAIK, the media codec infrastructure introduced in jb (4.1), reads this / similar configuration file to reveal the capabilities of the device at the application level.
Hope this helps.
Thanks!
source share