From f270aea66a436e17660f987149e423fab12e76f8 Mon Sep 17 00:00:00 2001 From: Florian Mayer Date: Thu, 8 Nov 2018 15:01:15 +0000 Subject: [PATCH] Allow adbd to read perfetto_traces_data_file. This allows to use adb pull on Perfetto traces on user. Bug: 118747482 Change-Id: Ie4deed90597b412ccb0e9e6512ffed2acead82d8 --- private/adbd.te | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/private/adbd.te b/private/adbd.te index 685b2cc24..7dff8bc86 100644 --- a/private/adbd.te +++ b/private/adbd.te @@ -161,6 +161,10 @@ r_dir_file(adbd, apk_data_file) allow adbd rootfs:dir r_dir_perms; +# Allow to pull Perfetto traces. +allow adbd perfetto_traces_data_file:file r_file_perms; +allow adbd perfetto_traces_data_file:dir r_dir_perms; + ### ### Neverallow rules ###