SetupWizard: Only go through OOBE if owner

Change-Id: I3886119d0d6fd69f18ea23d4b6435da75280dbf8
This commit is contained in:
cretin45
2015-03-12 13:50:19 -07:00
parent f66c56b62f
commit 0ed67f547c
2 changed files with 7 additions and 9 deletions

View File

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