Skip to content
Snippets Groups Projects
Commit 56cdcd48 authored by Iliyan Malchev's avatar Iliyan Malchev
Browse files

Transition mediacodec to /dev/hwbinder and /dev/vndbinder


This change disables /dev/binder access to and by mediacodec on
full-Treble devices.

b/36604251 OMX HAL (aka mediacodec) uses Binder and even exposes a
	   Binder service

Test: marlin
Change-Id: I1e30a6c56950728f36351c41b2859221753fd91a
Signed-off-by: default avatarIliyan Malchev <malchev@google.com>
parent 31c55240
No related branches found
No related tags found
No related merge requests found
...@@ -8,7 +8,14 @@ typeattribute mediacodec mlstrustedsubject; ...@@ -8,7 +8,14 @@ typeattribute mediacodec mlstrustedsubject;
# and use macro hal_server_domain # and use macro hal_server_domain
get_prop(mediacodec, hwservicemanager_prop) get_prop(mediacodec, hwservicemanager_prop)
binder_use(mediacodec) full_treble_only(`
# on full-Treble devices, route all /dev/binder traffic to /dev/vndbinder
vndbinder_use(mediacodec)
')
not_full_treble(`
# on legacy devices, continue to allow /dev/binder traffic
binder_use(mediacodec)
')
binder_call(mediacodec, binderservicedomain) binder_call(mediacodec, binderservicedomain)
binder_call(mediacodec, appdomain) binder_call(mediacodec, appdomain)
binder_service(mediacodec) binder_service(mediacodec)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment