From 97c37bef11831dc867ff0c3b9d8cf6804127019f Mon Sep 17 00:00:00 2001 From: cretin45 Date: Tue, 1 Sep 2015 16:19:32 -0700 Subject: SetupWizard: Check for frp in finish receiver CYNGNOS-886 Change-Id: I97af3285d9321f2f153676eaac081e5408300661 --- src/com/cyanogenmod/setupwizard/setup/FinishSetupReceiver.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/com/cyanogenmod/setupwizard/setup') diff --git a/src/com/cyanogenmod/setupwizard/setup/FinishSetupReceiver.java b/src/com/cyanogenmod/setupwizard/setup/FinishSetupReceiver.java index fdd77a2..d3db8ff 100644 --- a/src/com/cyanogenmod/setupwizard/setup/FinishSetupReceiver.java +++ b/src/com/cyanogenmod/setupwizard/setup/FinishSetupReceiver.java @@ -13,7 +13,7 @@ public class FinishSetupReceiver extends BroadcastReceiver { @Override public void onReceive(Context context, Intent intent) { - if (SetupWizardUtils.isDeviceLocked()) { + if (SetupWizardUtils.isDeviceLocked() || SetupWizardUtils.frpEnabled(context)) { return; } Settings.Global.putInt(context.getContentResolver(), Settings.Global.DEVICE_PROVISIONED, 1); -- cgit v1.1