From 5516acc6ab1ba27ea41e190fcdf06caf4913c4fd Mon Sep 17 00:00:00 2001 From: Steven Moreland <smoreland@google.com> Date: Fri, 1 Jun 2018 16:09:11 -0700 Subject: [PATCH] Add context for ro.boot.product.hardware.sku. This was defined, but it had no users in the Android tree. Because of this, ODM manifests required extra sepolicy to be applied in vendor. Before this, there was no policy split, so that was okay, but now it is impossible. Bug: 91735839 Test: add an odm manifest for SE conditional on a system property (ro.boot.product.hardware.sku) and make sure it is read into the manifest (using the vintf tool) and also that a client can get the $ lshal | grep secure Y android.hardware.secure_element@1.0::ISecureElement/SIM1 0/2 881 2262 567 Change-Id: I94a2928943be6a17416b8bbd78106809c0c21198 --- prebuilts/api/28.0/public/property_contexts | 1 + public/property_contexts | 1 + 2 files changed, 2 insertions(+) diff --git a/prebuilts/api/28.0/public/property_contexts b/prebuilts/api/28.0/public/property_contexts index a61cc2295..c7fdd2729 100644 --- a/prebuilts/api/28.0/public/property_contexts +++ b/prebuilts/api/28.0/public/property_contexts @@ -225,6 +225,7 @@ rcs.publish.status u:object_r:exported_radio_prop:s0 exact string ro.board.platform u:object_r:exported_default_prop:s0 exact string ro.boot.fake_battery u:object_r:exported_default_prop:s0 exact int ro.boot.hardware.revision u:object_r:exported_default_prop:s0 exact string +ro.boot.product.hardware.sku u:object_r:exported_default_prop:s0 exact string ro.boot.slot_suffix u:object_r:exported_default_prop:s0 exact string ro.carrier u:object_r:exported_default_prop:s0 exact string ro.config.low_ram u:object_r:exported_config_prop:s0 exact bool diff --git a/public/property_contexts b/public/property_contexts index a61cc2295..c7fdd2729 100644 --- a/public/property_contexts +++ b/public/property_contexts @@ -225,6 +225,7 @@ rcs.publish.status u:object_r:exported_radio_prop:s0 exact string ro.board.platform u:object_r:exported_default_prop:s0 exact string ro.boot.fake_battery u:object_r:exported_default_prop:s0 exact int ro.boot.hardware.revision u:object_r:exported_default_prop:s0 exact string +ro.boot.product.hardware.sku u:object_r:exported_default_prop:s0 exact string ro.boot.slot_suffix u:object_r:exported_default_prop:s0 exact string ro.carrier u:object_r:exported_default_prop:s0 exact string ro.config.low_ram u:object_r:exported_config_prop:s0 exact bool -- GitLab