summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorcretin45 <cretin45@gmail.com>2015-06-17 13:56:09 -0700
committercretin45 <cretin45@gmail.com>2015-06-17 13:56:09 -0700
commitc5e926d67f04fa4f8cf769ca37065f2c7cf6787c (patch)
treececa4fe9e1826cff15f06fb357bf4cc553521179 /tests
parent1fc47a0a79ac6bca2b0fad6e8feaffb5a09f3e50 (diff)
downloadpackages_apps_SetupWizard-c5e926d67f04fa4f8cf769ca37065f2c7cf6787c.zip
packages_apps_SetupWizard-c5e926d67f04fa4f8cf769ca37065f2c7cf6787c.tar.gz
packages_apps_SetupWizard-c5e926d67f04fa4f8cf769ca37065f2c7cf6787c.tar.bz2
SetupWizard: Add hook to finish setup for CTS automation
Change-Id: Ifd7edda671fd8011a9b9ed894333c292cd0c3331
Diffstat (limited to 'tests')
-rw-r--r--tests/src/com/cyanogenmod/account/tests/ManualTestActivity.java4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/src/com/cyanogenmod/account/tests/ManualTestActivity.java b/tests/src/com/cyanogenmod/account/tests/ManualTestActivity.java
index dd293a9..3b4f08b 100644
--- a/tests/src/com/cyanogenmod/account/tests/ManualTestActivity.java
+++ b/tests/src/com/cyanogenmod/account/tests/ManualTestActivity.java
@@ -66,6 +66,10 @@ public class ManualTestActivity extends Activity {
"com.cyanogenmod.setupwizard.ui.SetupWizardActivity");
pm.setComponentEnabledSetting(componentName, PackageManager.COMPONENT_ENABLED_STATE_ENABLED,
PackageManager.DONT_KILL_APP);
+ componentName = new ComponentName("com.cyanogenmod.setupwizard",
+ "com.cyanogenmod.setupwizard.setup.FinishSetupReceiver");
+ pm.setComponentEnabledSetting(componentName, PackageManager.COMPONENT_ENABLED_STATE_ENABLED,
+ PackageManager.DONT_KILL_APP);
pm.clearApplicationUserData("com.cyanogenmod.setupwizard", null);
ActivityManager am = (ActivityManager) getSystemService(Activity.ACTIVITY_SERVICE);
am.killBackgroundProcesses("com.cyanogenmod.setupwizard");