set data/recovery on devices where the TW_INCLUDE_CRYPTO flag has not been set
On some devices where the cryptography is broken, the maintainers do not set the flag and the data/recovery is not being created, so that at each boot the settings are not saved.
This commit also fixes the mounting of the external SDcard caused by the previous patch: https://github.com/TeamWin/android_bootable_recovery/commit/25062d7904430cdb83e4b4eaf6db38715da88e49#commitcomment-133147543
Change-Id: I4b308d17aea18bdda215b1f11393e40f2d4647b9
Signed-off-by: Fernando Oliveira <fernandoaju78@gmail.com>
diff --git a/partition.cpp b/partition.cpp
index 18528f1..cd46420 100755
--- a/partition.cpp
+++ b/partition.cpp
@@ -1275,6 +1275,7 @@
Storage_Path = Mount_Point + "/media/0";
Symlink_Path = Storage_Path;
DataManager::SetValue(TW_INTERNAL_PATH, Mount_Point + "/media/0");
+ DataManager::SetValue("tw_settings_path", TW_STORAGE_PATH);
UnMount(true);
}
DataManager::SetValue("tw_has_internal", 1);