commit | 24403ff054f5c3086d297cafb8e928f3ac7c2f5b | [log] [tgz] |
---|---|---|
author | Jeff Sharkey <jsharkey@android.com> | Tue Apr 04 15:09:58 2017 -0600 |
committer | Jeff Sharkey <jsharkey@android.com> | Tue Apr 04 15:10:06 2017 -0600 |
tree | 6080ace511b5791cdacfa353ec880afee5c430f4 | |
parent | dd7414a6442a40cfd9ecbae567ae217dd92f3f2e [diff] |
Just round up the data partition size. Instead of trying to be clever by poking at underlying flash part sizes, rely on the fact that device storage printed on retail packaging is a power-of-two value. For a typical device with a 23GiB data partition, this will return a value of "32GB" which matches the retail packaging. Test: builds, boots Bug: 34827187 Change-Id: Ib4cf7f637dffc9238252e1fedcd86dc8b5cf656d