diff options
Diffstat (limited to '')
-rw-r--r-- | partitionmanager.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/partitionmanager.cpp b/partitionmanager.cpp index 0486c7a66..54ce6912d 100644 --- a/partitionmanager.cpp +++ b/partitionmanager.cpp @@ -91,9 +91,11 @@ TWPartitionManager::TWPartitionManager(void) { stop_backup.set_value(0); #ifdef AB_OTA_UPDATER char slot_suffix[PROPERTY_VALUE_MAX]; - property_get("ro.boot.slot_suffix", slot_suffix, "_a"); + property_get("ro.boot.slot_suffix", slot_suffix, "error"); + if (strcmp(slot_suffix, "error") == 0) + property_get("ro.boot.slot", slot_suffix, "error"); Active_Slot_Display = ""; - if (strcmp(slot_suffix, "_a") == 0) + if (strcmp(slot_suffix, "_a") == 0 || strcmp(slot_suffix, "a") == 0) Set_Active_Slot("A"); else Set_Active_Slot("B"); |