summaryrefslogtreecommitdiffstats
path: root/data.cpp
diff options
context:
space:
mode:
authorEthan Yonker <dees_troy@teamw.in>2014-04-04 20:33:30 +0200
committerEthan Yonker <dees_troy@teamw.in>2014-04-04 20:33:30 +0200
commit7af51ce521a43450f29fd8c2cb73f635cf78dea9 (patch)
treefcc126e1e2f84218db237272374a2aca7b131b36 /data.cpp
parentAdd option to build TWRP with toolbox instead of busybox (diff)
downloadandroid_bootable_recovery-7af51ce521a43450f29fd8c2cb73f635cf78dea9.tar
android_bootable_recovery-7af51ce521a43450f29fd8c2cb73f635cf78dea9.tar.gz
android_bootable_recovery-7af51ce521a43450f29fd8c2cb73f635cf78dea9.tar.bz2
android_bootable_recovery-7af51ce521a43450f29fd8c2cb73f635cf78dea9.tar.lz
android_bootable_recovery-7af51ce521a43450f29fd8c2cb73f635cf78dea9.tar.xz
android_bootable_recovery-7af51ce521a43450f29fd8c2cb73f635cf78dea9.tar.zst
android_bootable_recovery-7af51ce521a43450f29fd8c2cb73f635cf78dea9.zip
Diffstat (limited to '')
-rw-r--r--data.cpp22
1 files changed, 1 insertions, 21 deletions
diff --git a/data.cpp b/data.cpp
index 738bc0f66..c9628a411 100644
--- a/data.cpp
+++ b/data.cpp
@@ -1109,28 +1109,8 @@ void DataManager::ReadSettingsFile(void)
LOGINFO("Attempt to load settings from settings file...\n");
LoadValues(settings_file);
Output_Version();
- GetValue(TW_HAS_DUAL_STORAGE, has_dual);
- GetValue(TW_USE_EXTERNAL_STORAGE, use_ext);
- GetValue(TW_HAS_EXTERNAL, has_ext);
- if (has_dual != 0 && use_ext == 1) {
- // Attempt to switch to using external storage
- if (!PartitionManager.Mount_Current_Storage(false)) {
- LOGERR("Failed to mount external storage, using internal storage.\n");
- // Remount failed, default back to internal storage
- SetValue(TW_USE_EXTERNAL_STORAGE, 0);
- PartitionManager.Mount_Current_Storage(true);
- }
- } else {
- PartitionManager.Mount_Current_Storage(true);
- }
-
- if (has_ext) {
- string ext_path;
-
- GetValue(TW_EXTERNAL_PATH, ext_path);
- PartitionManager.Mount_By_Path(ext_path, 0);
- }
#endif // ifdef TW_OEM_BUILD
+ PartitionManager.Mount_All_Storage();
update_tz_environment_variables();
#ifdef TW_MAX_BRIGHTNESS
if (strcmp(EXPAND(TW_BRIGHTNESS_PATH), "/nobrightness") != 0) {