From 5c45a3e263a84819bdfcadc269eaf8435390b3bb Mon Sep 17 00:00:00 2001 From: feiyuchen Date: Fri, 19 Jul 2024 00:48:36 +0000 Subject: [PATCH] Allow Tachyon service to binder call a shell program Our Tachyon tests are running as shell program. We need this CL, so we can successfully run the tests without `adb root`. Bug: 353826183 Test: All tests in `run_tachyon_tests.py` passed after disabling the stress tests (cl/653778337) Change-Id: I7275029f5a837243c81968d5b53ffc3b00ddf9a5 Flag: EXEMPT bugfix --- edgetpu/sepolicy/edgetpu_tachyon_service.te | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/edgetpu/sepolicy/edgetpu_tachyon_service.te b/edgetpu/sepolicy/edgetpu_tachyon_service.te index da34353..8dbc51c 100644 --- a/edgetpu/sepolicy/edgetpu_tachyon_service.te +++ b/edgetpu/sepolicy/edgetpu_tachyon_service.te @@ -60,3 +60,8 @@ allow edgetpu_tachyon_server privapp_data_file:file { map read}; userdebug_or_eng(` allow edgetpu_tachyon_server shell_data_file:file { map read}; ') + +# For shell level testing +userdebug_or_eng(` + binder_call(edgetpu_tachyon_server, shell); +')