Merge "Prevents users from being added if device is not provisioned" into nyc-dev

This commit is contained in:
Udam Saini
2016-03-31 20:13:39 +00:00
committed by Android (Google) Code Review
6 changed files with 15 additions and 13 deletions

View File

@@ -68,8 +68,7 @@ public class MasterClearConfirm extends OptionsMenuFragment {
getActivity().getSystemService(Context.PERSISTENT_DATA_BLOCK_SERVICE);
if (pdbManager != null && !pdbManager.getOemUnlockEnabled() &&
Settings.Global.getInt(getActivity().getContentResolver(),
Settings.Global.DEVICE_PROVISIONED, 0) != 0) {
Utils.isDeviceProvisioned(getActivity())) {
// if OEM unlock is enabled, this will be wiped during FR process. If disabled, it
// will be wiped here, unless the device is still being provisioned, in which case
// the persistent data block will be preserved.