SetupWizardTests: Fix setup complete test

Change-Id: I26c1ac062d868e52c94533dae923fa87aa617c13
This commit is contained in:
cretin45 2015-01-26 16:41:54 -08:00
parent 8f363092bb
commit bc5b50f1d5

View File

@ -81,7 +81,7 @@ public class ManualTestActivity extends Activity {
private void setSetupComplete() { private void setSetupComplete() {
Settings.Secure.putInt(getContentResolver(), Settings.Secure.USER_SETUP_COMPLETE, 1); Settings.Secure.putInt(getContentResolver(), Settings.Secure.USER_SETUP_COMPLETE, 1);
Settings.Secure.putInt(getContentResolver(), Settings.Secure.USER_SETUP_COMPLETE, 0); Settings.Global.putInt(getContentResolver(), Settings.Global.DEVICE_PROVISIONED, 0);
Intent intent = new Intent("android.intent.action.MAIN"); Intent intent = new Intent("android.intent.action.MAIN");
intent.addCategory("android.intent.category.HOME"); intent.addCategory("android.intent.category.HOME");
final PackageManager pm = getPackageManager(); final PackageManager pm = getPackageManager();