platform_system_sepolicy/private/compat
Pierre-Hugues Husson 1019870fba Mark mediacodec_2{6,7,8} as hal_omx_server
The commit 7baf725ea6 broke OMX on O/O-MR1(/P?) vendors.
Previous to this commit, all OMX codecs had to use "mediacodec" type,
after this commit, omx codecs just had to get hal_omx_server attribute.
This commit left to the vendor the charge of adding "hal_omx_server"
attribute to mediacodec.

However this can't work on non-Q vendors.

On P vendor, versioned_plat_pub contains the appdomain <=> mediacodec
allows, so OMX isn't technically broken on those devices.
But to ensure it won't break in the future, mark 28's mediacodec as
hal_omx_server as well

This fixes broken OMX decoding on O/O-MR1 vendors, failing with the
following denial:
avc: denied { call } for comm=4E444B204D65646961436F6465635F scontext=u:r:platform_app:s0:c512,c768 tcontext=u:r:mediacodec:s0 tclass=binder permissive=0

Bug: 141186440

Change-Id: I018f8d9aabc77e7ea86ca14734b1ab2edfdf8ed1
2019-10-01 20:48:01 +00:00
..
26.0 Mark mediacodec_2{6,7,8} as hal_omx_server 2019-10-01 20:48:01 +00:00
27.0 Mark mediacodec_2{6,7,8} as hal_omx_server 2019-10-01 20:48:01 +00:00
28.0 Mark mediacodec_2{6,7,8} as hal_omx_server 2019-10-01 20:48:01 +00:00
29.0 sepolicy: remove ashmemd 2019-09-27 17:43:53 +00:00