[RESTRICT AUTOMERGE] Validate full attr chain for recording

We currently only re-validate and listen for changes in the top of the
attr chain.

Listen across the whole chain, and compute the appop state
from the whole chain.

Test: atest CtsMediaAudioPermissionTestCases
Bug: 325912429
Flag: EXEMPT security
Change-Id: I4af2bbb7ecd3c5450115400c7d5fac63056dc0b8
1 file changed