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

@@ -43,6 +43,7 @@ public class SetupWizardApp extends Application {
public static final String ACTION_VIEW_LEGAL = "cyanogenmod.intent.action.LEGALESE";
public static final String ACTION_SETUP_FINGERPRINT = "android.settings.FINGERPRINT_SETUP";
public static final String ACTION_SETUP_LOCKSCREEN = "com.android.settings.SETUP_LOCK_SCREEN";
public static final String EXTRA_FIRST_RUN = "firstRun";
public static final String EXTRA_ALLOW_SKIP = "allowSkip";
@@ -76,6 +77,7 @@ public class SetupWizardApp extends Application {
public static final int REQUEST_CODE_UNLOCK = 6;
public static final int REQUEST_CODE_SETUP_FINGERPRINT = 7;
public static final int REQUEST_CODE_VENDOR_SETUP_GMS = 8;
public static final int REQUEST_CODE_SETUP_LOCKSCREEN = 9;
public static final int RADIO_READY_TIMEOUT = 10 * 1000;