If the device has FRP, prompt the user to set up a lockscreen

FRP is kind of pointless if the device is freely accessible. Suggest
setting up a secure lockscreen during setup.

Ref CYNGNOS-3252

Change-Id: Ia807142ab08f388d533b5ee45d1fcbe81071f6d1
This commit is contained in:
Ricardo Cerqueira
2016-08-10 12:33:05 +01:00
committed by Gerrit Code Review
parent 3dce293b18
commit 8331602e94
47 changed files with 398 additions and 0 deletions

View File

@@ -75,6 +75,8 @@ public class CMSetupWizardData extends AbstractSetupData {
}
if (SetupWizardUtils.hasFingerprint(mContext) && SetupWizardUtils.isOwner()) {
pages.add(new FingerprintSetupPage(mContext, this));
} else if (SetupWizardUtils.frpEnabled(mContext)) {
pages.add(new ScreenLockSetupPage(mContext, this));
}
pages.add(new CyanogenSettingsPage(mContext, this));
pages.add(new OtherSettingsPage(mContext, this).setHidden(!hasGMS));