diff options
author | Elliott Hughes <enh@google.com> | 2016-09-26 21:32:48 +0200 |
---|---|---|
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | 2016-09-26 21:32:48 +0200 |
commit | cc02f9652f7994c835c7073d13b30f60ff1134af (patch) | |
tree | 034b34abded47d933f5e4f84b8f92936fb74bd47 /screen_ui.cpp | |
parent | Merge "Check corruption when reading uncrypt_status file" (diff) | |
parent | Switch to <android-base/properties.h>. (diff) | |
download | android_bootable_recovery-cc02f9652f7994c835c7073d13b30f60ff1134af.tar android_bootable_recovery-cc02f9652f7994c835c7073d13b30f60ff1134af.tar.gz android_bootable_recovery-cc02f9652f7994c835c7073d13b30f60ff1134af.tar.bz2 android_bootable_recovery-cc02f9652f7994c835c7073d13b30f60ff1134af.tar.lz android_bootable_recovery-cc02f9652f7994c835c7073d13b30f60ff1134af.tar.xz android_bootable_recovery-cc02f9652f7994c835c7073d13b30f60ff1134af.tar.zst android_bootable_recovery-cc02f9652f7994c835c7073d13b30f60ff1134af.zip |
Diffstat (limited to 'screen_ui.cpp')
-rw-r--r-- | screen_ui.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/screen_ui.cpp b/screen_ui.cpp index 79b5466a8..c61727258 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" @@ -281,8 +281,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); @@ -439,7 +439,7 @@ void ScreenRecoveryUI::SetSystemUpdateText(bool security_update) { void ScreenRecoveryUI::Init() { gr_init(); - 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; is_large_ = gr_fb_height() > PixelsFromDp(800); gr_font_size(&char_width_, &char_height_); |