summaryrefslogtreecommitdiffstats
path: root/wear_ui.cpp
diff options
context:
space:
mode:
authorElliott Hughes <enh@google.com>2016-09-24 00:30:55 +0200
committerElliott Hughes <enh@google.com>2016-09-24 03:16:35 +0200
commit91e3aee9bdc1a503affdd925dd4da352a198abca (patch)
tree2fee5fc861058ac011970af564aea79ff8fa97de /wear_ui.cpp
parentRevert "DO NOT MERGE Fail gracefully when we fail to fork the update binary am: de1b53d067" (diff)
downloadandroid_bootable_recovery-91e3aee9bdc1a503affdd925dd4da352a198abca.tar
android_bootable_recovery-91e3aee9bdc1a503affdd925dd4da352a198abca.tar.gz
android_bootable_recovery-91e3aee9bdc1a503affdd925dd4da352a198abca.tar.bz2
android_bootable_recovery-91e3aee9bdc1a503affdd925dd4da352a198abca.tar.lz
android_bootable_recovery-91e3aee9bdc1a503affdd925dd4da352a198abca.tar.xz
android_bootable_recovery-91e3aee9bdc1a503affdd925dd4da352a198abca.tar.zst
android_bootable_recovery-91e3aee9bdc1a503affdd925dd4da352a198abca.zip
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 3ea1060e4..0918ac457 100644
--- a/wear_ui.cpp
+++ b/wear_ui.cpp
@@ -30,7 +30,7 @@
#include "common.h"
#include "device.h"
#include "wear_ui.h"
-#include "cutils/properties.h"
+#include "android-base/properties.h"
#include "android-base/strings.h"
#include "android-base/stringprintf.h"
@@ -119,8 +119,8 @@ void WearRecoveryUI::draw_screen_locked()
int y = outer_height;
int x = outer_width;
if (show_menu) {
- char recovery_fingerprint[PROPERTY_VALUE_MAX];
- property_get("ro.bootimage.build.fingerprint", recovery_fingerprint, "");
+ std::string recovery_fingerprint =
+ android::base::GetProperty("ro.bootimage.build.fingerprint", "");
SetColor(HEADER);
DrawTextLine(x + 4, &y, "Android Recovery", true);
for (auto& chunk: android::base::Split(recovery_fingerprint, ":")) {