SetupWizard: Add hook to finish setup for CTS automation
Change-Id: Ifd7edda671fd8011a9b9ed894333c292cd0c3331
This commit is contained in:
@@ -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");
|
||||
|
Reference in New Issue
Block a user