Merge "Don't wipe PST partition if OEM unlock is enabled" into lmp-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
ff150032e3
@@ -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);
|
||||||
|
Reference in New Issue
Block a user