diff options
author | Elliott Hughes <enh@google.com> | 2016-09-26 21:42:16 +0200 |
---|---|---|
committer | android-build-merger <android-build-merger@google.com> | 2016-09-26 21:42:16 +0200 |
commit | d5c7d6bffe9d03c79c2504f7cbb5091ac377a6c5 (patch) | |
tree | 4f7aa2ba4ccf0fc29fb709346392e0b9aa33442d /wear_ui.cpp | |
parent | Merge "Check corruption when reading uncrypt_status file" am: 3cf815a6a9 (diff) | |
parent | Merge "Switch to <android-base/properties.h>." (diff) | |
download | android_bootable_recovery-d5c7d6bffe9d03c79c2504f7cbb5091ac377a6c5.tar android_bootable_recovery-d5c7d6bffe9d03c79c2504f7cbb5091ac377a6c5.tar.gz android_bootable_recovery-d5c7d6bffe9d03c79c2504f7cbb5091ac377a6c5.tar.bz2 android_bootable_recovery-d5c7d6bffe9d03c79c2504f7cbb5091ac377a6c5.tar.lz android_bootable_recovery-d5c7d6bffe9d03c79c2504f7cbb5091ac377a6c5.tar.xz android_bootable_recovery-d5c7d6bffe9d03c79c2504f7cbb5091ac377a6c5.tar.zst android_bootable_recovery-d5c7d6bffe9d03c79c2504f7cbb5091ac377a6c5.zip |
Diffstat (limited to '')
-rw-r--r-- | wear_ui.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/wear_ui.cpp b/wear_ui.cpp index e078134ce..17889076a 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" @@ -160,8 +160,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, ":")) { |