I'm building a ROM from AOSP, running on Nexus 5X (bullhead). I wish to completely disable hardware audio/video decoders and make the platform route everything through software - to work exactly the same as on emulator.
I've tried editing audio_policy_configuration.xml and media_codecs.xml to remove decoders, however I'm getting error messages in logcat and no audio is being played - I've no idea if this is even the right direction.