From 63fd05d579aab7142adbd8fa87a24f2971cd19ed Mon Sep 17 00:00:00 2001 From: Tianjie Date: Wed, 17 Feb 2021 15:01:35 -0800 Subject: [PATCH] Give ota.other.vbmeta_digest the proper context Give it the u:object_r:ota_prop:s0 since the prop is only set after an update. Bug: 177625570 Test: boot the device, check the prop is written by update_engine Change-Id: I4cf21d2a6af2a2083d4a5eba7751011cc6d0c522 --- private/property_contexts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/private/property_contexts b/private/property_contexts index 7d99a2415..78efdf30b 100644 --- a/private/property_contexts +++ b/private/property_contexts @@ -264,6 +264,9 @@ ro.virtual_ab.compression.enabled u:object_r:virtual_ab_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. ota.warm_reset u:object_r:ota_prop:s0 +# The vbmeta digest for the inactive slot. It can be set after installing +# ota updates to the b partition of a/b devices. +ota.other.vbmeta_digest u:object_r:ota_prop:s0 exact string # Module properties com.android.sdkext. u:object_r:module_sdkextensions_prop:s0