From 483e9f45b71458b84ccbbaf658449b58f029a63b Mon Sep 17 00:00:00 2001 From: Ethan Yonker Date: Mon, 11 Jan 2016 22:21:18 -0600 Subject: Improve sdcard partitioning process -Improve code for partitioning sdcards -Allow user to select a device for partitioning (must be removable) -Use sgdisk to partition sdcards -Set default sizes for ext and swap to 0 -Change increments for ext to 256MB and swap to 64MB Note: sgdisk is included in 6.0. I have included a static prebuilt sgdisk for trees that do not have sgdisk, however the prebuilt sgdisk is a decent bit larger than the old parted binary. The old parted binary is quite old at this point and we only have it for armv7a. sgdisk should be maintained by AOSP and can be built from source so it should work across architectures. Change-Id: Ib80882d9b5776e5e9358b11340fba392e6f1ae09 --- data.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'data.cpp') diff --git a/data.cpp b/data.cpp index 5cca3a102..c945f2af0 100644 --- a/data.cpp +++ b/data.cpp @@ -794,8 +794,8 @@ void DataManager::SetDefaultValues() mValues.insert(make_pair(TW_RM_RF_VAR, make_pair("0", 1))); mValues.insert(make_pair(TW_SKIP_MD5_CHECK_VAR, make_pair("0", 1))); mValues.insert(make_pair(TW_SKIP_MD5_GENERATE_VAR, make_pair("0", 1))); - mValues.insert(make_pair(TW_SDEXT_SIZE, make_pair("512", 1))); - mValues.insert(make_pair(TW_SWAP_SIZE, make_pair("32", 1))); + mValues.insert(make_pair(TW_SDEXT_SIZE, make_pair("0", 1))); + mValues.insert(make_pair(TW_SWAP_SIZE, make_pair("0", 1))); mValues.insert(make_pair(TW_SDPART_FILE_SYSTEM, make_pair("ext3", 1))); mValues.insert(make_pair(TW_TIME_ZONE_GUISEL, make_pair("CST6;CDT,M3.2.0,M11.1.0", 1))); mValues.insert(make_pair(TW_TIME_ZONE_GUIOFFSET, make_pair("0", 1))); -- cgit v1.2.3