Allow update_engine to read virtual ab feature flag.

Test: adb shell getprop -Z [the two flags]
Bug: 135752105

Change-Id: I3e0372e969ea0161787c32560a8c40fed2953619
diff --git a/private/compat/29.0/29.0.ignore.cil b/private/compat/29.0/29.0.ignore.cil
index 5a9706a..4067843 100644
--- a/private/compat/29.0/29.0.ignore.cil
+++ b/private/compat/29.0/29.0.ignore.cil
@@ -19,6 +19,7 @@
     system_group_file
     system_passwd_file
     vendor_apex_file
+    virtual_ab_prop
     wifi_stack
     wifi_stack_service
     wifi_stack_tmpfs))
diff --git a/private/property_contexts b/private/property_contexts
index 254c55a..d1a97d9 100644
--- a/private/property_contexts
+++ b/private/property_contexts
@@ -212,3 +212,7 @@
 
 # Charger properties
 ro.charger.             u:object_r:charger_prop:s0
+
+# Virtual A/B properties
+ro.virtual_ab.enabled   u:object_r:virtual_ab_prop:s0
+ro.virtual_ab.retrofit  u:object_r:virtual_ab_prop:s0
diff --git a/public/property.te b/public/property.te
index 1bac613..9dc204c 100644
--- a/public/property.te
+++ b/public/property.te
@@ -93,6 +93,7 @@
 type traced_enabled_prop, property_type;
 type traced_lazy_prop, property_type;
 type use_memfd_prop, property_type;
+type virtual_ab_prop, property_type;
 type vold_prop, property_type, core_property_type;
 type wifi_log_prop, property_type, log_property_type;
 type wifi_prop, property_type;
diff --git a/public/update_engine_common.te b/public/update_engine_common.te
index e53f78e..87e3b43 100644
--- a/public/update_engine_common.te
+++ b/public/update_engine_common.te
@@ -76,3 +76,6 @@
 
 # Allow update_engine_common to write to statsd socket.
 unix_socket_send(update_engine_common, statsdw, statsd)
+
+# Allow to read Virtual A/B feature flags.
+get_prop(update_engine_common, virtual_ab_prop)