API flagging macro until/starting_at for private and public
- Applies the starting_at_board_api macro also to private types
- Add a macro complementary to the starting_at_board_api macro to write rules if
the the board api level is lower than the specified api
(Re-land of aosp/3229062 without proc_compaction_proactiveness.
Cause: b/363981334)
Bug: 356832676
Bug: 358516352
Change-Id: I923d26ac581da3b947f8e8dde0db993e3bb637ba
diff --git a/private/service.te b/private/service.te
index 63259c6..a4d00f3 100644
--- a/private/service.te
+++ b/private/service.te
@@ -1,5 +1,10 @@
type adaptive_auth_service, system_server_service, service_manager_type;
type ambient_context_service, app_api_service, system_server_service, service_manager_type;
+
+# These types will be public starting at board api 202504
+until_board_api(202504, `
+ type app_function_service, app_api_service, system_server_service, service_manager_type;
+')
type attention_service, system_server_service, service_manager_type;
type bg_install_control_service, system_api_service, system_server_service, service_manager_type;
type compos_service, service_manager_type;