Commit graph

13 commits

Author SHA1 Message Date
Kilyoung Shin
1578320fa7 Grant permission for mediatranscoding hal_allocator for GSI image
Bug: 203839961
Test: run cts -m CtsMediaTranscodingTestCases -t
android.media.mediatranscoding.cts.MediaTranscodingManagerTest#testAddingClientUids

Signed-off-by: Kilyoung Shin <gilbert.shin@samsung.com>
Change-Id: If44653f436d4e5dcbd040af24f03b09ae8e7ac05
2021-10-28 17:46:57 +00:00
Jeff Vander Stoep
1b2a0b4dab Move mediatranscoding type to public
Move type to public so that it can be vendor customized. This
can be necessary if (for example) the gralloc/gpu same-process-HAL
requires additional permissions.

Bug: 199581284
Test: build
Change-Id: I61a5a3ad96112d4293fd4bf6d55f939c974643ce
2021-10-21 09:10:45 +02:00
Yifan Hong
be04b091bb Allow binder services to r/w su:tcp_socket
Test: binderHostDeviceTest
Bug: 182914638
Change-Id: I1c8d3b2194bc20bd2bcde566190aa5c73d7e7db9
2021-06-08 10:39:02 -07:00
Hridya Valsaraju
15f0f9234c Give mediatranscoding access to the DMA-BUF system heap
Fixes the following denials:

avc: denied { getattr } for path="/dev/dma_heap/system" dev="tmpfs"
ino=534 scontext=u:r:mediatranscoding:s0
tcontext=u:object_r:dmabuf_system_heap_device:s0 tclass=chr_file
permissive=0

Bug: 185867872
Test: No more DMA-BUF heap related denials from
CtsMediaTranscodingTestCases

Change-Id: I45b57b45e0db996f08b82618dcd085ba0f7e6ef6
2021-05-03 16:49:16 -07:00
Hridya Valsaraju
a2a2d9cbbd Add missing permissions for Cuttlefish to support GSI testing
Once b/186727553 is fixed, booting GSI on cuttlefish will no longer load
cuttlefish's system_ext sepolicy. These domains are all private and
hence the permissions are being added to system/sepolicy to avoid
making them public(especially mediatranscoding that was changed from
public to private in Android S).

Test: build, boot
Change-Id: I4a78030015fff147545bb627c9e62afbd0daa9d7
2021-05-03 16:49:07 -07:00
Linus Nilsson
ba1ba35a19 Transcoding: Allow media transcoding to log metrics to statsd
Bug: 179274112
Test: Used statsd_testdrive to verify that metrics reach statsd
Change-Id: Ia63b522f7898e86dffe629bd41d76934c95b8aee
2021-03-01 15:09:14 -08:00
Chong Zhang
19c275f995 transcoding: allow transcoding to connect to thermal manager
bug: 169452730
Change-Id: I619be315cdd3eaabfae3189c276eac636fa71da2
2021-01-19 16:19:24 -08:00
Chong Zhang
ce3c1f3ba1 Allow media.transcoding to access package manager native
This is needed to retrieve package names for dumpsys and metrics.

bug: 154733526
Change-Id: Ibe376a961d29e6ffd10326b625683fdc28a1924e
2020-10-05 12:12:19 -07:00
Treehugger Robot
72fe73c484 Merge "move mediatranscoding type from public to private" 2020-06-19 17:42:59 +00:00
hkuang
9e92b1b2d2 transcoding: Allow service read/write to app data.
bug: 154734285
bug: 158240484
Test: MediaTranscodeManager unit test
Change-Id: I6771a4a97531da3d980749b77fa8c6deca2c5bb3
2020-06-18 17:25:42 -07:00
Chong Zhang
63655462bb move mediatranscoding type from public to private
bug: 154734285
test: builds
Change-Id: I1057b0abf98771162dfe77b04a15c4b5d2529198
2020-06-18 15:23:36 -07:00
Chong Zhang
351dd88e86 transcoding: allow transcoding service to use media services
Also allow it to use fd from shell for unit tests.

bug: 154734285
Change-Id: I2c5f3feca11f7ee4ee3ad927050b31f425370a84
2020-06-16 15:45:13 -07:00
Hangyu Kuang
ee3a8ea798 MediaTranscodingService: Add sepolicy for MediaTranscodingService.
Bug:145233472
Test: Build and flash the phone.
"adb shell dumpsys -l | grep media" shows media.transcoding service.

Change-Id: I48a42e7b595754989c92a8469eb91360ab6db7c6
2019-12-02 13:57:28 -08:00