summaryrefslogtreecommitdiffstats
path: root/data.cpp
diff options
context:
space:
mode:
authorEthan Yonker <dees_troy@teamw.in>2016-12-16 14:47:58 +0100
committerDees Troy <dees_troy@teamw.in>2016-12-16 17:02:16 +0100
commitb4bff5e9d1f514063aaef9ffad870fe13ed70bfb (patch)
tree60db8fe05e9a6fc889a11085f1216e0359af51b8 /data.cpp
parentTWRP Language Update (diff)
downloadandroid_bootable_recovery-b4bff5e9d1f514063aaef9ffad870fe13ed70bfb.tar
android_bootable_recovery-b4bff5e9d1f514063aaef9ffad870fe13ed70bfb.tar.gz
android_bootable_recovery-b4bff5e9d1f514063aaef9ffad870fe13ed70bfb.tar.bz2
android_bootable_recovery-b4bff5e9d1f514063aaef9ffad870fe13ed70bfb.tar.lz
android_bootable_recovery-b4bff5e9d1f514063aaef9ffad870fe13ed70bfb.tar.xz
android_bootable_recovery-b4bff5e9d1f514063aaef9ffad870fe13ed70bfb.tar.zst
android_bootable_recovery-b4bff5e9d1f514063aaef9ffad870fe13ed70bfb.zip
Diffstat (limited to '')
-rw-r--r--data.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/data.cpp b/data.cpp
index 62709a59c..eda23399a 100644
--- a/data.cpp
+++ b/data.cpp
@@ -827,6 +827,16 @@ void DataManager::SetDefaultValues()
mConst.SetValue("tw_has_boot_slots", "0");
#endif
+#ifdef TW_OEM_BUILD
+ LOGINFO("TW_OEM_BUILD := true\n");
+ mConst.SetValue("tw_oem_build", "1");
+#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
+#endif
+
pthread_mutex_unlock(&m_valuesLock);
}