Split automotive HALs sepolicies

Spliting automotive policies between private/public/vendor similar to
policies defined in system/sepolicy

Bug: 70637118
Test: build, flash and boot bat_land, owl and emulator automotive builds
Change-Id: I1dc56b073328a6ee185c59c6754eccda179ff4af
diff --git a/common/car.mk b/common/car.mk
index fb00657..72df605 100644
--- a/common/car.mk
+++ b/common/car.mk
@@ -54,6 +54,5 @@
 # Add car related sepolicy.
 BOARD_SEPOLICY_DIRS += \
     device/generic/car/common/sepolicy \
-    packages/services/Car/car_product/sepolicy
 
 $(call inherit-product, packages/services/Car/car_product/build/car.mk)
diff --git a/common/sepolicy/file_contexts b/common/sepolicy/file_contexts
deleted file mode 100644
index ac02aab..0000000
--- a/common/sepolicy/file_contexts
+++ /dev/null
@@ -1,2 +0,0 @@
-/(vendor|system/vendor)/bin/hw/android.hardware.automotive.audiocontrol@1.0-service  u:object_r:hal_audiocontrol_default_exec:s0
-/(vendor|system/vendor)/bin/hw/android.hardware.automotive.vehicle@2.0-service  u:object_r:hal_vehicle_default_exec:s0
diff --git a/common/sepolicy/hal_audiocontrol_hwservice.te b/common/sepolicy/hal_audiocontrol_hwservice.te
deleted file mode 100644
index b8082a4..0000000
--- a/common/sepolicy/hal_audiocontrol_hwservice.te
+++ /dev/null
@@ -1 +0,0 @@
-add_hwservice(hal_audiocontrol_default, hal_audiocontrol_hwservice)
diff --git a/common/sepolicy/hal_vehicle_hwservice.te b/common/sepolicy/hal_vehicle_hwservice.te
deleted file mode 100644
index 836d21f..0000000
--- a/common/sepolicy/hal_vehicle_hwservice.te
+++ /dev/null
@@ -1 +0,0 @@
-add_hwservice(hal_vehicle_default, hal_vehicle_hwservice)
\ No newline at end of file
diff --git a/common/sepolicy/hwservice.te b/common/sepolicy/hwservice.te
deleted file mode 100644
index fb8b372..0000000
--- a/common/sepolicy/hwservice.te
+++ /dev/null
@@ -1,2 +0,0 @@
-type hal_audiocontrol_hwservice, hwservice_manager_type;
-type hal_vehicle_hwservice, hwservice_manager_type;
diff --git a/common/sepolicy/hwservice_contexts b/common/sepolicy/hwservice_contexts
deleted file mode 100644
index d46c4c3..0000000
--- a/common/sepolicy/hwservice_contexts
+++ /dev/null
@@ -1,2 +0,0 @@
-android.hardware.automotive.audiocontrol::IAudioControl u:object_r:hal_audiocontrol_hwservice:s0
-android.hardware.automotive.vehicle::IVehicle u:object_r:hal_vehicle_hwservice:s0
diff --git a/common/sepolicy/system_app.te b/common/sepolicy/system_app.te
index 102f77f..9bc5ba3 100644
--- a/common/sepolicy/system_app.te
+++ b/common/sepolicy/system_app.te
@@ -1,2 +1,3 @@
 allow system_app hal_audiocontrol_hwservice:hwservice_manager find;
 allow system_app hal_vehicle_hwservice:hwservice_manager find;
+