summaryrefslogtreecommitdiffstats
path: root/data.cpp
diff options
context:
space:
mode:
authorEthan Yonker <dees_troy@teamw.in>2016-12-05 22:25:19 +0100
committerEthan Yonker <dees_troy@teamw.in>2016-12-13 21:04:48 +0100
commit1b190166eb1295c6339f6100e4fbb92c81b81ea6 (patch)
tree6493cc3a385c67f079d52873b97963656cf084d2 /data.cpp
parentSupport new AB OTA zips (diff)
downloadandroid_bootable_recovery-1b190166eb1295c6339f6100e4fbb92c81b81ea6.tar
android_bootable_recovery-1b190166eb1295c6339f6100e4fbb92c81b81ea6.tar.gz
android_bootable_recovery-1b190166eb1295c6339f6100e4fbb92c81b81ea6.tar.bz2
android_bootable_recovery-1b190166eb1295c6339f6100e4fbb92c81b81ea6.tar.lz
android_bootable_recovery-1b190166eb1295c6339f6100e4fbb92c81b81ea6.tar.xz
android_bootable_recovery-1b190166eb1295c6339f6100e4fbb92c81b81ea6.tar.zst
android_bootable_recovery-1b190166eb1295c6339f6100e4fbb92c81b81ea6.zip
Diffstat (limited to '')
-rw-r--r--data.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/data.cpp b/data.cpp
index b034bf802..62709a59c 100644
--- a/data.cpp
+++ b/data.cpp
@@ -820,6 +820,13 @@ void DataManager::SetDefaultValues()
mData.SetValue("tw_has_adopted_storage", "0");
+#ifdef AB_OTA_UPDATER
+ LOGINFO("AB_OTA_UPDATER := true\n");
+ mConst.SetValue("tw_has_boot_slots", "1");
+#else
+ mConst.SetValue("tw_has_boot_slots", "0");
+#endif
+
pthread_mutex_unlock(&m_valuesLock);
}