Fixes dataPartition size problem
Fixes the problem when disk.systemPartition.size
avd setting gets overrided by default 66 MBytes
hardcoded in qEmu.
Change-Id: Ideb7ca172cb72076c83037f823b86ede2442d6f9
diff --git a/android/main.c b/android/main.c
index 77d3c69..29fc079 100644
--- a/android/main.c
+++ b/android/main.c
@@ -649,7 +649,10 @@
hw->disk_dataPartition_initPath = NULL;
}
- uint64_t defaultBytes = defaultPartitionSize;
+ uint64_t defaultBytes =
+ hw->disk_dataPartition_size == 0 ?
+ defaultPartitionSize :
+ convertMBToBytes(hw->disk_dataPartition_size);
uint64_t dataBytes;
const char* dataPath = hw->disk_dataPartition_initPath;