commit | dadcceea7a8e931eaf970d95a297d8c89a0ebe9d | [log] [tgz] |
---|---|---|
author | Jeff Sharkey <jsharkey@android.com> | Wed Sep 23 14:13:45 2015 -0700 |
committer | Jeff Sharkey <jsharkey@android.com> | Wed Sep 23 14:14:12 2015 -0700 |
tree | 44c124cf54042bc53c20b3217075627f0325da93 | |
parent | 1a20a6487faad2869eaec962e4373402aa7461b3 [diff] |
Clean up any/all stale partition tables. When formatting media as a public volume, we write an MBR, but we might leave a stale GPT floating around. Some devices are configured to aggressively prefer GPT when detected, even if the checksums between primary/secondary don't match. To work around this, nuke both MBR and GPT tables from the media before we lay down our new MBR. Bug: 24112219 Change-Id: Ibf1be466a6877cbab925a24db5e5dbab0613bea7