Allow sdk_sandbox to read files/directory in /data/local/tmp
The /data/local/tmp directory is used by the CTS tests infrastructure to store various data, like the list of tests to include/exclude after failures http://cs/android-internal/tools/tradefederation/core/test_framework/com/android/tradefed/testtype/AndroidJUnitTest.java;l=333-347;rcl=bbd3902197b7de1a99aef4c22db8e14e4dbf1157 Without this CL, CTS modules that attempt to re-execute failures will get a '[INSTRUMENTATION_CRASH|SYSTEM_UNDER_TEST_CRASHED]' error. Test results before/after this CL: Before: http://ab/I04600010115474754 After: http://ab/I65000010115426482 Note the absence of "Module error" in the second case https://screenshot.googleplex.com/C6Ui3GdfgQBt8bp https://screenshot.googleplex.com/BDHKFfKJjnqVYpj Bug: 261864298 Test: atest CtsBluetoothTestCases --retry-any-failure -- --enable-optional-parameterization --enable-parameterized-modules --module-parameter run_on_sdk_sandbox Change-Id: Ibbb196f8c0ef1df320885ed8c56f20172f83d583
This commit is contained in:
parent
f56dfeb2d4
commit
f7894fc62e
1 changed files with 4 additions and 0 deletions
|
@ -213,6 +213,10 @@ allow sdk_sandbox webviewupdate_service:service_manager find;
|
|||
|
||||
allow sdk_sandbox system_linker_exec:file execute_no_trans;
|
||||
|
||||
# Required to read CTS tests data from the shell_data_file location.
|
||||
allow sdk_sandbox shell_data_file:file r_file_perms;
|
||||
allow sdk_sandbox shell_data_file:dir r_dir_perms;
|
||||
|
||||
# Write app-specific trace data to the Perfetto traced damon. This requires
|
||||
# connecting to its producer socket and obtaining a (per-process) tmpfs fd.
|
||||
perfetto_producer(sdk_sandbox)
|
||||
|
|
Loading…
Reference in a new issue