SetupWizard: Add Cyanogen services page

Change-Id: I39970b1b659a3a7ed3bb5b4350707aa0e53aba24
This commit is contained in:
cretin45
2015-01-19 14:29:43 -08:00
parent 74ca6faf3a
commit 48ca24eb9b
18 changed files with 625 additions and 100 deletions

View File

@@ -9,9 +9,9 @@ LOCAL_JAVA_LIBRARIES := android.test.runner
# Include all test java files.
LOCAL_SRC_FILES := $(call all-java-files-under, src)
LOCAL_PACKAGE_NAME := CMSetupWizardTests
LOCAL_PACKAGE_NAME := CyanogenSetupWizardTests
LOCAL_CERTIFICATE := platform
LOCAL_INSTRUMENTATION_FOR := CMSetupWizard
LOCAL_INSTRUMENTATION_FOR := CyanogenSetupWizard
include $(BUILD_PACKAGE)

View File

@@ -15,7 +15,7 @@
limitations under the License.
-->
<resources>
<string name="app_test">CMSetupWizard Test</string>
<string name="app_test">SetupWizard Test</string>
<string name="enable_setup">Enable Setup Wizard</string>
<string name="enable_google_setup">Enable Google Setup Wizard</string>
</resources>

View File

@@ -51,7 +51,7 @@ public class ManualTestActivity extends Activity {
Intent intent = new Intent("android.intent.action.MAIN");
intent.addCategory("android.intent.category.HOME");
final PackageManager pm = getPackageManager();
ComponentName componentName = new ComponentName("com.cyanogenmod.account", "com.cyanogenmod.account.ui.SetupWizardActivity");
ComponentName componentName = new ComponentName("com.cyanogenmod.setupwizard", "com.cyanogenmod.setupwizard.ui.SetupWizardActivity");
pm.setComponentEnabledSetting(componentName, PackageManager.COMPONENT_ENABLED_STATE_ENABLED, PackageManager.DONT_KILL_APP);
componentName = new ComponentName("com.google.android.setupwizard", "com.google.android.setupwizard.SetupWizardActivity");
pm.setComponentEnabledSetting(componentName, PackageManager.COMPONENT_ENABLED_STATE_ENABLED, PackageManager.DONT_KILL_APP);