Add boot slot support

Change-Id: I7eaf80e327985f53791f90fbdebad022a9650d31
This commit is contained in:
Ethan Yonker
2016-12-13 14:04:48 -06:00
parent 941a899695
commit 1b190166eb
10 changed files with 212 additions and 22 deletions
+7
View File
@@ -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);
}