summaryrefslogtreecommitdiffstats
path: root/init/bootchart.cpp
diff options
context:
space:
mode:
authorTom Cherry <tomcherry@google.com>2017-03-28 16:40:41 -0700
committerKeun-young Park <keunyoung@google.com>2017-03-29 10:07:54 -0700
commitccf23537eeacfa47e5f18dd3b75089886d177c1b (patch)
treecadcde5aa295377ca4613fde651a20e2e8bb7a26 /init/bootchart.cpp
parentec16825cb8130420dbdd0ca7086f5f1c7ad469a8 (diff)
downloadsystem_core-ccf23537eeacfa47e5f18dd3b75089886d177c1b.tar.gz
system_core-ccf23537eeacfa47e5f18dd3b75089886d177c1b.tar.bz2
system_core-ccf23537eeacfa47e5f18dd3b75089886d177c1b.zip
init: replace property_get with its android::base equivalent
Slowly try to decouple property_service.cpp from the rest of init. Test: Boot bullhead Change-Id: I267ae0b057bca0bf657b97cb8bfbb18199282729
Diffstat (limited to 'init/bootchart.cpp')
-rw-r--r--init/bootchart.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/init/bootchart.cpp b/init/bootchart.cpp
index 4a9c32e2c..beabea144 100644
--- a/init/bootchart.cpp
+++ b/init/bootchart.cpp
@@ -16,8 +16,6 @@
#include "bootchart.h"
-#include "property_service.h"
-
#include <dirent.h>
#include <errno.h>
#include <fcntl.h>
@@ -39,6 +37,7 @@
#include <android-base/file.h>
#include <android-base/logging.h>
+#include <android-base/properties.h>
#include <android-base/stringprintf.h>
using android::base::StringPrintf;
@@ -72,7 +71,7 @@ static void log_header() {
utsname uts;
if (uname(&uts) == -1) return;
- std::string fingerprint = property_get("ro.build.fingerprint");
+ std::string fingerprint = android::base::GetProperty("ro.build.fingerprint", "");
if (fingerprint.empty()) return;
std::string kernel_cmdline;