Don't wipe PST partition if OEM unlock is enabled

This will be wiped by the recovery system and the OEM
unlock bit will be retained.

Bug: 16631974
Change-Id: I65522dd93c8465ff7f7ecbcef404bff6e9c864d6
This commit is contained in:
Andres Morales
2014-08-06 17:01:19 -07:00
parent f34c350194
commit ae58323a6b

View File

@@ -65,8 +65,11 @@ public class MasterClearConfirm extends Fragment {
getActivity().getSystemService(Context.PERSISTENT_DATA_BLOCK_SERVICE); getActivity().getSystemService(Context.PERSISTENT_DATA_BLOCK_SERVICE);
if (pdbManager != null) { if (pdbManager != null) {
// if OEM unlock is enabled, this will be wiped during FR process.
if (!pdbManager.getOemUnlockEnabled()) {
pdbManager.wipe(); pdbManager.wipe();
} }
}
if (mEraseSdCard) { if (mEraseSdCard) {
Intent intent = new Intent(ExternalStorageFormatter.FORMAT_AND_FACTORY_RESET); Intent intent = new Intent(ExternalStorageFormatter.FORMAT_AND_FACTORY_RESET);