Make legacy props an option disabled by default

Change-Id: Id0bb17ebd11e120b4676c41d6553e6a830ac7ee9
This commit is contained in:
Ethan Yonker
2017-09-08 12:17:03 -05:00
parent 8373cfe28c
commit 75aa615767
6 changed files with 41 additions and 14 deletions

View File

@@ -833,15 +833,20 @@ void DataManager::SetDefaultValues()
#else
mConst.SetValue("tw_has_boot_slots", "0");
#endif
#ifdef TW_NO_LEGACY_PROPS
LOGINFO("TW_NO_LEGACY_PROPS := true\n");
mConst.SetValue("tw_enable_legacy_props", "0");
#endif
#ifdef TW_OEM_BUILD
LOGINFO("TW_OEM_BUILD := true\n");
mConst.SetValue("tw_oem_build", "1");
mConst.SetValue("tw_enable_legacy_props", "0");
#else
mConst.SetValue("tw_oem_build", "0");
mPersist.SetValue("tw_app_prompt", "1");
mPersist.SetValue("tw_app_install_system", "1");
mData.SetValue("tw_app_install_status", "0"); // 0 = no status, 1 = not installed, 2 = already installed
mPersist.SetValue("tw_enable_legacy_props", "0");
#endif
pthread_mutex_unlock(&m_valuesLock);