Fix storage selection with adopted storage
Change-Id: Ifcba4e668579c3684df9e47e1c3faf5f4d1f3e83
diff --git a/data.cpp b/data.cpp
index 48de223..fbdf6d2 100644
--- a/data.cpp
+++ b/data.cpp
@@ -593,7 +593,7 @@
SetValue("tw_storage_free_size", free_space);
string zip_path, zip_root, storage_path;
GetValue(TW_ZIP_LOCATION_VAR, zip_path);
- if (partition->Has_Data_Media)
+ if (partition->Has_Data_Media && !partition->Symlink_Mount_Point.empty())
storage_path = partition->Symlink_Mount_Point;
else
storage_path = partition->Storage_Path;