SetupWizard: Check for frp in finish receiver

CYNGNOS-886

Change-Id: I97af3285d9321f2f153676eaac081e5408300661
This commit is contained in:
cretin45
2015-09-01 16:19:32 -07:00
committed by Ed Carrigan
parent 9ce4c4f0d6
commit 97c37bef11
2 changed files with 10 additions and 1 deletions

View File

@@ -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);