aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorElliott Hughes2016-09-23 17:30:55 -0500
committerElliott Hughes2016-09-26 11:51:37 -0500
commitcb22040c6303144a42a90f424f29a267e43bef74 (patch)
tree034b34abded47d933f5e4f84b8f92936fb74bd47 /wear_ui.cpp
parent3cf815a6a93bd9e27d250d181ef877e5d3a42018 (diff)
downloadplatform-bootable-recovery-cb22040c6303144a42a90f424f29a267e43bef74.tar.gz
platform-bootable-recovery-cb22040c6303144a42a90f424f29a267e43bef74.tar.xz
platform-bootable-recovery-cb22040c6303144a42a90f424f29a267e43bef74.zip
Switch to <android-base/properties.h>.
Bug: http://b/23102347 Test: boot into recovery. Change-Id: Ib2ca560f1312961c21fbaa294bb068de19cb883e Merged-In: Ib2ca560f1312961c21fbaa294bb068de19cb883e
Diffstat (limited to 'wear_ui.cpp')
-rw-r--r--wear_ui.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/wear_ui.cpp b/wear_ui.cpp
index e078134c..17889076 100644
--- a/wear_ui.cpp
+++ b/wear_ui.cpp
@@ -30,7 +30,7 @@
30#include "common.h" 30#include "common.h"
31#include "device.h" 31#include "device.h"
32#include "wear_ui.h" 32#include "wear_ui.h"
33#include "cutils/properties.h" 33#include "android-base/properties.h"
34#include "android-base/strings.h" 34#include "android-base/strings.h"
35#include "android-base/stringprintf.h" 35#include "android-base/stringprintf.h"
36 36
@@ -160,8 +160,8 @@ void WearRecoveryUI::draw_screen_locked()
160 int y = outer_height; 160 int y = outer_height;
161 int x = outer_width; 161 int x = outer_width;
162 if (show_menu) { 162 if (show_menu) {
163 char recovery_fingerprint[PROPERTY_VALUE_MAX]; 163 std::string recovery_fingerprint =
164 property_get("ro.bootimage.build.fingerprint", recovery_fingerprint, ""); 164 android::base::GetProperty("ro.bootimage.build.fingerprint", "");
165 SetColor(HEADER); 165 SetColor(HEADER);
166 DrawTextLine(x + 4, &y, "Android Recovery", true); 166 DrawTextLine(x + 4, &y, "Android Recovery", true);
167 for (auto& chunk: android::base::Split(recovery_fingerprint, ":")) { 167 for (auto& chunk: android::base::Split(recovery_fingerprint, ":")) {