From f67c346af49163128bea96ebac133ad2cd68b037 Mon Sep 17 00:00:00 2001 From: Keun-young Park <keunyoung@google.com> Date: Tue, 28 Feb 2017 19:21:31 -0800 Subject: [PATCH] make ro.persistent_properties.ready accessible for hidl client - compared to ro.boottime, this one does not pass time info bug: 35178781 bug: 34274385 Test: reboot Change-Id: I6a7bf636a3f201653e2890751d5fa210274c9ede --- private/property_contexts | 2 ++ public/property.te | 1 + public/te_macros | 2 +- 3 files changed, 4 insertions(+), 1 deletion(-) diff --git a/private/property_contexts b/private/property_contexts index 78455050c..c205e594c 100644 --- a/private/property_contexts +++ b/private/property_contexts @@ -84,6 +84,8 @@ ro.crypto. u:object_r:vold_prop:s0 # set at runtime by system_server. ro.build.fingerprint u:object_r:fingerprint_prop:s0 +ro.persistent_properties.ready u:object_r:persistent_properties_ready_prop:s0 + # ctl properties ctl.bootanim u:object_r:ctl_bootanim_prop:s0 ctl.dumpstate u:object_r:ctl_dumpstate_prop:s0 diff --git a/public/property.te b/public/property.te index 5bf0c6235..a3f5a1e43 100644 --- a/public/property.te +++ b/public/property.te @@ -34,6 +34,7 @@ type nfc_prop, property_type, core_property_type; type overlay_prop, property_type; type pan_result_prop, property_type, core_property_type; type persist_debug_prop, property_type, core_property_type; +type persistent_properties_ready_prop, property_type; type powerctl_prop, property_type, core_property_type; type radio_prop, property_type, core_property_type; type restorecon_prop, property_type, core_property_type; diff --git a/public/te_macros b/public/te_macros index 70e489a50..d6bdf61dc 100644 --- a/public/te_macros +++ b/public/te_macros @@ -291,7 +291,7 @@ allow hwservicemanager $1:process getattr; # stability). getService must also check for data to be mounted # if the vintf promises the hal will be registered over hwbinder. get_prop($1, hal_binderization_prop) -get_prop($1, boottime_prop) +get_prop($1, persistent_properties_ready_prop) get_prop($1, vold_prop) # rw access to /dev/hwbinder and /dev/ashmem is presently granted to # all domains in domain.te. -- GitLab