Add astd sepolicy to gs-common for P26 factory builds

Bug: 391090956
Bug: 393999182
Flag: EXEMPT bugFix
Test: Compile successful.
Change-Id: Idfcbf96a52326b613684b680676f5213136f2326
This commit is contained in:
Charlie Lin 2025-02-03 07:06:54 +00:00
parent 25b66183cf
commit 7f468a902f
3 changed files with 22 additions and 0 deletions

9
astd/astd.mk Normal file
View file

@ -0,0 +1,9 @@
# This module is only for factory targets, please include this makefile
# with check:
#
# ifneq ($(filter factory_%,$(TARGET_PRODUCT)),)
# include device/google/gs-common/astd/astd.mk
# endif
SYSTEM_EXT_PRIVATE_SEPOLICY_DIRS += device/google/gs-common/astd/sepolicy
PRODUCT_PACKAGES_DEBUG += astd

10
astd/sepolicy/astd.te Normal file
View file

@ -0,0 +1,10 @@
# astd service
type astd, domain;
type astd_exec, exec_type, file_type, system_file_type;
typeattribute astd coredomain;
userdebug_or_eng(`
init_daemon_domain(astd)
')

View file

@ -0,0 +1,3 @@
/system_ext/bin/astc u:object_r:astd_exec:s0
/system_ext/bin/astd u:object_r:astd_exec:s0