astd: Update sepolicy based on new installation location

Bug: 235020153
Test: Local build
Ignore-AOSP-First: The binaries are built only in factory image
Change-Id: I5bbad84b0a32e34ae56da7de3d9593d1273e26e1
diff --git a/astd/astd.te b/astd/astd.te
index 9f29caa..815e832 100644
--- a/astd/astd.te
+++ b/astd/astd.te
@@ -1,15 +1,8 @@
 # astd service
 type astd, domain;
+type astd_exec, exec_type, file_type, system_file_type;
 
-# /vendor/bin/astc        u:object_r:vendor_shell_exec:s0
-# system/sepolicy/public/vendor_shell.te
-# type vendor_shell_exec, exec_type, vendor_file_type, file_type;
-
-# /vendor/bin/astd        u:object_r:vendor_toolbox_exec:s0
-# system/sepolicy/public/vendor_toolbox.te
-# type vendor_toolbox_exec, exec_type, vendor_file_type, file_type;
-
-type astd_exec, exec_type, vendor_file_type, file_type;
+typeattribute astd coredomain;
 
 userdebug_or_eng(`
   init_daemon_domain(astd)
diff --git a/astd/file_contexts b/astd/file_contexts
index 0df5774..e0ac186 100644
--- a/astd/file_contexts
+++ b/astd/file_contexts
@@ -1,3 +1,3 @@
-/vendor/bin/astc        u:object_r:astd_exec:s0
-/vendor/bin/astd        u:object_r:astd_exec:s0
+/system/bin/astc        u:object_r:astd_exec:s0
+/system/bin/astd        u:object_r:astd_exec:s0