move aoc dump to gs-common

Bug: 248426917
Test: adb bugreport
Change-Id: I29fea8752011959b5d0eb50ed93c6e8eed66f9ee
This commit is contained in:
Adam Shih 2022-10-11 15:36:26 +08:00
parent 763eae3289
commit ee779b9ac8
5 changed files with 88 additions and 0 deletions

7
aoc/sepolicy/dump_aoc.te Normal file
View file

@ -0,0 +1,7 @@
pixel_bugreport(dump_aoc)
allow dump_aoc sysfs_aoc:dir search;
allow dump_aoc sysfs_aoc_dumpstate:file r_file_perms;
allow dump_aoc aoc_device:chr_file rw_file_perms;
allow dump_aoc vendor_shell_exec:file execute_no_trans;
allow dump_aoc vendor_toolbox_exec:file execute_no_trans;

View file

@ -0,0 +1 @@
/vendor/bin/dump/dump_aoc u:object_r:dump_aoc_exec:s0