From d4f5a3ae87a7246613188940c1667bf2880da402 Mon Sep 17 00:00:00 2001 From: Vladimir Chtchetkine Date: Thu, 8 Mar 2012 14:20:20 -0800 Subject: Increase default partition size, and fix data partition size calculation. There is a (reasonable) demand from android development comunity to increase default data partition size. It seems that 66MB doesn't match anymore user needs. So, with this CL default data partition size will be increased to 12MB. This CL also fixes a bug where data partition size set by the AVD manager has been wrongly treated as an MB value, while it was a byte value. Change-Id: I27c456a71299aff42bd4ca573d3660292a7d1d44 --- android/main.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'android') diff --git a/android/main.c b/android/main.c index 2723834..d3e7e8f 100644 --- a/android/main.c +++ b/android/main.c @@ -235,7 +235,7 @@ int main(int argc, char **argv) AConfig* skinConfig; char* skinPath; int inAndroidBuild; - uint64_t defaultPartitionSize = convertMBToBytes(66); + uint64_t defaultPartitionSize = convertMBToBytes(128); AndroidOptions opts[1]; /* net.shared_net_ip boot property value. */ @@ -729,7 +729,7 @@ int main(int argc, char **argv) uint64_t defaultBytes = hw->disk_dataPartition_size == 0 ? defaultPartitionSize : - convertMBToBytes(hw->disk_dataPartition_size); + hw->disk_dataPartition_size; uint64_t dataBytes; const char* dataPath = hw->disk_dataPartition_initPath; -- cgit v1.1