aboutsummaryrefslogtreecommitdiffstats
path: root/ui.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'ui.cpp')
-rw-r--r--ui.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/ui.cpp b/ui.cpp
index 09b13779..126961c4 100644
--- a/ui.cpp
+++ b/ui.cpp
@@ -88,6 +88,10 @@ RecoveryUI::RecoveryUI()
char propval[PROPERTY_VALUE_MAX];
property_get("ro.build.version.release", propval, "(unknown)");
android_version_ = std::string("Android ") + propval;
+ property_get("ro.boot.slot_suffix", propval, "");
+ if (propval[0] == '_') {
+ boot_slot_ = std::string("Slot ") + &propval[1];
+ }
property_get("ro.lineage.version", propval, "(unknown)");
lineage_version_ = std::string("LineageOS ") + propval;