summaryrefslogtreecommitdiffstats
path: root/data.cpp
diff options
context:
space:
mode:
authorEthan Yonker <dees_troy@teamw.in>2014-04-04 17:59:28 +0200
committerEthan Yonker <dees_troy@teamw.in>2014-04-04 17:59:52 +0200
commit83e82578af038e85cf75cf6675dc76120ec84860 (patch)
tree4fa14b6da998fa07e1ac10978bd4b717bdcb2f54 /data.cpp
parentStop printing Unable to mount to console if storage is removable. We will still print to (diff)
downloadandroid_bootable_recovery-83e82578af038e85cf75cf6675dc76120ec84860.tar
android_bootable_recovery-83e82578af038e85cf75cf6675dc76120ec84860.tar.gz
android_bootable_recovery-83e82578af038e85cf75cf6675dc76120ec84860.tar.bz2
android_bootable_recovery-83e82578af038e85cf75cf6675dc76120ec84860.tar.lz
android_bootable_recovery-83e82578af038e85cf75cf6675dc76120ec84860.tar.xz
android_bootable_recovery-83e82578af038e85cf75cf6675dc76120ec84860.tar.zst
android_bootable_recovery-83e82578af038e85cf75cf6675dc76120ec84860.zip
Diffstat (limited to 'data.cpp')
-rw-r--r--data.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/data.cpp b/data.cpp
index 230ac73e6..738bc0f66 100644
--- a/data.cpp
+++ b/data.cpp
@@ -294,6 +294,7 @@ int DataManager::Flush()
int DataManager::SaveValues()
{
+#ifndef TW_OEM_BUILD
if (mBackingFile.empty())
return -1;
@@ -322,6 +323,7 @@ int DataManager::SaveValues()
}
}
fclose(out);
+#endif // ifdef TW_OEM_BUILD
return 0;
}
@@ -1078,6 +1080,7 @@ void DataManager::Output_Version(void)
void DataManager::ReadSettingsFile(void)
{
+#ifndef TW_OEM_BUILD
// Load up the values for TWRP - Sleep to let the card be ready
char mkdir_path[255], settings_file[255];
int is_enc, has_dual, use_ext, has_data_media, has_ext;
@@ -1127,6 +1130,7 @@ void DataManager::ReadSettingsFile(void)
GetValue(TW_EXTERNAL_PATH, ext_path);
PartitionManager.Mount_By_Path(ext_path, 0);
}
+#endif // ifdef TW_OEM_BUILD
update_tz_environment_variables();
#ifdef TW_MAX_BRIGHTNESS
if (strcmp(EXPAND(TW_BRIGHTNESS_PATH), "/nobrightness") != 0) {