Merge "Add astd sepolicy to gs-common for P26 factory builds" into main

This commit is contained in:
Charlie Lin 2025-02-05 20:28:46 -08:00 committed by Android (Google) Code Review
commit be9f4c732e
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