New property to control virtual a/b user-space snapshots

Bug: 193863443
Test: OTA on pixel
Signed-off-by: Akilesh Kailash <akailash@google.com>
Change-Id: I89e5d105071c2529c9ceb661c04588ff88ffdd76
diff --git a/private/property_contexts b/private/property_contexts
index 7b5c5a9..45e91ce 100644
--- a/private/property_contexts
+++ b/private/property_contexts
@@ -294,8 +294,10 @@
 ro.virtual_ab.retrofit  u:object_r:virtual_ab_prop:s0 exact bool
 ro.virtual_ab.compression.enabled  u:object_r:virtual_ab_prop:s0 exact bool
 ro.virtual_ab.compression.xor.enabled   u:object_r:virtual_ab_prop:s0 exact bool
+ro.virtual_ab.userspace.snapshots.enabled u:object_r:virtual_ab_prop:s0 exact bool
 snapuserd.ready         u:object_r:snapuserd_prop:s0 exact bool
 snapuserd.proxy_ready   u:object_r:snapuserd_prop:s0 exact bool
+snapuserd.test.dm.snapshots u:object_r:snapuserd_prop:s0 exact bool
 
 ro.product.ab_ota_partitions u:object_r:ota_prop:s0 exact string
 # Property to set/clear the warm reset flag after an OTA update.
diff --git a/private/snapuserd.te b/private/snapuserd.te
index f24986c..e3b43a1 100644
--- a/private/snapuserd.te
+++ b/private/snapuserd.te
@@ -40,6 +40,7 @@
 
 # snapuserd.* properties
 set_prop(snapuserd, snapuserd_prop)
+get_prop(snapuserd, virtual_ab_prop)
 
 # For inotify watching for /dev/socket/snapuserd_proxy to appear.
 allow snapuserd tmpfs:dir { read watch };