summaryrefslogtreecommitdiffstats
path: root/screen_ui.cpp
diff options
context:
space:
mode:
authorElliott Hughes <enh@google.com>2016-09-26 21:52:42 +0200
committerElliott Hughes <enh@google.com>2016-09-26 21:53:52 +0200
commit130f6c86f590b61bc3aef7883500eb4c0ba593c3 (patch)
tree2577e80d8cac345ac5aec61d6af6d0e2d7c0c862 /screen_ui.cpp
parentFail gracefully when we fail to fork the update binary (diff)
parentMerge "Switch to <android-base/properties.h>." am: cc02f9652f (diff)
downloadandroid_bootable_recovery-130f6c86f590b61bc3aef7883500eb4c0ba593c3.tar
android_bootable_recovery-130f6c86f590b61bc3aef7883500eb4c0ba593c3.tar.gz
android_bootable_recovery-130f6c86f590b61bc3aef7883500eb4c0ba593c3.tar.bz2
android_bootable_recovery-130f6c86f590b61bc3aef7883500eb4c0ba593c3.tar.lz
android_bootable_recovery-130f6c86f590b61bc3aef7883500eb4c0ba593c3.tar.xz
android_bootable_recovery-130f6c86f590b61bc3aef7883500eb4c0ba593c3.tar.zst
android_bootable_recovery-130f6c86f590b61bc3aef7883500eb4c0ba593c3.zip
Diffstat (limited to 'screen_ui.cpp')
-rw-r--r--screen_ui.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/screen_ui.cpp b/screen_ui.cpp
index a33605ac0..a7b03c50d 100644
--- a/screen_ui.cpp
+++ b/screen_ui.cpp
@@ -32,9 +32,9 @@
#include <vector>
#include <android-base/logging.h>
+#include <android-base/properties.h>
#include <android-base/strings.h>
#include <android-base/stringprintf.h>
-#include <cutils/properties.h>
#include "common.h"
#include "device.h"
@@ -293,8 +293,8 @@ void ScreenRecoveryUI::draw_screen_locked() {
int y = 0;
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(INFO);
DrawTextLine(TEXT_INDENT, &y, "Android Recovery", true);
@@ -460,7 +460,7 @@ void ScreenRecoveryUI::Init() {
RecoveryUI::Init();
InitTextParams();
- density_ = static_cast<float>(property_get_int32("ro.sf.lcd_density", 160)) / 160.f;
+ density_ = static_cast<float>(android::base::GetIntProperty("ro.sf.lcd_density", 160)) / 160.f;
// Are we portrait or landscape?
layout_ = (gr_fb_width() > gr_fb_height()) ? LANDSCAPE : PORTRAIT;