use ro.persistent_properties.ready for persistent props access
- for security reason, only notify ready state instead of
passing time info to hidl client
bug: 35178781
bug: 34274385
Test: reboot
Change-Id: Ice07bf2909d6de0d44d864c80176c685f70fbf88
diff --git a/transport/LegacySupport.cpp b/transport/LegacySupport.cpp
index 95796bf..ae02928 100644
--- a/transport/LegacySupport.cpp
+++ b/transport/LegacySupport.cpp
@@ -33,15 +33,13 @@
namespace details {
using android::base::GetBoolProperty;
-using android::base::GetUintProperty;
using android::base::WaitForPropertyCreation;
-static const char* kPersistPropReadyProperty = "ro.boottime.persistent_properties";
+static const char* kPersistPropReadyProperty = "ro.persistent_properties.ready";
static const char* kBinderizationProperty = "persist.hal.binderization";
bool blockingHalBinderizationEnabled() {
- uint64_t t = GetUintProperty<uint64_t>(kPersistPropReadyProperty, 0, UINT64_MAX);
- if (t == 0) { // not set yet
+ if (!GetBoolProperty(kPersistPropReadyProperty, false)) { // not set yet
int64_t startTime = elapsedRealtime();
WaitForPropertyCreation(kPersistPropReadyProperty, std::chrono::milliseconds::max());
ALOGI("Waiting for %s took %" PRId64 " ms", kPersistPropReadyProperty,