Reland audio: Add addtl permission sync behavior

This relands f81b2de4fdf649c47d3b335530571c70a4e266ed.

Serial based sysprop listening likely fires spuriously: attempt to add
barrier logic to existing cached property listener. Since CachedProperty
isn't thread safe, we will need to check the sysprop directly and add
some locking.

Test: atest CtsMediaAudioTestCases
Bug: 338089555
Bug: 363548816
Flag: com.android.media.audio.audioserver_permissions
Change-Id: I6ad7c6ef0b921cb8600e2b0df40148a568d6f682
1 file changed