From f758411e012389b1d9699e10cae6f1ac98cca419 Mon Sep 17 00:00:00 2001 From: Maciek Molerus Date: Wed, 15 Jun 2011 22:26:35 +0200 Subject: 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 --- android/main.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'android/main.c') 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 @@ int main(int argc, char **argv) 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; -- cgit v1.1