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/property.te b/private/property.te
index 7c2d6d1..54565f9 100644
--- a/private/property.te
+++ b/private/property.te
@@ -79,6 +79,12 @@
 system_restricted_prop(persist_sysui_ranking_update_prop)
 system_restricted_prop(page_size_prop)
 
+# These types will be public starting at board api 202504
+until_board_api(202504, `
+    system_restricted_prop(enable_16k_pages_prop)
+    system_restricted_prop(profcollectd_etr_prop)
+')
+
 # Properties which should only be written by vendor_init
 system_vendor_config_prop(avf_virtualizationservice_prop)
 system_vendor_config_prop(high_barometer_quality_prop)