Remove code to disable setupwraith

Setupwraith from 8.0 no longer needs to be platform signed

This reverts commit e0605c03f4.
This reverts commit 092d0fa892.

Change-Id: Ic9801ee52d931e87b6568a1faa4de39b32c3629d
This commit is contained in:
Aaron Kling
2018-03-05 10:19:01 -06:00
committed by Abhisek Devkota
parent 3e80db1c16
commit e7ec39571e

View File

@@ -76,7 +76,6 @@ public class SetupWizardUtils {
private static final String GMS_PACKAGE = "com.google.android.gms";
private static final String GMS_SUW_PACKAGE = "com.google.android.setupwizard";
private static final String GMS_TV_SUW_PACKAGE = "com.google.android.tungsten.setupwraith";
private static final String PROP_BUILD_DATE = "ro.build.date.utc";
@@ -265,13 +264,6 @@ public class SetupWizardUtils {
isEthernetConnected(context)) {
disableComponent(context, WifiSetupActivity.class);
}
// Google's ATV SUW is shipped as it requires platform signature.
// Disable it if GMS is not installed by user.
if (hasLeanback(context) &&
!PackageManagerUtils.isAppInstalled(context, GMS_PACKAGE)) {
disableApplication(context, GMS_TV_SUW_PACKAGE);
}
}
public static void disableComponentsForGMS(Context context) {
@@ -299,11 +291,6 @@ public class SetupWizardUtils {
return comp;
}
public static void disableApplication(Context context, String appname) {
context.getPackageManager().setApplicationEnabledSetting(appname,
COMPONENT_ENABLED_STATE_DISABLED, 0);
}
public static void disableComponentSets(Context context, int flags) {
setComponentListEnabledState(context, getComponentSets(context, flags),
COMPONENT_ENABLED_STATE_DISABLED);