SetupWizard: Only go through OOBE if owner
Change-Id: I3886119d0d6fd69f18ea23d4b6435da75280dbf8
This commit is contained in:
@@ -61,9 +61,10 @@ public class SetupWizardApp extends Application {
|
||||
try {
|
||||
// Since this is a new component, we need to disable here if the user
|
||||
// has already been through setup on a previous version.
|
||||
if (SetupWizardUtils.isGuestUser(this)
|
||||
if (!SetupWizardUtils.isOwner()
|
||||
|| Settings.Secure.getInt(getContentResolver(),
|
||||
Settings.Secure.USER_SETUP_COMPLETE) == 1) {
|
||||
SetupWizardUtils.disableGMSSetupWizard(this);
|
||||
SetupWizardUtils.disableSetupWizard(this);
|
||||
} else {
|
||||
disableCaptivePortalDetection();
|
||||
|
||||
Reference in New Issue
Block a user